Calculating Probabilities using PDF
A continuous random variable can take any value in an interval so is typically used when continuous quantities are involved (time, distance, weight, etc)
What is a probability density function (p.d.f.)?
- For a continuous random variable, a function can be used to model probabilities
- This function is called a probability density function (p.d.f.), denoted by f(x)
- For f(x) to represent a p.d.f. the following conditions must apply
- f(x) ≥ 0 for all values of x
- The area under the graph of y = f(x) must total 1
- In most problems, the domain of x is restricted to an interval, a ≤ X ≤ b say, with all values of x outside of the interval having f(x)=0
How do I find probabilities using a probability density function (p.d.f.)?
- The probability that the continuous random variable X lies in the interval a ≤ X ≤ b, where X has the probability density function f(x), is given by
-
- P(a ≤ X ≤ b) = P(a < X < b)
- For any continuous random variable (including the normal distribution) P(X = n) = 0
- One way to think of this is that a = b in the integral above
- P(a ≤ X ≤ b) = P(a < X < b)
- For linear functions it can be easier to find the probability using the area of geometric shapes
- Rectangles: A = bh
- Triangles: A = ½(bh)
- Trapezoids: A = ½(a+b)h
How do I determine whether a function is a pdf?
- Some questions may ask for justification of the use of a given function for a probability density function
- In such cases check that the function meets the two conditions
- f(x) ≥ 0 for all values of x
- total area under the graph is 1
- In such cases check that the function meets the two conditions
How do I use a pdf to find probabilities?
STEP 1
Identify the probability density function, f(x) - this may be given as a graph, an equation or as a piecewise function
e.g. ![space f left parenthesis x right parenthesis equals open curly brackets table row cell 0.02 x end cell cell 0 less or equal than x less or equal than 10 end cell row 0 otherwise end table close](data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Awrs%3D%22http%3A%2F%2Fwww.wiris.com%2Fxml%2Fmathml-extension%22%20height%3D%2254%22%20width%3D%22194%22%20wrs%3Abaseline%3D%2233%22%3E%3C!--MathML%3A%20%3Cmath%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1998%2FMath%2FMathML%22%3E%3Cmo%3E%26%23xA0%3B%3C%2Fmo%3E%3Cmi%3Ef%3C%2Fmi%3E%3Cmo%3E(%3C%2Fmo%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ABAAAAAAADADAAIAABAAAAAAAEABIAUAABAAAAAAAFABYAYgABAAAAAAAGAAkAeAABAAAAAAAIABwAgQADAAEECQABABIAAAADAAEECQACAA4AEgADAAEECQADADAAIAADAAEECQAEABIAUAADAAEECQAFABYAYgADAAEECQAGAAkAeAADAAEECQAIABwAgQBNAGEAdABoACAARgBvAG4AdABSAGUAZwB1AGwAYQByAE0AYQB0AGgAcwAgAEYAbwByACAATQBvAHIAZQAgAE0AYQB0AGgAIABGAG8AbgB0AE0AYQB0AGgAIABGAG8AbgB0AFYAZQByAHMAaQBvAG4AIAAxAC4AME1hdGhfRm9udABNAGEAdABoAHMAIABGAG8AcgAgAE0AbwByAGUAAAMAAAAAAAAB9AD6AAAAAAAAAAAAAAAAAAAAAAAAAAC5BxEAAI2FGACyAAAAFRQTsQABPw%3D%3D)format('truetype')%3Bfont-weight%3Anormal%3Bfont-style%3Anormal%3B%7D%40font-face%7Bfont-family%3A'brack_sm74a4ec520979a73b06ad972'%3Bsrc%3Aurl(data%3Afont%2Ftruetype%3Bcharset%3Dutf-8%3Bbase64%2CAAEAAAAMAIAAAwBAT1MvMi7PH4UAAADMAAAATmNtYXA3kjw6AAABHAAAAExjdnQgAQYDiAAAAWgAAAASZ2x5ZkyYQ7YAAAF8AAABLGhlYWQLyR8fAAACqAAAADZoaGVhAq0XCAAAAuAAAAAkaG10eDEjA%2FUAAAMEAAAAFGxvY2EAAEKZAAADGAAAABhtYXhwBJsEcQAAAzAAAAAgbmFtZW7QvZAAAANQAAAB5XBvc3QArQBVAAAFOAAAACBwcmVwu5WEAAAABVgAAAAHAAACDAGQAAUAAAQABAAAAAAABAAEAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgICAAAAAg9AMD%2FP%2F8AAABVAABAAAAAAACAAEAAQAAABQAAwABAAAAFAAEADgAAAAKAAgAAgACI6cjqCOpI6r%2F%2FwAAI6cjqCOpI6r%2F%2F9xa3FrcWtxaAAEAAAAAAAA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bABsACAAcwBpAHoAZQBSAGUAZwB1AGwAYQByAE0AYQB0AGgAcwAgAEYAbwByACAATQBvAHIAZQAgAEIAcgBhAGMAawBlAHQAcwAgAHMAbQBhAGwAbAAgAHMAaQB6AGUAQgByAGEAYwBrAGUAdABzACAAcwBtAGEAbABsACAAcwBpAHoAZQBWAGUAcgBzAGkAbwBuACAAMgAuADBCcmFja2V0c19zbWFsbF9zaXplAE0AYQB0AGgAcwAgAEYAbwByACAATQBvAHIAZQAAAAADAAAAAAAAAKoAVQAAAAAAAAAAAAAAAAAAAAAAAAAAuQf%2FAAKNhQA%3D)format('truetype')%3Bfont-weight%3Anormal%3Bfont-style%3Anormal%3B%7D%40font-face%7Bfont-family%3A'round_brackets18549f92a457f2409'%3Bsrc%3Aurl(data%3Afont%2Ftruetype%3Bcharset%3Dutf-8%3Bbase64%2CAAEAAAAMAIAAAwBAT1MvMjwHLFQAAADMAAAATmNtYXDf7xCrAAABHAAAADxjdnQgBAkDLgAAAVgAAAASZ2x5ZmAOz2cAAAFsAAABJGhlYWQOKih8AAACkAAAADZoaGVhCvgVwgAAAsgAAAAkaG10eCA6AAIAAALsAAAADGxvY2EAAARLAAAC%2BAAAABBtYXhwBIgEWQAAAwgAAAAgbmFtZXHR30MAAAMoAAACOXBvc3QDogHPAAAFZAAAACBwcmVwupWEAAAABYQAAAAHAAAGcgGQAAUAAAgACAAAAAAACAAIAAAAAAAAAQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgICAAAAAo8AMGe%2F57AAAHPgGyAAAAAAACAAEAAQAAABQAAwABAAAAFAAEACgAAAAGAAQAAQACACgAKf%2F%2FAAAAKAAp%2F%2F%2F%2F2f%2FZAAEAAAAAAAAAAAFUAFYBAAAsAKgDgAAyAAcAAAACAAAAKgDVA1UAAwAHAAA1MxEjEyMRM9XVq4CAKgMr%2FQAC1QABAAD%2B0AIgBtAACQBNGAGwChCwA9SwAxCwAtSwChCwBdSwBRCwANSwAxCwBzywAhCw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HIAYQBjAGsAZQB0AHMAIAB3AGkAdABoACAAYQBzAGMAZQBuAHQAIAAxADgANQA0AFYAZQByAHMAaQBvAG4AIAAyAC4AMFJvdW5kX2JyYWNrZXRzX3dpdGhfYXNjZW50XzE4NTQATQBhAHQAaABzACAARgBvAHIAIABNAG8AcgBlAAAAAAMAAAAAAAADnwHPAAAAAAAAAAAAAAAAAAAAAAAAAAC5B%2F8AAY2FAA%3D%3D)format('truetype')%3Bfont-weight%3Anormal%3Bfont-style%3Anormal%3B%7D%3C%2Fstyle%3E%3C%2Fdefs%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2218%22%20font-style%3D%22italic%22%20text-anchor%3D%22middle%22%20x%3D%227.5%22%20y%3D%2233%22%3Ef%3C%2Ftext%3E%3Ctext%20font-family%3D%22round_brackets18549f92a457f2409%22%20font-size%3D%2218%22%20text-anchor%3D%22middle%22%20x%3D%2216.5%22%20y%3D%2233%22%3E(%3C%2Ftext%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2218%22%20font-style%3D%22italic%22%20text-anchor%3D%22middle%22%20x%3D%2223.5%22%20y%3D%2233%22%3Ex%3C%2Ftext%3E%3Ctext%20font-family%3D%22round_brackets18549f92a457f2409%22%20font-size%3D%2218%22%20text-anchor%3D%22middle%22%20x%3D%2231.5%22%20y%3D%2233%22%3E)%3C%2Ftext%3E%3Ctext%20font-family%3D%22math1a3e9e66d3b0fb1281f7814e8d5%22%20font-size%3D%2216%22%20text-anchor%3D%22middle%22%20x%3D%2243.5%22%20y%3D%2233%22%3E%3D%3C%2Ftext%3E%3Ctext%20font-family%3D%22brack_sm74a4ec520979a73b06ad972%22%20font-size%3D%2218%22%20text-anchor%3D%22start%22%20x%3D%2255.5%22%20y%3D%2213%22%3E%26%23x23A7%3B%3C%2Ftext%3E%3Ctext%20font-family%3D%22brack_sm74a4ec520979a73b06ad972%22%20font-size%3D%2218%22%20text-anchor%3D%22start%22%20x%3D%2255.5%22%20y%3D%2219%22%3E%26%23x23AA%3B%3C%2Ftext%3E%3Ctext%20font-family%3D%22brack_sm74a4ec520979a73b06ad972%22%20font-size%3D%2218%22%20text-anchor%3D%22start%22%20x%3D%2255.5%22%20y%3D%2225%22%3E%26%23x23AA%3B%3C%2Ftext%3E%3Ctext%20font-family%3D%22brack_sm74a4ec520979a73b06ad972%22%20font-size%3D%2218%22%20text-anchor%3D%22start%22%20x%3D%2255.5%22%20y%3D%2231%22%3E%26%23x23A8%3B%3C%2Ftext%3E%3Ctext%20font-family%3D%22brack_sm74a4ec520979a73b06ad972%22%20font-size%3D%2218%22%20text-anchor%3D%22start%22%20x%3D%2255.5%22%20y%3D%2237%22%3E%26%23x23AA%3B%3C%2Ftext%3E%3Ctext%20font-family%3D%22brack_sm74a4ec520979a73b06ad972%22%20font-size%3D%2218%22%20text-anchor%3D%22start%22%20x%3D%2255.5%22%20y%3D%2243%22%3E%26%23x23AA%3B%3C%2Ftext%3E%3Ctext%20font-family%3D%22brack_sm74a4ec520979a73b06ad972%22%20font-size%3D%2218%22%20text-anchor%3D%22start%22%20x%3D%2255.5%22%20y%3D%2249%22%3E%26%23x23A9%3B%3C%2Ftext%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2218%22%20text-anchor%3D%22middle%22%20x%3D%2269.5%22%20y%3D%2219%22%3E0%3C%2Ftext%3E%3Ctext%20font-family%3D%22math1a3e9e66d3b0fb1281f7814e8d5%22%20font-size%3D%2216%22%20text-anchor%3D%22middle%22%20x%3D%2276.5%22%20y%3D%2219%22%3E.%3C%2Ftext%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2218%22%20text-anchor%3D%22middle%22%20x%3D%2288.5%22%20y%3D%2219%22%3E02%3C%2Ftext%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2218%22%20font-style%3D%22italic%22%20text-anchor%3D%22middle%22%20x%3D%22101.5%22%20y%3D%2219%22%3Ex%3C%2Ftext%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2218%22%20text-anchor%3D%22middle%22%20x%3D%22119.5%22%20y%3D%2219%22%3E0%3C%2Ftext%3E%3Ctext%20font-family%3D%22math1a3e9e66d3b0fb1281f7814e8d5%22%20font-size%3D%2216%22%20text-anchor%3D%22middle%22%20x%3D%22132.5%22%20y%3D%2219%22%3E%26%23x2264%3B%3C%2Ftext%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2218%22%20font-style%3D%22italic%22%20text-anchor%3D%22middle%22%20x%3D%22144.5%22%20y%3D%2219%22%3Ex%3C%2Ftext%3E%3Ctext%20font-family%3D%22math1a3e9e66d3b0fb1281f7814e8d5%22%20font-size%3D%2216%22%20text-anchor%3D%22middle%22%20x%3D%22158.5%22%20y%3D%2219%22%3E%26%23x2264%3B%3C%2Ftext%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2218%22%20text-anchor%3D%22middle%22%20x%3D%22175.5%22%20y%3D%2219%22%3E10%3C%2Ftext%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2218%22%20text-anchor%3D%22middle%22%20x%3D%2285.5%22%20y%3D%2245%22%3E0%3C%2Ftext%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2218%22%20text-anchor%3D%22middle%22%20x%3D%22150.5%22%20y%3D%2245%22%3Eotherwise%3C%2Ftext%3E%3C%2Fsvg%3E)
Identify the limits of X for a particular problem
Remember that P(a ≤ X ≤ b) = P(a < X < b)
STEP 2
Sketch, or use your GDC to draw, the graph of y = f(x)
Look for basic shapes (rectangles, triangles and trapezoids) as finding these areas is easier without using integration
Look for symmetry in the graph that may make the problem easier
Break the area required into two or more parts if it makes the problem easier
Look for basic shapes (rectangles, triangles and trapezoids) as finding these areas is easier without using integration
Look for symmetry in the graph that may make the problem easier
Break the area required into two or more parts if it makes the problem easier
STEP 3
Find the area(s) required using basic shapes or integration and answer the question
- Trickier problems may involve finding a limit of the integral given its value
- i.e. Find one of the boundaries in the domain of X, given the probability
- e.g. Find the value of a given that P(0 ≤ X ≤ a) = 0.09
- i.e. Find one of the boundaries in the domain of X, given the probability
Worked Example
The continuous random variable, X, has probability density function.
a)
Show that f(x) can represent a probability density function.
![4-7-1-ib-hl-aa-only-we1a-soltn-](../../../../../../../../cdn-cgi/image/f%3Dauto%2Cwidth%3D1920/uploads/2022/05/4-7-1-ib-hl-aa-only-we1a-soltn-.png)
b)
Find, both geometrically and using integration, P(0 ≤ X ≤ 2).
![4-7-1-ib-hl-aa-only-we1b-soltn-](../../../../../../../../cdn-cgi/image/f%3Dauto%2Cwidth%3D1920/uploads/2022/05/4-7-1-ib-hl-aa-only-we1b-soltn-.png)
c)
Write down P(X = 3.2).
![4-7-1-ib-hl-aa-only-we1c-soltn-](../../../../../../../../cdn-cgi/image/f%3Dauto%2Cwidth%3D1920/uploads/2022/05/4-7-1-ib-hl-aa-only-we1c-soltn-.png)
Median & Mode of a CRV
What is meant by the median of a continuous random variable?
- The median, m, of a continuous random variable, X, with probability density function f(x) is defined as the value of X such that
- Since P(X = m) = 0 this can also be written as
- IF the p.d.f. is symmetrical (i.e. the graph of y = f(x) is symmetrical) then the median will be halfway between the lower and upper limits of x
- In such cases the graph of y = f(x) has axis of symmetry in the line x = m
How do I find the median of a continuous random variable?
- The median, m, of a continuous random variable, X, with probability density function f(x) is defined as the value of X such that
or
- The equation that should be used will depend on the information in the question
- If the graph of y = f(x) is symmetrical, symmetry may be used to deduce the median
- This may often be the case if f(x) is linear and the area under the graph is a basic shape such as a rectangle
How do I find the median of a continuous random variable with a piecewise p.d.f.?
- For piecewise functions, the location of the median will determine which equation to use in order to find it
- For example
- if
- then
so the median must lie in the interval 2 ≤ x ≤ 5
- so to find the median, m, solve
('0.4 of the area' already used for 0 ≤ x ≤ 2) - Use a GDC to plot the function and evalutae integral(s)
- if
- For example
What is meant by the mode of a continuous random variable?
- The mode of a continuous random variable, X, with probability density function f(x) is the value of x that produces the greatest value of f(x)
How do I find the mode of a continuous random variable?
- This will depend on the type of function f(x); the easiest way to find the mode is by considering the shape of the graph of y = f(x)
- If the graph is a curve with a maximum point, the mode can be found by differentiating and solving f’(x) = 0
- If there is more than one solution to f’(x) = 0 then further work may be needed in deducing the mode
- There could be more than one mode
- Look for valid values of x from the domain of the p.d.f.
- Use the second derivative (f’’(x)) to deduce the nature of each stationary point
- Check the values of f(x) at the lower and upper limits of x, one of these could be the maximum value f(x) reaches
- If there is more than one solution to f’(x) = 0 then further work may be needed in deducing the mode
- If the graph of y = f(x) is symmetrical, symmetry may be used to deduce the mode
- For a symmetrical p.d.f., median = mode = mean
Worked Example
The continuous random variable X has probability function f(x) defined as
a)
Find the median of X, giving your answer to three significant figures.
b)
Find the exact value of the mode of X.
Mean & Variance of a CRV
What are the mean and variance of a continuous random variable?
- E(X) is the expected value, or mean, of the continuous random variable X
- E(X) can also be denoted by μ
- Var(X) is the variance of the continuous random variable X
- Var(X) can also be denoted by σ2
- The standard deviation, σ, is the square root of the variance
How do I find the mean and variance of a continuous random variable?
- The mean is given by
-
- This is given in the formula booklet
- If the graph of y = f(x) has axis of symmetry, x = a, then E(X) = a
- The variance is given by
where ![space straight E left parenthesis X squared right parenthesis equals integral subscript negative infinity end subscript superscript infinity x squared f left parenthesis x right parenthesis space straight d x](data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Awrs%3D%22http%3A%2F%2Fwww.wiris.com%2Fxml%2Fmathml-extension%22%20height%3D%2248%22%20width%3D%22170%22%20wrs%3Abaseline%3D%2228%22%3E%3C!--MathML%3A%20%3Cmath%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1998%2FMath%2FMathML%22%3E%3Cmo%3E%26%23xA0%3B%3C%2Fmo%3E%3Cmi%20mathvariant%3D%22normal%22%3EE%3C%2Fmi%3E%3Cmo%3E(%3C%2Fmo%3E%3Cmsup%3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AgAPAAAAB9ABLAAAAAAAAACgAAACyAAAA%2FAAAAcQAAAIiAAEAAAAFAF4ABQAAAAAAAgCABAAAAAAABAAA3gAAAAAAAAAVAQIAAAAAAAAAAQASAAAAAAAAAAAAAgAOABIAAAAAAAAAAwAwACAAAAAAAAAABAASAFAAAAAAAAAABQAWAGIAAAAAAAAABgAJAHgAAAAAAAAACAAcAIEAAQAAAAAAAQASAAAAAQAAAAAAAgAOABIAAQAAAAAAAwAwACAAAQAAAAAABAASAFAAAQAAAAAABQAWAGIAAQAAAAAABgAJAHgAAQAAAAAACAAcAIEAAwABBAkAAQASAAAAAwABBAkAAgAOABIAAwABBAkAAwAwACAAAwABBAkABAASAFAAAwABBAkABQAWAGIAAwABBAkABgAJAHgAAwABBAkACAAcAIEATQBhAHQAaAAgAEYAbwBuAHQAUgBlAGcAdQBsAGEAcgBNAGEAdABoAHMAIABGAG8AcgAgAE0AbwByAGUAIABNAGEAdABoACAARgBvAG4AdABNAGEAdABoACAARgBvAG4AdABWAGUAcgBzAGkAbwBuACAAMQAuADBNYXRoX0ZvbnQATQBhAHQAaABzACAARgBvAHIAIABNAG8AcgBlAAADAAAAAAAAAfQA%2BgAAAAAAAAAAAAAAAAAAAAAAAAAAuQcRAACNhRgAsgAAABUUE7EAAT8%3D)format('truetype')%3Bfont-weight%3Anormal%3Bfont-style%3Anormal%3B%7D%40font-face%7Bfont-family%3A'round_brackets18549f92a457f2409'%3Bsrc%3Aurl(data%3Afont%2Ftruetype%3Bcharset%3Dutf-8%3Bbase64%2CAAEAAAAMAIAAAwBAT1MvMjwHLFQAAADMAAAATmNtYXDf7xCrAAABHAAAADxjdnQgBAkDLgAAAVgAAAASZ2x5ZmAOz2cAAAFsAAABJGhlYWQOKih8AAACkAAAADZoaGVhCvgVwgAAAsgAAAAkaG10eCA6AAIAAALsAAAADGxvY2EAAARLAAAC%2BAAAABBtYXhwBIgEWQAAAwgAAAAgbmFtZXHR30MAAAMoAAACOXBvc3QDogHPAAAFZAAA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A5gABAAAAAAAGAB8A%2FAABAAAAAAAIABwBGwADAAEECQABAD4AAAADAAEECQACAA4APgADAAEECQADAFwATAADAAEECQAEAD4AqAADAAEECQAFABYA5gADAAEECQAGAB8A%2FAADAAEECQAIABwBGwBSAG8AdQBuAGQAIABiAHIAYQBjAGsAZQB0AHMAIAB3AGkAdABoACAAYQBzAGMAZQBuAHQAIAAxADgANQA0AFIAZQBnAHUAbABhAHIATQBhAHQAaABzACAARgBvAHIAIABNAG8AcgBlACAAUgBvAHUAbgBkACAAYgByAGEAYwBrAGUAdABzACAAdwBpAHQAaAAgAGEAcwBjAGUAbgB0ACAAMQA4ADUANABSAG8AdQBuAGQAIABiAHIAYQBjAGsAZQB0AHMAIAB3AGkAdABoACAAYQBzAGMAZQBuAHQAIAAxADgANQA0AFYAZQByAHMAaQBvAG4AIAAyAC4AMFJvdW5kX2JyYWNrZXRzX3dpdGhfYXNjZW50XzE4NTQATQBhAHQAaABzACAARgBvAHIAIABNAG8AcgBlAAAAAAMAAAAAAAADnwHPAAAAAAAAAAAAAAAAAAAAAAAAAAC5B%2F8AAY2FAA%3D%3D)format('truetype')%3Bfont-weight%3Anormal%3Bfont-style%3Anormal%3B%7D%3C%2Fstyle%3E%3C%2Fdefs%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2218%22%20text-anchor%3D%22middle%22%20x%3D%229.5%22%20y%3D%2228%22%3EE%3C%2Ftext%3E%3Ctext%20font-family%3D%22round_brackets18549f92a457f2409%22%20font-size%3D%2218%22%20text-anchor%3D%22middle%22%20x%3D%2218.5%22%20y%3D%2228%22%3E(%3C%2Ftext%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2218%22%20font-style%3D%22italic%22%20text-anchor%3D%22middle%22%20x%3D%2227.5%22%20y%3D%2228%22%3EX%3C%2Ftext%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2213%22%20text-anchor%3D%22middle%22%20x%3D%2238.5%22%20y%3D%2223%22%3E2%3C%2Ftext%3E%3Ctext%20font-family%3D%22round_brackets18549f92a457f2409%22%20font-size%3D%2218%22%20text-anchor%3D%22middle%22%20x%3D%2244.5%22%20y%3D%2228%22%3E)%3C%2Ftext%3E%3Ctext%20font-family%3D%22math1e7a9d5a50614f7603c9fb5a2fe%22%20font-size%3D%2216%22%20text-anchor%3D%22middle%22%20x%3D%2256.5%22%20y%3D%2228%22%3E%3D%3C%2Ftext%3E%3Ctext%20font-family%3D%22math1e7a9d5a50614f7603c9fb5a2fe%22%20font-size%3D%2232%22%20text-anchor%3D%22middle%22%20x%3D%2273.5%22%20y%3D%2232%22%3E%26%23x222B%3B%3C%2Ftext%3E%3Ctext%20font-family%3D%22math1e7a9d5a50614f7603c9fb5a2fe%22%20font-size%3D%2212%22%20text-anchor%3D%22middle%22%20x%3D%2280.5%22%20y%3D%2246%22%3E%26%23x2212%3B%3C%2Ftext%3E%3Ctext%20font-family%3D%22math1e7a9d5a50614f7603c9fb5a2fe%22%20font-size%3D%2212%22%20text-anchor%3D%22middle%22%20x%3D%2291.5%22%20y%3D%2246%22%3E%26%23x221E%3B%3C%2Ftext%3E%3Ctext%20font-family%3D%22math1e7a9d5a50614f7603c9fb5a2fe%22%20font-size%3D%2212%22%20text-anchor%3D%22middle%22%20x%3D%2289.5%22%20y%3D%2212%22%3E%26%23x221E%3B%3C%2Ftext%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2218%22%20font-style%3D%22italic%22%20text-anchor%3D%22middle%22%20x%3D%22102.5%22%20y%3D%2228%22%3Ex%3C%2Ftext%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2213%22%20text-anchor%3D%22middle%22%20x%3D%22111.5%22%20y%3D%2223%22%3E2%3C%2Ftext%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2218%22%20font-style%3D%22italic%22%20text-anchor%3D%22middle%22%20x%3D%22118.5%22%20y%3D%2228%22%3Ef%3C%2Ftext%3E%3Ctext%20font-family%3D%22round_brackets18549f92a457f2409%22%20font-size%3D%2218%22%20text-anchor%3D%22middle%22%20x%3D%22127.5%22%20y%3D%2228%22%3E(%3C%2Ftext%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2218%22%20font-style%3D%22italic%22%20text-anchor%3D%22middle%22%20x%3D%22134.5%22%20y%3D%2228%22%3Ex%3C%2Ftext%3E%3Ctext%20font-family%3D%22round_brackets18549f92a457f2409%22%20font-size%3D%2218%22%20text-anchor%3D%22middle%22%20x%3D%22142.5%22%20y%3D%2228%22%3E)%3C%2Ftext%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2218%22%20text-anchor%3D%22middle%22%20x%3D%22154.5%22%20y%3D%2228%22%3Ed%3C%2Ftext%3E%3Ctext%20font-family%3D%22Times%20New%20Roman%22%20font-size%3D%2218%22%20font-style%3D%22italic%22%20text-anchor%3D%22middle%22%20x%3D%22163.5%22%20y%3D%2228%22%3Ex%3C%2Ftext%3E%3C%2Fsvg%3E)
-
- This is given in the formula booklet
- Another version of the variance is given in the formula booklet
-
- but the first version above is usually more practical for solving problems
- Be careful about confusing E(X2) and [E(X)]2
"mean of the squares"
"mean of the squares"
How do I find the mean and variance of a linear transformation of a continuous random variable?
- For the continuous random variable, X, with mean E(X) and variance Var(X) then
and
Exam Tip
- Using your GDC to draw the graph of y = f(x) can highlight any symmetrical properties which reduce the work involved in finding the mean and variance
Worked Example
A continuous random variable, X, is modelled by the probability distribution function, f(x), such that
a)
Find the mean of X.
b)
Find standard deviation of X.