// Numbas version: exam_results_page_options {"name": "Adaptive marking", "allQuestions": true, "questions": [{"variables": {"roots": {"name": "roots", "description": "", "templateType": "anything", "group": "Quadratic equation", "definition": "sort(shuffle(list(-5..5))[0..2])"}, "b": {"name": "b", "description": "

Greatest root of the quadratic

", "templateType": "anything", "group": "Quadratic equation", "definition": "roots[1]"}, "ys": {"name": "ys", "description": "

y coordinates corresponding to the given x coordinates

", "templateType": "anything", "group": "Quadratic equation", "definition": "map((x-a)*(x-b),x,xs)"}, "a": {"name": "a", "description": "

Least root of the quadratic equation

", "templateType": "anything", "group": "Quadratic equation", "definition": "roots[0]"}, "xs": {"name": "xs", "description": "

Three given x coordinates

", "templateType": "anything", "group": "Quadratic equation", "definition": "shuffle(-5..5 except [a,b])[0..3]"}}, "name": "Adaptive marking: quadratic equation", "parts": [{"gaps": [{"maxValue": "a", "marks": "1", "variableReplacements": [], "type": "numberentry", "showPrecisionHint": false, "allowFractions": false, "correctAnswerFraction": false, "minValue": "a", "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst"}, {"maxValue": "b", "marks": "1", "variableReplacements": [], "type": "numberentry", "showPrecisionHint": false, "allowFractions": false, "correctAnswerFraction": false, "minValue": "b", "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst"}], "type": "gapfill", "scripts": {}, "marks": 0, "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

A quadratic function $f(x)$ goes through the points $(\\var{xs[0]},\\var{ys[0]})$, $(\\var{xs[1]},\\var{ys[1]})$ and $(\\var{xs[2]},\\var{ys[2]})$.

\n

Find the two roots of $f$. Write the least root first.

\n

Least root: [[0]]

\n

Greatest root: [[1]]

", "variableReplacementStrategy": "originalfirst"}, {"gaps": [{"showpreview": true, "marks": 1, "expectedvariablenames": [], "answer": "(x-{a})(x-{b})", "vsetrangepoints": 5, "variableReplacements": [{"part": "p0g0", "variable": "a", "must_go_first": false}, {"part": "p0g1", "variable": "b", "must_go_first": false}], "showCorrectAnswer": true, "vsetrange": [0, 1], "checkingaccuracy": 0.001, "checkingtype": "absdiff", "scripts": {}, "checkvariablenames": false, "type": "jme", "variableReplacementStrategy": "originalfirst"}], "type": "gapfill", "scripts": {}, "marks": 0, "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

Write a quadratic function $g(x)$ whose roots are the values you entered above, with $x^2$ coefficient $1$.

\n

$g(x) = $ [[0]]

", "variableReplacementStrategy": "originalfirst"}, {"maxValue": "mean(roots)", "correctAnswerFraction": false, "marks": 1, "showPrecisionHint": false, "variableReplacements": [{"part": "p0", "variable": "roots", "must_go_first": false}], "showCorrectAnswer": true, "prompt": "

What is the midpoint of the two roots of $f$?

", "type": "numberentry", "scripts": {}, "allowFractions": false, "minValue": "mean(roots)", "variableReplacementStrategy": "originalfirst"}], "variable_groups": [{"variables": ["roots", "a", "b", "xs", "ys"], "name": "Quadratic equation"}], "functions": {}, "tags": [], "ungrouped_variables": [], "statement": "

