Lect04 2014 Discrete Rand Var Partii
Lect04 2014 Discrete Rand Var Partii
- x1 x2 x
-
x
-
x
x x’
Monotonic Increasing
Anan Phonphoem, Dept.of Computer Engineering, Kasetsart Universty 8
PX(x) FX (xi)
FX (xi - )
-
xi x
Discontinuity = PX(x)
Anan Phonphoem, Dept.of Computer Engineering, Kasetsart Universty 9
PX(x) FX (xi)
-
x
xi xi+1
Horizon line
Anan Phonphoem, Dept.of Computer Engineering, Kasetsart Universty 10
Theorem: For a discrete random variable X
with SX={x1,x2,…} & x1 x2 …
PK(k) = () 5
k
(0.2)k(0.8)5-k k = 0,1,2,…,5
0 Otherwise
0
0.5
0
.
0 1 2 3 4 5 0 1 2 3 4 5
k k
Note: FK(k) is continuous from right
3 July 2013 Anan Phonphoem, Dept.of Computer Engineering, Kasetsart Universty 13
b a,
FX(b) - FX(a) = P[a < X b]
Difference of the CDF is the probability that RV takes on the
value between two points
PX(x)
x
a b
3 July 2013 Anan Phonphoem, Dept.of Computer Engineering, Kasetsart Universty 14
• Study RV Average
• What is the average of an RV?
• A single number that describes the RV
• An example of statistic
• What is Statistic?
• Numbers that collect all information of things
under our interesting
• Averages: mean, mode, and median
Can you identify the Mean, Mode, and Median for each team?
• Mode:
• Most common value
• PX(xmod) PX(x) x
• Median:
• The middle of the data set
• P[X < xmed] = P[X > xmed]
X(x(1)) = x
x(3)
x(2) x(1)
1 NX
mn = n xSxNxx = xSxn x
NA NX
P[A] = lim PX(x) = lim
n→ n n→ n
limm n = xPX(x)
n→ xS x
E[X] = xPX(x)
xSX
• Example:
1/4 t=0
PT(t) = 3/4 t=2
0 Otherwise
• E[T] = ?
= 0(1/4) + 2(3/4) = 3/2
0.5
0 t
0 1 2
E[X]
3 July 2013 Anan Phonphoem, Dept.of Computer Engineering, Kasetsart Universty 24
1–p x=0
PX(x) = p x=1
0 Otherwise
E[X] = xPX(x)
xSX
Sx = {0,1}
E[X] = 0(1-p) + 1(p)
=p
E[X] = xPX(x)
xSX
= xp(1-p)x-1 = xpqx-1
x=1 x=1
= p
xqx-1
? 1
E[X] = p
x=1
E[X] = xPX(x) = x x -
e
x!
e
x=0 x=0
=
e- x-1
=
k
e-
(x-1)! k!
(x=0) 0 x=1 k=0
= e e- E[X] =
3 July 2013 Anan Phonphoem, Dept.of Computer Engineering, Kasetsart Universty 29
Uniform
1/(j-k+1) x = k,k+1,k+2,..,j
Equiprobable E[X] =(j+k)
outcomes 2
0 Otherwise
Geometric
p(1 – p)x-1 x = 1,2,3,…
E[X] = 1/p
# tests until fail 0 Otherwise
3 July 2013 Anan Phonphoem, Dept.of Computer Engineering, Kasetsart Universty 30
Binomial n
( ) p (1 – p)
x
x n-x x=1,2,…,n
E[X] = np
# fails in n tests 0 Otherwise
Pascal x-1
( ) p (1 – p) k x-k x = k,k+1,…
k-1
# tests until k E[X] = k/p
fails 0 Otherwise
Poisson (T)xe-(T) x = 0,1,2…
E[X] =
occurrence in a x! = T
period 0 Otherwise
PX(x) =
( ) p (1 – p)
x
x n-x x=0,1,2,…,n
0 Otherwise
0 Otherwise
n(n-1)…(n-x+1) x (1 – )n-x
= n
e-
nx x!
(1 – )n
n
lim (n-j) = 1
n→ n (1 – )x
n 1
xe- x = 0,1,2…
lim PX(x) = x!
n→
0 Otherwise
3 July 2013 Anan Phonphoem, Dept.of Computer Engineering, Kasetsart Universty 33
s1 s2 s3 X(s)
s4 s5 Y=g(X)
sn
SY
3 July 2013 Anan Phonphoem, Dept.of Computer Engineering, Kasetsart Universty 35
• From sample values of the random variable,
use these values to compute other quantities.
• Y = g(X)
• Example:
• Find a decibel value form signal-to-noise ratio
• Watt dB
Calculate 0.1W relative to 1 mW (milliwatt)
100 mW
GdB = 10 log10( ) = 20 dB 20 dBm
1 mW
¼ x = 1,2,3,4
PX(x) = 0 Otherwise
• SX = {1,2,3,4}
• SY = {10,19,27,34}
¼ X=2 Y=19
¼ X=3 Y=27
¼
X=4 Y=34
¼ y = 10,19,27,34
PY(y) = 0 Otherwise
0.1
0
0 2 4 6 8
x
3 July 2013 Anan Phonphoem, Dept.of Computer Engineering, Kasetsart Universty 42
X=1 Y=10
0.15
X=8
3 July 2013 Anan Phonphoem, Dept.of Computer Engineering, Kasetsart Universty 43
From Theorem
0.15 y = 10,19,27,34
PY(5) = 0.1 y = 40
PY(y) = PY(6)+PY(7)+PY(8) = 0.3 y = 50
0 Otherwise
0.4
PY(y)
E[Y] = 0.15(10+19+27+34)
0.2
+ 0.1(40) + 0.3(50)
0 = 32.5
10 19 27 34 40 50
y
3 July 2013 Anan Phonphoem, Dept.of Computer Engineering, Kasetsart Universty 44