Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Statistics of Continuous Random Variables

Expected Value / Expectation


E(𝑋) = 𝑥𝑓(𝑥)d𝑥

Expected Value and the Mean


Since ∫ 𝑓(𝑥)d𝑥 = 1, the expected value of a random variable is equal to the mean of the random
variable.

∫ 𝑥𝑓(𝑥)d𝑥
E(𝑋) = 𝑥𝑓(𝑥)d𝑥 = ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯= 𝜇
∫ 𝑓(𝑥)d𝑥

Expected Value of a Function of a Random Variable


E[𝑔(𝑥)] = 𝑔(𝑥)𝑓(𝑥)d𝑥

Expected Value of Linear Combinations of Random Variables


E(𝑎𝑋 + 𝑏) = 𝑎E(𝑋) + 𝑏
E(𝑎𝑋 + 𝑏𝑌) = 𝑎E(𝑋) + 𝑏E(𝑌)

Example VCAA 2017 NHT Exam 2 Question 3b


A company supplies schools with whiteboard pens. The total length of time for which a whiteboard
pen can be used for writing before it stops working is called its use-time. There are two types of
whiteboard pens: Grade A and Grade B. The use-time of Grade B whiteboard pens is described by the
probability density function 𝑓 where 𝑥 is the use-time in hours
𝑥
⎯⎯⎯ (12 − 𝑥) 𝑒 ⎯⎯− 1 0 ≤ 𝑥 ≤ 12
𝑓(𝑥) = 576
0 otherwise

The expected use-time of a Grade B whiteboard pen is


𝑥 9𝑒 − 51
E(𝑋) = 𝑥𝑓(𝑥)d𝑥 = ⎯⎯⎯ (12 − 𝑥) 𝑒 ⎯⎯− 1 d𝑥 = ⎯⎯⎯⎯⎯⎯⎯⎯≈ 7.75 hours
576 2

Median
The value that separates the probability distribution exactly in half.
1
That is, Pr(𝑋 ≤ 𝑚) = ⎯⎯= Pr(𝑋 ≥ 𝑚)
2
1 1
𝑓(𝑥)d𝑥 = ⎯⎯, 𝑓(𝑥)d𝑥 = ⎯⎯, where 𝑚 is the median
2 2

Example VCAA 2014 Exam 1 Question 8a 1 ⎯⎯


A continuous random variable, 𝑋, has a probability density function given 𝑓(𝑥) = ⎯⎯
5
𝑒 𝑥≥0
by 𝑥. The median of 𝑋 is 𝑚. 0 𝑥<0
1 ⎯⎯ ⎯⎯ ⎯⎯ ⎯⎯ 1
⎯⎯𝑒 d𝑥 = −𝑒 = −𝑒 − (−𝑒 ) = −𝑒 + 1 = ⎯⎯
5 2

⎯⎯ 1
⇒𝑒 = ⎯⎯
2

𝑚 1
⇒ − ⎯⎯= log ⎯⎯
5 2

⇒ 𝑚 = 5 log (2)
Variance
The variance is the weighted average of the squared deviations from the mean.
var(𝑋) = 𝜎 = E[(𝑋 − 𝜇) ] = (𝑥 − 𝜇) 𝑓(𝑥)d𝑥

= (𝑥 − 2𝜇𝑥 + 𝜇 )𝑓(𝑥)d𝑥 = 𝑥 𝑓(𝑥)d𝑥 + −2𝜇𝑥𝑓(𝑥)d𝑥 + 𝜇 𝑓(𝑥)d𝑥

= 𝑥 𝑓(𝑥)d𝑥 − 2𝜇 −𝑥𝑓(𝑥)d𝑥 + 𝜇 𝑓(𝑥)d𝑥 = E(𝑋 ) − 2𝜇E(𝑋) + 𝜇

= E(𝑋 ) − 2𝜇 + 𝜇 = E(𝑋 ) − 𝜇 = E(𝑋 ) − [E(𝑋)] = 𝑥 𝑓(𝑥)d𝑥 − 𝜇

Variance of Linear Combinations of Random Variables


var(𝑎𝑋 + 𝑏) = 𝑎 var(𝑋), var(𝑎𝑋 + 𝑏𝑌) = 𝑎 var(𝑋) + 𝑏 var(𝑌)

Standard Deviation
The square root of the variance. ⎯⎯⎯⎯⎯⎯
sd(𝑋) = 𝜎 = var(𝑋)

Standard Deviation of Linear Combinations of Random Variables


sd(𝑎𝑋 + 𝑏) = 𝑎 sd(𝑋)
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
sd(𝑎𝑋 + 𝑏𝑌) = var(𝑎𝑋 + 𝑏𝑌) = 𝑎 var(𝑋) + 𝑏 var(𝑌)

Example VCAA 2017 NHT Exam 2 Question 3c


The use-time of Grade B whiteboard pens is described by the probability density function 𝑓 where

𝑥 is the use-time in hours 𝑓(𝑥) = ⎯⎯⎯(12 − 𝑥) 𝑒 − 1 0 ≤ 𝑥 ≤ 12


0 otherwise
The expected use-time of a Grade B whiteboard pen is 7.75 hours

𝑥
var(𝑋) = (𝑥 − 7.75) ⎯⎯⎯ (12 − 𝑥) 𝑒 ⎯⎯− 1 d𝑥 ≈ 5.3168
576
⎯⎯⎯⎯⎯⎯
The standard deviation of the use-time of a Grade B whiteboard pen is √5.3168 ≈ 2.31 hours

Interpreting Statistics
If the standard deviation is large, the data is spread out over a widely from the mean.
If the standard deviation is small, the data is clustered close to the mean.
Pr(𝜇 − 2𝜎 ≤ 𝑋 ≤ 𝜇 + 2𝜎) ≈ 0.95

Chebyshev's Theorem
1
At least 1 − ⎯⎯⎯of the distribution lies within 𝑘 standard deviations of the mean.
𝑘
1
1 − ⎯⎯⎯≤ Pr(𝜇 − 𝑘𝜎 ≤ 𝑋 ≤ 𝜇 + 𝑘𝜎) ≤ 1, 𝑘>1
𝑘

For 𝑘 = 2, 0.75 ≤ Pr(𝜇 − 2𝜎 ≤ 𝑋 ≤ 𝜇 + 2𝜎) ≤ 1

You might also like