// Numbas version: exam_results_page_options {"name": "Maths Support: Descriptive statistics", "type": "exam", "duration": 0, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution 4.0 International"}, "allQuestions": true, "shuffleQuestions": false, "questions": [], "percentPass": 0, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "pickQuestions": 0, "navigation": {"onleave": {"action": "none", "message": ""}, "reverse": true, "allowregen": true, "preventleave": false, "browse": true, "showfrontpage": false, "showresultspage": "never"}, "feedback": {"showtotalmark": true, "advicethreshold": 0, "showanswerstate": true, "showactualmark": true, "allowrevealanswer": true}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": [{"name": "Find mean and standard deviation of differences between samples", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}], "tags": ["cr1", "data analysis", "differences", "elementary statistics", "mean", "mean of differences", "standard deviation", "standard deviation of differences", "statistics", "stats", "tested1", "variance"], "metadata": {"description": "\n \t\t \t\t

An experiment is performed twice, each with $5$ outcomes

\n \t\t \t\t

$x_i,\\;y_i,\\;i=1,\\dots 5$ . Find mean and s.d. of their differences $y_i-x_i,\\;i=1,\\dots 5$.

\n \t\t \n \t\t", "licence": "None specified"}, "statement": "

{Something} for $\\var{thismany}$ {objects} {performing} were:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
{object}12345
First {attempt}$\\var{r1[0]}$$\\var{r1[1]}$$\\var{r1[2]}$$\\var{r1[3]}$$\\var{r1[4]}$
Second {attempt}$\\var{r2[0]}$$\\var{r2[1]}$$\\var{r2[2]}$$\\var{r2[3]}$$\\var{r2[4]}$
\n

Answer the following questions to 3 d.p.:

", "advice": "\n

The table of differences is given by:

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{object}12345
First {attempt}$\\var{r1[0]}$$\\var{r1[1]}$$\\var{r1[2]}$$\\var{r1[3]}$$\\var{r1[4]}$
Second {attempt}$\\var{r2[0]}$$\\var{r2[1]}$$\\var{r2[2]}$$\\var{r2[3]}$$\\var{r2[4]}$
Differences$\\var{d[0]}$$\\var{d[1]}$$\\var{d[2]}$$\\var{d[3]}$$\\var{d[4]}$
\n

The mean of the differences is $\\var{meandiff}$.

\n

The variance $V$ of the differences is
\\[\\begin{eqnarray*} V&=&\\frac{1}{4}\\left(\\simplify[]{({d[0]}^2+{d[1]}^2+{d[2]}^2+{d[3]}^2+{d[4]}^2)}-5\\times \\var{meandiff}^2\\right)\\\\ &=&\\var{variance(d,true)} \\end{eqnarray*} \\]
Hence we have the standard deviation = $\\sqrt{V}=\\var{stdiff}$ to 3 decimal places.

\n \n ", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "variables": {"meandiff": {"name": "meandiff", "group": "Ungrouped variables", "definition": "mean(d)", "description": "", "templateType": "anything"}, "object": {"name": "object", "group": "Ungrouped variables", "definition": "\"Person\"", "description": "", "templateType": "string"}, "attempt": {"name": "attempt", "group": "Ungrouped variables", "definition": "'attempt'", "description": "", "templateType": "anything"}, "r1": {"name": "r1", "group": "Ungrouped variables", "definition": "repeat(round(normalsample(mu1,sig1)),5)", "description": "", "templateType": "anything"}, "sig2": {"name": "sig2", "group": "Ungrouped variables", "definition": "sig1+random(-0.5..-0.2#0.1)", "description": "", "templateType": "anything"}, "mu2": {"name": "mu2", "group": "Ungrouped variables", "definition": "mu1+random(1..3#0.1)", "description": "", "templateType": "anything"}, "performing": {"name": "performing", "group": "Ungrouped variables", "definition": " 'working at $\\\\var{100}$ watts on an exercise machine' ", "description": "", "templateType": "anything"}, "sig1": {"name": "sig1", "group": "Ungrouped variables", "definition": "random(1.5..2.5#0.5)", "description": "", "templateType": "anything"}, "thismany": {"name": "thismany", "group": "Ungrouped variables", "definition": "5", "description": "", "templateType": "anything"}, "stdiff": {"name": "stdiff", "group": "Ungrouped variables", "definition": "precround(stdev(d,true),3)", "description": "", "templateType": "anything"}, "objects": {"name": "objects", "group": "Ungrouped variables", "definition": "\"people\"", "description": "", "templateType": "string"}, "something": {"name": "something", "group": "Ungrouped variables", "definition": "'Oxygen uptake values (mL/kg.min)'", "description": "", "templateType": "anything"}, "r2": {"name": "r2", "group": "Ungrouped variables", "definition": "repeat(round(normalsample(mu2,sig2)),5)", "description": "", "templateType": "anything"}, "mu1": {"name": "mu1", "group": "Ungrouped variables", "definition": "random(16..20#0.5)", "description": "", "templateType": "anything"}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "list(vector(r2)-vector(r1))", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["meandiff", "performing", "attempt", "r1", "objects", "mu2", "object", "sig1", "thismany", "stdiff", "sig2", "something", "r2", "mu1", "d"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "\n \n \n

Find the mean and standard deviations of the difference between first and second {attempt}s.

\n \n \n \n

Calculate differences for second {attempt} – first {attempt}.

\n \n \n \n

Please note that it is second {attempt} – first {attempt}

\n \n \n \n

Mean of difference = [[0]] (input as an exact decimal)

\n \n \n \n

Standard deviation of difference = [[1]] (input to 3 decimal places)

\n \n \n \n ", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{meandiff}", "maxValue": "{meandiff}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{stdiff}", "maxValue": "{stdiff}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}], "extensions": ["stats"], "custom_part_types": [], "resources": []}