// Numbas version: finer_feedback_settings {"name": "Maria's copy of Catherine'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": [{"tags": [], "preamble": {"css": "", "js": ""}, "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 ", "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.

"}, "variable_groups": [], "variablesTest": {"condition": "", "maxRuns": 100}, "name": "Maria's copy of Catherine's copy of Decide whether pairs of events are independent,", "rulesets": {}, "advice": "

No solution provided.

", "variables": {"pef": {"templateType": "anything", "name": "pef", "definition": "random(0.3..0.8)", "group": "Ungrouped variables", "description": ""}, "td": {"templateType": "anything", "name": "td", "definition": "random(\"Monday\",\"Tuesday\", \"Wednesday\",\"Thursday\",\"Friday\")", "group": "Ungrouped variables", "description": ""}, "sc2": {"templateType": "anything", "name": "sc2", "definition": "a[u]", "group": "Ungrouped variables", "description": ""}, "thismany": {"templateType": "anything", "name": "thismany", "definition": "random(2..4)", "group": "Ungrouped variables", "description": ""}, "m3": {"templateType": "anything", "name": "m3", "definition": "if(v < k,1,-1)", "group": "Ungrouped variables", "description": ""}, "npef": {"templateType": "anything", "name": "npef", "definition": "precround(pef^2+random(0.1..0.2#0.01),2)", "group": "Ungrouped variables", "description": ""}, "k": {"templateType": "anything", "name": "k", "definition": "length(indep)", "group": "Ungrouped variables", "description": ""}, "notindep": {"templateType": "anything", "name": "notindep", "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 ", "group": "Ungrouped variables", "description": ""}, "v": {"templateType": "anything", "name": "v", "definition": "random(0..abs(a)-1 except [t,u])", "group": "Ungrouped variables", "description": ""}, "col": {"templateType": "anything", "name": "col", "definition": "random(\"black\",\"brown\",\"blonde\")", "group": "Ungrouped variables", "description": ""}, "mo": {"templateType": "anything", "name": "mo", "definition": "random(\"January\",\"February\", \"March\", \"April\",\"June\", \"October\",\"November\",\"December\")", "group": "Ungrouped variables", "description": ""}, "indep": {"templateType": "anything", "name": "indep", "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 ", "group": "Ungrouped variables", "description": ""}, "tm": {"templateType": "anything", "name": "tm", "definition": "random(9,10,11)", "group": "Ungrouped variables", "description": ""}, "sc1": {"templateType": "anything", "name": "sc1", "definition": "a[t]", "group": "Ungrouped variables", "description": ""}, "a": {"templateType": "anything", "name": "a", "definition": "indep+notindep", "group": "Ungrouped variables", "description": ""}, "pc": {"templateType": "anything", "name": "pc", "definition": "random(3..20)", "group": "Ungrouped variables", "description": ""}, "sc3": {"templateType": "anything", "name": "sc3", "definition": "a[v]", "group": "Ungrouped variables", "description": ""}, "mm": {"templateType": "anything", "name": "mm", "definition": "[[m1,-m1],[m2,-m2],[m3,-m3]]", "group": "Ungrouped variables", "description": ""}, "abbe": {"templateType": "anything", "name": "abbe", "definition": "random(\"above\",\"below\")", "group": "Ungrouped variables", "description": ""}, "t": {"templateType": "anything", "name": "t", "definition": "random(0..abs(a)-1)", "group": "Ungrouped variables", "description": ""}, "m1": {"templateType": "anything", "name": "m1", "definition": "if(t < k,1,-1)", "group": "Ungrouped variables", "description": ""}, "pm": {"templateType": "anything", "name": "pm", "definition": "precround(pe*pf,2)", "group": "Ungrouped variables", "description": ""}, "m2": {"templateType": "anything", "name": "m2", "definition": "if(u < k,1,-1)", "group": "Ungrouped variables", "description": ""}, "pe": {"templateType": "anything", "name": "pe", "definition": "random(0.2..0.7#0.1)", "group": "Ungrouped variables", "description": ""}, "something": {"templateType": "anything", "name": "something", "definition": "random(\"win easily\",\"scrape a draw\", \"get beat due to a disputed penalty\")", "group": "Ungrouped variables", "description": ""}, "pf": {"templateType": "anything", "name": "pf", "definition": "random(0.2..0.7#0.1)", "group": "Ungrouped variables", "description": ""}, "u": {"templateType": "anything", "name": "u", "definition": "random(0..abs(a)-1 except t)", "group": "Ungrouped variables", "description": ""}}, "functions": {}, "extensions": [], "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"], "parts": [{"scripts": {}, "marks": 0, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "showCorrectAnswer": true, "gaps": [{"scripts": {}, "variableReplacementStrategy": "originalfirst", "shuffleChoices": false, "showCorrectAnswer": true, "displayType": "radiogroup", "maxMarks": 0, "minAnswers": 0, "showFeedbackIcon": true, "answers": ["Independent", "Not independent"], "variableReplacements": [], "marks": 0, "shuffleAnswers": false, "minMarks": 0, "maxAnswers": 0, "matrix": "mm", "layout": {"expression": "", "type": "all"}, "warningType": "none", "type": "m_n_x", "choices": ["First Pair: {sc1}", "Second Pair: {sc2}", "Third Pair: {sc3}"]}], "prompt": "

[[0]]

", "showFeedbackIcon": true, "type": "gapfill"}], "type": "question", "contributors": [{"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}