Professional Documents
Culture Documents
ECS 315
Asst. Prof. Dr. Prapun Suksompong
prapun@siit.tu.ac.th
8 Discrete Random Variable
Office Hours:
BKD, 6th floor of Sirindhralai building
Tuesday 9:00-10:00
Wednesday 14:20-15:20
1 Thursday 9:00-10:00
Discrete Random Variable
X is a discrete random variable if it has a countable support.
Recall that countable sets include finites set and countably
infinite sets.
For X whose support is uncountable, there are two types:
Continuous random variable
Mixed random variable
2
Example: pdf and probabilities
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
= 8
0, otherwise
P X 2 ?
stem plot: 1/2
P X 1 ?
1/4
1/8
x
1 2 3 4
3
Example: pdf and probabilities
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
8
0, otherwise
1
P X 2 p X 2
stem plot: 1/2 4
1/4 P X 1 p X 2 p X 3 p X 4
1/8
x
1 1 1 1
1 2 3 4 4 8 8 2
4
Example: pdf and its interpretation
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
? 8
0, otherwise
5
Example: pdf and its interpretation
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
8
0, otherwise
probability “mass”
x
1 2 3 4
6
Example: pdf and its interpretation
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
8
0, otherwise
x
1 2 3 4
7
Example: Support of a RV
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
8
0, otherwise
8
Example: Support of a RV
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
8
0, otherwise
9
Example: Support of a RV
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
8
0, otherwise
10
Example: Support of a RV
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
8
0, otherwise
11
Example: Support of a RV
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
8
0, otherwise
13
Example: CDF
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
= 8
0, otherwise
cumulative distribution function (cdf)
14
Example: CDF
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
8
0, otherwise
cumulative distribution function (cdf)
x
1 2 3 4
x
15
Example: CDF
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
8
0, otherwise
cumulative distribution function (cdf)
x
1 2 3 4
x
1 2 3 4
x
17 1 2 3 4
Example: CDF
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
8
0, otherwise
cumulative distribution function (cdf)
x
1 2 3 4
Jump amount = 1/4
x
18 1 2 3 4
Example: CDF
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
8
0, otherwise
cumulative distribution function (cdf)
x
1 2 3 4
x
19 1 2 3 4
Example: CDF
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
8
0, otherwise
cumulative distribution function (cdf)
x
1 2 3 4
1
7/8
3/4
1/2
x
20 1 2 3 4
Example: CDF
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
8
0, otherwise
cumulative distribution function (cdf)
0, x 1,
1/ 2, 1 x 2,
FX x 3 / 4, 2 x 3,
7 / 8, 3 x 4,
1
7/8
3/4 1, x 4.
1/2
x
21 1 2 3 4
Example: CDF
1 , x 1,
Consider a random variable (RV) X. 2
1 , x 2,
probability mass function (pmf) p X x 4
1 , x 3, 4
8
0, otherwise
cumulative distribution function (cdf)
is non decreasing
x
1 2 3 4
1 lim 1
7/8 →
3/4
1/2
lim 0
→ is right-continuous
x
22 1 2 3 4