// Numbas version: exam_results_page_options {"name": "Find bounds for distance and time spent running, given imprecise measurements", "extensions": ["random_person"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"description": "

Multiplication and division of upper and lower bounds.

", "licence": "Creative Commons Attribution 4.0 International"}, "ungrouped_variables": ["speed", "distance", "time", "atime", "person", "pronouns", "verbs"], "extensions": ["random_person"], "statement": "

{person['name']} is a keen runner. {capitalise(pronouns['they'])} run{verbs} at an average speed of {speed}km/h, rounded to the nearest integer.

", "variable_groups": [], "rulesets": {}, "type": "question", "name": "Find bounds for distance and time spent running, given imprecise measurements", "advice": "

We're not certain about some of the measurements given in this question - we only know the rounded values. This means that the true value could be lower or higher than the given measurement.

\n

We can find upper and lower bounds for the given measurements. Any values we go on to calculate will also be uncertain and have upper and lower bounds.

\n

\n

To find bounds for a given measurement, we divide the degree of accuracy by 2 and subtract or add this to our estimate to get lower and upper bounds respectively.

\n

For example, $52$ rounded to the nearest integer has a lower bound of $51.5$ and an upper bound of $52.5$.

\n

a)

\n

The distance travelled is given by

\n

\\[ d = \\text{Average speed} \\times \\text{Time taken} \\]

\n

We find bounds for speed and time first.

\n

Lower bound for speed: $\\var{speed} - 0.5 = \\var{speed - 0.5} \\text{ km/h}$

\n

Upper bound for speed: $\\var{speed} + 0.5 = \\var{speed + 0.5} \\text{ km/h}$

\n

First, note that the speed is given in km/h and we want to find the distance in km. We will convert the given time into hours. 

\n

Lower bound for time taken:

\n

\\begin{align} \\var{atime} - 0.5 &= \\var{atime - 0.5} \\text{ min} \\\\[0.5em]
&= \\frac{\\var{atime - 0.5}}{60} \\text{ h}
\\end{align}

\n

Upper bound for time taken:

\n

\\begin{align} \\var{atime} + 0.5 &= \\var{atime + 0.5} \\text{ min} \\\\[0.5em]
&= \\frac{\\var{atime + 0.5}}{60} \\text{ h}
\\end{align}

\n

Since we're multiplying the speed and time together, the lower bound for distance is the slowest speed multiplied by the shortest time:

\n

\\begin{align}
\\text{Lower bound} &= \\text{lower bound for speed} \\times \\text{lower bound for time}\\\\
&= \\var{speed - 0.5} \\times \\frac{\\var{(atime - 0.5)}}{60} \\\\
&= \\var{precround((speed-0.5)*(atime - 0.5)/60, 2 )} \\text{ km} \\quad \\text{(rounded to 2 decimal places).}
\\end{align}

\n

The upper bound for distance is the fastest speed multiplied by the longest time:

\n

\\begin{align}
\\text{Upper bound} &= \\text{upper bound for speed} \\times \\text{upper bound for time} \\\\
&= \\var{speed + 0.5} \\times \\frac{\\var{atime + 0.5}}{60} \\\\
&= \\var{precround((speed+0.5)*(atime + 0.5)/60, 2 )} \\text{ km} \\quad \\text{(rounded to 2 decimal places).}
\\end{align}

\n

Hence,

\n

\\[\\var{precround((speed-0.5)*(atime - 0.5)/60, 2 )} \\leq d \\lt \\var{precround((speed+0.5)*(atime + 0.5)/60, 2 )} \\text{.}\\]

\n

\n

b)

\n

We're told the speed and the distance travelled, so the time taken is given by

\n

\\[ t = \\frac{\\text{Distance travelled}}{\\text{Average speed}} \\]

\n

We found upper and lower bounds for {person['name']}'s average speed above.

\n

The distance of the evening run is given to the nearest kilometre, so we can compute bounds as follows:

\n

Lower bound for distance: $\\var{distance} - 0.5 = \\var{distance - 0.5} \\mathrm{km}$

\n

