// Numbas version: finer_feedback_settings {"name": "Correlation Coefficient", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["o1", "o2", "o3", "o4", "o5", "o6", "o7", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "meano", "meanb", "covob", "varo", "varb"], "name": "Correlation Coefficient", "tags": [], "advice": "", "rulesets": {}, "parts": [{"prompt": "

Determine the mean of both the obesity and the blood pressure to two decimal places.

\n

Obesity: [[0]]

\n

Blood Pressure: [[1]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "maxValue": "meano+0.05", "minValue": "meano-0.05", "variableReplacementStrategy": "originalfirst", "strictPrecision": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "maxValue": "meanb+0.05", "minValue": "meanb-0.05", "variableReplacementStrategy": "originalfirst", "strictPrecision": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"precisionType": "dp", "prompt": "

What is the covariance between the two variables to two decimal places?

", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "maxValue": "covob+0.05", "minValue": "covob-0.05", "variableReplacementStrategy": "originalfirst", "strictPrecision": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"prompt": "

Determine the variance of both the obesity and the blood pressure to two decimal places.

\n

Obesity: [[0]]

\n

Blood Pressure: [[1]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "maxValue": "varo+0.05", "minValue": "varo-0.05", "variableReplacementStrategy": "originalfirst", "strictPrecision": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "maxValue": "varb+0.05", "minValue": "varb-0.05", "variableReplacementStrategy": "originalfirst", "strictPrecision": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"precisionType": "dp", "prompt": "

What is the correlation coefficient, to two decimal places, between these two quantities?

", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "maxValue": "(covob/(varo*varb)^0.5)+0.05", "minValue": "(covob/(varo*varb)^0.5)-0.05", "variableReplacementStrategy": "originalfirst", "strictPrecision": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "statement": "

The data below gives the obesity and blood pressure of seven females (aged 35-60) in a small town: 

\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
ObesityBlood Pressure
{o1}{b1}
{o2}{b2}
{o3}{b3}
{o4}{b4}
{o5}{b5}
{o6}{b6}
{o7}{b7}
", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"meano": {"definition": "({o1}+{o2}+{o3}+{o4}+{o5}+{o6}+{o7})/7", "templateType": "anything", "group": "Ungrouped variables", "name": "meano", "description": ""}, "meanb": {"definition": "({b1}+{b2}+{b3}+{b4}+{b5}+{b6}+{b7})/7", "templateType": "anything", "group": "Ungrouped variables", "name": "meanb", "description": ""}, "o5": {"definition": "random(1.4..2.5#0.01)", "templateType": "randrange", "group": "Ungrouped variables", "name": "o5", "description": ""}, "varb": {"definition": "(({b1}^2+{b2}^2+{b3}^2+{b4}^2+{b5}^2+{b6}^2+{b7}^2)-(7{meanb}^2))/6", "templateType": "anything", "group": "Ungrouped variables", "name": "varb", "description": ""}, "covob": {"definition": "(({o1}{b1}+{o2}{b2}+{o3}{b3}+{o4}{b4}+{o5}{b5}+{o6}{b6}+{o7}{b7})-(7{meano}{meanb}))/6", "templateType": "anything", "group": "Ungrouped variables", "name": "covob", "description": ""}, "b4": {"definition": "random(110..160#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "b4", "description": ""}, "b5": {"definition": "random(110..160#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "b5", "description": ""}, "b6": {"definition": "random(110..160#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "b6", "description": ""}, "b7": {"definition": "random(110..160#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "b7", "description": ""}, "b1": {"definition": "random(110..160#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "b1", "description": ""}, "b2": {"definition": "random(110..160#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "b2", "description": ""}, "b3": {"definition": "random(110..160#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "b3", "description": ""}, "o7": {"definition": "random(1.4..2.5#0.01)", "templateType": "randrange", "group": "Ungrouped variables", "name": "o7", "description": ""}, "o6": {"definition": "random(1.4..2.5#0.01)", "templateType": "randrange", "group": "Ungrouped variables", "name": "o6", "description": ""}, "varo": {"definition": "(({o1}^2+{o2}^2+{o3}^2+{o4}^2+{o5}^2+{o6}^2+{o7}^2)-(7{meano}^2))/6", "templateType": "anything", "group": "Ungrouped variables", "name": "varo", "description": ""}, "o4": {"definition": "random(1.4..2.5#0.01)", "templateType": "randrange", "group": "Ungrouped variables", "name": "o4", "description": ""}, "o3": {"definition": "random(1.4..2.5#0.01)", "templateType": "randrange", "group": "Ungrouped variables", "name": "o3", "description": ""}, "o2": {"definition": "random(1.4..2.5#0.01)", "templateType": "randrange", "group": "Ungrouped variables", "name": "o2", "description": ""}, "o1": {"definition": "random(1.4..2.5#0.01)", "templateType": "randrange", "group": "Ungrouped variables", "name": "o1", "description": ""}}, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Habiba Gora", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/494/"}]}]}], "contributors": [{"name": "Habiba Gora", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/494/"}]}