// Numbas version: exam_results_page_options {"name": "Maths Support: Correlation", "navigation": {"onleave": {"action": "none", "message": ""}, "reverse": true, "allowregen": true, "preventleave": false, "browse": true, "showfrontpage": false, "showresultspage": "never"}, "duration": 0.0, "metadata": {"notes": "", "description": "

Statistics and probability. Practice on correlation questions.

", "licence": "Creative Commons Attribution 4.0 International"}, "timing": {"timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "shufflequestions": false, "questions": [], "percentpass": 0.0, "allQuestions": true, "pickQuestions": 0, "type": "exam", "feedback": {"showtotalmark": true, "advicethreshold": 0.0, "showanswerstate": true, "showactualmark": true, "allowrevealanswer": true}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": [{"name": "Pearson1", "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/"}], "functions": {"darr": {"definition": "if(n=1,a,darr(n-1,m,[random(1..m except a)]+a))", "type": "list", "language": "jme", "parameters": [["n", "number"], ["m", "number"], ["a", "list"]]}, "rk": {"definition": "\n /*This gives the ranking of the entries in a, c counts the ties */\n var out = [];\n for(var j=0;ja[i]){s+=1;}\n else\n if(a[j]==a[i]){c+=1;}\n }\n out[j]=(2*s+c+1)/2;\n }\n return out;\n ", "type": "list", "language": "javascript", "parameters": [["a", "list"]]}, "pstdev": {"definition": "sqrt(abs(l)/(abs(l)-1))*stdev(l)", "type": "number", "language": "jme", "parameters": [["l", "list"]]}, "marr": {"definition": "if(length(a)=2,max(a[0],a[1]),max(a[0],marr(a[1..length(a)])))", "type": "number", "language": "jme", "parameters": [["a", "list"]]}, "tesarr": {"definition": "if(marr(map(abs(x),x,list(vector(a)-vector(b))))The answers to all parts are given on revealing.

", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "parts": [{"prompt": "\n \n \n \n \n \n \n \n \n \n \n \n
Wife $(X)$$\\sum x=\\;$[[0]]$\\sum x^2=\\;$[[1]]
Husband $(Y)$$\\sum y=\\;$[[2]]$\\sum y^2=\\;$[[3]]
\n

Also find $\\sum xy=\\;$[[4]] and then:

\n

$\\displaystyle SSX = \\;$[[5]]

\n

$\\displaystyle SSY = \\;$[[6]]

\n

$\\displaystyle SPXY = \\;$[[7]]

\n

Hence calculate the correlation coefficient $r$:

\n

$r=\\;$[[8]]

\n

 

\n ", "gaps": [{"minvalue": "t[0]", "type": "numberentry", "maxvalue": "t[0]", "marks": 0.5, "showPrecisionHint": false}, {"minvalue": "ssq[0]", "type": "numberentry", "maxvalue": "ssq[0]", "marks": 0.5, "showPrecisionHint": false}, {"minvalue": "t[1]", "type": "numberentry", "maxvalue": "t[1]", "marks": 0.5, "showPrecisionHint": false}, {"minvalue": "ssq[1]", "type": "numberentry", "maxvalue": "ssq[1]", "marks": 0.5, "showPrecisionHint": false}, {"minvalue": "sxy", "type": "numberentry", "maxvalue": "sxy", "marks": 0.5, "showPrecisionHint": false}, {"minvalue": "ss[0]", "type": "numberentry", "maxvalue": "ss[0]", "marks": 0.5, "showPrecisionHint": false}, {"minvalue": "ss[1]", "type": "numberentry", "maxvalue": "ss[1]", "marks": 0.5, "showPrecisionHint": false}, {"minvalue": "spxy", "type": "numberentry", "maxvalue": "spxy", "marks": 0.5, "showPrecisionHint": false}, {"minvalue": "corrcoef-tol", "type": "numberentry", "maxvalue": "corrcoef+tol", "marks": 1.0, "showPrecisionHint": false}], "type": "gapfill", "marks": 0.0}, {"prompt": "\n

Give the value of the correlation coefficient you have found, choose the range for the $p$ value by looking up the relevant table. Input the required values from the table here:

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
$10\\%$$5\\%$$1\\%$$0.2\\%$
[[0]][[1]][[2]][[3]]
\n

Then make a decision based on the $p$-value you have found by choosing one of these options:

\n

[[4]]

\n ", "gaps": [{"minvalue": 0.621, "type": "numberentry", "maxvalue": 0.621, "marks": 0.25, "showPrecisionHint": false}, {"minvalue": 0.707, "type": "numberentry", "maxvalue": 0.707, "marks": 0.25, "showPrecisionHint": false}, {"minvalue": 0.834, "type": "numberentry", "maxvalue": 0.834, "marks": 0.25, "showPrecisionHint": false}, {"minvalue": 0.905, "type": "numberentry", "maxvalue": 0.905, "marks": 0.25, "showPrecisionHint": false}, {"maxanswers": 0.0, "distractors": ["", "", "", "", ""], "matrix": "v", "shufflechoices": false, "minanswers": 0.0, "choices": ["$p \\leq 0.002$, very strong evidence to reject the null hypothesis that there is no association.", "$0.002 \\lt p \\leq 0.01$, strong evidence to reject the null hypothesis that there is no association.", "$0.01 \\lt p \\leq 0.05$, there is evidence to reject the null hypothesis that there is no association.", "$0.05 \\lt p \\leq 0.1$, weak evidence against, do not reject the null hypothesis but consider further investigation.", "$p \\gt 0.1$, no evidence to reject the null hypothesis that there is no association."], "displaytype": "radiogroup", "maxmarks": 0.0, "marks": 0.0, "displaycolumns": 1.0, "type": "1_n_2", "minmarks": 0.0}], "type": "gapfill", "marks": 0.0}], "statement": "\n

It is well known that similarity in attitudes, beliefs and interests plays an important role in interpersonal attraction. A researcher developed a questionnaire which was completed by 8 married couples. One question sought to place each individual on a 20 point scale in which low scores represent liberal attitudes and high scores represent conservative attitudes. The data 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
Couple$\\var{obj[0]}$$\\var{obj[1]}$$\\var{obj[2]}$$\\var{obj[3]}$$\\var{obj[4]}$$\\var{obj[5]}$$\\var{obj[6]}$$\\var{obj[7]}$
Wife $(X)$$\\var{r1[0]}$$\\var{r1[1]}$$\\var{r1[2]}$$\\var{r1[3]}$$\\var{r1[4]}$$\\var{r1[5]}$$\\var{r1[6]}$$\\var{r1[7]}$
Husband $(Y)$$\\var{r2[0]}$$\\var{r2[1]}$$\\var{r2[2]}$$\\var{r2[3]}$$\\var{r2[4]}$$\\var{r2[5]}$$\\var{r2[6]}$$\\var{r2[7]}$
\n

In this exercise you will find the Pearson correlation coefficent for the above paired data and comment on the significance of the calculated correlation.

\n

The null hypothesis you are testing is:

\n

$H_0$: There is no association between the attitudes of wives and husbands.

\n ", "variable_groups": [], "progress": "ready", "type": "question", "variables": {"tsqovern": {"definition": "[t[0]^2/n,t[1]^2/n]", "name": "tsqovern"}, "obj": {"definition": "['A','B','C','D','E','F','G','H']", "name": "obj"}, "r1": {"definition": "darr(n,m,[random(1..20)])", "name": "r1"}, "r2": {"definition": "tesarr(r1,darr(n,m,[random(1..m)]),9,m)", "name": "r2"}, "ss": {"definition": "[ssq[0]-t[0]^2/n,ssq[1]-t[1]^2/n]", "name": "ss"}, "ssq": {"definition": "[sum(map(x^2,x,r1)),sum(map(x^2,x,r2))]", "name": "ssq"}, "k": {"definition": 3.0, "name": "k"}, "m": {"definition": 20.0, "name": "m"}, "ssd": {"definition": "sum(map(x^2,x,d))", "name": "ssd"}, "n": {"definition": 8.0, "name": "n"}, "spcoef": {"definition": "precround(6*ssd/(n*(n^2-1)),3)", "name": "spcoef"}, "corrcoef": {"definition": "precround(spxy/sqrt(ss[0]*ss[1]),3)", "name": "corrcoef"}, "vs": {"definition": "switch(spcoef >=0.952,[1,0,0,0,0],spcoef>=0.881,[0,1,0,0,0],spcoef>=0.738,[0,0,1,0,0],spcoef>=0.643,[0,0,0,1,0],[0,0,0,0,1])", "name": "vs"}, "spxy": {"definition": "sxy-t[0]*t[1]/n", "name": "spxy"}, "t": {"definition": "[sum(r1),sum(r2)]", "name": "t"}, "tol": {"definition": 0.001, "name": "tol"}, "v": {"definition": "switch(corrcoef >=0.905,[1,0,0,0,0],corrcoef>=0.834,[0,1,0,0,0],corrcoef>=0.707,[0,0,1,0,0],corrcoef>=0.621,[0,0,0,1,0],[0,0,0,0,1])", "name": "v"}, "sxy": {"definition": "sum(map(r1[x]*r2[x],x,0..n-1))", "name": "sxy"}, "rr2": {"definition": "rk(r2)", "name": "rr2"}, "rr1": {"definition": "rk(r1)", "name": "rr1"}, "d": {"definition": "list(vector(rr1)-vector(rr2))", "name": "d"}}, "metadata": {"notes": "

30/09/2102:

\n

Introduced three functions:

\n

1. To produce the ranking of a list of 8 numbers.

\n

2. To produce a list of 8 numbers from a scale of 1..20 which are all distinct.

\n

3. To produce the maximum of the numbers in a list.

\n

4. Given an array such as in 2. to find another such array which has max diff between any two corresponding entries less than a given number. This is to ensure that the two array produced do not differ too much, as the point of the exercise is to show that there is a positive high correlation.

\n

 26/01/2013:

\n

No advice as yet.

", "description": "

Calculate the Pearson correlation coefficient on paired data and comment on the significance.

", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Pearson2", "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/"}], "functions": {"darr": {"definition": "if(n=1,a,darr(n-1,m,[random(1..m except a)]+a))", "type": "list", "language": "jme", "parameters": [["n", "number"], ["m", "number"], ["a", "list"]]}, "rk": {"definition": "\n /*This gives the ranking of the entries in a, c counts the ties */\n var out = [];\n for(var j=0;ja[i]){s+=1;}\n else\n if(a[j]==a[i]){c+=1;}\n }\n out[j]=(2*s+c+1)/2;\n }\n return out;\n \n ", "type": "list", "language": "javascript", "parameters": [["a", "list"]]}, "pstdev": {"definition": "sqrt(abs(l)/(abs(l)-1))*stdev(l)", "type": "number", "language": "jme", "parameters": [["l", "list"]]}, "marr": {"definition": "if(length(a)=2,max(a[0],a[1]),max(a[0],marr(a[1..length(a)])))", "type": "number", "language": "jme", "parameters": [["a", "list"]]}, "tesarr": {"definition": "if(marr(map(abs(x),x,list(vector(a)-vector(b))))The answers to all parts are given on revealing.

", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "parts": [{"prompt": "\n \n \n \n \n \n \n \n \n \n \n \n
Wife $(X)$$\\sum x=\\;$[[0]]$\\sum x^2=\\;$[[1]]
Husband $(Y)$$\\sum y=\\;$[[2]]$\\sum y^2=\\;$[[3]]
\n

Also find $\\sum xy=\\;$[[4]] and then:

\n

$\\displaystyle SSX = \\;$[[5]]

\n

$\\displaystyle SSY = \\;$[[6]]

\n

$\\displaystyle SPXY = \\;$[[7]]

\n

Hence calculate the correlation coefficient $r$:

\n

$r=\\;$[[8]]

\n

 

\n \n ", "gaps": [{"minvalue": "t[0]", "type": "numberentry", "maxvalue": "t[0]", "marks": 0.5, "showPrecisionHint": false}, {"minvalue": "ssq[0]", "type": "numberentry", "maxvalue": "ssq[0]", "marks": 0.5, "showPrecisionHint": false}, {"minvalue": "t[1]", "type": "numberentry", "maxvalue": "t[1]", "marks": 0.5, "showPrecisionHint": false}, {"minvalue": "ssq[1]", "type": "numberentry", "maxvalue": "ssq[1]", "marks": 0.5, "showPrecisionHint": false}, {"minvalue": "sxy", "type": "numberentry", "maxvalue": "sxy", "marks": 0.5, "showPrecisionHint": false}, {"minvalue": "ss[0]", "type": "numberentry", "maxvalue": "ss[0]", "marks": 0.5, "showPrecisionHint": false}, {"minvalue": "ss[1]", "type": "numberentry", "maxvalue": "ss[1]", "marks": 0.5, "showPrecisionHint": false}, {"minvalue": "spxy", "type": "numberentry", "maxvalue": "spxy", "marks": 0.5, "showPrecisionHint": false}, {"minvalue": "corrcoef-tol", "type": "numberentry", "maxvalue": "corrcoef+tol", "marks": 1.0, "showPrecisionHint": false}], "type": "gapfill", "marks": 0.0}, {"prompt": "\n

Give the value of the correlation coefficient you have found, choose the range for the $p$ value by looking up the relevant table. Input the required values from the table here:

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
$10\\%$$5\\%$$1\\%$$0.2\\%$
[[0]][[1]][[2]][[3]]
\n

Then make a decision based on the $p$-value you have found by choosing one of these options:

\n

[[4]]

\n \n ", "gaps": [{"minvalue": 0.549, "type": "numberentry", "maxvalue": 0.549, "marks": 0.25, "showPrecisionHint": false}, {"minvalue": 0.632, "type": "numberentry", "maxvalue": 0.632, "marks": 0.25, "showPrecisionHint": false}, {"minvalue": 0.765, "type": "numberentry", "maxvalue": 0.765, "marks": 0.25, "showPrecisionHint": false}, {"minvalue": 0.847, "type": "numberentry", "maxvalue": 0.847, "marks": 0.25, "showPrecisionHint": false}, {"maxanswers": 0.0, "distractors": ["", "", "", "", ""], "matrix": "v", "shufflechoices": false, "minanswers": 0.0, "choices": ["$p \\leq 0.002$, very strong evidence to reject the null hypothesis that there is no association.", "$0.002 \\lt p \\leq 0.01$, strong evidence to reject the null hypothesis that there is no association.", "$0.01 \\lt p \\leq 0.05$, there is evidence to reject the null hypothesis that there is no association.", "$0.05 \\lt p \\leq 0.1$, weak evidence against, do not reject the null hypothesis but consider further investigation.", "$p \\gt 0.1$, no evidence to reject the null hypothesis that there is no association."], "displaytype": "radiogroup", "maxmarks": 0.0, "marks": 0.0, "displaycolumns": 1.0, "type": "1_n_2", "minmarks": 0.0}], "type": "gapfill", "marks": 0.0}], "statement": "\n

It is well known that similarity in attitudes, beliefs and interests plays an important role in interpersonal attraction. A researcher developed a questionnaire which was completed by 10 married couples. One question sought to place each individual on a 20 point scale in which low scores represent liberal attitudes and high scores represent conservative attitudes. The data 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 \n
Couple$\\var{obj[0]}$$\\var{obj[1]}$$\\var{obj[2]}$$\\var{obj[3]}$$\\var{obj[4]}$$\\var{obj[5]}$$\\var{obj[6]}$$\\var{obj[7]}$$\\var{obj[8]}$$\\var{obj[9]}$
Wife $(X)$$\\var{r1[0]}$$\\var{r1[1]}$$\\var{r1[2]}$$\\var{r1[3]}$$\\var{r1[4]}$$\\var{r1[5]}$$\\var{r1[6]}$$\\var{r1[7]}$$\\var{r1[8]}$$\\var{r1[9]}$
Husband $(Y)$$\\var{r2[0]}$$\\var{r2[1]}$$\\var{r2[2]}$$\\var{r2[3]}$$\\var{r2[4]}$$\\var{r2[5]}$$\\var{r2[6]}$$\\var{r2[7]}$$\\var{r2[8]}$$\\var{r2[9]}$
\n

In this exercise you will find the Pearson correlation coefficent for the above paired data and comment on the significance of the calculated correlation.

\n

The null hypothesis you are testing is:

\n

$H_0$: There is no association between the attitudes of wives and husbands.

\n ", "variable_groups": [], "progress": "ready", "type": "question", "variables": {"aspcoef": {"definition": "abs(spcoef)", "name": "aspcoef"}, "spcoef": {"definition": "precround(1-6*ssd/(n*(n^2-1)),3)", "name": "spcoef"}, "vs": {"definition": "switch(aspcoef >=0.952,[1,0,0,0,0],aspcoef>=0.881,[0,1,0,0,0],aspcoef>=0.738,[0,0,1,0,0],aspcoef>=0.643,[0,0,0,1,0],[0,0,0,0,1])", "name": "vs"}, "sxy": {"definition": "sum(map(r1[x]*r2[x],x,0..n-1))", "name": "sxy"}, "spxy": {"definition": "sxy-t[0]*t[1]/n", "name": "spxy"}, "tol": {"definition": 0.001, "name": "tol"}, "ssq": {"definition": "[sum(map(x^2,x,r1)),sum(map(x^2,x,r2))]", "name": "ssq"}, "corrcoef": {"definition": "precround(spxy/sqrt(ss[0]*ss[1]),3)", "name": "corrcoef"}, "ssd": {"definition": "sum(map(x^2,x,d))", "name": "ssd"}, "rr2": {"definition": "rk(r2)", "name": "rr2"}, "rr1": {"definition": "rk(r1)", "name": "rr1"}, "d": {"definition": "list(vector(rr1)-vector(rr2))", "name": "d"}, "tsqovern": {"definition": "[t[0]^2/n,t[1]^2/n]", "name": "tsqovern"}, "obj": {"definition": "['A','B','C','D','E','F','G','H','I','J']", "name": "obj"}, "r1": {"definition": "darr(n,m,[random(1..20)])", "name": "r1"}, "r2": {"definition": "tesarr(r1,darr(n,m,[random(1..m)]),11,m)", "name": "r2"}, "ss": {"definition": "[ssq[0]-t[0]^2/n,ssq[1]-t[1]^2/n]", "name": "ss"}, "k": {"definition": 3.0, "name": "k"}, "m": {"definition": 20.0, "name": "m"}, "n": {"definition": 10.0, "name": "n"}, "t": {"definition": "[sum(r1),sum(r2)]", "name": "t"}, "v": {"definition": "switch(corrcoef >=0.847,[1,0,0,0,0],corrcoef>=0.765,[0,1,0,0,0],corrcoef>=0.632,[0,0,1,0,0],corrcoef>=0.549,[0,0,0,1,0],[0,0,0,0,1])", "name": "v"}}, "metadata": {"notes": "\n \t\t \t\t

30/09/2102:

\n \t\t \t\t

Introduced three functions:

\n \t\t \t\t

1. To produce the ranking of a list of 8 numbers.

\n \t\t \t\t

2. To produce a list of 8 numbers from a scale of 1..20 which are all distinct.

\n \t\t \t\t

3. To produce the maximum of the numbers in a list.

\n \t\t \t\t

4. Given an array such as in 2. to find another such array which has max diff between any two corresponding entries less than a given number. This is to ensure that the two array produced do not differ too much, as the point of the exercise is to show that there is a positive high correlation.

\n \t\t \t\t

 

\n \t\t \n \t\t", "description": "

Calculate the Pearson correlation coefficient on paired data and comment on the significance.

", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Spearman1", "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/"}], "functions": {"darr": {"definition": "if(n=1,a,darr(n-1,m,[random(1..m except a)]+a))", "type": "list", "language": "jme", "parameters": [["n", "number"], ["m", "number"], ["a", "list"]]}, "rk": {"definition": "\n /*This gives the ranking of the entries in a, c counts the ties */\n var out = [];\n for(var j=0;ja[i]){s+=1;}\n else\n if(a[j]==a[i]){c+=1;}\n }\n out[j]=(2*s+c+1)/2;\n }\n return out;\n \n ", "type": "list", "language": "javascript", "parameters": [["a", "list"]]}, "pstdev": {"definition": "sqrt(abs(l)/(abs(l)-1))*stdev(l)", "type": "number", "language": "jme", "parameters": [["l", "list"]]}, "marr": {"definition": "if(length(a)=2,max(a[0],a[1]),max(a[0],marr(a[1..length(a)])))", "type": "number", "language": "jme", "parameters": [["a", "list"]]}, "tesarr": {"definition": "if(marr(map(abs(x),x,list(vector(a)-vector(b))))When the question is revealed you will see all the answers.

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

Spearman Correlation Coefficient

\n

In order to find the Spearman correlation coefficient for the original score data you need to supply the ranked data for the wives and the husbands in the table below. Lowest rank has rank $1$, highest score has rank $8$. Also supply the differences in the ranks, i.e. for each couple find wife's score - husband's score.

\n

Now fill in the ranks 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 \n \n \n \n \n \n \n \n \n
Couple$\\var{obj[0]}$$\\var{obj[1]}$$\\var{obj[2]}$$\\var{obj[3]}$$\\var{obj[4]}$$\\var{obj[5]}$$\\var{obj[6]}$$\\var{obj[7]}$
Wife $(X)$[[0]][[1]][[2]][[3]][[4]][[5]][[6]][[7]]
Husband $(Y)$[[8]][[9]][[10]][[11]][[12]][[13]][[14]][[15]]
Differences[[16]][[17]][[18]][[19]][[20]][[21]][[22]][[23]]
\n

 

\n

Hence calculate the Spearman correlation coefficient to 3 decimal places:

\n

$r_s=\\;$[[24]]

\n

Click on Show steps for the Spearman correlation coefficient formula. You will not lose any marks by doing so.

\n \n ", "gaps": [{"minvalue": "rr1[0]", "type": "numberentry", "maxvalue": "rr1[0]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "rr1[1]", "type": "numberentry", "maxvalue": "rr1[1]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "rr1[2]", "type": "numberentry", "maxvalue": "rr1[2]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "rr1[3]", "type": "numberentry", "maxvalue": "rr1[3]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "rr1[4]", "type": "numberentry", "maxvalue": "rr1[4]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "rr1[5]", "type": "numberentry", "maxvalue": "rr1[5]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "rr1[6]", "type": "numberentry", "maxvalue": "rr1[6]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "rr1[7]", "type": "numberentry", "maxvalue": "rr1[7]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "rr2[0]", "type": "numberentry", "maxvalue": "rr2[0]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "rr2[1]", "type": "numberentry", "maxvalue": "rr2[1]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "rr2[2]", "type": "numberentry", "maxvalue": "rr2[2]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "rr2[3]", "type": "numberentry", "maxvalue": "rr2[3]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "rr2[4]", "type": "numberentry", "maxvalue": "rr2[4]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "rr2[5]", "type": "numberentry", "maxvalue": "rr2[5]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "rr2[6]", "type": "numberentry", "maxvalue": "rr2[6]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "rr2[7]", "type": "numberentry", "maxvalue": "rr2[7]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "d[0]", "type": "numberentry", "maxvalue": "d[0]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "d[1]", "type": "numberentry", "maxvalue": "d[1]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "d[2]", "type": "numberentry", "maxvalue": "d[2]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "d[3]", "type": "numberentry", "maxvalue": "d[3]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "d[4]", "type": "numberentry", "maxvalue": "d[4]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "d[5]", "type": "numberentry", "maxvalue": "d[5]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "d[6]", "type": "numberentry", "maxvalue": "d[6]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "d[7]", "type": "numberentry", "maxvalue": "d[7]", "marks": 0.125, "showPrecisionHint": false}, {"minvalue": "spcoef-tol", "type": "numberentry", "maxvalue": "spcoef+tol", "marks": 1.0, "showPrecisionHint": false}], "steps": [{"prompt": "\n

If there are two sets of ranks $x_1,x_2,\\ldots,x_n$ and  $y_1,y_2,\\ldots,y_n$ where both sets have no ties, and differences are $d_i=x_i-y_i$ then if $\\sum d_i^2=D$ we have:

\n

\\[r_s=1 - \\frac{6 \\times D}{n(n^2-1)}\\]

\n ", "type": "information", "marks": 0.0}], "marks": 0.0, "type": "gapfill"}, {"prompt": "\n

Give the value of the Spearman correlation coefficient you have found, find the the significance level by looking up the appropriate values in a table. 

\n

First supply the table values you need from your notes:

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
$10\\%$$5\\%$$1\\%$$0.2\\%$
[[0]][[1]][[2]][[3]]
\n

 

\n ", "gaps": [{"minvalue": 0.643, "type": "numberentry", "maxvalue": 0.643, "marks": 0.25, "showPrecisionHint": false}, {"minvalue": 0.738, "type": "numberentry", "maxvalue": 0.738, "marks": 0.25, "showPrecisionHint": false}, {"minvalue": 0.881, "type": "numberentry", "maxvalue": 0.881, "marks": 0.25, "showPrecisionHint": false}, {"minvalue": 0.952, "type": "numberentry", "maxvalue": 0.952, "marks": 0.25, "showPrecisionHint": false}], "type": "gapfill", "marks": 0.0}, {"maxanswers": 0.0, "distractors": ["", "", "", "", ""], "prompt": "

Given the data above, what decision can you come to as to the hypothesis that the wife and husband in these married couples have the same attitude in relation to liberal and conservative values?

", "matrix": "vs", "shufflechoices": false, "minanswers": 0.0, "choices": ["$p \\leq 0.002$, very strong evidence to reject the hypothesis.", "$0.002 \\lt p \\leq 0.01$, strong evidence to reject the hypothesis.", "$0.01 \\lt p \\leq 0.05$, there is evidence to reject the hypothesis.", "$0.05 \\lt p \\leq 0.1$, weak evidence against, do not reject the hypothesis but consider further investigation.", "$p \\gt 0.1$, no evidence to reject the hypothesis."], "displaytype": "radiogroup", "maxmarks": 0.0, "marks": 0.0, "displaycolumns": 1.0, "type": "1_n_2", "minmarks": 0.0}], "statement": "\n

It is well known that similarity in attitudes, beliefs and interests plays an important role in interpersonal attraction. A researcher developed a questionnaire which was completed by 8 married couples. One question sought to place each individual on a 20 point scale in which low scores represent liberal attitudes and high scores represent conservative attitudes. The data 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
Couple$\\var{obj[0]}$$\\var{obj[1]}$$\\var{obj[2]}$$\\var{obj[3]}$$\\var{obj[4]}$$\\var{obj[5]}$$\\var{obj[6]}$$\\var{obj[7]}$
Wife $(X)$$\\var{r1[0]}$$\\var{r1[1]}$$\\var{r1[2]}$$\\var{r1[3]}$$\\var{r1[4]}$$\\var{r1[5]}$$\\var{r1[6]}$$\\var{r1[7]}$
Husband $(Y)$$\\var{r2[0]}$$\\var{r2[1]}$$\\var{r2[2]}$$\\var{r2[3]}$$\\var{r2[4]}$$\\var{r2[5]}$$\\var{r2[6]}$$\\var{r2[7]}$
\n

In this exercise you will find Spearman's correlation coefficient for this data and comment on the significance of the correlation as regards the following null hypothesis:

\n

$H_0$: There is no association between the attitudes of wives and husbands.

\n ", "variable_groups": [], "progress": "ready", "type": "question", "variables": {"aspcoef": {"definition": "abs(spcoef)", "name": "aspcoef"}, "spcoef": {"definition": "precround(1-6*ssd/(n*(n^2-1)),3)", "name": "spcoef"}, "vs": {"definition": "switch(aspcoef >=0.952,[1,0,0,0,0],aspcoef>=0.881,[0,1,0,0,0],aspcoef>=0.738,[0,0,1,0,0],aspcoef>=0.643,[0,0,0,1,0],[0,0,0,0,1])", "name": "vs"}, "sxy": {"definition": "sum(map(r1[x]*r2[x],x,0..n-1))", "name": "sxy"}, "spxy": {"definition": "sxy-t[0]*t[1]/n", "name": "spxy"}, "tol": {"definition": 0.001, "name": "tol"}, "ssq": {"definition": "[sum(map(x^2,x,r1)),sum(map(x^2,x,r2))]", "name": "ssq"}, "corrcoef": {"definition": "precround(spxy/sqrt(ss[0]*ss[1]),3)", "name": "corrcoef"}, "ssd": {"definition": "sum(map(x^2,x,d))", "name": "ssd"}, "rr2": {"definition": "rk(r2)", "name": "rr2"}, "rr1": {"definition": "rk(r1)", "name": "rr1"}, "d": {"definition": "list(vector(rr1)-vector(rr2))", "name": "d"}, "tsqovern": {"definition": "[t[0]^2/n,t[1]^2/n]", "name": "tsqovern"}, "obj": {"definition": "['A','B','C','D','E','F','G','H']", "name": "obj"}, "r1": {"definition": "darr(n,m,[random(1..20)])", "name": "r1"}, "r2": {"definition": "tesarr(r1,darr(n,m,[random(1..m)]),10,m)", "name": "r2"}, "ss": {"definition": "[ssq[0]-t[0]^2/n,ssq[1]-t[1]^2/n]", "name": "ss"}, "k": {"definition": 3.0, "name": "k"}, "m": {"definition": 20.0, "name": "m"}, "n": {"definition": 8.0, "name": "n"}, "t": {"definition": "[sum(r1),sum(r2)]", "name": "t"}, "v": {"definition": "switch(corrcoef >=0.905,[1,0,0,0,0],corrcoef>=0.834,[0,1,0,0,0],corrcoef>=0.707,[0,0,1,0,0],corrcoef>=0.621,[0,0,0,1,0],[0,0,0,0,1])", "name": "v"}}, "metadata": {"notes": "\n \t\t \t\t

30/09/2102:

\n \t\t \t\t

Introduced three functions:

\n \t\t \t\t

1. To produce the ranking of a list of 8 numbers.

\n \t\t \t\t

2. To produce a list of 8 numbers from a scale of 1..20 which are all distinct.

\n \t\t \t\t

3. To produce the maximum of the numbers in a list.

\n \t\t \t\t

4. Given an array such as in 2. to find another such array which has max diff between any two corresponding entries less than a given number. This is to ensure that the two array produced do not differ too much, as the point of the exercise is to show that there is a positive high correlation.

\n \t\t \t\t

 

\n \t\t \n \t\t", "description": "

Spearman rank correlation calculated. 8 paired observations.

", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Spearman2", "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/"}], "functions": {"darr": {"definition": "if(n=1,a,darr(n-1,m,[random(1..m except a)]+a))", "type": "list", "language": "jme", "parameters": [["n", "number"], ["m", "number"], ["a", "list"]]}, "rk": {"definition": "\n /*This gives the ranking of the entries in a, c counts the ties */\n var out = [];\n for(var j=0;ja[i]){s+=1;}\n else\n if(a[j]==a[i]){c+=1;}\n }\n out[j]=(2*s+c+1)/2;\n }\n return out;\n \n \n ", "type": "list", "language": "javascript", "parameters": [["a", "list"]]}, "pstdev": {"definition": "sqrt(abs(l)/(abs(l)-1))*stdev(l)", "type": "number", "language": "jme", "parameters": [["l", "list"]]}, "marr": {"definition": "if(length(a)=2,max(a[0],a[1]),max(a[0],marr(a[1..length(a)])))", "type": "number", "language": "jme", "parameters": [["a", "list"]]}, "tesarr": {"definition": "if(marr(map(abs(x),x,list(vector(a)-vector(b))))When the question is revealed you will see all the answers.

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

Spearman Correlation Coefficient

\n

In order to find the Spearman correlation coefficient for the original score data you need to supply the ranked data for the wives and the husbands in the table below. Lowest rank has rank $1$, highest score has rank $10$. Also supply the differences in the ranks, i.e. for each couple find wife's score - husband's score.

\n

Now fill in the ranks 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 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Couple$\\var{obj[0]}$$\\var{obj[1]}$$\\var{obj[2]}$$\\var{obj[3]}$$\\var{obj[4]}$$\\var{obj[5]}$$\\var{obj[6]}$$\\var{obj[7]}$$\\var{obj[8]}$$\\var{obj[9]}$
Wife $(X)$[[0]][[1]][[2]][[3]][[4]][[5]][[6]][[7]][[8]][[9]]
Husband $(Y)$[[10]][[11]][[12]][[13]][[14]][[15]][[16]][[17]][[18]][[19]]
Differences[[20]][[21]][[22]][[23]][[24]][[25]][[26]][[27]][[28]][[29]]
\n

 

\n

Hence calculate the Spearman correlation coefficient to 3 decimal places:

\n

$r_s=\\;$[[30]]

\n

Click on Show steps for the Spearman correlation coefficient formula. You will not lose any marks by doing so.

\n ", "gaps": [{"minvalue": "rr1[0]", "type": "numberentry", "maxvalue": "rr1[0]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr1[1]", "type": "numberentry", "maxvalue": "rr1[1]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr1[2]", "type": "numberentry", "maxvalue": "rr1[2]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr1[3]", "type": "numberentry", "maxvalue": "rr1[3]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr1[4]", "type": "numberentry", "maxvalue": "rr1[4]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr1[5]", "type": "numberentry", "maxvalue": "rr1[5]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr1[6]", "type": "numberentry", "maxvalue": "rr1[6]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr1[7]", "type": "numberentry", "maxvalue": "rr1[7]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr1[8]", "type": "numberentry", "maxvalue": "rr1[8]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr1[9]", "type": "numberentry", "maxvalue": "rr1[9]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr2[0]", "type": "numberentry", "maxvalue": "rr2[0]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr2[1]", "type": "numberentry", "maxvalue": "rr2[1]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr2[2]", "type": "numberentry", "maxvalue": "rr2[2]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr2[3]", "type": "numberentry", "maxvalue": "rr2[3]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr2[4]", "type": "numberentry", "maxvalue": "rr2[4]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr2[5]", "type": "numberentry", "maxvalue": "rr2[5]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr2[6]", "type": "numberentry", "maxvalue": "rr2[6]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr2[7]", "type": "numberentry", "maxvalue": "rr2[7]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr2[8]", "type": "numberentry", "maxvalue": "rr2[8]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "rr2[9]", "type": "numberentry", "maxvalue": "rr2[9]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "d[0]", "type": "numberentry", "maxvalue": "d[0]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "d[1]", "type": "numberentry", "maxvalue": "d[1]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "d[2]", "type": "numberentry", "maxvalue": "d[2]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "d[3]", "type": "numberentry", "maxvalue": "d[3]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "d[4]", "type": "numberentry", "maxvalue": "d[4]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "d[5]", "type": "numberentry", "maxvalue": "d[5]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "d[6]", "type": "numberentry", "maxvalue": "d[6]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "d[7]", "type": "numberentry", "maxvalue": "d[7]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "d[8]", "type": "numberentry", "maxvalue": "d[8]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "d[9]", "type": "numberentry", "maxvalue": "d[9]", "marks": 0.1, "showPrecisionHint": false}, {"minvalue": "spcoef-tol", "type": "numberentry", "maxvalue": "spcoef+tol", "marks": 1.0, "showPrecisionHint": false}], "steps": [{"prompt": "\n

If there are two sets of ranks $x_1,x_2,\\ldots,x_n$ and  $y_1,y_2,\\ldots,y_n$ where both sets have no ties, and differences are $d_i=x_i-y_i$ then if $\\sum d_i^2=D$ we have:

\n

\\[r_s=1-\\frac{6 \\times D}{n(n^2-1)}\\]

\n ", "type": "information", "marks": 0.0}], "marks": 0.0, "type": "gapfill"}, {"prompt": "\n

Give the value of the Spearman correlation coefficient you have found, find the the significance level by looking up the appropriate values in a table. 

\n

First supply the table values you need from your notes:

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
$10\\%$$5\\%$$1\\%$$0.2\\%$
[[0]][[1]][[2]][[3]]
\n

 

\n ", "gaps": [{"minvalue": 0.564, "type": "numberentry", "maxvalue": 0.564, "marks": 0.25, "showPrecisionHint": false}, {"minvalue": 0.648, "type": "numberentry", "maxvalue": 0.648, "marks": 0.25, "showPrecisionHint": false}, {"minvalue": 0.794, "type": "numberentry", "maxvalue": 0.794, "marks": 0.25, "showPrecisionHint": false}, {"minvalue": 0.879, "type": "numberentry", "maxvalue": 0.879, "marks": 0.25, "showPrecisionHint": false}], "type": "gapfill", "marks": 0.0}, {"maxanswers": 0.0, "distractors": ["", "", "", "", ""], "prompt": "

Given the data above, what decision can you come to as to the hypothesis that the wife and husband in these married couples have the same attitude in relation to liberal and conservative values?

", "matrix": "vs", "shufflechoices": false, "minanswers": 0.0, "choices": ["$p \\leq 0.002$, very strong evidence to reject the hypothesis.", "$0.002 \\lt p \\leq 0.01$, strong evidence to reject the hypothesis.", "$0.01 \\lt p \\leq 0.05$, there is evidence to reject the hypothesis.", "$0.05 \\lt p \\leq 0.1$, weak evidence against, do not reject the hypothesis but consider further investigation.", "$p \\gt 0.1$, no evidence to reject the hypothesis."], "displaytype": "radiogroup", "maxmarks": 0.0, "marks": 0.0, "displaycolumns": 1.0, "type": "1_n_2", "minmarks": 0.0}], "statement": "\n

It is well known that similarity in attitudes, beliefs and interests plays an important role in interpersonal attraction. A researcher developed a questionnaire which was completed by 10 married couples. One question sought to place each individual on a 20 point scale in which low scores represent liberal attitudes and high scores represent conservative attitudes. The data 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 \n
Couple$\\var{obj[0]}$$\\var{obj[1]}$$\\var{obj[2]}$$\\var{obj[3]}$$\\var{obj[4]}$$\\var{obj[5]}$$\\var{obj[6]}$$\\var{obj[7]}$$\\var{obj[8]}$$\\var{obj[9]}$
Wife $(X)$$\\var{r1[0]}$$\\var{r1[1]}$$\\var{r1[2]}$$\\var{r1[3]}$$\\var{r1[4]}$$\\var{r1[5]}$$\\var{r1[6]}$$\\var{r1[7]}$$\\var{r1[8]}$$\\var{r1[9]}$
Husband $(Y)$$\\var{r2[0]}$$\\var{r2[1]}$$\\var{r2[2]}$$\\var{r2[3]}$$\\var{r2[4]}$$\\var{r2[5]}$$\\var{r2[6]}$$\\var{r2[7]}$$\\var{r2[8]}$$\\var{r2[9]}$
\n

In this exercise you will find Spearman's correlation coefficient for this data and comment on the significance of the correlation as regards the following null hypothesis:

\n

$H_0$: There is no association between the attitudes of wives and husbands.

\n ", "variable_groups": [], "progress": "ready", "type": "question", "variables": {"aspcoef": {"definition": "abs(spcoef)", "name": "aspcoef"}, "spcoef": {"definition": "precround(1-6*ssd/(n*(n^2-1)),3)", "name": "spcoef"}, "vs": {"definition": "switch(aspcoef >=0.879,[1,0,0,0,0],aspcoef>=0.794,[0,1,0,0,0],aspcoef>=0.648,[0,0,1,0,0],aspcoef>=0.564,[0,0,0,1,0],[0,0,0,0,1])", "name": "vs"}, "sxy": {"definition": "sum(map(r1[x]*r2[x],x,0..n-1))", "name": "sxy"}, "spxy": {"definition": "sxy-t[0]*t[1]/n", "name": "spxy"}, "tol": {"definition": 0.001, "name": "tol"}, "ssq": {"definition": "[sum(map(x^2,x,r1)),sum(map(x^2,x,r2))]", "name": "ssq"}, "corrcoef": {"definition": "precround(spxy/sqrt(ss[0]*ss[1]),3)", "name": "corrcoef"}, "ssd": {"definition": "sum(map(x^2,x,d))", "name": "ssd"}, "rr2": {"definition": "rk(r2)", "name": "rr2"}, "rr1": {"definition": "rk(r1)", "name": "rr1"}, "d": {"definition": "list(vector(rr1)-vector(rr2))", "name": "d"}, "tsqovern": {"definition": "[t[0]^2/n,t[1]^2/n]", "name": "tsqovern"}, "obj": {"definition": "['A','B','C','D','E','F','G','H','I','J']", "name": "obj"}, "r1": {"definition": "darr(n,m,[random(1..20)])", "name": "r1"}, "r2": {"definition": "tesarr(r1,darr(n,m,[random(1..m)]),9,m)", "name": "r2"}, "ss": {"definition": "[ssq[0]-t[0]^2/n,ssq[1]-t[1]^2/n]", "name": "ss"}, "k": {"definition": 3.0, "name": "k"}, "m": {"definition": 20.0, "name": "m"}, "n": {"definition": 10.0, "name": "n"}, "t": {"definition": "[sum(r1),sum(r2)]", "name": "t"}, "v": {"definition": "switch(corrcoef >=0.905,[1,0,0,0,0],corrcoef>=0.834,[0,1,0,0,0],corrcoef>=0.707,[0,0,1,0,0],corrcoef>=0.621,[0,0,0,1,0],[0,0,0,0,1])", "name": "v"}}, "metadata": {"notes": "\n \t\t \t\t \t\t

30/09/2102:

\n \t\t \t\t \t\t

Introduced three functions:

\n \t\t \t\t \t\t

1. To produce the ranking of a list of 8 numbers.

\n \t\t \t\t \t\t

2. To produce a list of 8 numbers from a scale of 1..20 which are all distinct.

\n \t\t \t\t \t\t

3. To produce the maximum of the numbers in a list.

\n \t\t \t\t \t\t

4. Given an array such as in 2. to find another such array which has max diff between any two corresponding entries less than a given number. This is to ensure that the two array produced do not differ too much, as the point of the exercise is to show that there is a positive high correlation.

\n \t\t \t\t \t\t

 

\n \t\t \t\t \n \t\t \n \t\t", "description": "

Spearman rank correlation calculated. 10 paired observations.

", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}], "extensions": ["stats"], "custom_part_types": [], "resources": []}