Upper bound for distance: $\\var{distance} + 0.5 = \\var{distance + 0.5} \\mathrm{km}$

\n

\n

The upper bound for the time taken is the longest distance divided by the slowest speed:

\n

\\begin{align}
\\text{Upper bound} &= \\text{upper bound for distance} \\div \\text{lower bound for speed} \\\\
&= \\var{distance + 0.5} \\div \\var{speed - 0.5} \\\\
&= \\var{(distance + 0.5)/(speed - 0.5)} \\text{ hours.}
\\end{align}

\n

We're asked for the answer in minutes, to two decimal places.

\n

\\begin{align} 
\\var{(distance + 0.5)/(speed - 0.5)} \\text{ hours} &= \\var{(distance + 0.5)/(speed - 0.5)}\\times 60  \\text{ min} \\\\
&= \\var{precround((distance + 0.5)/(speed - 0.5)*60, 2)} \\text{ minutes} \\quad \\text{(rounded to 2 decimal places)}
\\end{align}

\n

\n

The lower bound for time is the shortest distance divided by the fastest speed:

\n

\\begin{align}
\\text{Lower bound} &= \\text{lower bound for distance} \\div \\text{upper bound for speed} \\\\
&= \\var{distance - 0.5} \\div \\var{speed + 0.5} \\\\
&= \\var{(distance - 0.5)/(speed + 0.5)}  \\text{ hours.}
\\end{align}

\n

Converting into minutes, to two decimal places:

\n

\\begin{align} 
\\var{(distance - 0.5)/(speed + 0.5)} \\text{ hours} &= \\var{(distance - 0.5)/(speed + 0.5)}\\times 60  \\text{ min} \\\\
&= \\var{precround((distance - 0.5)/(speed + 0.5)*60, 2)} \\text{ min.}
\\end{align}

\n

Therefore, we cannot confidently say {person['name']}'s time was less than {time*60 +1} minutes as the upper bound for {pronouns['their']} time, $\\var{precround((distance + 0.5)/(speed - 0.5)*60, 2)}$ minutes, is above this threshold.

", "parts": [{"scripts": {}, "steps": [{"scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "information", "showCorrectAnswer": true, "prompt": "

We're not certain about some of the measurements given in this question - we only know the rounded values. This means that the true value could be lower or higher than the given measurement.

\n

Compute upper and lower bounds for {person['name']}'s average speed and the time spent running, then use those to find upper and lower bounds for the distance travelled.

", "variableReplacements": [], "showFeedbackIcon": true, "marks": 0}], "type": "gapfill", "variableReplacements": [], "marks": 0, "showCorrectAnswer": true, "prompt": "

Suppose {person['name']} ran for {atime} minutes, rounded to the nearest minute.

\n

Using the rounded figures for {pronouns['their']} average speed and time spent running, calculate upper and lower bounds for the distance, $d$, that {person['name']} ran.

\n

Round your answers to two decimal places.

\n

[[0]] $\\leq d \\lt$ [[1]]km

