// Numbas version: finer_feedback_settings {"name": "Maria's copy of 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, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "name": "Maria's copy of The gambler's fallacy - probability of getting heads again after repeatedly getting heads", "extensions": [], "ungrouped_variables": ["no_flips"], "tags": ["taxonomy"], "parts": [{"notationStyles": ["plain", "en", "si-en"], "allowFractions": true, "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "scripts": {}, "showFeedbackIcon": true, "maxValue": "1/2", "variableReplacements": [], "marks": 1, "correctAnswerFraction": true, "correctAnswerStyle": "plain", "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?
", "type": "numberentry", "mustBeReduced": false, "minValue": "1/2", "showCorrectAnswer": true}], "variables": {"no_flips": {"description": "Number of flips of the coin
", "name": "no_flips", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(6..9)"}}, "preamble": {"css": "", "js": ""}, "rulesets": {}, "variable_groups": [], "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "", "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", "metadata": {"description": "Previous throws don't affect the probability distribution of subsequent throws. Believing otherwise is the gambler's fallacy.
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}