(This question doesn't make a lot of pedagogic sense, it just shows off how adaptive marking works)

", "preamble": {"js": "", "css": ""}, "metadata": {"description": "

Give the student three points lying on a quadratic, and ask them to find the roots.

\n

Then ask them to find the equation of the quadratic, using their roots. Error in calculating the roots is carried forward.

\n

Finally, ask them to find the midpoint of the roots (just for fun). Error is carried forward again.

", "notes": "", "licence": "None specified"}, "variablesTest": {"maxRuns": 100, "condition": ""}, "advice": "", "rulesets": {}}, {"variables": {"rad_rotation": {"name": "rad_rotation", "description": "

Angle of rotation in radians

", "templateType": "anything", "group": "Rotation matrix", "definition": "radians(rotation)"}, "det_m": {"name": "det_m", "description": "", "templateType": "anything", "group": "Rotation matrix", "definition": "det(mat)"}, "mat": {"name": "mat", "description": "

Rotation matrix for the given rotation

", "templateType": "anything", "group": "Rotation matrix", "definition": "matrix([\n [cos(rad_rotation),-sin(rad_rotation)],\n [sin(rad_rotation),cos(rad_rotation)]\n])"}, "rotation": {"name": "rotation", "description": "

Angle of rotation in degrees

", "templateType": "anything", "group": "Rotation matrix", "definition": "random(10..90)"}}, "name": "Adaptive marking: rotation matrix", "parts": [{"gaps": [{"correctAnswerFractions": false, "precision": "2", "strictPrecision": false, "marks": "4", "precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacements": [], "showCorrectAnswer": true, "markPerCell": true, "allowResize": false, "type": "matrix", "scripts": {}, "allowFractions": false, "correctAnswer": "mat", "numRows": "2", "numColumns": "2", "tolerance": 0, "precisionPartialCredit": 0, "variableReplacementStrategy": "originalfirst"}], "type": "gapfill", "scripts": {}, "marks": 0, "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

Write a matrix $\\mathrm{M}$ corresponding to a rotation of $\\var{rotation}^{\\circ}$ anti-clockwise about the origin.

\n

Round numbers to 2 decimal places.

\n

$\\mathrm{M} = $ [[0]]

", "variableReplacementStrategy": "originalfirst"}, {"gaps": [{"maxValue": "det(mat)", "variableReplacements": [{"part": "p0g0", "variable": "mat"}], "precision": "2", "showPrecisionHint": false, "marks": 1, "precisionType": "dp", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "type": "numberentry", "scripts": {}, "allowFractions": false, "strictPrecision": false, "minValue": "det(mat)", "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacementStrategy": "originalfirst"}], "type": "gapfill", "scripts": {}, "marks": 0, "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

$\\operatorname{det}\\mathrm{M} = $ [[0]] (Round your answer to 2 decimal places)

", "variableReplacementStrategy": "originalfirst"}, {"gaps": [{"correctAnswerFractions": false, "precision": "2", "strictPrecision": false, "marks": 1, "precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacements": [{"part": "p0g0", "variable": "mat"}, {"part": "p1g0", "variable": "det_m"}], "showCorrectAnswer": true, "markPerCell": false, "allowResize": false, "type": "matrix", "scripts": {}, "allowFractions": false, "correctAnswer": "matrix([[mat[1][1],-mat[0][1]],[-mat[1][0],mat[0][0]]])/det_m", "numRows": "2", "numColumns": "2", "tolerance": 0, "precisionPartialCredit": 0, "variableReplacementStrategy": "originalfirst"}], "type": "gapfill", "scripts": {}, "marks": 0, "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

$\\mathrm{M}^{-1} = $ [[0]]

\n

", "variableReplacementStrategy": "originalfirst"}], "variable_groups": [{"variables": ["rotation", "rad_rotation", "mat", "det_m"], "name": "Rotation matrix"}], "functions": {}, "tags": [], "ungrouped_variables": [], "statement": "", "preamble": {"js": "", "css": ""}, "metadata": {"description": "

Ask the student to find a matrix corresponding to a given rotation about the origin.

\n

Then ask them to find the determinant. Their answer is marked against the matrix they gave, not just the correct one.

\n

Finally, ask them to find the inverse of their matrix. Marking is against the matrix and determinant they gave.

", "notes": "", "licence": "None specified"}, "variablesTest": {"maxRuns": 100, "condition": ""}, "advice": "", "rulesets": {}}, {"variables": {"p_value_range": {"name": "p_value_range", "description": "

Describe where the p-value lies in relation to the critical values

", "templateType": "anything", "group": "Advice messages", "definition": "['is less than $0.001$','lies between $0.001$ and $0.01$','lies between $0.01$ and $0.05$','lies between $0.05$ and $0.10$','is greater than $0.10$'][scenario]"}, "sd2": {"name": "sd2", "description": "

Sample standard deviation of sample 2

", "templateType": "anything", "group": "Stats", "definition": "precround(pstdev(r2),3)"}, "mu1": {"name": "mu1", "description": "

Population mean of sample 1 (we'll generate samples from different distributions to produce different outcomes)

", "templateType": "anything", "group": "Setup", "definition": "random(55..75#0.5)"}, "sd1": {"name": "sd1", "description": "

Sample standard deviation of sample 1

", "templateType": "anything", "group": "Stats", "definition": "precround(pstdev(r1),3)"}, "sigma2": {"name": "sigma2", "description": "

Population standard deviation of sample 2

", "templateType": "anything", "group": "Setup", "definition": "random(8..10#0.2)"}, "decision_marking_matrix": {"name": "decision_marking_matrix", "description": "

Marking matrix for the multiple choice questions

", "templateType": "anything", "group": "Advice messages", "definition": "[\n [1,0,0,0,0],\n [0,1,0,0,0],\n [0,0,1,0,0],\n [0,0,0,1,0],\n [0,0,0,0,1]\n][scenario]"}, "r2": {"name": "r2", "description": "

Sample 2

", "templateType": "anything", "group": "Samples", "definition": "repeat(round(normalsample(mu2,sigma2)),n2)"}, "evidence_strength": {"name": "evidence_strength", "description": "

How much evidence is there against the null hypothesis?

", "templateType": "anything", "group": "Advice messages", "definition": "['very strong','strong','slight','no','no'][scenario]"}, "n2": {"name": "n2", "description": "

Size of sample 2

", "templateType": "anything", "group": "Setup", "definition": "10"}, "s": {"name": "s", "description": "

Used in the formula for the t statistic

", "templateType": "anything", "group": "Stats", "definition": "precround(sqrt(((n1-1)*sd1^2+(n2-1)*sd2^2)/(n1+n2-2)),3)"}, "t99": {"name": "t99", "description": "", "templateType": "anything", "group": "Critical t-values", "definition": "2.878"}, "mean1": {"name": "mean1", "description": "

Sample mean of sample 1

", "templateType": "anything", "group": "Stats", "definition": "mean(r1)"}, "t95": {"name": "t95", "description": "", "templateType": "anything", "group": "Critical t-values", "definition": "2.101"}, "reject": {"name": "reject", "description": "

Do we reject the null hypothesis?

", "templateType": "anything", "group": "Advice messages", "definition": "if(scenario<2,'do reject','do not reject')"}, "t999": {"name": "t999", "description": "", "templateType": "anything", "group": "Critical t-values", "definition": "3.922"}, "sigma1": {"name": "sigma1", "description": "

Population standard deviation of sample 1

", "templateType": "anything", "group": "Setup", "definition": "random(8..10#0.2)"}, "t_statistic": {"name": "t_statistic", "description": "", "templateType": "anything", "group": "Stats", "definition": "(mean1-mean2)*sqrt(n1*n2)/(s*sqrt(n1+n2))"}, "r1": {"name": "r1", "description": "

Sample 1

", "templateType": "anything", "group": "Samples", "definition": "repeat(round(normalsample(mu1,sigma1)),n1)"}, "t_statistic_range": {"name": "t_statistic_range", "description": "

Describe where the t-statistic lies in relation to the critical values

", "templateType": "anything", "group": "Advice messages", "definition": "['is greater than $\\\\var{t999}$','lies between $\\\\var{t99}$ and $\\\\var{t999}$','lies between $\\\\var{t95}$ and $\\\\var{t99}$','lies between $\\\\var{t90}$ and $\\\\var{t95}$','is less than $\\\\var{t90}$'][scenario]"}, "n1": {"name": "n1", "description": "

Size of sample 1

", "templateType": "anything", "group": "Setup", "definition": "10"}, "mean2": {"name": "mean2", "description": "

Sample mean of sample 1

", "templateType": "anything", "group": "Stats", "definition": "mean(r2)"}, "p_value": {"name": "p_value", "description": "

p-value corresponding to the t-statistic

", "templateType": "anything", "group": "Stats", "definition": "ttest(abs(t_statistic),19,2)"}, "t90": {"name": "t90", "description": "", "templateType": "anything", "group": "Critical t-values", "definition": "1.734"}, "mu2": {"name": "mu2", "description": "

Population mean of sample 2

", "templateType": "anything", "group": "Setup", "definition": "random(65..75#0.5)"}, "scenario": {"name": "scenario", "description": "

Which scenario are we in - how many critical values of the t distribution does t_statistic exceed?

", "templateType": "anything", "group": "Advice messages", "definition": "sum(map(abs(t_statistic)The two-sample t-statistic for two independent sets of data where one set has $n_1$ data points and the other set $n_2$ data points is calculated as follows:

\n

\\[T = \\frac{(\\overline{x}_1-\\overline{x}_2)-(\\mu_1-\\mu_2)}{s\\times\\sqrt{\\frac{1}{n_1}+\\frac{1}{n_2}}}\\;\\;\\;\\]

\n

where $\\overline{x}_1,\\;\\overline{x}_2$ are the sample means and 

\n

\\[s^2=\\frac{(n_1-1)s_1^2+(n_2-1)s_2^2}{n_1+n_2-2}\\]

\n

where $s_1,\\;s_2$ are the sample standard deviations.

\n

Use the values you calculated to 3 decimal places in order to find $T$.

", "variableReplacementStrategy": "originalfirst"}], "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

Find the mean and standard deviations of the scores of the two groups. Round your answers to 3 decimal places.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
MeanStandard deviation
Group 1[[0]][[1]]
Group 2[[2]][[3]]
\n

Now find the two sample t-test statistic $T$ using the values you have just calculated and enter it here: [[4]]

", "variableReplacementStrategy": "originalfirst"}, {"displayColumns": "1", "minMarks": 0, "scripts": {}, "marks": 0, "matrix": "decision_marking_matrix", "variableReplacements": [{"part": "p0g4", "variable": "t_statistic", "must_go_first": false}], "showCorrectAnswer": true, "displayType": "radiogroup", "choices": ["

$p$ is less than $0.1\\%$

", "

$p$ lies between $0.1\\%$ and $1\\%$

", "

$p$ lies between $1 \\%$ and $5\\%$

", "

$p$ lies between $5 \\%$ and $10\\%$

", "

$p$ is greater than $10\\%$

"], "prompt": "

Give the value $|T|$ of the t-statistic you have found, choose the range for the $p$ value by looking up the t tables:

", "shuffleChoices": false, "distractors": ["", "", "", "", ""], "maxMarks": 0, "type": "1_n_2", "variableReplacementStrategy": "originalfirst"}, {"displayColumns": 0, "minMarks": 0, "scripts": {}, "marks": 0, "matrix": "decision_marking_matrix", "variableReplacements": [{"part": "p0g4", "variable": "t_statistic", "must_go_first": false}], "showCorrectAnswer": true, "displayType": "radiogroup", "choices": ["

Very Strong Evidence

", "

Strong Evidence

", "

Evidence

", "

Weak Evidence

", "

No Evidence

"], "prompt": "

Given the $p$-value and the range you have found, what is the strength of evidence against the null hypothesis that there is no difference in the average times for the left and right hands?

", "shuffleChoices": false, "distractors": ["", "", "", "", ""], "maxMarks": 0, "type": "1_n_2", "variableReplacementStrategy": "originalfirst"}, {"displayColumns": "1", "minMarks": 0, "scripts": {}, "marks": 0, "matrix": "decision_marking_matrix", "variableReplacements": [{"part": "p0g4", "variable": "t_statistic", "must_go_first": false}], "showCorrectAnswer": true, "displayType": "radiogroup", "choices": ["

We reject the null hypothesis at the $0.1\\%$ level

", "

We reject the null hypothesis at the $1\\%$ level.

", "

We reject the null hypothesis at the $5\\%$ level.

", "

We do not reject the null hypothesis but consider further investigation.

", "

We do not reject the null hypothesis.

"], "prompt": "

What do you decide based on the above analysis?

", "shuffleChoices": false, "distractors": ["", "", "", "", ""], "maxMarks": 0, "type": "1_n_2", "variableReplacementStrategy": "originalfirst"}], "variable_groups": [{"variables": ["n1", "n2", "mu1", "sigma1", "mu2", "sigma2"], "name": "Setup"}, {"variables": ["r1", "r2"], "name": "Samples"}, {"variables": ["mean1", "sd1", "mean2", "sd2", "s", "t_statistic", "p_value"], "name": "Stats"}, {"variables": ["scenario", "decision_marking_matrix", "reject", "evidence_strength", "t_statistic_range", "p_value_range"], "name": "Advice messages"}, {"variables": ["t90", "t95", "t99", "t999"], "name": "Critical t-values"}], "functions": {"pstdev": {"type": "number", "parameters": [["l", "list"]], "definition": "sqrt(len(l)/(len(l)-1))*stdev(l)", "language": "jme"}}, "tags": ["average", "data analysis", "differences", "elementary statistics", "hypothesis testing", "mean", "standard deviation", "statistics", "stats", "t-test", "two sample t-test", "variance"], "ungrouped_variables": [], "statement": "

An educational psychologist claimed that the order in which questions were asked affected the student’s ability to answer them correctly and hence their total score. In order to test this, $20$ students were randomly divided into two groups of $10$. The first group were given questions in increasing order of difficulty and the second group in decreasing order of difficulty. The ordered test scores obtained were:

\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\n\n
Group 1{r1[0]}{r1[1]}{r1[2]}{r1[3]}{r1[4]}{r1[5]}{r1[6]}{r1[7]}{r1[8]}{r1[9]}
Group 2{r2[0]}{r2[1]}{r2[2]}{r2[3]}{r2[4]}{r2[5]}{r2[6]}{r2[7]}{r2[8]}{r2[9]}
\n

Carry out a two-sample t-test to decide if there is evidence of a difference in the average test scores for the two sets of students.

", "preamble": {"js": "", "css": ""}, "metadata": {"description": "

Two sample t-test to see if there is a difference between scores on questions between two groups when the questions are asked in a different order.

", "notes": "\n \t\t \t\t

11/07/2012:

\n \t\t \t\t


Added tags.

\n \t\t \t\t

Calculation not yet tested.

\n \t\t \t\t

23/07/2012:

\n \t\t \t\t

Added description.

\n \t\t \t\t

Checked calculation.

\n \t\t \t\t

Changed display slightly in Advice.

\n \t\t \t\t

3/08/2012:

\n \t\t \t\t

Added tags.

\n \t\t \t\t

Question appears to be working correctly.

\n \t\t \n \t\t", "licence": "None specified"}, "variablesTest": {"maxRuns": 100, "condition": ""}, "advice": "

We test the following hypothesis,

\n

$H_0:\\; \\mu_1=\\mu_2$ versus $H_1:\\; \\mu_1 \\neq \\mu_2$

\n

We find that the mean score of Group 1 is $\\overline{x}_1=\\var{mean1}$ with standard deviation $s_1=\\var{sd1}$ and the mean score of Group 2 is $\\overline{x}_2=\\var{mean2}$ with standard deviation $s_2=\\var{sd2}$.

\n

(All calculated to 3 decimal places.)

\n

Using the formula for the two-sample $t$-statistic as  shown above with $n_1=n_2=10$:

\n

The estimate of the pooled variance is calculated to be:

\n

\\[s^2=\\frac{(n_1-1)s_1^2+(n_2-1)s_2^2}{n_1+n_2-2}= \\frac{\\var{n1-1}\\times \\var{sd1}^2+\\var{n2-1}\\times \\var{sd2}^2}{\\var{n1+n2-2}}=\\var{s^2}.\\] 

\n

Hence $s = \\sqrt{\\var{s^2}}=\\var{s}$ to 3 decimal places.

\n

We find that the t-statistic has value:

\n

\\begin{align}
T &= \\frac{(\\overline{x}_1-\\overline{x}_2)-(\\mu_1-\\mu_2)}{s\\sqrt{\\frac{1}{n_1}+\\frac{1}{n_2}}} \\\\
&= \\frac{(\\var{mean1}-\\var{mean2})-(0)}{\\var{s}\\sqrt{\\frac{1}{\\var{n1}}+\\frac{1}{\\var{n2}}}} \\\\
&= \\var{t_statistic}
\\end{align}

\n

Our test statistic is $|T|=\\var{abs(t_statistic)}$.

\n

Given that we have $n_1+n_2-2=18$ degrees of freedom, we look up this value on the T-distribution table for $t_{18}$

\n

\\[\\begin{array}{r|rrrrr}&0.10&0.05&0.01&0.001\\\\\\hline18&1.734&2.101&2.878&3.922\\end{array}\\]

\n

We see that the t-statistic {t_statistic_range} and the table tells us that the $p$ value {p_value_range}.

\n

Hence we conclude that we {reject} the null hypothesis. There is {evidence_strength} evidence of a difference between the average scores of the two groups.

", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}}], "extensions": ["stats"], "percentPass": 0, "navigation": {"showresultspage": "oncompletion", "showfrontpage": false, "browse": true, "reverse": true, "onleave": {"action": "none", "message": ""}, "preventleave": false, "allowregen": true}, "showQuestionGroupNames": false, "shuffleQuestions": false, "pickQuestions": 0, "metadata": {"description": "

Some questions which demonstrate the adaptive marking feature.

", "notes": "", "licence": "Creative Commons Attribution 4.0 International"}, "question_groups": [{"pickQuestions": 0, "name": "", "pickingStrategy": "all-ordered", "questions": [{"name": "Adaptive marking: quadratic equation", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}], "variable_groups": [{"name": "Quadratic equation", "variables": ["roots", "a", "b", "xs", "ys"]}], "parts": [{"unitTests": [], "marks": 0, "sortAnswers": true, "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

A quadratic function $f(x)$ goes through the points $(\\var{xs[0]},\\var{ys[0]})$, $(\\var{xs[1]},\\var{ys[1]})$ and $(\\var{xs[2]},\\var{ys[2]})$.

\n

Find the two roots of $f$.

\n

First root: [[0]]

\n

Second root: [[1]]

", "gaps": [{"maxValue": "a", "notationStyles": ["plain", "en", "si-en"], "unitTests": [], "variableReplacements": [], "scripts": {}, "marks": "1", "correctAnswerStyle": "plain", "correctAnswerFraction": false, "showCorrectAnswer": true, "mustBeReducedPC": 0, "type": "numberentry", "mustBeReduced": false, "allowFractions": false, "customMarkingAlgorithm": "", "minValue": "a", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst"}, {"maxValue": "b", "notationStyles": ["plain", "en", "si-en"], "unitTests": [], "variableReplacements": [], "scripts": {}, "marks": "1", "correctAnswerStyle": "plain", "correctAnswerFraction": false, "showCorrectAnswer": true, "mustBeReducedPC": 0, "type": "numberentry", "mustBeReduced": false, "allowFractions": false, "customMarkingAlgorithm": "", "minValue": "b", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst"}], "type": "gapfill", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst"}, {"unitTests": [], "marks": 0, "sortAnswers": false, "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

Write a quadratic function $g(x)$ whose roots are the values you entered above, with $x^2$ coefficient $1$.

\n

$g(x) = $ [[0]]

", "gaps": [{"vsetRange": [0, 1], "unitTests": [], "variableReplacements": [{"part": "p0g0", "variable": "a", "must_go_first": false}, {"part": "p0g1", "variable": "b", "must_go_first": false}], "marks": 1, "checkVariableNames": false, "showPreview": true, "answer": "(x-{a})(x-{b})", "showCorrectAnswer": true, "vsetRangePoints": 5, "expectedVariableNames": [], "failureRate": 1, "checkingAccuracy": 0.001, "type": "jme", "scripts": {}, "checkingType": "absdiff", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst"}], "type": "gapfill", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst"}, {"maxValue": "mean(roots)", "notationStyles": ["plain", "en", "si-en"], "unitTests": [], "correctAnswerFraction": false, "scripts": {}, "marks": 1, "correctAnswerStyle": "plain", "variableReplacements": [{"part": "p0", "variable": "roots", "must_go_first": false}], "showCorrectAnswer": true, "prompt": "

What is the midpoint of the two roots of $f$?

", "mustBeReducedPC": 0, "type": "numberentry", "mustBeReduced": false, "allowFractions": false, "customMarkingAlgorithm": "", "minValue": "mean(roots)", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst"}], "statement": "

(This question doesn't make a lot of pedagogic sense, it just shows off how adaptive marking works)

", "ungrouped_variables": [], "tags": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "functions": {}, "preamble": {"js": "", "css": ""}, "metadata": {"description": "

Give the student three points lying on a quadratic, and ask them to find the roots.

\n

Then ask them to find the equation of the quadratic, using their roots. Error in calculating the roots is carried forward.

\n

Finally, ask them to find the midpoint of the roots (just for fun). Error is carried forward again.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "advice": "", "variables": {"roots": {"name": "roots", "description": "", "templateType": "anything", "definition": "sort(shuffle(list(-5..5))[0..2])", "group": "Quadratic equation"}, "b": {"name": "b", "description": "

Greatest root of the quadratic

", "templateType": "anything", "definition": "roots[1]", "group": "Quadratic equation"}, "xs": {"name": "xs", "description": "

Three given x coordinates

", "templateType": "anything", "definition": "shuffle(-5..5 except [a,b])[0..3]", "group": "Quadratic equation"}, "a": {"name": "a", "description": "

Least root of the quadratic equation

", "templateType": "anything", "definition": "roots[0]", "group": "Quadratic equation"}, "ys": {"name": "ys", "description": "

y coordinates corresponding to the given x coordinates

", "templateType": "anything", "definition": "map((x-a)*(x-b),x,xs)", "group": "Quadratic equation"}}, "rulesets": {}}, {"name": "Adaptive marking: rotation matrix", "extensions": [], "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/"}], "variables": {"rad_rotation": {"name": "rad_rotation", "description": "

Angle of rotation in radians

", "templateType": "anything", "group": "Rotation matrix", "definition": "radians(rotation)"}, "det_m": {"name": "det_m", "description": "", "templateType": "anything", "group": "Rotation matrix", "definition": "det(mat)"}, "mat": {"name": "mat", "description": "

Rotation matrix for the given rotation

", "templateType": "anything", "group": "Rotation matrix", "definition": "matrix([\n [cos(rad_rotation),-sin(rad_rotation)],\n [sin(rad_rotation),cos(rad_rotation)]\n])"}, "rotation": {"name": "rotation", "description": "

Angle of rotation in degrees

", "templateType": "anything", "group": "Rotation matrix", "definition": "random(10..90)"}}, "variable_groups": [{"name": "Rotation matrix", "variables": ["rotation", "rad_rotation", "mat", "det_m"]}], "parts": [{"gaps": [{"correctAnswerFractions": false, "numRows": "2", "scripts": {}, "marks": "4", "precisionType": "dp", "precisionPartialCredit": 0, "variableReplacements": [], "showCorrectAnswer": true, "markPerCell": true, "allowResize": false, "type": "matrix", "strictPrecision": false, "allowFractions": false, "correctAnswer": "mat", "precision": "2", "numColumns": "2", "tolerance": 0, "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacementStrategy": "originalfirst"}], "marks": 0, "scripts": {}, "showCorrectAnswer": true, "variableReplacements": [], "type": "gapfill", "prompt": "

Write a matrix $\\mathrm{M}$ corresponding to a rotation of $\\var{rotation}^{\\circ}$ anti-clockwise about the origin.

\n

Round numbers to 2 decimal places.

\n

$\\mathrm{M} = $ [[0]]

", "variableReplacementStrategy": "originalfirst"}, {"gaps": [{"maxValue": "det(mat)", "correctAnswerFraction": false, "precision": "2", "showPrecisionHint": false, "marks": 1, "precisionType": "dp", "showCorrectAnswer": true, "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacements": [{"part": "p0g0", "variable": "mat"}], "strictPrecision": false, "type": "numberentry", "scripts": {}, "allowFractions": false, "minValue": "det(mat)", "precisionPartialCredit": 0, "variableReplacementStrategy": "originalfirst"}], "marks": 0, "scripts": {}, "showCorrectAnswer": true, "variableReplacements": [], "type": "gapfill", "prompt": "

$\\operatorname{det}\\mathrm{M} = $ [[0]] (Round your answer to 2 decimal places)

", "variableReplacementStrategy": "originalfirst"}, {"gaps": [{"correctAnswerFractions": false, "numRows": "2", "scripts": {}, "marks": 1, "precisionType": "dp", "precisionPartialCredit": 0, "variableReplacements": [{"part": "p0g0", "variable": "mat"}, {"part": "p1g0", "variable": "det_m"}], "showCorrectAnswer": true, "markPerCell": false, "allowResize": false, "type": "matrix", "strictPrecision": false, "allowFractions": false, "correctAnswer": "matrix([[mat[1][1],-mat[0][1]],[-mat[1][0],mat[0][0]]])/det_m", "precision": "2", "numColumns": "2", "tolerance": 0, "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacementStrategy": "originalfirst"}], "marks": 0, "scripts": {}, "showCorrectAnswer": true, "variableReplacements": [], "type": "gapfill", "prompt": "

$\\mathrm{M}^{-1} = $ [[0]]

\n

", "variableReplacementStrategy": "originalfirst"}], "functions": {}, "showQuestionGroupNames": false, "tags": [], "ungrouped_variables": [], "preamble": {"js": "", "css": ""}, "metadata": {"description": "

Ask the student to find a matrix corresponding to a given rotation about the origin.

\n

Then ask them to find the determinant. Their answer is marked against the matrix they gave, not just the correct one.

\n

Finally, ask them to find the inverse of their matrix. Marking is against the matrix and determinant they gave.

", "notes": "", "licence": "Creative Commons Attribution 4.0 International"}, "question_groups": [{"pickQuestions": 0, "pickingStrategy": "all-ordered", "questions": [], "name": ""}], "type": "question", "statement": "", "variablesTest": {"maxRuns": 100, "condition": ""}, "advice": "", "rulesets": {}}, {"name": "Adaptive marking: Independent two sample t-test", "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": ["average", "data analysis", "differences", "elementary statistics", "hypothesis testing", "mean", "standard deviation", "statistics", "stats", "t-test", "two sample t-test", "variance"], "metadata": {"description": "

Two sample t-test to see if there is a difference between scores on questions between two groups when the questions are asked in a different order.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

An educational psychologist claimed that the order in which questions were asked affected the student’s ability to answer them correctly and hence their total score. In order to test this, $20$ students were randomly divided into two groups of $10$. The first group were given questions in increasing order of difficulty and the second group in decreasing order of difficulty. The ordered test scores obtained were:

\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\n\n
Group 1{r1[0]}{r1[1]}{r1[2]}{r1[3]}{r1[4]}{r1[5]}{r1[6]}{r1[7]}{r1[8]}{r1[9]}
Group 2{r2[0]}{r2[1]}{r2[2]}{r2[3]}{r2[4]}{r2[5]}{r2[6]}{r2[7]}{r2[8]}{r2[9]}
\n

Carry out a two-sample t-test to decide if there is evidence of a difference in the average test scores for the two sets of students.

", "advice": "

We test the following hypothesis,

\n

$H_0:\\; \\mu_1=\\mu_2$ versus $H_1:\\; \\mu_1 \\neq \\mu_2$

\n

We find that the mean score of Group 1 is $\\overline{x}_1=\\var{mean1}$ with standard deviation $s_1=\\var{sd1}$ and the mean score of Group 2 is $\\overline{x}_2=\\var{mean2}$ with standard deviation $s_2=\\var{sd2}$.

\n

(All calculated to 3 decimal places.)

\n

Using the formula for the two-sample $t$-statistic as  shown above with $n_1=n_2=10$:

\n

The estimate of the pooled variance is calculated to be:

\n

\\[s^2=\\frac{(n_1-1)s_1^2+(n_2-1)s_2^2}{n_1+n_2-2}= \\frac{\\var{n1-1}\\times \\var{sd1}^2+\\var{n2-1}\\times \\var{sd2}^2}{\\var{n1+n2-2}}=\\var{s^2}.\\] 

\n

Hence $s = \\sqrt{\\var{s^2}}=\\var{s}$ to 3 decimal places.

\n

We find that the t-statistic has value:

\n

\\begin{align}
T &= \\frac{(\\overline{x}_1-\\overline{x}_2)-(\\mu_1-\\mu_2)}{s\\sqrt{\\frac{1}{n_1}+\\frac{1}{n_2}}} \\\\
&= \\frac{(\\var{mean1}-\\var{mean2})-(0)}{\\var{s}\\sqrt{\\frac{1}{\\var{n1}}+\\frac{1}{\\var{n2}}}} \\\\
&= \\var{t_statistic}
\\end{align}

\n

Our test statistic is $|T|=\\var{abs(t_statistic)}$.

\n

Given that we have $n_1+n_2-2=18$ degrees of freedom, we look up this value on the T-distribution table for $t_{18}$

\n

\\[\\begin{array}{r|rrrrr}&0.10&0.05&0.01&0.001\\\\\\hline18&1.734&2.101&2.878&3.922\\end{array}\\]

\n

We see that the t-statistic {t_statistic_range} and the table tells us that the $p$ value {p_value_range}.

\n

Hence we conclude that we {reject} the null hypothesis. There is {evidence_strength} evidence of a difference between the average scores of the two groups.

", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"p_value_range": {"name": "p_value_range", "group": "Advice messages", "definition": "['is less than $0.001$','lies between $0.001$ and $0.01$','lies between $0.01$ and $0.05$','lies between $0.05$ and $0.10$','is greater than $0.10$'][scenario]", "description": "

Describe where the p-value lies in relation to the critical values

", "templateType": "anything", "can_override": false}, "sigma2": {"name": "sigma2", "group": "Setup", "definition": "random(8..10#0.2)", "description": "

Population standard deviation of sample 2

", "templateType": "anything", "can_override": false}, "t99": {"name": "t99", "group": "Critical t-values", "definition": "2.878", "description": "", "templateType": "anything", "can_override": false}, "n2": {"name": "n2", "group": "Setup", "definition": "10", "description": "

Size of sample 2

", "templateType": "anything", "can_override": false}, "t999": {"name": "t999", "group": "Critical t-values", "definition": "3.922", "description": "", "templateType": "anything", "can_override": false}, "t_statistic_range": {"name": "t_statistic_range", "group": "Advice messages", "definition": "['is greater than $\\\\var{t999}$','lies between $\\\\var{t99}$ and $\\\\var{t999}$','lies between $\\\\var{t95}$ and $\\\\var{t99}$','lies between $\\\\var{t90}$ and $\\\\var{t95}$','is less than $\\\\var{t90}$'][scenario]", "description": "

Describe where the t-statistic lies in relation to the critical values

", "templateType": "anything", "can_override": false}, "mu2": {"name": "mu2", "group": "Setup", "definition": "random(65..75#0.5)", "description": "

Population mean of sample 2

", "templateType": "anything", "can_override": false}, "evidence_strength": {"name": "evidence_strength", "group": "Advice messages", "definition": "['very strong','strong','slight','no','no'][scenario]", "description": "

How much evidence is there against the null hypothesis?

", "templateType": "anything", "can_override": false}, "n1": {"name": "n1", "group": "Setup", "definition": "10", "description": "

Size of sample 1

", "templateType": "anything", "can_override": false}, "mu1": {"name": "mu1", "group": "Setup", "definition": "random(55..75#0.5)", "description": "

Population mean of sample 1 (we'll generate samples from different distributions to produce different outcomes)

", "templateType": "anything", "can_override": false}, "reject": {"name": "reject", "group": "Advice messages", "definition": "if(scenario<2,'do reject','do not reject')", "description": "

Do we reject the null hypothesis?

", "templateType": "anything", "can_override": false}, "p_value": {"name": "p_value", "group": "Stats", "definition": "ttest(abs(t_statistic),19,2)", "description": "

p-value corresponding to the t-statistic

", "templateType": "anything", "can_override": false}, "t_statistic": {"name": "t_statistic", "group": "Stats", "definition": "(mean1-mean2)*sqrt(n1*n2)/(s*sqrt(n1+n2))", "description": "", "templateType": "anything", "can_override": false}, "t90": {"name": "t90", "group": "Critical t-values", "definition": "1.734", "description": "", "templateType": "anything", "can_override": false}, "decision_marking_matrix": {"name": "decision_marking_matrix", "group": "Advice messages", "definition": "[\n [1,0,0,0,0],\n [0,1,0,0,0],\n [0,0,1,0,0],\n [0,0,0,1,0],\n [0,0,0,0,1]\n][scenario]", "description": "

Marking matrix for the multiple choice questions

", "templateType": "anything", "can_override": false}, "sd2": {"name": "sd2", "group": "Stats", "definition": "precround(pstdev(r2),3)", "description": "

Sample standard deviation of sample 2

", "templateType": "anything", "can_override": false}, "t95": {"name": "t95", "group": "Critical t-values", "definition": "2.101", "description": "", "templateType": "anything", "can_override": false}, "r1": {"name": "r1", "group": "Samples", "definition": "repeat(round(normalsample(mu1,sigma1)),n1)", "description": "

Sample 1

", "templateType": "anything", "can_override": false}, "mean1": {"name": "mean1", "group": "Stats", "definition": "mean(r1)", "description": "

Sample mean of sample 1

", "templateType": "anything", "can_override": false}, "mean2": {"name": "mean2", "group": "Stats", "definition": "mean(r2)", "description": "

Sample mean of sample 1

", "templateType": "anything", "can_override": false}, "r2": {"name": "r2", "group": "Samples", "definition": "repeat(round(normalsample(mu2,sigma2)),n2)", "description": "

Sample 2

", "templateType": "anything", "can_override": false}, "scenario": {"name": "scenario", "group": "Advice messages", "definition": "sum(map(award(1,abs(t_statistic)Which scenario are we in - how many critical values of the t distribution does t_statistic exceed?

", "templateType": "anything", "can_override": false}, "sigma1": {"name": "sigma1", "group": "Setup", "definition": "random(8..10#0.2)", "description": "

Population standard deviation of sample 1

", "templateType": "anything", "can_override": false}, "sd1": {"name": "sd1", "group": "Stats", "definition": "precround(pstdev(r1),3)", "description": "

Sample standard deviation of sample 1

", "templateType": "anything", "can_override": false}, "s": {"name": "s", "group": "Stats", "definition": "precround(sqrt(((n1-1)*sd1^2+(n2-1)*sd2^2)/(n1+n2-2)),3)", "description": "

Used in the formula for the t statistic

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Setup", "variables": ["n1", "n2", "mu1", "sigma1", "mu2", "sigma2"]}, {"name": "Samples", "variables": ["r1", "r2"]}, {"name": "Stats", "variables": ["mean1", "sd1", "mean2", "sd2", "s", "t_statistic", "p_value"]}, {"name": "Advice messages", "variables": ["scenario", "decision_marking_matrix", "reject", "evidence_strength", "t_statistic_range", "p_value_range"]}, {"name": "Critical t-values", "variables": ["t90", "t95", "t99", "t999"]}], "functions": {"pstdev": {"parameters": [["l", "list"]], "type": "number", "language": "jme", "definition": "sqrt(len(l)/(len(l)-1))*stdev(l)"}}, "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": "

Find the mean and standard deviations of the scores of the two groups. Round your answers to 3 decimal places.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
MeanStandard deviation
Group 1[[0]][[1]]
Group 2[[2]][[3]]
\n

Now find the two sample t-test statistic $T$ using the values you have just calculated and enter it here: [[4]]

", "stepsPenalty": 0, "steps": [{"type": "information", "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": "

The two-sample t-statistic for two independent sets of data where one set has $n_1$ data points and the other set $n_2$ data points is calculated as follows:

\n

\\[T = \\frac{(\\overline{x}_1-\\overline{x}_2)-(\\mu_1-\\mu_2)}{s\\times\\sqrt{\\frac{1}{n_1}+\\frac{1}{n_2}}}\\;\\;\\;\\]

\n

where $\\overline{x}_1,\\;\\overline{x}_2$ are the sample means and 

\n

\\[s^2=\\frac{(n_1-1)s_1^2+(n_2-1)s_2^2}{n_1+n_2-2}\\]

\n

where $s_1,\\;s_2$ are the sample standard deviations.

\n

Use the values you calculated to 3 decimal places in order to find $T$.

"}], "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 0.5, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "mean1", "maxValue": "mean1", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 0.5, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "sd1", "maxValue": "sd1", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 0.5, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "mean2", "maxValue": "mean2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 0.5, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "sd2", "maxValue": "sd2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [{"variable": "mean1", "part": "p0g0", "must_go_first": false}, {"variable": "sd1", "part": "p0g1", "must_go_first": false}, {"variable": "mean2", "part": "p0g2", "must_go_first": false}, {"variable": "sd2", "part": "p0g3", "must_go_first": false}], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "t_statistic", "maxValue": "t_statistic", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "

You have not given your answer to the correct precision.

", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [{"variable": "t_statistic", "part": "p0g4", "must_go_first": false}], "variableReplacementStrategy": "alwaysreplace", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Given the value $|T|$ of the t-statistic you have found, choose the range for the $p$ value by looking up the t tables:

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": "1", "showCellAnswerState": true, "choices": ["

$p$ is less than $0.1\\%$

", "

$p$ lies between $0.1\\%$ and $1\\%$

", "

$p$ lies between $1 \\%$ and $5\\%$

", "

$p$ lies between $5 \\%$ and $10\\%$

", "

$p$ is greater than $10\\%$

"], "matrix": "decision_marking_matrix"}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [{"variable": "scenario", "part": "p1", "must_go_first": false}], "variableReplacementStrategy": "alwaysreplace", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Given the $p$-value and the range you have found, what is the strength of evidence against the null hypothesis that there is no difference in the average times for the left and right hands?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["

Very Strong Evidence

", "

Strong Evidence

", "

Evidence

", "

Weak Evidence

", "

No Evidence

"], "matrix": "decision_marking_matrix"}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [{"variable": "scenario", "part": "p2", "must_go_first": false}], "variableReplacementStrategy": "alwaysreplace", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What do you decide based on the above analysis?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": "1", "showCellAnswerState": true, "choices": ["

We reject the null hypothesis at the $0.1\\%$ level

", "

We reject the null hypothesis at the $1\\%$ level.

", "

We reject the null hypothesis at the $5\\%$ level.

", "

We do not reject the null hypothesis but consider further investigation.

", "

We do not reject the null hypothesis.

"], "matrix": "decision_marking_matrix"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "type": "exam", "timing": {"allowPause": true, "timedwarning": {"action": "none", "message": ""}, "timeout": {"action": "none", "message": ""}}, "resources": [], "feedback": {"allowrevealanswer": true, "advicethreshold": 0, "showactualmark": true, "showtotalmark": true, "showanswerstate": true}, "duration": 0, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}], "custom_part_types": []}