Uploaded by Max Parker

2 Mathematical Expectation

advertisement
Mathematical Expectation
Mathematical expectation of a particular random phenomenon basically means
the average value of the random phenomenon E(X) = ๐œ‡ = ๐‘ฅ . Mathematical
expectation, also known as the expected value, is the summation or integration
of a possible values from a random variable.
(I) Discrete Case: The mathematical expectation of a discrete random variable
X having values ๐‘ฅ1 , ๐‘ฅ2, … , ๐‘ฅn with respective probability ๐‘ƒ(๐‘ฅ1 ), P(๐‘ฅ2 ), … ,
P(๐‘ฅn ) such that ๐‘›๐‘–=1 p ๐‘ฅ๐‘– = 1 , then the expectation of X denoted by E(X)
is defined as
E(X) = ๐‘ฅ1 ๐‘ƒ(๐‘ฅ1 ) + ๐‘ฅ2 P(๐‘ฅ2 ) + … … + ๐‘ฅn P(๐‘ฅn )
E(X) = ๐‘›๐‘–=1 ๐‘ฅ๐‘– p ๐‘ฅ๐‘–
OR
The mathematical expectation of a discrete random variable X with probability
mass function pmf (probability mass function) p(x) is defined as E(X) =
๐‘›
๐‘–=1 ๐‘ฅ๐‘– p ๐‘ฅ๐‘–
1
Mathematical Expectation
(II) Continuous Case: The mathematical expectation of a continuous random
variable X having probability density function (pdf) f(x) is defined as
E(X) =
∞
๐‘ฅ๐‘“
−∞
๐‘ฅ ๐‘‘๐‘ฅ
2
Expected value of function of a random variable (r.v.)
Consider a random variable X with probability mass function
pmf p(x) / probability density function pdf f(x) and if g(x) is a
function of a random variable X then E g(x) is defined as
E g(x) = g(x)๐‘(๐‘ฅ)
; for Discrete Case
E g(x) =
∞
g(x)๐‘“
−∞
๐‘ฅ ๐‘‘๐‘ฅ
; for Continuous Case
3
Moments of a random variable
(I) Discrete Case: Let X be a discrete random variable then ๐‘›๐‘กโ„Ž moment of X
is defined as E(๐‘‹ ๐‘› ) = ๐‘ฅ ๐‘› p(x) ; n= 1,2,3 ……
If n=1 , E(X) = ๐‘ฅ๐‘(๐‘ฅ)
If n=2, E(๐‘‹ 2 ) = ๐‘ฅ 2 p(x)
Now, ๐‘›๐‘กโ„Ž central moment, E(X−๐œ‡)๐‘› = (๐‘‹ − ๐œ‡)๐‘› p(x)
If n=1, E(X-๐œ‡) = (๐‘ฅ − ๐œ‡)๐‘(๐‘ฅ) = ๐‘ฅ๐‘(๐‘ฅ) - ๐œ‡ ๐‘(๐‘ฅ) = E(X) - ๐œ‡ = ๐œ‡ - ๐œ‡ = 0
i.e., first central moment is always zero.
4
Moments of a random variable
๐‘›๐‘กโ„Ž central moment, E(X−๐œ‡)๐‘› = (๐‘‹ − ๐œ‡)๐‘› p(x)
If n = 2 then E(X−๐œ‡)2 = (๐‘‹ − ๐œ‡)2 p(x)
= (๐‘ฅ 2 − 2๐œ‡๐‘ฅ + ๐œ‡2 )p(x)
= ๐‘ฅ 2 ๐‘(๐‘ฅ) − 2๐œ‡ ๐‘ฅ๐‘(๐‘ฅ) + ๐œ‡2 ๐‘(๐‘ฅ)
= E(๐‘‹ 2 ) – 2๐œ‡E(X) + ๐œ‡2
= E(๐‘‹ 2 ) ) – 2๐œ‡๐œ‡ + ๐œ‡2
= E(๐‘‹ 2 ) - ๐œ‡2
= E(๐‘‹ 2 ) - ๐ธ(๐‘‹) 2 = Var(X)
i.e., second central moment of a random variable X is the variance
๐‘‰๐‘Ž๐‘Ÿ(๐‘‹)
5
Moments of a random variable
(I) Continuous Case: Let X be a continuous random variable then ๐‘›๐‘กโ„Ž moment of
X is defined as
๐‘›
E(๐‘‹ ) =
If n=1 ,
If n=2,
Now, ๐‘›
∞
E(X) = −∞ ๐‘ฅ๐‘“ ๐‘ฅ
∞ 2
2
E(๐‘‹ ) = −∞ ๐‘ฅ ๐‘“
๐‘กโ„Ž
∞ ๐‘›
๐‘ฅ ๐‘“
−∞
๐‘ฅ ๐‘‘๐‘ฅ
; n= 1,2,3 ……
๐‘‘๐‘ฅ
; is the first moment of r.v. X i.e., E(X) / ๐‘ฅ / ๐œ‡
๐‘ฅ ๐‘‘๐‘ฅ
; is the second moment of r.v. X
๐‘›
central moment of the r.v. X , E(X−๐œ‡) =
If n=1, E(X-๐œ‡) =
∞
(๐‘ฅ
−∞
− ๐œ‡)๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ =
∞
๐‘ฅ๐‘“
−∞
∞
(๐‘ฅ
−∞
๐‘ฅ ๐‘‘๐‘ฅ - ๐œ‡
− ๐œ‡)๐‘› ๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ
∞
๐‘“
−∞
= E(X) - ๐œ‡.1 = ๐œ‡ - ๐œ‡ = 0
i.e., first central moment of a r.v. X is always zero.
๐‘ฅ ๐‘‘๐‘ฅ
6
Moments of a random variable
๐‘›
๐‘กโ„Ž
๐‘›
central moment of the r.v. X , E(X−๐œ‡) =
∞
(๐‘ฅ
−∞
− ๐œ‡)๐‘› ๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ
If n = 2 then E (๐‘‹ − ๐œ‡)2
=
=
=
∞
2๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ
๐‘ฅ
−
๐œ‡
−∞
∞
2 − 2 × ๐œ‡ + ๐œ‡2 ๐‘“ ๐‘ฅ
๐‘ฅ
−∞
∞ 2
∞
๐‘ฅ ๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ - 2๐œ‡ −∞ ๐‘‹
−∞
๐‘‘๐‘ฅ
๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ + ๐œ‡
2
∞
๐‘“
−∞
๐‘ฅ ๐‘‘๐‘ฅ
= E[X2] - 2 ๐œ‡. ๐œ‡+ ๐œ‡2.1
= E[X2] - ๐œ‡2
= E[X2] – [E[X]]2
= E[X2] - ๐œ‡2 = ๐œŽ๐‘‹2 =Var(X)
∴ ๐œŽ๐‘‹ = ๐‘‰๐‘Ž๐‘Ÿ(๐‘‹) = Standard deviation of X (Spread around the mean)
7
Example1. If we toss two coins together then r.v., X = no. of heads. Find the variance of
tossing those coins.
Solution.
Sample Space = {TT, TH, HT, HH} ∴ ๐‘‹ = 0, 1, 2
1
2 1
1
P(X=0) = P(TT) = 4 ; P(X=1) = p(TH or HT) = 4 = 2 ; P(X=2) = P(HH) = 4
X
x1
0
x2
1
x3
2
P(xi)
xip(xi)
X2
๐‘ฅ๐‘–2p(xi)
1
4
1
2
1
4
0
0
0
1
2
1
2
1
1
2
1
4
xip(xi) = 1
๐‘ฅ๐‘–2 p(xi) = 1.5
We know, E(X) = ๐‘ฅ๐‘(๐‘ฅ) , E(๐‘‹ 2 ) = ๐‘ฅ 2 p(x)
๐œŽ๐‘‹2 = ๐ธ ๐‘‹2 − ๐ธ ๐‘‹ 2=1.5-1 = 0.5
8
Example2. The random variable X has probability density function given by
f (X) =
3
10
3๐‘‹ − ๐‘‹ 2
;0 ≤ ๐‘ฅ ≤ 2
0
; ๐‘œ๐‘กโ„Ž๐‘’๐‘Ÿ๐‘ค๐‘–๐‘ ๐‘’
Find the mean and variance of X.
Solution.
Mean = ๐œ‡ = ๐ธ ๐‘‹
=
=
=
=
=
∞
๐‘ฅ๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ
−∞
2
3
2
๐‘ฅ
3๐‘ฅ
−
๐‘ฅ
๐‘‘๐‘ฅ
0
10
2 9๐‘ฅ 2
3๐‘ฅ 3
− 10 ๐‘‘๐‘ฅ
0 10
2
9 ๐‘ฅ3
3 ๐‘ฅ4
(10 . 3 − 10 . 4 )
0
3 3
3 4 2
3 3
(10 ๐‘ฅ − 40 ๐‘ฅ ) = (10 2
0
−
3 4
2 )
40
−0=
24
(10
−
48
)
40
6
5
= =2.4 – 1.2 = 1.2
9
We know, Variance, ๐œŽ๐‘ฅ2 = Var(X) = E(๐‘‹ 2 ) - ๐ธ(๐‘‹)
E[X2]
=
=
=
∞ 2
๐‘ฅ ๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ
−∞
2 2 3
2
๐‘ฅ
3๐‘ฅ
−
๐‘ฅ
0
10
2 9๐‘ฅ 3
3๐‘ฅ 4
−
๐‘‘๐‘ฅ
0 10
10
2
9
3
= (
40
๐‘ฅ4
−
50
๐‘ฅ5)
0
๐‘‘๐‘ฅ
=(
9
40
2
24
−
3
50
25)
๐‘‰๐‘Ž๐‘Ÿ๐‘–๐‘Ž๐‘›๐‘๐‘’, ๐œŽ๐‘ฅ2 = Var(X) = E(๐‘‹ ) - ๐ธ(๐‘‹)
= 1.68 – (1.2)2
=
=
2
42
25
6
25
-
–0=
42
25
= 1.68
2
6
5
= 0.24
10
Download