// Numbas version: exam_results_page_options {"name": "Graphs and correlations", "question_groups": [{"pickingStrategy": "all-ordered", "name": "Group", "pickQuestions": 1, "questions": [{"name": "Equation of a straight line", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}], "functions": {}, "ungrouped_variables": ["a", "b", "c", "d"], "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

Remember that any form of y = mx + c can be a straight line. Any of these values can also equate to 0!

", "rulesets": {}, "parts": [{"maxAnswers": 0, "displayColumns": "1", "prompt": "

Select all that apply.

", "matrix": ["1", "1", "1", "1", "1", 0, 0, 0, 0, 0], "shuffleChoices": true, "variableReplacements": [], "minAnswers": 0, "variableReplacementStrategy": "originalfirst", "maxMarks": 0, "distractors": ["", "", "", "", "", "", "", "", "", ""], "showCorrectAnswer": true, "scripts": {}, "warningType": "none", "marks": 0, "choices": ["

$y = mx + c$

", "

$y = x$

", "

$y - x = c$

", "

$y =$ {a}

", "

$x =$ {b}

", "

$y = mx^2 + c$

", "

$y = x^2$

", "

$y^3 = mx^3 + c$

", "

$y^2 + x^2 = 1$

", "

$y = \\var{c}x^2 + \\var{d}$

"], "type": "m_n_2", "displayType": "checkbox", "minMarks": 0}], "statement": "

Which of the following are straight-line graphs?

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(-10..10)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(-20..20)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(-20..20)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "random(-10..10)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}}, "metadata": {"description": "

Idenitifying straight-line graph equations

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question"}, {"name": "Correlation", "extensions": [], "custom_part_types": [], "resources": [["question-resources/Positive_correlation_TBHAgaf.png", "/srv/numbas/media/question-resources/Positive_correlation_TBHAgaf.png"], ["question-resources/Negative_correlation_0kGEr62.png", "/srv/numbas/media/question-resources/Negative_correlation_0kGEr62.png"], ["question-resources/No_correlation_dgeELhV.png", "/srv/numbas/media/question-resources/No_correlation_dgeELhV.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}], "functions": {}, "ungrouped_variables": ["graphs", "index", "corr", "chosengraph", "chosencorr", "index2", "index3", "wrongcorr1", "wrongcorr2"], "tags": [], "advice": "

A correlation is a relationship between the two variables. This usually looks like a line on a graph. It does not have to be a perfect correlation.

\n

In a positive correlation, as one variable increases, the other increases. This looks like a line of points going up and to the right. In a negative correlation, as one variable increases, the other decreases. This looks like a line of points going down and to the right. If there is no correlation, there is no relationship between the two variables. This looks like a lot of points scattered randomly.

", "rulesets": {}, "parts": [{"prompt": "

Does the graph below have a positive, negative or no correlation?

\n

{image('resources/question-resources/'+chosengraph)}

", "matrix": ["1", 0, 0], "shuffleChoices": false, "marks": 0, "variableReplacements": [], "choices": ["

{chosencorr}

", "

{wrongcorr1}

", "

{wrongcorr2}

"], "variableReplacementStrategy": "originalfirst", "displayType": "radiogroup", "maxMarks": 0, "scripts": {}, "distractors": ["", "", ""], "displayColumns": 0, "showCorrectAnswer": true, "type": "1_n_2", "minMarks": 0}], "statement": "

Answer the following.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"index": {"definition": "random(0..len(graphs)-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "index", "description": ""}, "wrongcorr1": {"definition": "corr[index2]", "templateType": "anything", "group": "Ungrouped variables", "name": "wrongcorr1", "description": ""}, "wrongcorr2": {"definition": "corr[index3]", "templateType": "anything", "group": "Ungrouped variables", "name": "wrongcorr2", "description": ""}, "graphs": {"definition": "['Positive_correlation_TBHAgaf.png','Negative_correlation_0kGEr62.png','No_correlation_dgeELhV.png']", "templateType": "anything", "group": "Ungrouped variables", "name": "graphs", "description": ""}, "chosencorr": {"definition": "corr[index]", "templateType": "anything", "group": "Ungrouped variables", "name": "chosencorr", "description": ""}, "corr": {"definition": "['Positive','Negative','None']", "templateType": "anything", "group": "Ungrouped variables", "name": "corr", "description": ""}, "index2": {"definition": "random(0..len(graphs)-1 except index)", "templateType": "anything", "group": "Ungrouped variables", "name": "index2", "description": ""}, "index3": {"definition": "random(0..len(graphs)-1 except [index2,index])", "templateType": "anything", "group": "Ungrouped variables", "name": "index3", "description": ""}, "chosengraph": {"definition": "graphs[index]", "templateType": "anything", "group": "Ungrouped variables", "name": "chosengraph", "description": ""}}, "metadata": {"description": "

Identifying positive, negative and no correlations.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}]}], "duration": 0, "percentPass": 0, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "metadata": {"description": "

Identifying straight-line equations, and correlations.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "navigation": {"onleave": {"action": "none", "message": ""}, "reverse": true, "allowregen": true, "showresultspage": "oncompletion", "preventleave": true, "browse": true, "showfrontpage": true}, "showQuestionGroupNames": false, "feedback": {"showtotalmark": true, "advicethreshold": 0, "allowrevealanswer": true, "feedbackmessages": [], "showactualmark": true, "showanswerstate": true, "intro": ""}, "type": "exam", "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}], "extensions": [], "custom_part_types": [], "resources": [["question-resources/Positive_correlation_TBHAgaf.png", "/srv/numbas/media/question-resources/Positive_correlation_TBHAgaf.png"], ["question-resources/Negative_correlation_0kGEr62.png", "/srv/numbas/media/question-resources/Negative_correlation_0kGEr62.png"], ["question-resources/No_correlation_dgeELhV.png", "/srv/numbas/media/question-resources/No_correlation_dgeELhV.png"]]}