// Numbas version: exam_results_page_options {"name": "Discrete and continuous data", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"preventleave": false, "allowregen": true, "showfrontpage": false}, "question_groups": [{"questions": [{"metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Deicde whether each of the described sets of data is drawn from a discrete or continuous distribution.

"}, "contributors": [{"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/", "name": "Christian Lawson-Perfect"}, {"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/", "name": "Stanislav Duris"}], "advice": "

Data can either be discrete or continuous.

\n
\n
• Discrete data consists of integers, units of measurement cannot be split. Only certain values have a meaning.
• \n
• Continuous data can be shown on a number line, all points on this line have a meaning. In between two measurements there's always a valid \"middle\" measurement. So for example, between 156.3cm and 156.4cm there's 156.35cm.
• \n
\n

\n

#### a)

\n

Height 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.

\n

#### b)

\n

The number of Stage 1 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 39 and 40 mean something while the middle value 39.5 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.

\n

#### c)

\n

The number of Stage 1 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 39 and 40 mean something while the middle value 39.5 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.

\n

#### d)

\n

Height 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.

\n

#### e)

\n

When 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.

\n

#### f)

\n

The number of Stage 1 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 39 and 40 mean something while the middle value 39.5 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

", "name": "Discrete and continuous data", "functions": {}, "variable_groups": [], "type": "question", "tags": ["continuous data", "discrete data", "taxonomy"], "parts": [{"choices": ["

Discrete

", "

Continuous

"], "scripts": {}, "prompt": "

{cont[ranc]}

", "type": "1_n_2", "shuffleChoices": false, "maxMarks": 0, "displayColumns": 0, "displayType": "radiogroup", "distractors": ["", ""], "minMarks": 0, "marks": 0, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "matrix": [0, "1"], "showCorrectAnswer": true}, {"choices": ["

Discrete

", "

Continuous

"], "scripts": {}, "prompt": "

{disc[rand]}

", "type": "1_n_2", "shuffleChoices": false, "maxMarks": 0, "displayColumns": 0, "displayType": "radiogroup", "distractors": ["", ""], "minMarks": 0, "marks": 0, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "matrix": ["1", 0], "showCorrectAnswer": true}, {"choices": ["

Discrete

", "

Continuous

"], "scripts": {}, "prompt": "

{disc[rand2]}

", "type": "1_n_2", "shuffleChoices": false, "maxMarks": 0, "displayColumns": 0, "displayType": "radiogroup", "distractors": ["", ""], "minMarks": 0, "marks": 0, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "matrix": ["1", 0], "showCorrectAnswer": true}, {"choices": ["

Discrete

", "

Continuous

"], "scripts": {}, "prompt": "

{cont[ranc2]}

", "type": "1_n_2", "shuffleChoices": false, "maxMarks": 0, "displayColumns": 0, "displayType": "radiogroup", "distractors": ["", ""], "minMarks": 0, "marks": 0, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "matrix": [0, "1"], "showCorrectAnswer": true}, {"choices": ["

Discrete

", "

Continuous

"], "scripts": {}, "prompt": "

{trick[rant]}

", "type": "1_n_2", "shuffleChoices": false, "maxMarks": 0, "displayColumns": 0, "displayType": "radiogroup", "distractors": ["", ""], "minMarks": 0, "marks": 0, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "matrix": ["1", 0], "showCorrectAnswer": true}, {"choices": ["

Discrete

", "

Continuous

"], "scripts": {}, "prompt": "

{disc[rand3]}

", "type": "1_n_2", "shuffleChoices": false, "maxMarks": 0, "displayColumns": 0, "displayType": "radiogroup", "distractors": ["", ""], "minMarks": 0, "marks": 0, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "matrix": ["1", 0], "showCorrectAnswer": true}], "rulesets": {}, "statement": "

Decide whether the following data sets are discrete or continuous.

", "ungrouped_variables": ["disc", "cont", "trick", "ranc", "rant", "ranc2", "rand2", "rand3", "rand"], "preamble": {"js": "", "css": ""}, "variablesTest": {"maxRuns": 100, "condition": ""}, "extensions": [], "variables": {"ranc": {"templateType": "anything", "description": "", "definition": "random(0..3)", "group": "Ungrouped variables", "name": "ranc"}, "trick": {"templateType": "anything", "description": "", "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.\"]", "group": "Ungrouped variables", "name": "trick"}, "rant": {"templateType": "anything", "description": "", "definition": "random(0..2)", "group": "Ungrouped variables", "name": "rant"}, "ranc2": {"templateType": "anything", "description": "", "definition": "random(0..3 except ranc)", "group": "Ungrouped variables", "name": "ranc2"}, "rand": {"templateType": "anything", "description": "", "definition": "random(0..5)", "group": "Ungrouped variables", "name": "rand"}, "rand2": {"templateType": "anything", "description": "", "definition": "random(0..5 except rand)", "group": "Ungrouped variables", "name": "rand2"}, "rand3": {"templateType": "anything", "description": "", "definition": "random(0..5 except rand except rand2)", "group": "Ungrouped variables", "name": "rand3"}, "cont": {"templateType": "anything", "description": "", "definition": "[\"The height of Newcastle University students.\", \"The weight of Olympic medalists.\", \"The time taken to brush teeth.\", \"The maximum daily temperature.\"]", "group": "Ungrouped variables", "name": "cont"}, "disc": {"templateType": "anything", "description": "", "definition": "[\"The number of Stage 1 students.\", \"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.\"]", "group": "Ungrouped variables", "name": "disc"}}}], "pickingStrategy": "all-ordered"}], "contributors": [{"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/", "name": "Christian Lawson-Perfect"}, {"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/", "name": "Stanislav Duris"}]}