Discrete Random Variables
Discrete Random Variables
Name of Teacher:
Elijah Nagar
Topic:
Discrete Random Variables
What is a discrete random variable?
• A random variable is a variable whose value depends on the
outcome of a random event.
Solution
Example: 2
Two unbiased spinners, one numbered 1, 3, 5, 7 and the other
numbered 1, 2, 3 are spun. The random variable X is the sum of
the two results. Find the probability distribution for X.
Solution:
Example 3
A bag contains 4 blue discs and 3 green discs. Two discs are removed without
replacement. The random variable X is the number of blue discs removed. Find
the probability distribution of X.
Solution
• Example: 4
Solution
Example: 5
Construct a probability distribution table and a vertical line graph for data below
Solution (Probability Distribution Table)
Solution (Vertical line graph)
Cumulative Probabilities (Discrete)
How do I calculate probabilities using a discrete probability distribution?
Example: 6
Solution:
Example: 7
• The probability distribution of a random variable Y is given by:
P(Y = y) = cy for y = 1, 2, 3, 4
• Find the value of c and tabulate the probability distribution.
Solution
Expectation (Mean of Discrete Random Variables)
The mean is given by 𝐸 𝑋 = σ 𝑥𝑖 𝑝𝑖
Example 8
•The probability distribution of a discrete random
variable X is shown in the table below
Solution
Example: 9
• What is the expectation of the score when a six-sided spinner is
spun once?
Solution
Variance
• The variance of a discrete random variable X, Var(X), is given by
Alternatively
Find the variance of the discrete random variable X given in Example 8.
Solution:
Example: 10
Two unbiased spinners, each numbered 1, 2, 3, 4 are
spun. The discrete random variable X is the sum of the
two results.
(i) Tabulate the probability distribution.
(ii) Calculate E(X) and Var(X).
Solution
Solution
Example: 11
Solution:
The Binomial Distribution
In this lesson we shall learn:
For example:
A coin is biased so that the probability of obtaining a head
when the coin is tossed is 0.7. find the probability that exactly
2 heads are obtained when the coin is tossed
a. 3 times
b. 6 times
c. 15 times
Note:
• X is defined as the number of successful outcomes in n trials.
• The distribution of X is written as 𝑿~𝑩(𝒏, 𝒑). It is read as X
follows a binomial distribution.
Example 1: Ella is playing a board game. She has to throw a six on the
die in order to start. The random variable X is the number of times
Ella throws the die until she throws a six. Explain why X does not
follow a binomial distribution.
Example 2: At the Sell-it-all supermarket 60% of customers pay by
credit card. Find the probability that in a randomly selected sample of
12 customers
I. exactly 7 pay by credit card,
II.at least 3 but fewer than 5 pay by credit card.
I. A box is chosen at random. Show that the probability that this box
contains exactly 6 milk chocolate eggs is 0.223 correct to 3 significant
figures.
II. The manager takes a random sample of 10 boxes of eggs from the
production line. Find the probability that at least two of these boxes
contain exactly 6 milk chocolate eggs.
Example 8: Lilia travels to work by bus or by car. The probability that she
travels by bus on any day is 0.7. If she travels by bus, there is a probability
of 0.1 that she is late for work. If she travels by car there is a probability
of 0.2 that she is late for work.
I. Find the probability that she is late for work on a particular day.
II.Find the expected number of days she is late for work in 20 working days.
III.Find the variance of the number of days she travels by car in 10 working
days.
Answers:
Example 8:
I. 0.13
II. 2.6
III. 2.1
Diagrammatic Representation of the Binomial Distribution
Example 9: The random variable X has distribution B(20, 0.25).
I. Find the mean and the standard deviation of X.
II.Find the percentage of the distribution that lies within one
standard deviation of the mean.
Answers:
I. 1.94(3 s.f)
II. 56.1%(3 s.f)
THE MODE OF THE BINOMIAL DISTRIBUTION
The mode is the value of X that is most likely to occur, i.e. the value with the
highest probability. In a vertical line diagram, the mode is the value represented
by the highest line. Consider the distributions shown in the diagrams above and
locate the mode. You will notice, however, that X~B(9, 0.5) has two modes, i.e. it
is bi-modal. In fact this is the case for any binomial distribution where n is odd
and p = 0.5.
In general,
• when n is odd and p = 0.5, the binomial distribution has two modes
• for all other values of n and p, the binomial distribution has one mode.
The mode can be found by calculating all the probabilities and finding the value
of X with the highest probability. This is however very tedious; it is usually only
necessary to consider the probabilities of values of X close to the mean of the
distribution.
Example 10: The probability that a student at a particular
college is awarded a distinction is 0.05. The number of
students awarded a distinction in a randomly chosen group of
50 students from the college is denoted by X.
Winifred wants carrots for her meal, and she starts opening the tins
one at a time, chosen randomly, until she opens a tin of carrots. The
random variable X is the 6number of tins that she needs to open.
Show that 𝑃 𝑋 = 3 =
33
c). Find the probability that she obtains exactly one head on fewer than 3
occasions.
d). Find the probability that Mariama obtains exactly one head for the first
time on the 7th or 8th time that he throws the 4 coins.
Solution
Q7
Solution