// Numbas version: exam_results_page_options {"name": "Quadratic functions: Interpreting Graphs - Fitness of Population", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Quadratic functions: Interpreting Graphs - Fitness of Population", "tags": [], "metadata": {"description": "

The question includes a quadratic graph depicting the relationship between the frequency of an allele A at a genetic locus in a diploid population and the fitness of a population with this frequency of allele A. The aim is to estimate the maximum and minimum fitness of the population and the corresponding frequency of allele A.

", "licence": "None specified"}, "statement": "

The following graph depicts the relationship between the frequency, $x$, of an allele A at a genetic locus in a diploid population and the fitness, $w$, of a population with this frequency of allele A.

\n

{geogebra_applet('https://www.geogebra.org/m/rtngjns4', defs)}

", "advice": "

{geogebra_applet('https://www.geogebra.org/m/xw4jjqxa',defsad1)}

\n

Note: you can zoom in and out of the figure as needed.

\n

a) We first need to locate the highest point on the graph. From that point, we can draw a line perpendicular to the vertical axis to estimate the maximum fitness and a line perpendicular to the horizontal axis to estimate the corresponding frequency of allele A. 

\n

Here, a good estimate could be:

\n\n

b)We first need to locate the lowest point on the graph. From that point, we can draw a line perpendicular to the vertical axis to estimate the minimum fitness and a line perpendicular to the horizontal axis to estimate the corresponding frequency of allele A. 

\n

Here, a good estimate could be:

\n", "rulesets": {}, "extensions": ["geogebra"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "problem posing variables", "definition": "random (0 .. 0.5 # 0.1 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "problem posing variables", "definition": "random([1,2])", "description": "", "templateType": "anything", "can_override": false}, "x_1": {"name": "x_1", "group": "problem posing variables", "definition": "random (0..1 #0.05 except [0,1]) ", "description": "", "templateType": "anything", "can_override": false}, "w_1": {"name": "w_1", "group": "problem posing variables", "definition": "random (0..1 #0.1 except [0,1]) ", "description": "", "templateType": "anything", "can_override": false}, "coef_a": {"name": "coef_a", "group": "answer variables", "definition": "{a}+{c}-1", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "problem posing variables", "definition": "random (0 .. 0.5 # 0.1 except 0)", "description": "", "templateType": "anything", "can_override": false}, "coef_b": {"name": "coef_b", "group": "answer variables", "definition": "{b}-2*{c}*{b}", "description": "", "templateType": "anything", "can_override": false}, "coef_c": {"name": "coef_c", "group": "answer variables", "definition": "{c}*{b}^2", "description": "", "templateType": "anything", "can_override": false}, "defs": {"name": "defs", "group": "Ungrouped variables", "definition": "[\n ['a',coef_a],\n ['b',coef_b],\n ['c',coef_c]\n ]", "description": "", "templateType": "anything", "can_override": false}, "turn": {"name": "turn", "group": "answer variables", "definition": "-coef_b/(2*coef_a)", "description": "", "templateType": "anything", "can_override": false}, "max": {"name": "max", "group": "answer variables", "definition": "if(turn<1, max([{coef_c},{coef_a}+{coef_b}+{coef_c}, {coef_a}*{turn}^2+{coef_b}*{turn}+{coef_c}]), max({coef_c},{coef_a}+{coef_b}+{coef_c))", "description": "", "templateType": "anything", "can_override": false}, "min": {"name": "min", "group": "answer variables", "definition": "if(turn<1, min([{coef_c},{coef_a}+{coef_b}+{coef_c}, {coef_a}*{turn}^2+{coef_b}*{turn}+{coef_c}]), min({coef_c},{coef_a}+{coef_b}+{coef_c))", "description": "", "templateType": "anything", "can_override": false}, "xmax": {"name": "xmax", "group": "answer variables", "definition": "if(max=coef_c,0,if(max=coef_a+coef_b+coef_c,1,turn))", "description": "", "templateType": "anything", "can_override": false}, "xmin": {"name": "xmin", "group": "answer variables", "definition": "if(min=coef_c,0,if(min=coef_a+coef_b+coef_c,1,turn))", "description": "", "templateType": "anything", "can_override": false}, "Maxpoint": {"name": "Maxpoint", "group": "Ungrouped variables", "definition": "vector(xmax,max)", "description": "", "templateType": "anything", "can_override": false}, "MinPoint": {"name": "MinPoint", "group": "Ungrouped variables", "definition": "vector(xmin,min)", "description": "", "templateType": "anything", "can_override": false}, "defsad1": {"name": "defsad1", "group": "Ungrouped variables", "definition": "[\n ['a',coef_a],\n ['b',coef_b],\n ['c',coef_c],\n ['A',maxpoint],\n ['B',minpoint]\n ]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "(coef_a<0)", "maxRuns": 100}, "ungrouped_variables": ["defs", "Maxpoint", "MinPoint", "defsad1"], "variable_groups": [{"name": "problem posing variables", "variables": ["a", "b", "x_1", "w_1", "c"]}, {"name": "answer variables", "variables": ["coef_a", "coef_b", "coef_c", "turn", "max", "min", "xmax", "xmin"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Use the graph to find the maximum possible fitness and the value of $x$ at which this maximum is attained.

\n", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{max}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.025", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{xmax}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.05", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Use the graph to find the minimum possible fitness and the value of $x$ at which this maximum is attained.

\n", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{min}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.025", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{xmin}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.05", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Evi Papadaki", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18113/"}]}]}], "contributors": [{"name": "Evi Papadaki", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18113/"}]}