// Numbas version: exam_results_page_options {"name": "the real rate of interest", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["p", "pdec", "nomipa", "nomipadec", "realipadec", "realipa", "roundedrealipa"], "preamble": {"css": "", "js": ""}, "variablesTest": {"maxRuns": 100, "condition": ""}, "parts": [{"variableReplacements": [], "marks": 0, "prompt": "

If inflation was $\\var{p}\\%$ p.a. and the nominal interest rate was $\\var{nomipa}\\%$ p.a. then what would the real rate of interest be?

\n

\n

[[0]]$\\%$ p.a. (to 2 decimal places)

", "useCustomName": false, "gaps": [{"variableReplacements": [], "allowFractions": false, "marks": 1, "notationStyles": ["plain", "en", "si-en"], "minValue": "realipa", "useCustomName": false, "showCorrectAnswer": true, "precisionMessage": "You have not given your answer to the correct precision.", "unitTests": [], "precisionType": "dp", "correctAnswerFraction": false, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "scripts": {}, "maxValue": "realipa", "correctAnswerStyle": "plain", "mustBeReducedPC": 0, "showPrecisionHint": false, "showFeedbackIcon": true, "precisionPartialCredit": 0, "customName": "", "strictPrecision": true, "precision": "2"}], "showFeedbackIcon": true, "showCorrectAnswer": true, "unitTests": [], "customName": "", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "type": "gapfill", "variableReplacementStrategy": "originalfirst", "scripts": {}, "sortAnswers": false}], "variable_groups": [], "extensions": [], "advice": "

We are asked to find the real rate of interest. Therefore we would use the equation

\n

$\\displaystyle i^*=\\left(\\frac{1+i}{1+p}\\right)-1$

\n

where $i^*$ is the real rate of interest, $i$ is the nominal rate of interest, and $p$ is the rate of inflation.

\n

\n

In our situation we have, 

\n

$i=\\var{nomipa}\\%=\\var{nomipadec}$

\n

$p=\\var{p}\\%=\\var{pdec}$

\n

and therefore we have

\n

$\\begin{align} i^*&=\\left(\\frac{1+\\var{nomipadec}}{1+\\var{pdec}}\\right)-1\\\\&=\\frac{\\var{1+nomipadec}}{\\var{1+pdec}}-1\\\\&\\approx \\var{realipadec}\\\\&=\\var{roundedrealipa}\\%\\quad\\text{(to 2 decimal places)}\\end{align}$

", "name": "the real rate of interest", "variables": {"realipadec": {"templateType": "anything", "definition": "((1+nomipadec)/(1+pdec))-1", "description": "", "name": "realipadec", "group": "Ungrouped variables"}, "nomipadec": {"templateType": "anything", "definition": "nomipa/100", "description": "", "name": "nomipadec", "group": "Ungrouped variables"}, "p": {"templateType": "anything", "definition": "random(0.1..5#0.1)", "description": "

inflation

", "name": "p", "group": "Ungrouped variables"}, "nomipa": {"templateType": "anything", "definition": "p+random(1.5..8#0.1)", "description": "", "name": "nomipa", "group": "Ungrouped variables"}, "pdec": {"templateType": "anything", "definition": "p/100", "description": "", "name": "pdec", "group": "Ungrouped variables"}, "roundedrealipa": {"templateType": "anything", "definition": "precround(realipa,2)", "description": "", "name": "roundedrealipa", "group": "Ungrouped variables"}, "realipa": {"templateType": "anything", "definition": "realipadec*100", "description": "", "name": "realipa", "group": "Ungrouped variables"}}, "statement": "

If you are unsure of how to do a question, click on Reveal answers to see the full working. Then, once you understand how to do the question, click on Try another question like this one to start again. Do each question repeatedly to ensure you have mastered it.

", "metadata": {"description": "Financial maths. Given the nominal interest rate and the rate of inflation determine the real rate of interest", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "functions": {}, "rulesets": {}, "tags": [], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}