Lecture-10: Random Variable and Probability Distribution: Prepared By: Mashfiqul Huq Chowdhury September 18, 2020
Lecture-10: Random Variable and Probability Distribution: Prepared By: Mashfiqul Huq Chowdhury September 18, 2020
Distribution
Prepared By: Mashfiqul Huq Chowdhury
September 18, 2020
Random Variable
• Discrete random variables have a finite number of possible values or an infinite number
of values that can be counted. Examples:
• Variables that can assume all values in the interval between any two given values are
called continuous variables. Continuous random variables are obtained from data that
can be measured rather than counted. Examples:
1
Probability Mass Function: Probability mass function can be defined as a function of a
discrete random variable (X), denoted by P (x), where P (X = xi ) = P (xi ); i = 1, 2, 3, · · · , · · · .
Probability mass function must satisfy the following properties.
• P (x) ≥ 0
n
P
• P (x) = 1
i=1
• f (x) ≥ 0
Rb
• f (x)dx = 1
a
Rn
• P (m < X < n) = f (x)dx
m
Formula
n
P
• Mean (Discrete random variable): µ = xP (x)
i=1
Rb
• Mean (Continuous random variable): µ = xf (x)dx
a
n Rb
• E(x2 ) = x2 P (x) or E(x2 ) = x2 f (x)dx
P
i=1 a
2
Exercise
2. Four fair coins are tossed. The number of heads are counted. Construct probability
distribution for number of heads.
3. The following table lists the probability distribution of the number of breakdowns per
week for a machine based on past data.
Breakdowns Per Week 0 1 2 3
Probability 0.15 0.20 ? 0.30
k
P (x) = , x = 1, 2, 3, 4.
x
where, k is a constant. Find the probability distribution for x and hence find the expected
value of X.
6. An unbiased coin is tossed until a head appears. Find the expected number of toss
required to get the first head. Answer: 2
7. A person pays $2 to play a certain game by rolling a single die once. If a 1 or a 2 comes
up, the person wins nothing. If, however, the player rolls a 3, 4, 5, or 6, he or she wins
the difference between the number rolled and $2. Find the expectation for this game. Is
the game fair? The expectation is to lose 31 of a dollar or 33 13 loss per game on
the average. So it is not fair, because the expectation is not 0.
8. Suppose that a random variable X follows the p.d.f f (x) = m(1 + x2 ); −1 ≤ x ≤ 1..
(a) Find the value of the constant m.
(b) Determine P (|X| < 0.4).