// Numbas version: exam_results_page_options {"name": "Steady state probability", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"prompt": "

Complete the corresponding transition matrix of probabilities, giving your answers correct to three decimal places.

\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
                Future
WorkingCrashed
PresentWorking[[0]][[1]]
Crashed[[2]][[3]]
", "scripts": {}, "type": "gapfill", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "marks": 0, "gaps": [{"correctAnswerStyle": "plain", "scripts": {}, "strictPrecision": false, "correctAnswerFraction": false, "minValue": "1-{p1}", "showFeedbackIcon": true, "precision": "3", "allowFractions": false, "mustBeReduced": false, "showCorrectAnswer": true, "variableReplacements": [], "precisionPartialCredit": 0, "notationStyles": ["plain", "en", "si-en"], "precisionType": "dp", "type": "numberentry", "showPrecisionHint": false, "precisionMessage": "You have not given your answer to the correct precision.", "maxValue": "1-{p1}", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "marks": "0.5"}, {"correctAnswerStyle": "plain", "scripts": {}, "strictPrecision": false, "correctAnswerFraction": false, "minValue": "{p1}", "showFeedbackIcon": true, "precision": "3", "allowFractions": false, "mustBeReduced": false, "showCorrectAnswer": true, "variableReplacements": [], "precisionPartialCredit": 0, "notationStyles": ["plain", "en", "si-en"], "precisionType": "dp", "type": "numberentry", "showPrecisionHint": false, "precisionMessage": "You have not given your answer to the correct precision.", "maxValue": "{p1}", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "marks": "0.5"}, {"correctAnswerStyle": "plain", "scripts": {}, "strictPrecision": false, "correctAnswerFraction": false, "minValue": "{p2}", "showFeedbackIcon": true, "precision": "2", "allowFractions": false, "mustBeReduced": false, "showCorrectAnswer": true, "variableReplacements": [], "precisionPartialCredit": 0, "notationStyles": ["plain", "en", "si-en"], "precisionType": "dp", "type": "numberentry", "showPrecisionHint": false, "precisionMessage": "You have not given your answer to the correct precision.", "maxValue": "{p2}", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "marks": "0.5"}, {"correctAnswerStyle": "plain", "scripts": {}, "strictPrecision": false, "correctAnswerFraction": false, "minValue": "1-{p2}", "showFeedbackIcon": true, "precision": "3", "allowFractions": false, "mustBeReduced": false, "showCorrectAnswer": true, "variableReplacements": [], "precisionPartialCredit": 0, "notationStyles": ["plain", "en", "si-en"], "precisionType": "dp", "type": "numberentry", "showPrecisionHint": false, "precisionMessage": "You have not given your answer to the correct precision.", "maxValue": "1-{p2}", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "marks": "0.5"}], "showCorrectAnswer": true}, {"prompt": "

Calculate the steady state probabilities, correct to three decimal places.        

\n

Working [[0]]

\n

Crashed [[1]]

