// Numbas version: finer_feedback_settings {"name": "Summary statistics (1).", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {"pstdev": {"definition": "sqrt(abs(l)/(abs(l)-1))*stdev(l)", "type": "number", "parameters": [["l", "list"]], "language": "jme"}}, "ungrouped_variables": ["mdlower", "mdupper", "meanwgt", "medianx", "medlower", "medupper", "mu1", "object", "objects", "r1", "sdwgt", "sed", "sedlower", "sedupper", "sig1", "stdlower", "stdupper", "sumx", "sumx2", "sumx2lower", "sumx2upper", "sumxlower", "sumxupper", "thismany", "varlower", "varupper", "varx"], "name": "Summary statistics (1).", "tags": ["average", "data analysis", "differences", "elementary statistics", "hypothesis testing", "mean", "mean of differences", "paired t-test", "standard deviation", "standard deviation of differences", "statistics", "stats", "t-test", "variance"], "advice": "

Calculate summary statistics for the sample. Use your calculator as much as possible. The only one you cannot easily use the caclulator for is the median.

\n

Measures of central tendency

\n

Mean ($\\bar{x}$) = {meanwgt}

\n

Median = {medianx}

\n

Measures of variation (spread) around the mean

\n

Standard deviation ($s$ or sd) = {sdwgt}

\n

Variance ($s^2$) = {varx}

\n

Precision

\n

Standard error (of the mean, $se$) = {sed}

\n

Other summary statistics

\n

Number of replicates (observations, $n$) = {thismany}

\n

Sum of observations = {sumx}

\n

Sum of squares of observations = {sumx2}

", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "parts": [{"prompt": "

Calculate summary statistics for the sample. Use your calculator as much as possible. The only one you cannot easily use the caclulator for is the median.

\n

Measures of central tendency

\n

Mean ($\\bar{x}$) = [[0]] (input  to 2 decimal places )

\n

Median  = [[1]] (input to 2 decimal places)

\n

Measures of variation (spread) around the mean

\n

Standard deviation ($s$ or sd) = [[2]] (input 2 decimal places)

\n

Variance ($s^2$) = [[3]]

\n

Precision

\n

Standard error (of the mean, $se$) = [[7]]

\n

Other summary statistics

\n

Number of replicates (observations, $n$) = [[4]] (whole number, integer)

\n

Sum of observations = [[5]] (input 2 decimal places)

\n

Sum of squares of observations = [[6]] (input 2 decimal places)

", "marks": 0, "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "scripts": {}, "precision": "2", "maxValue": "{mdupper}", "minValue": "{mdlower}", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "marks": "1", "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "scripts": {}, "precision": "2", "maxValue": "{medupper}", "minValue": "{medlower}", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "scripts": {}, "precision": "2", "maxValue": "{stdupper}", "minValue": "{stdlower}", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "marks": "1", "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "scripts": {}, "precision": "2", "maxValue": "{varupper}", "minValue": "{varlower}", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "scripts": {}, "maxValue": "{thismany}", "minValue": "{thismany}", "correctAnswerFraction": false, "showCorrectAnswer": true, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "scripts": {}, "precision": "2", "maxValue": "{sumxupper}", "minValue": "{sumxlower}", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "scripts": {}, "precision": "2", "maxValue": "{sumx2upper}", "minValue": "{sumx2lower}", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "scripts": {}, "precision": "2", "maxValue": "{sedupper}", "minValue": "{sedlower}", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}], "statement": "

