Docsity

Relationship between Bernoulli and Binomial Distributions: Problems and Solutions - Prof. , Assignments of Probability and Statistics

Toggle sidebar
bg1
Stat 225 – Discrete RV Practice Problems Solutions 03/09/09
1. (a) Describe, in words, the relationship between the Bernoulli and Binomial dis-
tributions. [Hint: Recall the definition of Bernoulli trials.]
Underlying the Binomial distribution is a sequence of nBernoulli trials, each
with a corresponding Bernoulli random variable. That is, a Bin(n, p) random
variable is just how many of the nunderlying Ber(p) random variables are
equal to 1. Note that Bin(1, p) = Ber(p).
(b) Let Y∼Bin(n, p) and Xi∼Ber(p) (i= 1, . . . , n). Then the relationship
between Bernoulli and Binomial can be stated mathematically as follows:
Yand X1+X2+· · · +Xnhave the same distribution. (1)
Verify this claim for n= 2 by finding the PMF of X1+X2directly.
Let X1and X2be independent Ber(p) random variables, and consider Y=
X1+X2. Then the possible values that Ycan take on are {0,1,2}. Use
independence to find each of the probabilities directly:
pY(0) = P(both X1and X2are zero) = 1
2·1
2=1
4
pY(1) = P(either X1or X2is zero) = 2
11
2·1
2=1
2
pY(2) = P(neither X1nor X2are zero) = 1
2·1
2=1
4
It is easy to check that Yhas the same PMF as a Bin(n= 2, p =1
2) random
variable; therefore, Y∼Bin(n= 2, p =1
2).
(c) Prove that if Y∼Bin(n, p), then E(Y) = np. [Hint: Use (1) and the fact that
expected value is linear.]
Expected value is linear: E(Y) = E(X1) + · · · +E(Xn) = np.
2. A barber shop averages 6.5 customers per hour between noon and 5 p.m. Let X
represent the number of customers arriving between 2 and 3:30 p.m.
(a) What is the distribution of Xand its parameter(s)?
X∼Poi(λ= 6.5).
(b) Find the probability of exactly six customers between 2 and 3:30 p.m.
The interval 2:00 to 3:30 is 1.5 hours so the expected number of arrivals in
this interval would be λ0= 6.5·1.5 = 9.75. Then use Z∼Poi(λ0= 9.75) to
compute the probability:
P(Z= 6) = pZ(6) = e−9.75 9.756
6! = 0.069.
1
pf3

Partial preview of the text

Download Relationship between Bernoulli and Binomial Distributions: Problems and Solutions - Prof. and more Assignments Probability and Statistics in PDF only on Docsity!

Stat 225 – Discrete RV Practice Problems Solutions 03/09/

  1. (a) Describe, in words, the relationship between the Bernoulli and Binomial dis- tributions. [Hint: Recall the definition of Bernoulli trials.] Underlying the Binomial distribution is a sequence of n Bernoulli trials, each with a corresponding Bernoulli random variable. That is, a Bin(n, p) random variable is just how many of the n underlying Ber(p) random variables are equal to 1. Note that Bin(1, p) = Ber(p). (b) Let Y ∼ Bin(n, p) and Xi ∼ Ber(p) (i = 1,... , n). Then the relationship between Bernoulli and Binomial can be stated mathematically as follows:

Y and X 1 + X 2 + · · · + Xn have the same distribution. (1)

Verify this claim for n = 2 by finding the PMF of X 1 + X 2 directly. Let X 1 and X 2 be independent Ber(p) random variables, and consider Y = X 1 + X 2. Then the possible values that Y can take on are { 0 , 1 , 2 }. Use independence to find each of the probabilities directly:

pY (0) = P (both X 1 and X 2 are zero) =

pY (1) = P (either X 1 or X 2 is zero) =

pY (2) = P (neither X 1 nor X 2 are zero) =

It is easy to check that Y has the same PMF as a Bin(n = 2, p = 12 ) random variable; therefore, Y ∼ Bin(n = 2, p = 12 ). (c) Prove that if Y ∼ Bin(n, p), then E(Y ) = np. [Hint: Use (1) and the fact that expected value is linear.] Expected value is linear: E(Y ) = E(X 1 ) + · · · + E(Xn) = np.

  1. A barber shop averages 6.5 customers per hour between noon and 5 p.m. Let X represent the number of customers arriving between 2 and 3:30 p.m.

(a) What is the distribution of X and its parameter(s)? X ∼ Poi(λ = 6.5). (b) Find the probability of exactly six customers between 2 and 3:30 p.m. The interval 2:00 to 3:30 is 1.5 hours so the expected number of arrivals in this interval would be λ′^ = 6. 5 · 1 .5 = 9.75. Then use Z ∼ Poi(λ′^ = 9.75) to compute the probability:

P (Z = 6) = pZ (6) = e−^9.^75

(c) If you know that no more than six customers arrived between 2 and 3:30 p.m., what is the probability there were exactly six? Use the same Z as in (b).

P (Z = 6|Z ≤ 6) =

P (Z = 6)

1 − P (Z < 6)

z=0 pZ^ (z)

(d) Suppose the number of customers between 2 and 3:30 p.m. is recorded over a seven-day period. Assume that the number of arrivals on different days are independent. Give the distribution of Y , the number of days with exactly six customers between 2 and 3:30 p.m., and its parameter(s). If we consider the event “exactly six customers between 2:00 and 3:30” a success, then Y is just the number of successes in n = 7 independent trials. Therefore Y must have a Binomial distribution with parameters n = 7 and p = P (Z = 6) = 0.069. (e) Find the probability that exactly six customers arrive between 2 and 3:30 p.m. on at least one of the seven days. For Y as in (d), we want

P (Y ≥ 1) = 1 − P (Y = 0) = 1 − (1 − p)n^ = 0. 39.

(f) Starting from today, count the number of days W until exactly six customers arrive between 2 and 3:30. Give the expected number of days. W ∼ Geo(p) where p = P (Z = 6) = 0.069 and Z is as in (b). Therefore, E(W ) = (^0). 0691 = 14.49. (g) Find the probability it takes more than 6 days until the first day with exactly six customers between 2 and 3:30. For W as in (f), we want P (W > 6). Here we use the tail probability formula:

P (W > 6) = (1 − p)^6 = (1 − 0 .069)^6 = 0. 651.

  1. As an experiment, Kim programs a computer to draw 200 random numbers, where each random number is the realization of a Poisson random variable with λ = 5. Let X be the number of those random numbers that are equal to 0.

(a) What is the distribution of X? If “success” is a single Poisson random variable (call it U ) being equal zero, then X is just counting successes. Therefore, X is Binomial and the success probability is p = P (U = 0) = e−^5 = 0.0067; therefore, X ∼ Bin(n = 200, p = e−^5 = 0.0067) (b) Find P (X = 2). P (X = 2) = pX (2) =

2

0. 00672 · (1 − 0 .0067)^200 −^2 = 0.236.