Lecture 10
Lecture 10
ASSESSMENT CRITERIA'S
QUIZ
MID TERM EXAMINATION –I & II
END TERM EXAMINATION
PROGRAM
OUTCOMES
MAPPING WITH
CO1
E( X ) x p(x )
all x
i i
Continuous case:
E( X )
all x
xi p(xi )dx
EMPIRICAL MEAN IS A SPECIAL CASE OF
EXPECTED VALUE…
x i n
i 1 1
X xi ( )
n i 1 n
x 10 11 12 13 14
P(x) .4 .2 .2 .1 .1
p(x)
x
1
1
x2 1
1 1
E ( X ) x(1)dx
0
2 0
2
0
2
**A FEW NOTES ABOUT EXPECTED VALUE AS A MATHEMATICAL
OPERATOR:
If c= a constant number (i.e., not a variable) and X and Y are any random variables…
E(c) = c
E(cX)=cE(X)
E(c + X)=c + E(X)
E(X+Y)= E(X) + E(Y)
VARIANCE/STANDARD DEVIATION
Var ( x) E[( x ) ]
2 2
(x )
all x
i
2
p(xi )
“The average (expected) squared distance (or deviation) from the mean”
**We square because squaring has better properties than absolute value. Take square root
to get back linear average distance from the mean (=”standard deviation”).
VARIANCE, FORMALLY
Discrete case:
Var ( X ) 2
(x )
all x
i
2
p(xi )
Continuous case:
Var ( X ) ( xi ) p( xi )dx
2 2
SIMILARITY TO EMPIRICAL VARIANCE
( xi x ) 2 N
i 1 1
( xi x ) (2
)
n 1 i 1 n 1
Var(c) = 0
x 10 11 12 13 14
P(x) .4 .2 .2 .1 .1
ANSWER: VARIANCE AND STD DEV
5
E(x 2 )
i 1
xi p( x i ) (100)(.4) (121)(.2) 144(.2) 169(.1) 196(.1) 129.5
2
You toss a coin 100 times. What’s the expected number of heads? What’s the variance of the
number of heads?
ANSWER: EXPECTED VALUE
Intuitively, we’d probably all agree that we expect around 50 heads, right?
E(X1 +X2 +X3 +X4 +X5 …..+X100) = E(X1) + E(X2) + E(X3)+ E(X4)+ E(X5) …..+ E(X100) =
100 E(X1) = 50
ANSWER: VARIANCE
What’s the variability, though? More tricky. But, again, we could do this for 1 coin and then use
our rules of variance.
E(X2) = 1(.5) + 0 = .5
Var(X) = .5 - .52 = .5 - .25 = .25
Then, using our rule: Var(X+Y)= Var(X) + Var(Y) (coin tosses are independent!)
Var(X1 +X2 +X3 +X4 +X5 …..+X100) = Var(X1) + Var(X2) + Var(X3)+ Var(X4)+ Var(X5) …..+ Var(X100) =