// Numbas version: exam_results_page_options {"name": "Statistics: Match variable types", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Statistics: Match variable types", "tags": [], "metadata": {"description": "
match different variables to either: 'nominal','ordinal','interval','ratio'
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Select the level of measurement for the variable:
", "advice": "{question} is a {ans} variable. The definitions of the types of variable are below:
\nThis is something that fits into categories without an order. For example hair colour (blonde, brown, red, etc). There is no intrinsic order to these categories.
\nIf the variable only has two categories (for example an answer to a yes/no question) then it is said to be a binary variable.
\nThis is a categorical variable that has an order. For example, level of education (high school, college, university, …). We can say which order they go in but we don’t know how big the gaps between them are.
\nThis is something that has order and we know the step size between each measurement is the same. For example, IQ scores and temperature measured in centigrade. Interval scales do not have a meaningful zero point, for example an IQ of zero is impossible and isn’t the absence of heat.
\nThis is like an interval variable but it also has a meaningful zero. Things like height and weight are ratio scales. Since ratio scales have a true zero point to measure things from statements like $6cm$ is twice $3cm$ make sense since these values are both measured relative to the same zero point.
\nQuestion answer pairs, answer must be either 'nominal','ordinal','interval','ratio'
", "templateType": "anything", "can_override": false}, "question": {"name": "question", "group": "Ungrouped variables", "definition": "random(keys(examples))", "description": "keys generates a list of the dicionary keys
", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "examples[question]", "description": "", "templateType": "anything", "can_override": false}, "marking": {"name": "marking", "group": "Ungrouped variables", "definition": "map(award(1,variable_types[x]=ans),x,0..len(variable_types)-1)", "description": "runs through each variable type and checks it against the answer, returns 1 if true and 0 if false
", "templateType": "anything", "can_override": false}, "examples": {"name": "examples", "group": "Ungrouped variables", "definition": "['A person\\'s score in an IQ test':'interval','The length of foot in mm, rounded to the mm':'ratio','The time it takes to boil an egg':'ratio','An athlete\\'s finish position in 100m race i.e. 1,2,3,4,5 or 6':'ordinal','A person\\'s gender':'nominal','The color of someone\\'s hair':'nominal','Temperature in Celsius or Fahrenheit':'interval','Calendar years':'interval','SAT scores':'interval','Height in centimeters':'ratio','Weight in kilograms':'ratio','Distance traveled in kilometers':'ratio','Customer satisfaction rating (e.g., 1 to 5 stars)':'ordinal','Education level (e.g., high school, bachelor\\'s, master\\'s, PhD)':'ordinal','Socioeconomic status (e.g., low, medium, high)':'ordinal','Blood type (A, B, AB, O)':'nominal','Types of pets (dog, cat, bird, fish)':'nominal','Marital status (single, married, divorced, widowed)':'nominal']", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["variable_types", "examples_old", "question", "ans", "marking", "examples"], "variable_groups": [], "functions": {"": {"parameters": [], "type": "anything", "language": "javascript", "definition": ""}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "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": "{question}
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": "variable_types", "matrix": "marking"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ed Southwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2415/"}]}]}], "contributors": [{"name": "Ed Southwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2415/"}]}