// Numbas version: finer_feedback_settings {"name": "Decide if variable is binomial or Poisson, from description, ", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"p2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=0,random(0..abs(b)-1 except p1),random(0..abs(pd)-1 except p3))", "description": "", "name": "p2"}, "mm": {"templateType": "anything", "group": "Ungrouped variables", "definition": "[[1,-1],[1-2*t,2*t-1],[-1,1]]", "description": "", "name": "mm"}, "b": {"templateType": "anything", "group": "Ungrouped variables", "definition": "\n[\"20% of eggs from a family-run farm are bad. X is the number of bad eggs in a box of a dozen.\",\n \"A salesperson has a 50% chance of making a sale on a customer visit and she arranges 10 visits in a day. Let X be the number of sales that day.\",\n \"30% of items off a factory production line have been shown to have defects. Let A be the number of defectives in a box of 20 such items.\",\n \"One in ten new small businesses in the north-east goes bust within a year. Let X be the number of small businesses that fail in the next year out of thirty that have been set up.\",\n \"The probability that an office photocopier will fail on any given day is 0.15. The human resources office at Newcastle University has ten such photocopiers; Let Y be the number of photocopiers that fail today.\",\n \"Callers to the Vodaphone call centre will get through to an operator immediately with probability 0.25. X is the number of callers that speak to an operator immediately out of thirty such callers.\",\n \"Experience has shown that two in every ten components produced by a circuitboard company will be defective. A random sample of 100 components is inspected for defects, and D is the number of defectives in this sample.\"]\n", "description": "", "name": "b"}, "ch1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "b[p1]", "description": "", "name": "ch1"}, "p1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(0..abs(b)-1)", "description": "", "name": "p1"}, "ch2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=0,b[p2],pd[p2])", "description": "", "name": "ch2"}, "p3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(0..abs(pd)-1)", "description": "", "name": "p3"}, "ch3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "pd[p3]", "description": "", "name": "ch3"}, "t": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(0,1)", "description": "", "name": "t"}, "pd": {"templateType": "anything", "group": "Ungrouped variables", "definition": "\n[\"Y is the number of flights sold per hour by an online travel agency. This travel agency usually sells 10 flights per hour.\",\n \"X is the number of cars sold by a local garage in a month. This garage usually sells about 10 cars per month.\",\n \"The number of calls, Y, received at the British Passport Office in Durham occurs at the rate of 10 a minute.\",\n \"We are interested in X, the number of machine breakdowns in a day. Such breakdowns at a particular IT company occur at a rate of eight per week.\",\n \"X is the number of e-mails arriving in your inbox in a one hour period. On average you receive 3 e-mails per hour.\",\n \"On average, three patients arrive at a local Accident and Emergency department every hour. We count the number, X, of patients in an hour period.\",\n \"About five customers arrive at a fish shop queue every ten minutes during the lunch time rush. We count X, the number of customers arriving during the lunch time rush.\"]\n", "description": "", "name": "pd"}}, "ungrouped_variables": ["p2", "p3", "b", "mm", "ch3", "ch1", "ch2", "p1", "t", "pd"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "name": "Decide if variable is binomial or Poisson, from description, ", "functions": {}, "showQuestionGroupNames": false, "parts": [{"displayType": "radiogroup", "minMarks": 0, "layout": {"type": "all", "expression": ""}, "choices": ["{ch1}", "{ch2}", "{ch3}"], "matrix": "mm", "type": "m_n_x", "maxAnswers": 0, "shuffleChoices": true, "warningType": "none", "scripts": {}, "marks": 0, "minAnswers": 0, "maxMarks": 0, "shuffleAnswers": false, "showCorrectAnswer": true, "answers": ["Binomial Distribution", "Poisson Distribution"]}], "statement": "\n
Which of the following random variables could be modelled with a binomial distribution and which could be modelled with a Poisson distribution?
\nYou will lose 1 mark for every incorrect answer. The minimum mark is 0.
\n ", "tags": ["ACC1012", "checked2015", "MAS1403"], "rulesets": {}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "06/12/2013
\nReplaced a Poisson scenario that wasn't strictly Poisson. (AJY)
\n31/12/2012:
\n
Checked choices, OK. Added tag sc as examples can be easily added to via the arrays b and pd.
Given descriptions of 3 random variables, decide whether or not each is from a Poisson or Binomial distribution.
"}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "No solution given.
", "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/"}]}