// Numbas version: exam_results_page_options {"name": "Convert gambling odds to probabilities, , ", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"wdw": {"templateType": "anything", "group": "Ungrouped variables", "definition": "'A bookmaker lists'", "description": "", "name": "wdw"}, "t": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(0..20)", "description": "", "name": "t"}, "player1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "'Australia'", "description": "", "name": "player1"}, "odds22": {"templateType": "anything", "group": "Ungrouped variables", "definition": "round(odds12*odds21/odds11)-random(2..5 except round(odds12*odds21/odds11))", "description": "", "name": "odds22"}, "den2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "odds21+odds22", "description": "", "name": "den2"}, "odds21": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(8..20)", "description": "", "name": "odds21"}, "between": {"templateType": "anything", "group": "Ungrouped variables", "definition": "'between'", "description": "", "name": "between"}, "odds12": {"templateType": "anything", "group": "Ungrouped variables", "definition": "round((t*round(odds11+1)/2+(20-t)*(odds11-1))/20)", "description": "", "name": "odds12"}, "odds11": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(8..20)", "description": "", "name": "odds11"}, "event": {"templateType": "anything", "group": "Ungrouped variables", "definition": "'the next series of games'", "description": "", "name": "event"}, "player2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "'England'", "description": "", "name": "player2"}, "den1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "odds11+odds12", "description": "", "name": "den1"}}, "ungrouped_variables": ["odds12", "odds11", "den2", "den1", "wdw", "player2", "player1", "t", "between", "odds22", "event", "odds21"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "name": "Convert gambling odds to probabilities, , ", "functions": {}, "showQuestionGroupNames": false, "parts": [{"scripts": {}, "gaps": [{"answer": "{odds11}/{den1}", "musthave": {"message": "

Input as a fraction.

", "showStrings": false, "partialCredit": 0, "strings": ["/"]}, "vsetrange": [0, 1], "checkingaccuracy": 0.001, "showCorrectAnswer": true, "expectedvariablenames": [], "notallowed": {"message": "

Input your answer as a fraction and not a decimal.

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "checkvariablenames": false, "type": "jme", "answersimplification": "std, fractionNumbers", "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "prompt": "

You should take the bet if you think that $\\Pr(\\var{player1}\\text{ win})$ is greater than [[0]]

", "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"answer": "{odds22}/{den2}", "musthave": {"message": "

Input as a fraction.

", "showStrings": false, "partialCredit": 0, "strings": ["/"]}, "vsetrange": [0, 1], "checkingaccuracy": 0.001, "showCorrectAnswer": true, "expectedvariablenames": [], "notallowed": {"message": "

Input your answer as a fraction and not a decimal.

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "checkvariablenames": false, "type": "jme", "answersimplification": "std, fractionNumbers", "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "prompt": "

You should take the bet if you think that $\\Pr(\\var{player2}\\text{ win})$ is greater than [[0]]

", "showCorrectAnswer": true, "marks": 0}], "statement": "

The following odds are given for {event} {between} {player1} and {player2}

\n\n\n\n\n\n\n\n
{player1} $\\var{odds11}: \\var{odds12}$ on{player2} $\\var{odds21}: \\var{odds22}$ against
\n

Convert these statements about odds into probabilities.

\n

Give your answers as fractions.

", "tags": ["checked2015", "converting odds", "elementary probability", "MAS1604", "MAS8380", "MAS8401", "odds", "odds into probabilities", "probability", "Probability", "statistics", "tested1"], "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "

7/07/2012:

\n

Added tags.

\n

Added decimal point as forbidden string for both answers.

\n

Checked calculation.

\n

22/07/2012:

\n

Added description.

\n

31/07/2012:

\n

Added tags.

\n

Question appears to be working correctly.

\n

20/12/2012:

\n

Checked calculations, OK. Added tested1 tag.

", "licence": "Creative Commons Attribution 4.0 International", "description": "

Converting odds to probabilities.

"}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

a)

\n

Odds of $\\var{odds11}: \\var{odds12}$ on means that you should take the bet if you think the probability of {player1} winning is greater than:

\n

\\[ \\frac{\\var{odds11}}{\\var{odds11}+\\var{odds12}} = \\simplify[std]{{odds11}/{odds11+odds12}}\\]

\n

b)

\n

Odds of $\\var{odds21}: \\var{odds22}$ against means that you should take the bet if you think that the probability of {player2} losing is less than:

\n

\\[ \\frac{\\var{odds21}}{\\var{odds21}+\\var{odds22}} = \\simplify[std]{{odds21}/{odds21+odds22}}\\]

\n

That is, if you think the probability of {player2} winning is greater than:

\n

\\[ 1- \\simplify[std]{{odds21}/{odds21+odds22}}=\\simplify[std]{{odds22}/{odds21+odds22}}\\]

\n

Note that the sum of these probabilities is:

\n

\\[\\simplify[std]{{odds11}/{odds11+odds12}}+\\simplify[std]{{odds22}/{odds21+odds22}}=\\simplify[std]{{odds11*odds21+odds22*odds12+2*odds11*odds22}/{odds11*odds21+odds22*odds12+odds11*odds22+odds12*odds21}}\\]

\n

which is less than $1$, as otherwise you could bet on both to win and not lose any money!

", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}