", "scripts": {}, "type": "gapfill", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "marks": 0, "gaps": [{"correctAnswerStyle": "plain", "scripts": {}, "strictPrecision": true, "correctAnswerFraction": false, "minValue": "{p2}/({p1}+{p2})", "showFeedbackIcon": true, "precision": "3", "allowFractions": false, "mustBeReduced": false, "showCorrectAnswer": true, "variableReplacements": [], "precisionPartialCredit": 0, "notationStyles": ["plain", "en", "si-en"], "precisionType": "dp", "type": "numberentry", "showPrecisionHint": false, "precisionMessage": "You have not given your answer to the correct precision.", "maxValue": "{p2}/({p1}+{p2})", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "marks": "3"}, {"correctAnswerStyle": "plain", "scripts": {}, "strictPrecision": false, "correctAnswerFraction": false, "minValue": "{p1}/({p1}+{p2})", "showFeedbackIcon": true, "precision": "3", "allowFractions": false, "mustBeReduced": false, "showCorrectAnswer": true, "variableReplacements": [], "precisionPartialCredit": 0, "notationStyles": ["plain", "en", "si-en"], "precisionType": "dp", "type": "numberentry", "showPrecisionHint": false, "precisionMessage": "You have not given your answer to the correct precision.", "maxValue": "{p1}/({p1}+{p2})", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "marks": "3"}], "showCorrectAnswer": true}], "variables": {"p1": {"definition": "random(0.005..0.05#0.005)", "name": "p1", "group": "Ungrouped variables", "description": "", "templateType": "randrange"}, "steady2": {"definition": "{p1}/({p1}+{p2})", "name": "steady2", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "p2": {"definition": "random(0.85..0.95#0.01)", "name": "p2", "group": "Ungrouped variables", "description": "", "templateType": "randrange"}, "steady1": {"definition": "{p2}/({p1}+{p2})", "name": "steady1", "group": "Ungrouped variables", "description": "", "templateType": "anything"}}, "advice": "

The matrix of transition probabilities is given by:

\n

\\(\\mathbf{A}=\\begin{pmatrix} \\simplify{1-{p1}}&\\var{p1}\\\\ \\var{p2}&\\simplify{1-{p2}} \\end{pmatrix}\\)

\n

\\(\\Pi(n)\\) represents the proportions in each state after \\(n\\) time periods have elapsed.

\n

The steady state probabilities are found by evaluating \\(\\lim\\limits_{n \\to \\infty}\\Pi(n)\\)

\n

Recall  \\(\\Pi(n)=\\Pi(0)A^n\\)

\n

\\(\\implies\\lim\\limits_{n \\to \\infty}\\Pi(n)=\\Pi(0).\\lim\\limits_{n \\to \\infty}A^n=\\Pi(0).E.\\lim\\limits_{n \\to \\infty}D^n.E^{-1}\\)

\n

where \\(D\\) is the diagonal matrix of eigenvalues and \\(E\\) is the matrix of corresponding eigenvectors.

\n

\n

Eigenvalues:

\n

\\(\\lambda_1=1\\)

\n

\\(\\lambda_1+\\lambda_2=\\simplify{1-{p1}}+\\simplify{1-{p2}}\\)

\n

\\(\\implies \\lambda_2=\\simplify{1-{p1}-{p2}}\\)

\n

\n

Eigenvectors:

\n

\\(When\\,\\lambda = 1\\,\\,\\,\\,\\,\\,\\,\\,\\,\\,\\,\\,v_1=\\begin{pmatrix} 1\\\\1 \\end{pmatrix}\\)

\n

\\(When\\,\\lambda = \\simplify{1-{p1}-{p2}}\\)

\n

\\(\\begin{pmatrix} \\var{p2}&\\var{p1}\\\\\\var{p2}&\\var{p1} \\end{pmatrix}\\begin{pmatrix} x\\\\y \\end{pmatrix}=\\begin{pmatrix} 0\\\\0 \\end{pmatrix}\\)

\n

\\(\\var{p2}x+\\var{p1}y=0\\)

\n

\\(y=-\\frac{\\var{p2}}{\\var{p1}}x\\)

\n

\\(let\\, x=\\simplify{100*{p1}}\\implies\\,y=-\\simplify{100*{p2}}\\implies\\,v_2=\\begin{pmatrix} \\simplify{100*{p1}}\\\\-\\simplify{100*{p2}} \\end{pmatrix}\\)

\n

\\(E=\\begin{pmatrix} 1&\\simplify{100*{p1}}\\\\1&-\\simplify{100*{p2}} \\end{pmatrix}\\)

\n

\n

\\(\\lim\\limits_{n \\to \\infty}D^n=\\lim\\limits_{n \\to \\infty}\\begin{pmatrix} 1^n&0\\\\0&\\simplify{1-{p1}-{p2}}^n\\end{pmatrix}=\\begin{pmatrix} 1&0\\\\0&0 \\end{pmatrix}\\)

\n

\\(\\lim\\limits_{n \\to \\infty}\\Pi(n)=\\Pi(0).E.\\begin{pmatrix} 1&0\\\\0&0 \\end{pmatrix}.E^{-1}=\\Pi(0)\\begin{pmatrix} \\simplify{100*{p2}/(100({p1}+{p2}))}&\\simplify{100*{p1}/(100*({p1}+{p2}))}\\\\\\simplify{100*{p2}/(100*({p1}+{p2}))}&\\simplify{100*{p1}/(100*({p1}+{p2}))}\\end{pmatrix}\\)

\n

\\(\\lim\\limits_{n \\to \\infty}\\Pi(n)=\\begin{pmatrix} \\var{steady1}\\\\\\var{steady2} \\end{pmatrix}\\)

\n

", "extensions": [], "preamble": {"css": "", "js": ""}, "statement": "

A mail server used by a large company to handle its email traffic has a probability of \\(\\var{p1}\\) of going off-line in need of maintenance in any given hour.

\n

The probability of a crashed server being fixed within a one hour gap is \\(\\var{p2}\\).

", "functions": {}, "ungrouped_variables": ["p1", "p2", "steady1", "steady2"], "metadata": {"licence": "Creative Commons Attribution-NonCommercial 4.0 International", "description": ""}, "tags": [], "variable_groups": [], "rulesets": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "name": "Steady state probability", "type": "question", "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}]}]}], "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}]}