// Numbas version: exam_results_page_options
{"name": "The gambler's fallacy - probability of getting heads again after repeatedly getting heads", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"rulesets": {}, "variable_groups": [], "tags": ["taxonomy"], "name": "The gambler's fallacy - probability of getting heads again after repeatedly getting heads", "functions": {}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "Previous throws don't affect the probability distribution of subsequent throws. Believing otherwise is the gambler's fallacy.

"}, "ungrouped_variables": ["no_flips"], "parts": [{"notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "mustBeReduced": false, "variableReplacements": [], "showCorrectAnswer": true, "allowFractions": true, "correctAnswerStyle": "plain", "mustBeReducedPC": 0, "minValue": "1/2", "scripts": {}, "marks": 1, "showFeedbackIcon": true, "type": "numberentry", "prompt": "An unbiased coin is flipped $\\var{no_flips}$ times. Given that the coin landed on heads each time, what is the probability of the coin landing on heads the next time it is flipped?

", "correctAnswerFraction": true, "maxValue": "1/2"}], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"no_flips": {"description": "Number of flips of the coin

", "definition": "random(6..9)", "templateType": "anything", "name": "no_flips", "group": "Ungrouped variables"}}, "extensions": [], "type": "question", "preamble": {"js": "", "css": ""}, "advice": "When we flip an unbiased coin there are two possible events that we could measure: the coin lands on heads or the coin lands on tails.

\nEach toss of the coin is independent; if we flip a coin once and it lands on heads then the next time we flip the coin it is still equally likely to land on either heads or tails.

\nIt doesn't matter what the coin landed on previously as this outcome does not affect the outcome of the next flip of the coin.

\nEven when we flip an unbiased coin $\\var{no_flips}$ times and it lands on heads each time; the next time we flip the coin, it is still equally likely to land on either heads or tails.

\nSo the probability that the coin lands on heads the next time that the coin is flipped is still $\\displaystyle\\frac{1}{2}$.

\n", "statement": "", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}