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