Professional Documents
Culture Documents
Discrete Random Variables: 1st Semester 2022
Discrete Random Variables: 1st Semester 2022
Chapter 4
DISCRETE RANDOM VARIABLES
1. Random Variables
2. Discrete Random Variables
3. Expected Value
4. Expectation of a Function of a Random Variable
5. Variance and Standard Deviation
6. Moments and the Moment Generating Function
7. The Mode
8. Z ~ Score and Chebychev’s Theorem
1st Semester 2022
Probability
1. Random Variables
• In many scenarios, we are interested in a function of the outcome as
opposed to the actual outcome; e.g. we are interested in the sum of
two dice and not in the separate values of each die or, when we flip a
coin, we want to know the number of tails.
• A random variable is a function mapping the sample space to the real
numbers.
1. Random Variables
Example 4.1: Suppose that our experiment consists of rolling a fair die
𝑆 = {1, 2, 3, 4, 5, 6}
1. Random Variables
Example 4.2: Suppose that our experiment consists of tossing 2 fair
coins.
𝑆 = {𝐻𝐻, 𝐻𝑇, 𝑇𝐻, 𝑇𝑇}
1. Random Variables
Example 4.3: Suppose that our experiment consists of tossing 3 fair
coins. If we let 𝑌 denote the number of tails that appear, then 𝑌 is a
random variable taking on one of the values 0, 1, 2, and 3
𝑃(𝑌 = 0) =
𝑃(𝑌 = 1) =
𝑃(𝑌 = 2) =
𝑃(𝑌 = 3) =
1. Random Variables
Example 4.4: A supervisor in a manufacturing plant has three men and
three women working for him. He wants to choose two workers for a
special job. Not wishing to show any biases in his selection, he decides
to select the two workers at random. Let 𝑌 denote the number of
women in his selection. Then then 𝑌 is a random variable taking on one
of the values 0, 1, 2.
𝑃(𝑌 = 0) =
𝑃(𝑌 = 1) =
𝑃(𝑌 = 2) =
1. Random Variables
Example 4.5: Assume you have trials consisting of sitting an exam. You
have probability 𝑝 of passing the exam. If you fail, you sit the exam
again. These trials are considered independent as you never bother
revising the material. We denote 𝑋 the number of exams you need to
sit before passing the subject.
Then X is a random variable taking on one of the values 1, 2, 3, … , 𝑛
𝑃(𝑋 = 1) =
𝑃(𝑋 = 2) =
𝑃(𝑋 = 3) =
…
𝑃(𝑋 = 𝑛) =
1st Semester 2022
Probability
1. Random Variables
Example 4.6: The pockets of the roulette wheel are numbered from 1
to 36. In number ranges from 1 to 10 and 19 to 28, odd numbers are
red and even are black. In ranges from 11 to 18 and 29 to 36, odd
numbers are black and even are red. There is two green pockets
numbered 0 and 00.
• Red/Black: If you bet 1$ on red, the payout is 1$ if it is red. Let
𝑋1 denotes the payout. 𝑋1?
• Straight up: you bet 1$ on any pocket 0,00,1,2, … , 36. The payout is
35$ if you are right. Let 𝑋2 denotes the payout. 𝑋2 ?
1. Random Variables
Example 4.6 (cont)
• Split bet: you bet 1$ on 11 or 14. The payout is 17$ if you are right.
Let X3 denotes the payout. 𝑋3?
• Street bet: you 1$ on 1, 2, 3 or 4, 5, 6 or... or 19, 20, 21. Say you bet
on 19, 20, 21. The payout is 11$ if you are right. Let 𝑋4 denotes the
payout. 𝑋4 ?
𝐹 𝑎 =𝑃 𝑋≤𝑎 = 𝑝(𝑥)
𝑥:𝑥≤𝑎
• lim 𝐹 𝑏 = 1
𝑏→∞
• lim 𝐹 𝑏 = 0
𝑏→−∞
• 𝐹 is right continuous. That is, for any 𝑏 and any decreasing sequence
bn, n ≥ 1, that converges to 𝑏, lim 𝐹 𝑏𝑛 = 𝐹(𝑏)
𝑛→∞
Year of death 1 2 3 4 5
𝑝(𝑥) 0.53 0.25 0.12 0.07 0.03
3. Expected Value
• If 𝑋 is a discrete random variable having a probability mass function
𝑝(𝑥), then the expectation, or the expected value, of 𝑋, denoted by
𝐸 𝑋 , is defined by
∞
𝐸 𝑋 = 𝑥𝑖 𝑝 𝑥𝑖 = 𝑥𝑝(𝑥)
𝑖=1 𝑥:𝑝 𝑥 >0
3. Expected Value
Example 4.12: Find 𝐸[𝑋], where 𝑋 is the outcome when we roll a fair
die.
3. Expected Value
Example 4.13: The pockets of the roulette wheel are numbered from 1
to 36. In number ranges from 1 to 10 and 19 to 28, odd numbers are
red and even are black. In ranges from 11 to 18 and 29 to 36, odd
numbers are black and even are red. There is two green pockets
numbered 0 and 00.
• Red/Black: If you bet 1$ on red, the payout is 1$ if it is red. Let
𝑋1 denotes the payout.
• Straight up: you bet 1$ on any pocket 0,00,1,2, … , 36. The payout is
35$ if you are right. Let 𝑋2 denotes the payout.
• Split bet: you bet 1$ on 11 or 14. The payout is 17$ if you are right.
Let X3 denotes the payout.
• Street bet: you 1$ on 1, 2, 3 or 4, 5, 6 or... or 19, 20, 21. Say you bet on
19, 20, 21. The payout is 11$ if you are right. Let 𝑋4 denotes the
payout.
Find 𝐸(𝑋1); 𝐸(𝑋2); 𝐸(𝑋3); 𝐸(𝑋4)
1st Semester 2022
Probability
𝐸𝑔 𝑋 = 𝑖𝑔 𝑥𝑖 𝑝 𝑥𝑖
𝐸(𝑎𝑋 + 𝑏) = 𝑎𝐸 𝑋 + 𝑏
𝑆𝐷 𝑋 = 𝜎𝑋 = 𝑉𝑎𝑟(𝑋)
Find 𝑉𝑎𝑟(𝑋)
• We also have
𝑉𝑎𝑟(𝑋) = 𝐸(𝑋2) – [𝐸(𝑋)]2
𝑉𝑎𝑟(𝑎𝑋 + 𝑏) = 𝑎2𝑉𝑎𝑟(𝑋)
𝐸 Xn = 𝑥 𝑛 𝑝(𝑥)
𝑥:𝑝 𝑥 >0
𝑀𝑋 𝑡 = 𝐸 𝑒 𝑡𝑋 = 𝑒 𝑡𝑥 𝑝(𝑥)
Find 𝑀𝑋 𝑡 .
7. The Mode
• The mode of a probability function is the value of 𝑥 which has the
highest probability 𝑝(𝑥).
Find 𝑚𝑜𝑑𝑒(𝑋)
Chapter 4 - Exercises
Exercise 4.1: Let X be the random variable for the number of heads
obtained when three fair coins are tossed. What is the probability
function for X?
Chapter 4 - Exercises
Exercise 4.2: Ten cards are face down in a row on a table. Exactly one of
them is an ace. You turn the cards over one at a time, moving from left
to right. Let X be the random variable for the number of cards turned
before the ace is turned over. What is the probability function for X?
Chapter 4 - Exercises
Exercise 4.3: A fair die is rolled repeatedly. Let X be the random variable
for the number of times the die is rolled before a six appears. What are
the probability function and the cumulative distribution function for X?
Chapter 4 – Exercises
Exercise 4.4: Let X be the random variable for the sum obtained by
rolling two fair dice. What are the probability function and the
cumulative distribution function for X?
Chapter 4 – Exercises
Exercise 4.5: Let be a discrete random variable with probability function
2
𝑃 𝑋 = 𝑥 = 𝑥 for x = 1, 2, 3… What is the probability that x is even?
3
Chapter 4 – Exercises
Exercise 4.6: In modeling the number of claims filed by an individual
under an automobile policy during a three-year period, an actuary
1
makes the simplifying assumption that for all integers 𝑝𝑛+1 = 𝑝𝑛 ,
5
where 𝑝𝑛 represents the probability that the policyholder files n claims
during the period. Under this assumption, what is the probability that a
policyholder files more than one claim during the period?