// Numbas version: finer_feedback_settings {"name": "Simon's copy of Discrete and continuous data", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": [], "parts": [{"customMarkingAlgorithm": "", "scripts": {}, "shuffleChoices": false, "prompt": "
{cont[ranc]}
", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "1_n_2", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCellAnswerState": true, "distractors": ["", ""], "choices": ["Discrete
", "Continuous
"], "unitTests": [], "displayType": "radiogroup", "matrix": [0, "1"], "minMarks": 0, "showFeedbackIcon": true, "maxMarks": 0, "marks": 0, "displayColumns": 0}, {"customMarkingAlgorithm": "", "scripts": {}, "shuffleChoices": false, "prompt": "{disc[rand]}
", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "1_n_2", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCellAnswerState": true, "distractors": ["", ""], "choices": ["Discrete
", "Continuous
"], "unitTests": [], "displayType": "radiogroup", "matrix": ["1", 0], "minMarks": 0, "showFeedbackIcon": true, "maxMarks": 0, "marks": 0, "displayColumns": 0}, {"customMarkingAlgorithm": "", "scripts": {}, "shuffleChoices": false, "prompt": "{disc[rand2]}
", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "1_n_2", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCellAnswerState": true, "distractors": ["", ""], "choices": ["Discrete
", "Continuous
"], "unitTests": [], "displayType": "radiogroup", "matrix": ["1", 0], "minMarks": 0, "showFeedbackIcon": true, "maxMarks": 0, "marks": 0, "displayColumns": 0}, {"customMarkingAlgorithm": "", "scripts": {}, "shuffleChoices": false, "prompt": "{cont[ranc2]}
", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "1_n_2", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCellAnswerState": true, "distractors": ["", ""], "choices": ["Discrete
", "Continuous
"], "unitTests": [], "displayType": "radiogroup", "matrix": [0, "1"], "minMarks": 0, "showFeedbackIcon": true, "maxMarks": 0, "marks": 0, "displayColumns": 0}, {"customMarkingAlgorithm": "", "scripts": {}, "shuffleChoices": false, "prompt": "{trick[rant]}
", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "1_n_2", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCellAnswerState": true, "distractors": ["", ""], "choices": ["Discrete
", "Continuous
"], "unitTests": [], "displayType": "radiogroup", "matrix": ["1", 0], "minMarks": 0, "showFeedbackIcon": true, "maxMarks": 0, "marks": 0, "displayColumns": 0}, {"customMarkingAlgorithm": "", "scripts": {}, "shuffleChoices": false, "prompt": "{disc[rand3]}
", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "1_n_2", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCellAnswerState": true, "distractors": ["", ""], "choices": ["Discrete
", "Continuous
"], "unitTests": [], "displayType": "radiogroup", "matrix": ["1", 0], "minMarks": 0, "showFeedbackIcon": true, "maxMarks": 0, "marks": 0, "displayColumns": 0}], "functions": {}, "name": "Simon's copy of Discrete and continuous data", "metadata": {"description": "Deicde whether each of the described sets of data is drawn from a discrete or continuous distribution.
", "licence": "Creative Commons Attribution 4.0 International"}, "preamble": {"js": "", "css": ""}, "variablesTest": {"maxRuns": 100, "condition": ""}, "tags": [], "variable_groups": [], "ungrouped_variables": ["disc", "cont", "trick", "ranc", "rant", "ranc2", "rand2", "rand3", "rand"], "variables": {"ranc": {"name": "ranc", "definition": "random(0..3)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "cont": {"name": "cont", "definition": "[\"The height of university students.\", \"The weight of Olympic medalists.\", \"The time taken to brush teeth.\", \"The maximum daily temperature.\"]", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "rant": {"name": "rant", "definition": "random(0..2)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "rand3": {"name": "rand3", "definition": "random(0..5 except rand except rand2)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "disc": {"name": "disc", "definition": "[\"The number of students in a class.\", \"The result of rolling 3 dice.\", \"Shoe sizes.\", \"The number of chocolate bars sold on Monday.\", \"The number of movies downloaded.\", \"The number of cinema tickets sold.\"]", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "rand2": {"name": "rand2", "definition": "random(0..5 except rand)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "trick": {"name": "trick", "definition": "[\"The weight of a dog to the nearest kg.\", \"The height of Olympic medalists to the nearest cm.\", \"The time taken to run 10km to the nearest min.\"]", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ranc2": {"name": "ranc2", "definition": "random(0..3 except ranc)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "rand": {"name": "rand", "definition": "random(0..5)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "statement": "Decide whether the following data sets are discrete or continuous.
", "advice": "Data can either be discrete or continuous.
\nHeight is a continuous variable. For example, 180.3cm and 180.4cm have a valid midpoint 180.35cm.Weight is a continuous variable. For example, 54.5kg and 54.6kg have a valid midpoint 54.55kg.Time is a continuous variable. For example, 54.2s and 54.3s have a valid midpoint 54.25s.Temperature is a continuous variable, it can take any value between -273.15°C (absolute zero) and positive infinity. For example, 25°C and 26°C have a valid midpoint 25.5°C. Hence, this data is continuous.
\nThe number of students will always be an integer. You cannot split one student into two, for example value 19.5 students does not make sense. Therefore, this is a discrete set of data.The result of rolling 3 dice can take values of integers from 3 up to 18. For example, values 3 and 4 do not have any valid middle measurement. Therefore, this is a discrete set of data.Shoe sizes are a discrete set of data. For example, sizes 8 and 8.5 mean something while the middle value 8.25 does not.The number of chocolate bars sold on Monday will always be an integer. There is no middle measurement between 1 and 2 bars sold. You cannot buy a half of a bar. Therefore, this is a discrete set of data.The number of movies downloaded will always be an integer. You can either download a movie successfully or unsuccessfuly, so this is a discrete set of data. It is impossible to split 0 and 1 movies downloaded into 0.5. The number of cinema tickets sold will always be a whole number. There is no middle measurement between 1 and 2 tickets sold. You simply cannot buy half of a ticket. Therefore, this is a discrete set of data.
\nThe number of students will always be an integer. You cannot split one student into two, for example value 19.5 students does not make sense. Therefore, this is a discrete set of data.The result of rolling 3 dice can take values of integers from 3 up to 18. For example, values 3 and 4 do not have any valid middle measurement. Therefore, this is a discrete set of data.Shoe sizes are a discrete set of data. For example, sizes 8 and 8.5 mean something while the middle value 8.25 does not..The number of chocolate bars sold on Monday will always be an integer. There is no middle measurement between 1 and 2 bars sold. You cannot buy a half of a bar. Therefore, this is a discrete set of data.The number of movies downloaded will always be an integer. You can either download a movie successfully or unsuccessfuly, so this is a discrete set of data. It is impossible to split 0 and 1 movies downloaded into 0.5.The number of cinema tickets sold will always be a whole number. There is no middle measurement between 1 and 2 tickets sold. You simply cannot buy half of a ticket. Therefore, this is a discrete set of data.
\nHeight is a continuous variable. For example, 180.3cm and 180.4cm have a valid midpoint 180.35cm.Weight is a continuous variable. For example, 54.5kg and 54.6kg have a valid midpoint 54.55kg.Time is a continuous variable. For example, 54.2s and 54.3s have a valid midpoint 54.25s.Temperature is a continuous variable, it can take any value between -273.15°C (absolute zero) and positive infinity. For example, 25°C and 26°C have a valid midpoint 25.5°C. Hence, this data is continuous.
\nWhen we round continuous variables to the nearest integer, this data becomes discrete, as there are no valid middle measurements between the integers. Therefore, the weight of a dog to the nearest kgthe height of Olympic medalists to the nearest cmthe time taken to run 10km to the nearest min is discrete and not continuous.
\nThe number of students will always be an integer. You cannot split one student into two, for example value 19.5 students does not make sense. Therefore, this is a discrete set of data.The result of rolling 3 dice can take values of integers from 3 up to 18. For example, values 3 and 4 do not have any valid middle measurement. Therefore, this is a discrete set of data.Shoe sizes are a discrete set of data. For example, sizes 8 and 8.5 mean something while the middle value 8.25 does not.The number of chocolate bars sold on Monday will always be an integer. There is no middle measurement between 1 and 2 bars sold. You cannot buy half of a bar of chocolate. Therefore, this is a discrete set of data.The number of movies downloaded will always be an integer. You can either download a movie successfully or unsuccessfuly, so this is a discrete set of data. It is impossible to split 0 and 1 movies downloaded into 0.5.The number of cinema tickets sold will always be a whole number. There is no middle measurement between 1 and 2 tickets sold. You simply cannot buy half of a ticket. Therefore, this is a discrete set of data.
\n\n", "rulesets": {}, "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}