// Numbas version: exam_results_page_options {"name": "Discrete and continuous data", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"advice": "

Data can either be discrete or continuous.

\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

", "variables": {"rand2": {"description": "", "definition": "random(0..5 except rand)", "templateType": "anything", "name": "rand2", "group": "Ungrouped variables"}, "disc": {"description": "", "definition": "[\"The number of Year 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.\"]", "templateType": "anything", "name": "disc", "group": "Ungrouped variables"}, "rand3": {"description": "", "definition": "random(0..5 except rand except rand2)", "templateType": "anything", "name": "rand3", "group": "Ungrouped variables"}, "rant": {"description": "", "definition": "random(0..2)", "templateType": "anything", "name": "rant", "group": "Ungrouped variables"}, "trick": {"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.\"]", "templateType": "anything", "name": "trick", "group": "Ungrouped variables"}, "rand": {"description": "", "definition": "random(0..5)", "templateType": "anything", "name": "rand", "group": "Ungrouped variables"}, "cont": {"description": "", "definition": "[\"The height of University students.\", \"The weight of Olympic medalists.\", \"The time taken to brush teeth.\", \"The maximum daily temperature.\"]", "templateType": "anything", "name": "cont", "group": "Ungrouped variables"}, "ranc": {"description": "", "definition": "random(0..3)", "templateType": "anything", "name": "ranc", "group": "Ungrouped variables"}, "ranc2": {"description": "", "definition": "random(0..3 except ranc)", "templateType": "anything", "name": "ranc2", "group": "Ungrouped variables"}}, "ungrouped_variables": ["disc", "cont", "trick", "ranc", "rant", "ranc2", "rand2", "rand3", "rand"], "variable_groups": [], "preamble": {"css": "", "js": ""}, "tags": [], "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"}, "rulesets": {}, "functions": {}, "name": "Discrete and continuous data", "statement": "

Decide whether the following data sets are discrete or continuous.

", "parts": [{"matrix": [0, "1"], "marks": 0, "variableReplacementStrategy": "originalfirst", "prompt": "

{cont[ranc]}

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

Discrete

", "

Continuous

"]}, {"matrix": ["1", 0], "marks": 0, "variableReplacementStrategy": "originalfirst", "prompt": "

{disc[rand]}

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

Discrete

", "

Continuous

"]}, {"matrix": ["1", 0], "marks": 0, "variableReplacementStrategy": "originalfirst", "prompt": "

{disc[rand2]}

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

Discrete

", "

Continuous

"]}, {"matrix": [0, "1"], "marks": 0, "variableReplacementStrategy": "originalfirst", "prompt": "

{cont[ranc2]}

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

Discrete

", "

Continuous

"]}, {"matrix": ["1", 0], "marks": 0, "variableReplacementStrategy": "originalfirst", "prompt": "

{trick[rant]}

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

Discrete

", "

Continuous

"]}, {"matrix": ["1", 0], "marks": 0, "variableReplacementStrategy": "originalfirst", "prompt": "

{disc[rand3]}

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

Discrete

", "

Continuous

"]}], "extensions": [], "variablesTest": {"condition": "", "maxRuns": 100}, "type": "question", "contributors": [{"name": "Robert Aykroyd", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1944/"}]}]}], "contributors": [{"name": "Robert Aykroyd", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1944/"}]}