// Numbas version: exam_results_page_options {"name": "Michael's copy of Standard deviation of a list of numbers with hints", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "name": "Michael's copy of Standard deviation of a list of numbers with hints", "ungrouped_variables": ["data", "sigma", "x", "mean", "var"], "statement": "

Find the Standard Deviation

", "variables": {"sigma": {"group": "Ungrouped variables", "name": "sigma", "templateType": "anything", "definition": "stdev(data)", "description": ""}, "data": {"group": "Ungrouped variables", "name": "data", "templateType": "anything", "definition": "repeat(random(1..30),x)", "description": ""}, "x": {"group": "Ungrouped variables", "name": "x", "templateType": "anything", "definition": "random(4,5,8)", "description": ""}, "var": {"group": "Ungrouped variables", "name": "var", "templateType": "anything", "definition": "sigma^2", "description": ""}, "mean": {"group": "Ungrouped variables", "name": "mean", "templateType": "anything", "definition": "mean(data)", "description": ""}}, "parts": [{"strictPrecision": false, "showPrecisionHint": false, "showCorrectAnswer": true, "steps": [{"showCorrectAnswer": true, "marks": 0, "scripts": {}, "prompt": "

Standard deviation = $\\sqrt{\\frac{\\Sigma (x-\\text{mean})^2}{n}}$

\n

To find the standard deviation, first find the mean of the list of numbers. 

\n

What is the mean?

\n

Now, subtract the mean individually from each of the numbers given and square the result. 

\n

Now add up these results. This is the '$\\Sigma (x-\\text{mean})^2$' part in the formula.
Divide by $n$ where $n$ is the number of values.

\n

Finally, find the square root.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "type": "information"}], "minValue": "{sigma}", "precision": "1", "stepsPenalty": "1", "precisionType": "dp", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "maxValue": "{sigma}", "variableReplacements": [], "precisionPartialCredit": 0, "correctAnswerFraction": false, "scripts": {}, "marks": "5", "prompt": "

Find the standard deviation of the following list of numbers {data}.

\n

Give your answer correct to one decimal place.

", "precisionMessage": "

You have not given your answer to the correct number of decimal places.

", "allowFractions": false}], "extensions": ["stats"], "question_groups": [{"name": "", "questions": [], "pickingStrategy": "all-ordered", "pickQuestions": 0}], "variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Just showing how to use the stdev function from the stats extension to calculate the standard deviation of a list of numbers.

\n

rebelmaths

"}, "type": "question", "advice": "

Standard deviation = $\\sqrt{\\frac{\\Sigma (x-\\text{mean})^2}{n}}$

\n

What is the mean? Add up the numbers and divide by the number of numbers getting an answer of {mean}.

\n

Now, subtract the mean individually from each of the numbers given and square the result. 

\n

Now add up these results. This is the '$\\Sigma (x-\\text{mean})^2$' part in the formula.
Divide by {x} the number of values. This gives an answer of {var}.

\n

Finally, find the square root to get an answer of {sigma}.

", "preamble": {"js": "", "css": ""}, "rulesets": {}, "showQuestionGroupNames": false, "tags": ["rebel", "Rebel", "REBEL", "rebelmaths"], "functions": {}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Michael Proudman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/269/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Michael Proudman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/269/"}]}