S2 Continuous Random Variables Pupil Notes

5x2
– 2x + 1, find
𝑑𝑦
.
𝑑π‘₯
1.
If y =
2.
Find the turning point of the function given in question 1.
3.
Solve 3x2 – 8x + 1 = 0 giving your answers to 2 decimal places.
4.
Calculate
2
βˆ’1
π‘₯ 2 βˆ’ 2π‘₯ + 5 𝑑π‘₯
Suppose the heights of a very large number of 17 year olds was
surveyed
The total area under the graph is 1 and particular areas represent
probabilities
Suppose the class widths were refined to 0.1m
Assuming that enough data was collected the class widths
could be further reduced until the β€˜relative frequency
polygon’ approximates to a curve. When the function β€˜f(x)’
is found for the curve, it is called the probability density
function, or pdf
To be a probability density function (pdf), f(x) must satisfy these
basic properties:
οƒ˜ f(x) β‰₯ 0 for all x, so that no probabilities are negative
οƒ˜
∞
𝑓
βˆ’βˆž
π‘₯ 𝑑π‘₯ = 1 ; often f(x) is only defined over a small
range, in which case the integral over that range will be 1.
You can find the probability that a
random variable lies between
x = a and x = b from the area
under the curve represented by
f(x) between these two points.
Example 1
(a)
Show that f(x) is a probability density function where
1
𝑓 π‘₯ = 2 π‘₯ βˆ’ 3 π‘“π‘œπ‘Ÿ 3 ≀ π‘₯ ≀ 5
0
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
(b)
Find P(X < 4)
If f(x) is a pdf, then
𝑷 𝒂<𝑿<𝒃 =
Example 2
𝑓 π‘₯ =
π‘₯
2βˆ’π‘₯
0
π‘“π‘œπ‘Ÿ 0 ≀ π‘₯ ≀ 1
π‘“π‘œπ‘Ÿ 1 ≀ π‘₯ ≀ 2 gives a pdf.
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
Draw the pdf and find P(0.5 < x < 1.3)
𝒃
𝒇
𝒂
𝒙 𝒅𝒙
Example 3
2
π‘˜
9
βˆ’
π‘₯
π‘“π‘œπ‘Ÿ βˆ’ 3 ≀ π‘₯ ≀ 3
𝑓 π‘₯ =
0
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
(a)
Find the value of k and calculate P(-1 < X < 2)
(b)
Find P(X = 2)
In S1, the cumulative distribution
function (cdf) F(x0) was defined as
P(X ≀ x0) for discrete random variables.
For continuous random variables, you
can find the cdf by integrating the pdf.
Similarly, you can find the pdf from the
cdf by differentiating.
Probability Density
Function (pdf)
f(x)
Cumulative Distribution
Function (cdf)
F(x)
Example 4
𝑓 π‘₯ =
1
2
π‘₯βˆ’ 3
π‘“π‘œπ‘Ÿ 3 ≀ π‘₯ ≀ 5
0
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
is a pdf.
Find the cumulative distribution function.
𝐹 π‘₯ =
0
π‘₯<3
x 2 3x 9
ο€­ 
3ο‚£ x ο‚£5
4 2 4
1
π‘₯>5
Example 5
𝐼𝑓 𝐹 π‘₯ =
0
1 2
π‘₯
9
1
π‘₯≀0
0 ≀π‘₯ ≀3
π‘₯>3
find f(x)
The mean or expected value of a discrete probability distribution is
defined as:
ΞΌ = E(X) = Ξ£px
For a continuous random variable:
𝝁=𝑬 𝑿 =
∞
𝒙𝒇
βˆ’βˆž
𝒙 𝒅𝒙
where in practice, the limits will be the interval over which f(x) is
defined.
Example 6
𝑓 π‘₯ =
Find E(X)
1
2
0
π‘₯βˆ’ 3
3≀π‘₯ ≀5
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
For a discrete random variable, variance, Var(X) = Οƒ2 = E(X2) – ΞΌ2
For a continuous random variable,𝑬 π‘ΏπŸ =
Example 7
Find the standard deviation for
𝑓 π‘₯ =
1
2
0
π‘₯βˆ’ 3
3≀π‘₯ ≀5
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
∞ 𝟐
𝒙 𝒇
βˆ’βˆž
𝒙 𝒅𝒙
*
Example 8
The continuous random variable, X, has probability density function
π‘˜π‘₯ 0 ≀ π‘₯ ≀ 5
𝑓 π‘₯ =
0
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
(a)
Find the value of k
(b)
Find the mean and variance of X.
(c)
Calculate
i
P(X > ΞΌ)
ii
P(X > ΞΌ + Οƒ)
Example 9
The continuous random variable Y has probability density function
𝑦
π‘“π‘œπ‘Ÿ 0 ≀ 𝑦 ≀ 1
𝑓 𝑦 = 2 βˆ’ 𝑦 π‘“π‘œπ‘Ÿ 1 ≀ 𝑦 ≀ 2
0
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
Find the mean and variance of Y.
Example 10
The continuous random variable X has probability density function
𝑓 π‘₯ =
(a)
(b)
1
36
9 βˆ’ π‘₯2
βˆ’3≀π‘₯ ≀3
0
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
Find the mean and variance of X.
Calculate
i
P(X > 2)
ii
P(|X| > Οƒ)
Example 11
The weekly petrol consumption, in hundreds of litres, of a sales
representative may be modelled by the random variable X with
probability density function
2 (𝑏 βˆ’ π‘₯)
π‘Žπ‘₯
0≀π‘₯ ≀2
𝑓 π‘₯ =
0
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
(a)
Find the values of a and b if the mean consumption is 144 litres.
(b)
Find the standard deviation of the weekly petrol consumption.
The mode of a continuous random variable is the value of x for
which f(x) is a maximum over the interval in which f(x) exists.
This is either a stationary point, at which f ’(x) = 0, or the end value
of the interval over which f(x) is defined.
There may not be a mode if no single value occurs more often that
any other. (Bimodal distributions do occur commonly in real life).
Example 12
𝑓 π‘₯ =
1
36
0
9 βˆ’ π‘₯2
βˆ’3≀π‘₯ ≀3
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
Find the mode.
Example 13
𝑓 π‘₯ =
1
2
0
π‘₯βˆ’ 3
3≀π‘₯ ≀5
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
Find the mode
You can use the cumulative distribution function to find the median
and quartiles for a continuous random variable:
If m is the median, then F(m) = 0.5
If Q1 is the lower quartile then F(Q1) = 0.25
If Q3 is the upper quartile then F(Q3) = 0.75
You can set up an appropriate algebraic equation and solve it to find
the required quartile, decile or percentile.
Example 14
𝑓 π‘₯ =
Find
1
2
0
(a)
(b)
π‘₯βˆ’ 3
3≀π‘₯ ≀5
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
the median
the lower and upper quartiles for X.