// Numbas version: exam_results_page_options {"name": "Paired data - true/false", "extensions": [], "custom_part_types": [], "resources": [["question-resources/image_2jpJoLT.png", "/srv/numbas/media/question-resources/image_2jpJoLT.png"], ["question-resources/image_XE2qRFH.png", "/srv/numbas/media/question-resources/image_XE2qRFH.png"], ["question-resources/image_FyLEGJb.png", "/srv/numbas/media/question-resources/image_FyLEGJb.png"], ["question-resources/image_enUwfmk.png", "/srv/numbas/media/question-resources/image_enUwfmk.png"], ["question-resources/image_SZ9eeHv.png", "/srv/numbas/media/question-resources/image_SZ9eeHv.png"], ["question-resources/image_GQm5y0J.png", "/srv/numbas/media/question-resources/image_GQm5y0J.png"], ["question-resources/image_iNuCRj0.png", "/srv/numbas/media/question-resources/image_iNuCRj0.png"], ["question-resources/image_zFLqvyl.png", "/srv/numbas/media/question-resources/image_zFLqvyl.png"], ["question-resources/image_0tWGkKo.png", "/srv/numbas/media/question-resources/image_0tWGkKo.png"], ["question-resources/image_ftJTtaI.png", "/srv/numbas/media/question-resources/image_ftJTtaI.png"], ["question-resources/image_qctxw1L.png", "/srv/numbas/media/question-resources/image_qctxw1L.png"], ["question-resources/image_oNVb3sq.png", "/srv/numbas/media/question-resources/image_oNVb3sq.png"], ["question-resources/image_4hl18gC.png", "/srv/numbas/media/question-resources/image_4hl18gC.png"], ["question-resources/image_3xSQYOW.png", "/srv/numbas/media/question-resources/image_3xSQYOW.png"], ["question-resources/stress-strain_9S5XzfU.png", "/srv/numbas/media/question-resources/stress-strain_9S5XzfU.png"], ["question-resources/image_W7abJTe.png", "/srv/numbas/media/question-resources/image_W7abJTe.png"], ["question-resources/image_VroUPKK.png", "/srv/numbas/media/question-resources/image_VroUPKK.png"], ["question-resources/image_BPR2qwS.png", "/srv/numbas/media/question-resources/image_BPR2qwS.png"], ["question-resources/image_o259sxV.png", "/srv/numbas/media/question-resources/image_o259sxV.png"], ["question-resources/image_s27WPov.png", "/srv/numbas/media/question-resources/image_s27WPov.png"], ["question-resources/image_BUHhOno.png", "/srv/numbas/media/question-resources/image_BUHhOno.png"], ["question-resources/image_hnlLAkr.png", "/srv/numbas/media/question-resources/image_hnlLAkr.png"], ["question-resources/image_pBMa4Os.png", "/srv/numbas/media/question-resources/image_pBMa4Os.png"], ["question-resources/image_SO7mUx2.png", "/srv/numbas/media/question-resources/image_SO7mUx2.png"], ["question-resources/image_QIp6bzb.png", "/srv/numbas/media/question-resources/image_QIp6bzb.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"description": "

For practising how to recognise paired data as the first step to identify a suitable statistical analysis (such as the paired t-test or Wilcoxon test).

