// 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.
\nMeasures of central tendency
\nMean ($\\bar{x}$) = {meanwgt}
\nMedian = {medianx}
\nMeasures of variation (spread) around the mean
\nStandard deviation ($s$ or sd) = {sdwgt}
\nVariance ($s^2$) = {varx}
\nPrecision
\nStandard error (of the mean, $se$) = {sed}
\nOther summary statistics
\nNumber of replicates (observations, $n$) = {thismany}
\nSum of observations = {sumx}
\nSum 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.
\nMeasures of central tendency
\nMean ($\\bar{x}$) = [[0]] (input to 2 decimal places )
\nMedian = [[1]] (input to 2 decimal places)
\nMeasures of variation (spread) around the mean
\nStandard deviation ($s$ or sd) = [[2]] (input 2 decimal places)
\nVariance ($s^2$) = [[3]]
\nPrecision
\nStandard error (of the mean, $se$) = [[7]]
\nOther summary statistics
\nNumber of replicates (observations, $n$) = [[4]] (whole number, integer)
\nSum of observations = [[5]] (input 2 decimal places)
\nSum 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{object} | \nA | \nB | \nC | \nD | \nE | \nF | \n
Value | \n$\\var{r1[0]}$ | \n$\\var{r1[1]}$ | \n$\\var{r1[2]}$ | \n$\\var{r1[3]}$ | \n$\\var{r1[4]}$ | \n$\\var{r1[5]}$ | \n
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/"}]}