// Numbas version: finer_feedback_settings {"name": "Stem and Leaf plot", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"showQuestionGroupNames": false, "type": "question", "rulesets": {}, "name": "Stem and Leaf plot", "extensions": ["stats"], "preamble": {"js": "", "css": ""}, "metadata": {"description": "

Given random set of data (between 13 and 23 numbers all less than 100), find their stem-and-leaf plot.

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "tags": ["REBEL", "rebel", "Rebel", "rebelmaths", "statistics", "stem-and-leaf plots"], "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["arr", "ss", "s", "darr1", "u", "arr1", "v", "r"], "parts": [{"prompt": "\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
STEMLEAF
$\\var{v}$[[0]][[1]][[2]][[3]][[4]]
$\\var{v+1}$[[5]][[6]][[7]][[8]][[9]]
$\\var{v+2}$[[10]][[11]][[12]][[13]][[14]]
$\\var{v+3}$[[15]][[16]][[17]][[18]][[19]]
$\\var{v+4}$[[20]][[21]][[22]][[23]][[24]]
\n \n", "scripts": {}, "gaps": [{"allowFractions": false, "minValue": "{u[0][0]}", "showPrecisionHint": false, "maxValue": "{u[0][0]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[0][1]}", "showPrecisionHint": false, "maxValue": "{u[0][1]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[0][2]}", "showPrecisionHint": false, "maxValue": "{u[0][2]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[0][3]}", "showPrecisionHint": false, "maxValue": "{u[0][3]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[0][4]}", "showPrecisionHint": false, "maxValue": "{u[0][4]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[1][0]}", "showPrecisionHint": false, "maxValue": "{u[1][0]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[1][1]}", "showPrecisionHint": false, "maxValue": "{u[1][1]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[1][2]}", "showPrecisionHint": false, "maxValue": "{u[1][2]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[1][3]}", "showPrecisionHint": false, "maxValue": "{u[1][3]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[1][4]}", "showPrecisionHint": false, "maxValue": "{u[1][4]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[2][0]}", "showPrecisionHint": false, "maxValue": "{u[2][0]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[2][1]}", "showPrecisionHint": false, "maxValue": "{u[2][1]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[2][2]}", "showPrecisionHint": false, "maxValue": "{u[2][2]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[2][3]}", "showPrecisionHint": false, "maxValue": "{u[2][3]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[2][4]}", "showPrecisionHint": false, "maxValue": "{u[2][4]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[3][0]}", "showPrecisionHint": false, "maxValue": "{u[3][0]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[3][1]}", "showPrecisionHint": false, "maxValue": "{u[3][1]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[3][2]}", "showPrecisionHint": false, "maxValue": "{u[3][2]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[3][3]}", "showPrecisionHint": false, "maxValue": "{u[3][3]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[3][4]}", "showPrecisionHint": false, "maxValue": "{u[3][4]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[4][0]}", "showPrecisionHint": false, "maxValue": "{u[4][0]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[4][1]}", "showPrecisionHint": false, "maxValue": "{u[4][1]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[4][2]}", "showPrecisionHint": false, "maxValue": "{u[4][2]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[4][3]}", "showPrecisionHint": false, "maxValue": "{u[4][3]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}, {"allowFractions": false, "minValue": "{u[4][4]}", "showPrecisionHint": false, "maxValue": "{u[4][4]}", "showCorrectAnswer": true, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "marks": 0.2}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "marks": 0}], "statement": "\n

Construct a stem-and-leaf plot for the following data. Input all numbers into the fields below.

\n

{table([ss],[])}

\n

 NOTE: All 25 fields have to be filled in. Input -1 if there is no number in a field.

\n

 

\n

 

\n \n", "question_groups": [{"pickingStrategy": "all-ordered", "name": "", "questions": [], "pickQuestions": 0}], "variables": {"darr1": {"description": "", "name": "darr1", "definition": "map(['$'+(v+y)+'$'+ ':']+arr1[y],y,0..4)", "group": "Ungrouped variables", "templateType": "anything"}, "ss": {"description": "", "name": "ss", "definition": "shuffle(s)", "group": "Ungrouped variables", "templateType": "anything"}, "v": {"description": "", "name": "v", "definition": "random(0..4)", "group": "Ungrouped variables", "templateType": "anything"}, "s": {"description": "", "name": "s", "definition": "flattenint(arr)", "group": "Ungrouped variables", "templateType": "anything"}, "arr1": {"description": "", "name": "arr1", "definition": "map(map(arr[y][p]-10*(y+v),p,0..r[y]-1),y,0..4)", "group": "Ungrouped variables", "templateType": "anything"}, "u": {"description": "", "name": "u", "definition": "map(map(if(pOrdering the data gives:

\n

{table([s],[])}

\n

Splitting into the groups of 10s gives

\n

{table(arr,[])}

\n

Then putting this into stem-and-leaf plot gives

\n

{table(darr1,['STEM'])}

\n \n", "variable_groups": [], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}