", "gaps": [{"correctAnswerFraction": false, "variableReplacements": [], "precisionPartialCredit": 0, "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "precision": "2", "showFeedbackIcon": true, "precisionType": "dp", "minValue": "{speed - 0.5}*{(atime - 0.5)/60}", "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "maxValue": "{speed - 0.5}*{(atime - 0.5)/60}", "mustBeReduced": false, "allowFractions": false, "strictPrecision": false, "correctAnswerStyle": "plain", "precisionMessage": "You have not given your answer to the correct precision.", "showPrecisionHint": false, "showCorrectAnswer": true}, {"correctAnswerFraction": false, "variableReplacements": [], "precisionPartialCredit": 0, "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "precision": "2", "showFeedbackIcon": true, "precisionType": "dp", "minValue": "{speed + 0.5}*{(atime + 0.5)/60}", "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "maxValue": "{speed + 0.5}*{(atime + 0.5)/60}", "mustBeReduced": false, "allowFractions": false, "strictPrecision": false, "correctAnswerStyle": "plain", "precisionMessage": "You have not given your answer to the correct precision.", "showPrecisionHint": false, "showCorrectAnswer": true}], "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "stepsPenalty": 0}, {"scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

Now consider {person['name']}'s evening run. {capitalise(pronouns['they'])} covered a distance of {precround(distance,0)}km, rounded to the nearest kilometre.

\n

{capitalise(pronouns['their'])} friend's record time for the evening run is exactly {time*60 +1} minutes.

\n

Can we confidently say that {person['name']} beat {pronouns['their']} friend's record?

\n

First, calculate the lower and upper bounds for {person['name']}'s time, $t$.

\n

Round your answers to two decimal places.

\n

[[0]] $\\leq t \\lt $ [[1]] minutes

", "gaps": [{"correctAnswerFraction": false, "variableReplacements": [], "precisionPartialCredit": 0, "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "precision": "2", "showFeedbackIcon": true, "precisionType": "dp", "minValue": "({precround(distance,0) - 0.5}/{speed + 0.5})*60", "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "maxValue": "({precround(distance,0) - 0.5}/{speed + 0.5})*60", "mustBeReduced": false, "allowFractions": false, "strictPrecision": false, "correctAnswerStyle": "plain", "precisionMessage": "You have not given your answer to the correct precision.", "showPrecisionHint": false, "showCorrectAnswer": true}, {"correctAnswerFraction": false, "variableReplacements": [], "precisionPartialCredit": 0, "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "precision": "2", "showFeedbackIcon": true, "precisionType": "dp", "minValue": "({precround(distance,0) + 0.5}/{speed - 0.5})*60", "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "maxValue": "({precround(distance,0) + 0.5}/{speed - 0.5})*60", "mustBeReduced": false, "allowFractions": false, "strictPrecision": false, "correctAnswerStyle": "plain", "precisionMessage": "You have not given your answer to the correct precision.", "showPrecisionHint": false, "showCorrectAnswer": true}], "showFeedbackIcon": true, "marks": 0}, {"scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

Therefore, we [[0]] confidently say {pronouns['their']} time was less than {time*60+1} minutes as the [[1]] bound for time is [[2]] the given threshold of {time*60+1} mins.

", "gaps": [{"shuffleChoices": false, "type": "1_n_2", "minMarks": 0, "showCorrectAnswer": true, "displayColumns": 0, "showFeedbackIcon": true, "choices": ["

can

", "

cannot

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

upper

", "

lower

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

above

", "

below

", "

equal to

"], "distractors": ["", "", ""], "scripts": {}, "variableReplacementStrategy": "originalfirst", "maxMarks": 0, "marks": 0, "variableReplacements": [], "matrix": ["1", 0, 0], "displayType": "dropdownlist"}], "showFeedbackIcon": true, "marks": 0}], "tags": ["division", "limits of accuracy", "lower bounds", "multiplication", "random names", "taxonomy", "upper bounds"], "preamble": {"css": "", "js": ""}, "functions": {}, "variables": {"pronouns": {"description": "", "definition": "person['pronouns']", "group": "Ungrouped variables", "name": "pronouns", "templateType": "anything"}, "distance": {"description": "

Distance in kms.

", "definition": "speed*time", "group": "Ungrouped variables", "name": "distance", "templateType": "anything"}, "atime": {"description": "

Time in minutes

", "definition": "random(5..30 #5)", "group": "Ungrouped variables", "name": "atime", "templateType": "anything"}, "verbs": {"description": "", "definition": "if(person['gender']='neutral','','s')", "group": "Ungrouped variables", "name": "verbs", "templateType": "anything"}, "person": {"description": "", "definition": "random_person()", "group": "Ungrouped variables", "name": "person", "templateType": "anything"}, "time": {"description": "

Time in hours.

", "definition": "random(0.25..1 #0.25)", "group": "Ungrouped variables", "name": "time", "templateType": "anything"}, "speed": {"description": "

Speed in km/h.

", "definition": "random(7..11)", "group": "Ungrouped variables", "name": "speed", "templateType": "anything"}}, "variablesTest": {"maxRuns": "1000", "condition": ""}, "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/"}]}]}], "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/"}]}