", "licence": "None specified"}, "variables": {"choices": {"definition": "shuffle(0..len(statements)-1)[0..6]", "templateType": "anything", "group": "Statements", "name": "choices", "description": ""}, "statements": {"definition": "t_statements+f_statements", "templateType": "anything", "group": "Statements", "name": "statements", "description": ""}, "t_statements": {"definition": "[ safe(\"In a paired analysis we first take the difference of each pair of observations, and then we do inference on these differences.\"), safe(\"Two data sets of different sizes cannot be analysed as paired data.\"), safe(\"Consider two sets of data that are paired with each other; each observation in one data set has a natural correspondence with exactly one observation from the other data set.\"), safe(\"A paired t-test can be used to compare artery thicknesses at the beginning of a study and after 2 years of taking Vitamin E for the same group of patients.\"), safe(\"A paired t-test can be used to assess effectiveness of a diet regimen by comparing the before and after weights of subjects.\"), safe(\"Dataset A contains the price of 50 randomly sampled items from Tesco, and dataset B contains the prices of each of the same items from Aldi; the data can be analysed with a paired t-test.\"), safe(\"To study whether listening to Beethoven affects students\\' IQ, we can do a paired t-test on a random sample of 100 students measuring their IQ before and after listening to a Beethoven\\'s symphony.\") ]", "templateType": "list of strings", "group": "Statements", "name": "t_statements", "description": "

dsafasd fgafd

"}, "statement_marks": {"definition": "map([2,0],x,t_statements)+map([0,2],x,f_statements)", "templateType": "anything", "group": "Statements", "name": "statement_marks", "description": ""}, "f_statements": {"definition": "[ safe(\"Consider two sets of data that are paired with each other; each observation in one data set is subtracted from the average of the other data set\\'s observations.\"), safe(\"Two data sets of different sizes can be analysed as paired data.\"), safe(\"A paired t-test can be used to assess gender-related salary gap by comparing salaries of randomly sampled men and women.\"), safe(\"A paired t-test can be used to compare artery thicknesses of a control group taking a placebo and a treatment group taking Vitamin E.\"), safe(\"A paired t-test can be used to assess effectiveness of a diet regimen by comparing the weights of two subject groups that either did or did not follow the diet.\"), safe(\"To determine whether there is a difference in average IQ for students at one school versus another, we can do a paired t-test on random samples of 100 students from each of the two schools.\"), safe(\"In a paired analysis we first take the average of all the data, and then we do inference on such average.\") ]", "templateType": "list of strings", "group": "Statements", "name": "f_statements", "description": ""}}, "functions": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"customMarkingAlgorithm": "", "prompt": "\n \n \n

[[0]]

\n \n \n ", "marks": 0, "unitTests": [], "showFeedbackIcon": true, "type": "gapfill", "showCorrectAnswer": true, "useCustomName": false, "customName": "", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "sortAnswers": false, "adaptiveMarkingPenalty": 0, "scripts": {}, "gaps": [{"customMarkingAlgorithm": "", "shuffleAnswers": false, "marks": 0, "unitTests": [], "type": "m_n_x", "warningType": "none", "layout": {"type": "all", "expression": ""}, "customName": "", "maxAnswers": 0, "variableReplacementStrategy": "originalfirst", "useCustomName": false, "minMarks": 0, "displayType": "radiogroup", "minAnswers": 0, "scripts": {}, "showFeedbackIcon": true, "showCorrectAnswer": true, "shuffleChoices": true, "variableReplacements": [], "matrix": "map(statement_marks[choices[j]],j,0..4)", "maxMarks": 0, "showCellAnswerState": true, "adaptiveMarkingPenalty": 0, "choices": ["{statements[choices[0]]}", "{statements[choices[1]]}", "{statements[choices[2]]}", "{statements[choices[3]]}", "{statements[choices[4]]}"], "extendBaseMarkingAlgorithm": true, "answers": ["True", "False"]}], "extendBaseMarkingAlgorithm": true}], "variable_groups": [{"name": "Statements", "variables": ["t_statements", "f_statements", "statements", "statement_marks", "choices"]}], "ungrouped_variables": [], "tags": [], "extensions": [], "statement": "

Identify each of the following statements as true or false:

", "name": "Paired data - true/false", "advice": "

Check your learning material.

", "preamble": {"js": "", "css": ""}, "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "contributors": [{"name": "Mario Orsi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/427/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Mario Orsi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/427/"}]}]}], "contributors": [{"name": "Mario Orsi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/427/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Mario Orsi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/427/"}]}