// Numbas version: exam_results_page_options {"name": "Chi-Square Hypothesis Test", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Chi-Square Hypothesis Test", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

A research team is investigating the link between physical fitness level and suffering from severe headaches. 2400 people took part in the study. Their physical fitness level was measured. Each person was asked whether or not they suffered regularly from severe headaches.

\n

Table: study results

\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

Low fitness level

\n
\n

Moderate fitness level

\n
\n

High fitness level

\n
\n

severe headaches

\n
\n

60

\n
\n

110

\n
\n

30

\n
\n

no severe headaches

\n
\n

322

\n
\n

1250

\n
\n

620

\n
\n

  Use a suitable test at a 5% significance level to check if there is an association between fitness level and suffering from headaches.

", "advice": "", "rulesets": {}, "extensions": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": false, "showFeedbackIcon": false, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Which test is suitable for this problem?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "dropdownlist", "displayColumns": 0, "showCellAnswerState": false, "choices": ["Proportion test", "t test", "Chi-Square test"], "matrix": [0, 0, "1"], "distractors": ["", "", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": false, "showFeedbackIcon": false, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

What is the null hypothesis?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "dropdownlist", "displayColumns": 0, "showCellAnswerState": false, "choices": ["There is no association between physical fitness level and suffering from severe headaches", "

There is an association between physical fitness level and severe headaches.

"], "matrix": ["1", 0], "distractors": ["", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": false, "showFeedbackIcon": false, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

What is the alternative hypothesis?

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

There is an no association between physical fitness level and severe headaches.

", "

There is an association between physical fitness level and severe headaches.

", "None"], "matrix": [0, "1", 0], "distractors": ["", "", ""]}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "showCorrectAnswer": false, "showFeedbackIcon": false, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Write the number of degrees of freedom.

", "minValue": "2", "maxValue": "2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": false, "showFeedbackIcon": false, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Write down the value of critical value to 2 decimal places. 

", "minValue": "5.99", "maxValue": "5.995", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "7", "showCorrectAnswer": false, "showFeedbackIcon": false, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Write down the value of chi-square test statistics to 2 decimal places.

", "minValue": "38.8", "maxValue": "39.8", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": false, "showFeedbackIcon": false, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

What is the conclusion in this case?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "dropdownlist", "displayColumns": 0, "showCellAnswerState": false, "choices": ["There is no evidence to reject null hypothesis", "There is enough evidence to reject null hypothesis"], "matrix": [0, "2"], "distractors": ["", ""]}], "contributors": [{"name": "Shihan Miah", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4456/"}]}]}], "contributors": [{"name": "Shihan Miah", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4456/"}]}