Lecture 2
Lecture 2
= p(1-p)p By Independence
Binomial Random Variables
3p2(1 − p).
Binomial Random Variables
Consider now the general case in which we have n independent trials. Let X denote the
number of successes, then
P{X = i} = total of i successes.
Since this outcome will have a total of i successes and (n − i) failures, it follows from the
independence of the trials that its probability will be
pi(1 − p)n−i
Total number of outcomes with exactly i successes and (n − i) failures for n events is
n!/[i!(n − i)!]
Binomial Random Variables
The probabilities of three binomial random variables with respective parameters
n = 10, p = 0.5, n = 10, p = 0.3, and n = 10, p = 0.6 are
Binomial Random Variables
Three fair coins are flipped. If the outcomes are independent, determine the probability
that there are a total of i heads, for i = 0, 1, 2, 3.
Binomial Random Variables
Suppose that a particular trait (such as eye color or handedness) is determined by a single pair
of genes, and suppose that d represents a dominant gene and r a recessive gene. A person with
the pair of genes (d, d) is said to be pure dominant, one with the pair (r, r) is said to be pure
recessive, and one with the pair (d, r) is said to be hybrid. The pure dominant and the hybrid
are alike in appearance. Their offspring receives one gene from each parent, and this gene is
equally likely to be either of the parent’s two genes.
(a) What is the probability that the offspring of two hybrid parents has the opposite (recessive)
appearance?
(b) Suppose two hybrid parents have 4 offsprings. What is the probability 1 of the 4 offspring
has the recessive appearance?
(a) The offspring will have the recessive appearance if it receives a recessive gene from
each parent. By independence, the probability of this is (1/2)(1/2) = 1/4.
(b) Assuming the genes obtained by the different offspring are independent (which is the
common assumption in genetics), it follows from part (a) that the number of offspring having
the recessive appearance is a binomial random variable with parameters n = 4 and p = 1/4.
Therefore, if X is the number of offspring that have the recessive appearance, then
= 27/64
Binomial Random Variables
Suppose that X is a binomial random variable with parameters n and p, and suppose we want
to calculate the probability that X is less than or equal to some value j. In principle, we could
compute this as follows:
Binomial Random Variables
Expected Value and Variance of a Binomial Random Variable
A binomial (n, p) random variable X is equal to the number of successes in n independent
trials when each trial is a success with probability p.
Therefore, using the fact that the expectation of the sum of random variables is equal to the
sum of their expectations, we see that
E[X] = np
Also, since the variance of the sum of independent random variables is equal to the sum of
their variances, we have
Var(X) = np(1 − p)
Binomial Random Variables
A communications channel transmits the digits 0 and 1. Because of static, each digit transmitted
is independently incorrectly received with probability 0.1. Suppose an important single-digit
message is to be transmitted. To reduce the chance of error, the string of digits 0 0 0 0 0 is to be
transmitted if the message is 0 and the string 1 1 1 1 1 is to be transmitted if the message is 1. The
receiver of the message uses “majority rule” to decode; that is, she decodes the message as 0 if
there are at least 3 zeros in the message received and as 1 otherwise.
(a) For the message to be incorrectly decoded, how many of the 5 digits received would have to
be incorrect?
(b) What is the probability that the message is incorrectly decoded?
a) Three
b) Assume random variable is the transmission of incorrect signal with p of 0.1 and n =5
Now calculate the probability for X =3, X=4 and X=5 and then add them for the answer
10
Hypergeometeric Random Variables
Out of which Np are functional and the other N(1 − p) are defective.
That is, when the selections of the batteries are made without replacing
the previously chosen ones, the trials are not independent, so X is not a
binomial random variable.
Hypergeometeric Random Variables
By using the result that each of the n trials is a success with probability p, it can
be shown that the expected number of successes is np. That is,
E[X] = np
N - n np (1-p)
Var (X) =
N-1
A similar argument holds for the other selections, and thus we may conclude that
when N is large in relation to n, then the n trials are approximately independent,
which means that X is approximately a binomial random variable.
Examples:
1. The number of misprints on a page of a book
2. The number of people in a community who are at least 100 years old
3. The number of people entering a post-office on a given day
Poisson Random Variables
A Random Variable X that takes one of the values of 0, 1, 2,.. is said to
be a POSSION RANDOM VARIABLE with parameter l,
if for some positive value of l, its probabilities are given by
Thus, even in this case, where n is equal to 10 (which is not that large)
and p is equal to 0.1 (which is not that small), the Poisson approximation
to the binomial probability is quite accurate.
Poisson Random Variables
Suppose the average number of accidents occurring weekly on a particular highway is
equal to 1.2. Approximate the probability that there is at least one accident this week.
Let X denote the number of accidents. Because it is reasonable to suppose that there are
a large number of cars passing along the highway, each having a small probability of
being involved in an accident, the number of such accidents should be approximately a
Poisson random variable.
That is, if X denotes the number of accidents that will occur this week, then X is
approximately a Poisson random variable with mean value λ = 1.2. The desired
probability is now obtained as follows:
= 1 − e−1.2 = 0.6988