L05 Final
L05 Final
L05 Final
Discrete Random
Variables 3
96
Section 3.1 The Notion of a Random Variable 97
S
X(z) x
real
z
x line
SX
FIGURE 3.1
A random variable assigns a number X1z2 to each outcome z in the
sample space S of a random experiment.
X1z2: 3 2 2 2 1 1 1 0
X1z2: 3 2 2 2 1 1 1 0
Y1z2: 8 1 1 1 0 0 0 0
• We can have several random variables defined on the same sample space
4
PMF calculation
• Two rolls of a tetrahedral die • Let every possible outcome have probability 1/ 16
x = 1, w .p . p
f. (<» :> 1 - f 1-1' p
0, w .p . 1 - p '1',,(1):: p H
I
6
Discrete uniform random variable; parameters a, b
Px (x ) px(x)
1 ............ , 1 ............ .
b a+ 1
• • • • • •
x
-
b
7
a x
Binomial random variable; parameters: positive integer n; p E [0 , 1]
p 1-11-11-1
x Px(2)=f(X=2)
1- P HI-IT =.f (HI·/T)+l(HTH)I-£(TlI]1)
P 1m, 3
P 1- P
1- P H1T 2
P UlH ____
1- P
1- P HIT
1
P ITH
o
1- P TIT
8
n 3 n 10 n 100
•, ..
••
•, •,
•• p -- 0.5 , p -- 0.5 p 0.5
, "
",
, •,
• ••
•• , , ."
. .
•, , • ,
",
,
"
,
"
, • • , ,
, • • " ,
••
. •,
.
.
p - 0.2
.., p -- 0.2 "
"
p - 0. 1
•
,
" •,
" ••
·,c-c.", -;.-,.",, -j,-""-',c-,,,,-;,c-,,",, -j, .~
• , , ! • •
, , ,
9
Geometric random variable; parameter p: 0 <p < 1
p p = 1/ 3
P( no Heads ever)
; r·- p)f 1
~TI'" ..) k
(._1"1 I'
"x ::.09 ·f
J):~oo
o 123456789 k
10
Expectation/mean of a random variable
• "Average" gain:
I'~OO. 7.<;00 ~ '1.~oo.
1000
-I.~ .. Q , y. ~
- 0
I
~.-+
to I '1
Ie:>
1, w.p_ p
X=
0, w.p. 1 - p
12
Expectation of a uniform r.v .
• Uniform on O, l , ... , n
px (x )
1
n +1
• • • • ••
• Definition: E[X] = L XPX ( x )
x
0 1 n x
, , ,
E[X] = 0--+1--
' -
........ , ""+1
,
:0 --_
(!)+ 1+ •• _ +"") :: _'_.• "" (""+d =
"" + ,
2
13
Expectation as a population average
• n students
• Weight of i th student: xi
E[X] = I
-
, "'l.
14
Elementary properties of expectations
• If c is a co ns t a nt , E[c) = c
•
15
The expected value rule. for calculating E [g(X) ] x y
::~ ~ 1, f,,(2:) -:: :2., Z fx(~) • Ca ution: In general, E[g (X) ] ~ g(E[X])
"1 'I;~,("'l=1 7 ,;t:~~)"i' I
£ [)<"2] -=F @[><1).t.
'" LY fyC r) =f[If]
")'
16
Linearity of expectation: E[aX + bl = aE[XI +b
")( =5o.Qa:?1 r:[}(] Qve~Q"1? 5Ct.eo.'y
0
= L (Q.9:~ 1,) y" (-:1:) ; a. 2>: 1'1< ('J;) +- h 2' PI< (t)
". ?< ?-.-... ./
:1..
• e."lee Q p+io",Oo ~
17
MIT OpenCourseWare
https://ocw.mit.edu
The following may not correspond to a particular course on MIT OpenCourseWare, but has been provided by the author as an individual learning resource.
For information about citing these materials or our Terms of Use, visit: https://ocw.mit.edu/terms.