// Numbas version: finer_feedback_settings {"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}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["graphs", "index", "corr", "chosengraph", "chosencorr", "index2", "index3", "wrongcorr1", "wrongcorr2"], "name": "Correlation", "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}], "extensions": [], "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": []}], "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}]}]}], "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}]}