This exercise is just about calculating summary statistics using the sample data in the table below:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
{object}ABCDEF
Value$\\var{r1[0]}$$\\var{r1[1]}$$\\var{r1[2]}$$\\var{r1[3]}$$\\var{r1[4]}$$\\var{r1[5]}$
\n

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"varupper": {"definition": "(sdwgt^2)+0.05", "templateType": "anything", "group": "Ungrouped variables", "name": "varupper", "description": ""}, "sumx2upper": {"definition": "sumx2+0.05", "templateType": "anything", "group": "Ungrouped variables", "name": "sumx2upper", "description": ""}, "medlower": {"definition": "medianx-0.05", "templateType": "anything", "group": "Ungrouped variables", "name": "medlower", "description": ""}, "sumxupper": {"definition": "sumx+0.05", "templateType": "anything", "group": "Ungrouped variables", "name": "sumxupper", "description": ""}, "varx": {"definition": "sdwgt^2", "templateType": "anything", "group": "Ungrouped variables", "name": "varx", "description": ""}, "sumx2lower": {"definition": "sumx2-0.05", "templateType": "anything", "group": "Ungrouped variables", "name": "sumx2lower", "description": ""}, "varlower": {"definition": "(sdwgt^2)-0.05", "templateType": "anything", "group": "Ungrouped variables", "name": "varlower", "description": ""}, "sed": {"definition": "precround(sdwgt/sqrt(thismany),3)", "templateType": "anything", "group": "Ungrouped variables", "name": "sed", "description": ""}, "sedlower": {"definition": "sed-0.05", "templateType": "anything", "group": "Ungrouped variables", "name": "sedlower", "description": ""}, "mdupper": {"definition": "meanwgt+0.025", "templateType": "anything", "group": "Ungrouped variables", "name": "mdupper", "description": ""}, "stdupper": {"definition": "sdwgt+0.025", "templateType": "anything", "group": "Ungrouped variables", "name": "stdupper", "description": ""}, "meanwgt": {"definition": "precround(mean(r1),3)", "templateType": "anything", "group": "Ungrouped variables", "name": "meanwgt", "description": ""}, "medupper": {"definition": "medianx+0.05", "templateType": "anything", "group": "Ungrouped variables", "name": "medupper", "description": ""}, "sumxlower": {"definition": "sumx-0.05", "templateType": "anything", "group": "Ungrouped variables", "name": "sumxlower", "description": ""}, "sedupper": {"definition": "sed+0.05", "templateType": "anything", "group": "Ungrouped variables", "name": "sedupper", "description": ""}, "sumx2": {"definition": "sumsqrd(r1)", "templateType": "anything", "group": "Ungrouped variables", "name": "sumx2", "description": ""}, "medianx": {"definition": "median(r1)", "templateType": "anything", "group": "Ungrouped variables", "name": "medianx", "description": ""}, "sdwgt": {"definition": "precround(pstdev(r1),3)", "templateType": "anything", "group": "Ungrouped variables", "name": "sdwgt", "description": ""}, "sumx": {"definition": "sum(r1)", "templateType": "anything", "group": "Ungrouped variables", "name": "sumx", "description": ""}, "object": {"definition": "'Data'", "templateType": "anything", "group": "Ungrouped variables", "name": "object", "description": ""}, "sig1": {"definition": "random(5..7)", "templateType": "anything", "group": "Ungrouped variables", "name": "sig1", "description": ""}, "thismany": {"definition": "6", "templateType": "anything", "group": "Ungrouped variables", "name": "thismany", "description": ""}, "objects": {"definition": "'data'", "templateType": "anything", "group": "Ungrouped variables", "name": "objects", "description": ""}, "mdlower": {"definition": "meanwgt-0.025", "templateType": "anything", "group": "Ungrouped variables", "name": "mdlower", "description": ""}, "stdlower": {"definition": "sdwgt-0.025", "templateType": "anything", "group": "Ungrouped variables", "name": "stdlower", "description": ""}, "mu1": {"definition": "random(22..28)", "templateType": "anything", "group": "Ungrouped variables", "name": "mu1", "description": ""}, "r1": {"definition": "repeat(min(round(normalsample(mu1,sig1)),25),6)", "templateType": "anything", "group": "Ungrouped variables", "name": "r1", "description": ""}}, "metadata": {"notes": "", "description": "

Calculating summary statistics.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Keith McGuinness", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/523/"}]}]}], "contributors": [{"name": "Keith McGuinness", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/523/"}]}