// Numbas version: finer_feedback_settings {"name": "PDF and CDF of continuous uniform random variable, ", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"a": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(-5..5)", "name": "a", "description": ""}, "x1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a+random(1..4)", "name": "x1", "description": ""}, "b": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a+random(5..12)", "name": "b", "description": ""}}, "ungrouped_variables": ["a", "x1", "b"], "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "name": "PDF and CDF of continuous uniform random variable, ", "functions": {}, "showQuestionGroupNames": false, "parts": [{"scripts": {}, "gaps": [{"answer": "1/{b-a}", "showCorrectAnswer": true, "vsetrange": [0, 1], "scripts": {}, "checkvariablenames": false, "expectedvariablenames": [], "notallowed": {"message": "
input as a fraction and not a decimal
", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showpreview": true, "checkingtype": "absdiff", "checkingaccuracy": 0.001, "type": "jme", "answersimplification": "std", "marks": 0.5, "vsetrangepoints": 5}, {"answer": "0", "vsetrange": [0, 1], "scripts": {}, "checkvariablenames": false, "expectedvariablenames": [], "notallowed": {"message": "Input as a fraction or an integer.
", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showpreview": true, "checkingtype": "absdiff", "checkingaccuracy": 0.001, "type": "jme", "showCorrectAnswer": true, "marks": 0.5, "vsetrangepoints": 5}], "type": "gapfill", "showCorrectAnswer": true, "prompt": "\n
What is the PDF of $X$? Input all answers as fractions or integers, not as decimals.
\n$f_X(x) = \\left \\{ \\begin{array}{l} \\phantom{{.}} \\\\\\phantom{{.}} \\\\ \\phantom{{.}} \\\\ \\phantom{{.}}\\end{array} \\right .$ | \n[[0]] | \n$\\var{a} \\leq x \\leq \\var{b},$ | \n
[[1]] | \notherwise | \n
", "marks": 0}, {"scripts": {}, "gaps": [{"answer": "0", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "checkvariablenames": false, "expectedvariablenames": [], "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "type": "jme", "showCorrectAnswer": true, "marks": 0.5, "vsetrangepoints": 5}, {"answer": "(x-{a})/({b-a})", "showCorrectAnswer": true, "vsetrange": [0, 1], "scripts": {}, "checkvariablenames": false, "expectedvariablenames": [], "notallowed": {"message": "
input numbers as fractions or integers and not as decimals
", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showpreview": true, "checkingtype": "absdiff", "checkingaccuracy": 0.001, "type": "jme", "answersimplification": "std", "marks": 1, "vsetrangepoints": 5}, {"answer": "1", "showCorrectAnswer": true, "vsetrange": [0, 1], "scripts": {}, "checkvariablenames": false, "expectedvariablenames": [], "notallowed": {"message": "input numbers as fractions or integers and not as decimals
", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showpreview": true, "checkingtype": "absdiff", "checkingaccuracy": 0.001, "type": "jme", "answersimplification": "std", "marks": 0.5, "vsetrangepoints": 5}], "type": "gapfill", "showCorrectAnswer": true, "prompt": "Compute the CDF $F_X(x)$ of $X$.
\n$F_X(x) = \\left \\{ \\begin{array}{l} \\phantom{{.}} \\\\ \\phantom{{.}} \\\\ \\phantom{{.}} \\\\ \\phantom{{.}} \\\\ \\phantom{{.}}\\\\ \\phantom{{.}}\\\\ \\phantom{{.}} \\end{array} \\right .$ | \n[[0]] | \n$x \\lt \\var{a},$ | \n
\n | \n | |
[[1]] | \n$\\var{a} \\leq x \\leq \\var{b}$ | \n|
\n | \n | |
[[2]] | \n$ x \\gt \\var{b},$ | \n|
\n | \n |
Input all numbers as fractions or integers in the above formulae.
", "marks": 0}, {"scripts": {}, "gaps": [{"answer": "{b-x1}/{b-a}", "showCorrectAnswer": true, "vsetrange": [0, 1], "scripts": {}, "checkvariablenames": false, "expectedvariablenames": [], "notallowed": {"message": "Input all numbers as fractions or integers.
", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showpreview": true, "checkingtype": "absdiff", "checkingaccuracy": 0.001, "type": "jme", "answersimplification": "std", "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "showCorrectAnswer": true, "prompt": "Also, using the distribution function above find:
\n$P( X \\ge \\var{x1})=\\;\\;$[[0]]
\n(input your answer as a fraction or integer and not as a decimal).
", "marks": 0}], "statement": "Suppose $X$ is a continuous uniform random variable defined on $[\\var{a},\\;\\var{b}]$.
", "tags": ["CFD", "checked2015", "continuous random variables", "cumulative distribution functions", "density functions", "distribution function", "distribution functions", "MAS1604", "MAS2304", "pdf", "PDF", "Probability", "probability density function", "random variables", "statistics", "uniform random variable"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "05/02/2013:
\nFirst draft finished.
", "licence": "Creative Commons Attribution 4.0 International", "description": "$X$ is a continuous uniform random variable defined on $[a,\\;b]$. Find the PDF and CDF of $X$ and find $P(X \\ge c)$.
"}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "a)
\nThe PDF is given by:
\n\n
$f_X(x) = \\left \\{ \\begin{array}{l} \\phantom{{.}} \\\\\\phantom{{.}} \\\\ \\phantom{{.}} \\\\ \\phantom{{.}}\\end{array} \\right .$ | \n\\[\\frac{1}{\\var{b}-(\\var{a})}=\\frac{1}{\\var{b-a}}\\] | \n$\\var{a} \\leq x \\leq \\var{b},$ | \n
$0$ | \notherwise | \n
b) The CDF is given by:
\n$F_X(x) = \\left \\{ \\begin{array}{l} \\phantom{{.}} \\\\ \\phantom{{.}} \\\\ \\phantom{{.}} \\\\ \\phantom{{.}} \\\\ \\phantom{{.}}\\\\ \\phantom{{.}}\\\\ \\phantom{{.}} \\end{array} \\right .$ | \n$0$ | \n$x \\lt \\var{a},$ | \n
\n | \n | |
\\[\\simplify{(x-{a})/{b-a}}\\] | \n$\\var{a} \\leq x \\leq \\var{b}$ | \n|
\n | \n | |
1 | \n$ x \\gt \\var{b},$ | \n|
\n | \n |
c)
\n\\[P(X \\ge \\var{x1})=1-F_X(\\var{x1})=1-\\simplify[std]{({x1}-{a})/{b-a}={b-x1}/{b-a}}\\]
\n", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}