Professional Documents
Culture Documents
Discrete Probability Distribution2
Discrete Probability Distribution2
Discrete Probability Distribution2
Random variables
A random variable X is a quantity whose value cannot be predicted with certainty.
A random variable is a quantity that may take any of a given range of values that
cannot be predicted exactly but can be described in terms of their probability.
A random variable is a variable whose value is determined by the outcome of a
random procedure.
Discrete if the value is taken from a fixed number of numerical values generally
arise from experiments involving counting, for example, road deaths, car
production and aircraft sales.
Continuous if the values can fall anywhere over a range and the scale is only
restricted by the accuracy of measuring, for example, voltage, corrosion and oil
pressure.
Example
A fair coin is spun vertically on a flat surface. Here are two related random
variables:
• Let X be the number of heads showing when the coin comes to rest.
Then X takes
the value x=0 if the coin finishes up ‘tails’, or x=1 if the coin finishes up
‘heads’.
• Let Y be the time between the commencement of the spin and the coin
coming to
rest, measured in seconds.
We will use capital letter X as our placeholder for the random variable. While
small letter x as our placeholder for whatever value the random variable X might
have, as well as P(X=x) to denote probability that X has value x.
Example:
Let X be the sex of a student selected at random from the collection of all
possible students at a given university.
A probability distribution defines the relationship between the outcomes and their
likelihood of occurrence. To define a probability distribution we make a probability
model which is the set of assumptions used to assign probabilities to each
outcome in the sample space.
x 0 1
P(X=x) 0.53 0.47
Expectation
Example: When throwing a normal die, let X be the score shown on the die.
Construct a probability distribution of X. What is the expectation of X?
Example: When throwing a normal die, let X be the square of the score shown on
the die. Construct a probability distribution of X. What is the expectation of X?
Example: Let X=number of heads obtained when tossing a fair coin 3 times.
What are the possible values of X?
What are the associated probabilities?
Determine the mean value of X.
Variance of X
We have seen that the mean of a random variable X is a measure of the central
location of the distribution of X.
The second most important feature is the spread of the distribution.
These ideas lead to the most important measure of spread, the variance, and a
closely related measure, the standard deviation.
A small standard deviation (or variance) means that the distribution of the
random variable is narrowly concentrated around the mean.
A large standard deviation (or variance) means that the distribution is spread out,
with some chance of observing values at some distance from the mean.
In general, the variance is defined by
𝑉(𝑋) = 𝐸(𝑋 2 ) − [𝐸(𝑋)]2
𝑜𝑟
2
𝑉(𝑋) = 𝐸[(𝑋 − 𝐸(𝑋)) ]
Example: When throwing a normal die, let X be the score shown on the die. What is
the variance of X?
Example: Let X=number of heads obtained when tossing a fair coin 3 times.
Determine the variance of X.
DISCRETE PROBABILITY DISTRIBUTIONS
Since values of the PMF represent probabilities, PMFs enjoy certain properties.
In particular, all PMFs satisfy
Example: Roll a die and let X be the upward face showing. Find the E(X) and the V(X).
Example: A random experiment where this distribution occurs is the choice of an integer
at random between 1 and 100, inclusive. Let X be the number chosen. Find the E(X)
and the V(X).
Bernoulli and Binomial Distribution
If X counts the number of successes in the n independent trials, then the PMF of X is
𝒏
𝒇𝑿 (𝒙) = 𝑷(𝑿 = 𝒙) = ( ) 𝒑𝒙 (𝟏 − 𝒑)𝒏−𝒙 , 𝒙 = 𝟎, 𝟏, 𝟐, … 𝒏
𝒙
𝐸(𝑋) = 𝑛𝑝
𝑉(𝑋) = 𝑛𝑝𝑞
Example: Two percents of a product are defective. If a lot of 100 items are ordered what
is the probability that there are no defective items? What is the probability that there are
exactly two defective items?
Example: A basketball player takes 4 independent free throws with a probability of 0.7
of getting a basket on each shot. Let X the number of baskets he gets. Write out the full
probability distribution for X.
Example: A bag contains 6 red Bingo chips, 4 blue Bingo chips, and 7 white Bingo
chips. What is the probability of drawing a red Bingo chip at least 3 out of 5 times?
Example: A family consists of 3 children. What is the probability that at most 2 of the
children are boys?
Hypergeometric Distribution
(𝑴
𝒙
)(𝑵−𝑴
𝒏−𝒙
)
𝒇𝑿 (𝒙) = 𝑷(𝑿 = 𝒙) = , 𝒙 = 𝟎, 𝟏 , … , 𝒏
(𝑵
𝒏
)
𝐸(𝑋) = 𝑛𝑝
𝑁−𝑛
𝑉(𝑋) = ( ) 𝑛𝑝(1 − 𝑝)
𝑁−1
Example:
1. In the manufacture of car tyres, a particular production process is known to
yield 10 tyres with defective walls in every batch of 100 tyres produced. From
a production batch of 100 tyres, a sample of 4 is selected for testing to
destruction.
Find:
(a) the probability that the sample contains 1 defective tyre
(b) the expectation of the number of defectives in samples of size 4
(c) the variance of the number of defectives in samples of size 4.
2. An urn contains 4 red balls and 10 blue balls. Five balls are drawn at random
without replacement from this urn. What is the probability that exactly two red
balls are drawn?
2. You play a game of chance that you can either win or lose (there are no other
possibilities) until you lose. Your probability of losing is 0.57. What is the
probability that it takes five games until you lose? Find the expected number of
game you are going to play until you lose. Find also the variance.
Negative Binomial Distribution
The random variable of interest is X = the number of failures that precede the rth
success; X is called a negative binomial random variable because, in contrast
to the binomial rv, the number of successes is fixed and the number of trials is
random.
The pmf of the negative binomial rv X with parameters r = number of S’s and p =
P(S) is
𝒙+𝒓−𝟏 𝒓
𝒇𝑿 (𝒙) = 𝑷(𝑿 = 𝒙) = ( ) 𝒑 (𝟏 − 𝒑)𝒙 , 𝒙 = 𝟎, 𝟏, 𝟐, …
𝒓−𝟏
𝑟𝑞
𝐸(𝑋) =
𝑝
𝑟𝑞
𝑉(𝑋) = 2
𝑝
Example:
1. A pediatrician wishes to recruit 5 couples, each of whom is expecting their
first child, to participate in a new natural childbirth regimen. Let p = P(a
randomly selected couple agrees to participate).
If p = .2, what is the probability that 15 couples must be asked before 5 are
found who agree to participate? That is, with S = {agrees to participate}, what
is the probability that 10 F’s occur before the fifth S?
2. We flip a coin repeatedly and let X count the number of Tails until we get
seven Heads. What is P(X = 5)?
Poisson Distribution
• The Poisson distribution is used for modelling the occurrence of events
during a fixed time interval or the number of rare successes in a very large
number of trials, such as:
the number of misprints on a book page,
traffic accidents,
typing errors, or
customers arriving in a bank.
the number of telephone calls during a fixed time interval
• The following conditions must be fulfilled for the Poisson distribution to be
applicable:
1. The number of events in nonoverlapping time intervals must be
independent.
2. The probability of occurrence must be the same in all time
intervals of the same length.
3. The probability of more than one event occurring during a short
interval must be small relative to the occurrence of only one event.
4. The probability of an event occurring in a short interval must be
approximately proportional to the interval's length.
• Let 𝜆 be the average number of events in the time interval. Let the random
variable X count the number of events occurring in the interval and e =
2.71828 . . . is the base of the natural logarithm. Then the PMF of X is
given by
𝝀𝒙 𝒆−𝝀
𝒇𝑿 (𝒙) = 𝑷(𝑿 = 𝒙) = , 𝒙 = 𝟎, 𝟏, 𝟐, …
𝒙!
𝐸(𝑋) = 𝜆
𝑉(𝑋) = 𝜆
Example:
1. Suppose that in a certain area there are on average five traffic accidents per
month, that is X=number of traffic accidents. What is the probability that there
are 4 accidents in a given month?
2. On the average, five cars arrive at a particular car wash every hour. Let X
count the number of cars that arrive from 10AM to 11AM. What is the
probability that no car arrives during this period?
3. Suppose the car wash above is in operation from 8AM to 6PM. What is the
probability that 55 car arrives during this period?