// Numbas version: finer_feedback_settings {"name": "Julie's copy of Decide whether pairs of events are independent, ", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Julie's copy of Decide whether pairs of events are independent, ", "extensions": [], "variables": {"m3": {"name": "m3", "group": "Ungrouped variables", "templateType": "anything", "definition": "if(v < k,1,-1)", "description": ""}, "pe": {"name": "pe", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(0.2..0.7#0.1)", "description": ""}, "npef": {"name": "npef", "group": "Ungrouped variables", "templateType": "anything", "definition": "precround(pef^2+random(0.1..0.2#0.01),2)", "description": ""}, "m1": {"name": "m1", "group": "Ungrouped variables", "templateType": "anything", "definition": "if(t < k,1,-1)", "description": ""}, "pm": {"name": "pm", "group": "Ungrouped variables", "templateType": "anything", "definition": "precround(pe*pf,2)", "description": ""}, "k": {"name": "k", "group": "Ungrouped variables", "templateType": "anything", "definition": "length(indep)", "description": ""}, "mo": {"name": "mo", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(\"January\",\"February\", \"March\", \"April\",\"June\", \"October\",\"November\",\"December\")", "description": ""}, "pef": {"name": "pef", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(0.3..0.8)", "description": ""}, "a": {"name": "a", "group": "Ungrouped variables", "templateType": "anything", "definition": "indep+notindep", "description": ""}, "sc2": {"name": "sc2", "group": "Ungrouped variables", "templateType": "anything", "definition": "a[u]", "description": ""}, "notindep": {"name": "notindep", "group": "Ungrouped variables", "templateType": "anything", "definition": "\n [\"A: The sky is cloudy today. B: It will rain today.\",\n \"A: A level marks in Mathematics, B: A level marks in Physics from students in the same school.\",\n \"$E\\\\; \\\\textrm{and}\\\\; F$, where $P(E)= P(F)=\\\\var{pef}$ and $P(E\\\\; \\\\textrm{and}\\\\; F)= \\\\var{npef}$\",\n \"H: Tom lies in on \"+ td + \", K: Tom is late for his \"+ tm+\" o'clock lecture on \"+ td,\n \"A student is selected at random from this class. The events H and K are such that H: the student is \"+ abbe+ \" average in height and K: the student is \"+abbe +\" average in weight.\",\n \"$E\\\\; \\\\textrm{and}\\\\; F$, where $P(E\\\\; \\\\textrm{and}\\\\; F)\\\\neq P(E)\\\\times P(F)$\",\n \"H: There is a severe thunderstorm in my home town this afternoon. K: My computer crashes this afternoon.\",\n \"A: A patient takes an abnormally long time to recover from an operation. B: The patient is elderly.\"]\n ", "description": ""}, "sc1": {"name": "sc1", "group": "Ungrouped variables", "templateType": "anything", "definition": "a[t]", "description": ""}, "col": {"name": "col", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(\"black\",\"brown\",\"blonde\")", "description": ""}, "tm": {"name": "tm", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(9,10,11)", "description": ""}, "m2": {"name": "m2", "group": "Ungrouped variables", "templateType": "anything", "definition": "if(u < k,1,-1)", "description": ""}, "mm": {"name": "mm", "group": "Ungrouped variables", "templateType": "anything", "definition": "[[m1,-m1],[m2,-m2],[m3,-m3]]", "description": ""}, "something": {"name": "something", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(\"win easily\",\"scrape a draw\", \"get beat due to a disputed penalty\")", "description": ""}, "v": {"name": "v", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(0..abs(a)-1 except [t,u])", "description": ""}, "pf": {"name": "pf", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(0.2..0.7#0.1)", "description": ""}, "indep": {"name": "indep", "group": "Ungrouped variables", "templateType": "anything", "definition": "\n [\"$E\\\\; \\\\textrm{and}\\\\; F$, where $P(E \\\\;\\\\textrm{and}\\\\; F) = P(E) \\\\times P(F)$.\",\n \"$E\\\\; \\\\textrm{and}\\\\; F$, where $P(E)= \\\\var{pe}$, $P(F)= \\\\var{pf}$ and $P(E\\\\; \\\\textrm{and}\\\\; F)=\\\\var{pm}$\",\n \"H: A new laundry detergent will capture $\\\\var{pc} of the market next year, K: Rover will produce a new model next year.\",\n \"H: Spinning a six and K: spinning a five on the same spinner.\",\n \"A: I look out of the window and it is sunny, B: I win the National Lottery jackpot this weekend!\",\n \"A: I look out of the window and it is cloudy, B: Newcastle \"+{something}+\" this weekend.\",\n \"$E\\\\; \\\\textrm{and}\\\\; F$, where $P(E)= P(F)$ and $P(E\\\\; \\\\textrm{and}\\\\; F)= P(E) \\\\times P(F)$\",\n \"A student is selected at random from this class. The events A and B are such that A: the student has \"+ abbe+ \" average shoe size and B: the student was born in \"+ {mo},\n \"E: An individual eats out more than \"+thismany+\" times a week. F: An individual has \"+col+\" hair.\",\n \"$H$ and $K$, where $P(K) = P(K|H)$.\"]\n ", "description": ""}, "abbe": {"name": "abbe", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(\"above\",\"below\")", "description": ""}, "t": {"name": "t", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(0..abs(a)-1)", "description": ""}, "thismany": {"name": "thismany", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..4)", "description": ""}, "sc3": {"name": "sc3", "group": "Ungrouped variables", "templateType": "anything", "definition": "a[v]", "description": ""}, "td": {"name": "td", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(\"Monday\",\"Tuesday\", \"Wednesday\",\"Thursday\",\"Friday\")", "description": ""}, "u": {"name": "u", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(0..abs(a)-1 except t)", "description": ""}, "pc": {"name": "pc", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(3..20)", "description": ""}}, "tags": [], "statement": "\n

Choose whether or not the following three pairs of events are independent or not.

\n

For every wrong choice you will lose a mark.  The minimum mark you can get is 0.

\n ", "advice": "

No solution provided.

", "ungrouped_variables": ["something", "indep", "pc", "tm", "pf", "m3", "m2", "m1", "td", "pm", "abbe", "npef", "pe", "thismany", "sc1", "pef", "sc3", "sc2", "a", "mm", "mo", "notindep", "col", "u", "t", "v", "k"], "variable_groups": [], "parts": [{"variableReplacements": [], "scripts": {}, "gaps": [{"shuffleChoices": false, "scripts": {}, "displayType": "radiogroup", "showCorrectAnswer": true, "answers": ["Independent", "Not independent"], "showFeedbackIcon": true, "variableReplacements": [], "warningType": "none", "choices": ["First Pair: {sc1}", "Second Pair: {sc2}", "Third Pair: {sc3}"], "minMarks": 0, "maxAnswers": 0, "variableReplacementStrategy": "originalfirst", "shuffleAnswers": false, "matrix": "mm", "marks": 0, "maxMarks": 0, "type": "m_n_x", "layout": {"expression": "", "type": "all"}, "minAnswers": 0}], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "marks": 0, "prompt": "

[[0]]

", "type": "gapfill"}], "variablesTest": {"condition": "", "maxRuns": 100}, "preamble": {"js": "", "css": ""}, "rulesets": {}, "functions": {}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Independent events in probability. Choose whether given three given pairs of events are independent or not.

"}, "type": "question", "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}