

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Class: INTR THY PROBAB&S I; Subject: STATISTICS; University: Iowa State University; Term: Unknown 1989;
Typology: Study notes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


A discrete random variable Y is said to have a negative binomial distribution if
p(y) =
( y − 1 r − 1
) pr(1 − p)y−r^ for y = r, r + 1, r + 2,...
μ = E(Y ) =
r p
σ^2 = V (Y ) =
r(1 − p) p^2
Working with negative binomial random variables in R.
The built-in function in R for the negative binomial distribution is different from the distribution described in your textbook. To eliminate any confusion, I have written a function in R called dnbin that matches the distribution in your textbook. Before you calculate any probabilities for the negative binomial distribution, you will need to type in this function in R.
dnbin<- function(y,r,p){choose(y-1,r-1)p^r(1-p)^(y-r)}
To find a probability P (Y = y) = p(y) for a single value y, the command in R is
dnbin(y,r,p)
To find the probability P (Y ≤ y), use the sum command to add up all p(y) values for y between and including r and y.
sum(dnbin(r:y,r,p))
To find the probability P (y 1 ≤ Y ≤ y 2 ), use the sum command to add up all p(y) values for y between and including y 1 and y 2.
sum(dnbin(y1:y2,r,p))
To find the probability P (Y ≥ y) = 1 − P (Y < y) = 1 − P (Y ≤ y − 1), use the sum command to find P (Y ≤ y − 1) and subtract this value from 1.
1 - sum(dnbin(r:y-1,r,p))
Problems.
(a) What is the probability that the fifth hole drilled yields the second productive well? (b) If the prospector can only afford to drill at most ten wells, what is the probability that the prospector will find two productive wells? (c) Find the mean and variance of the number of wells that must be drilled if the prospector wants to establish three wells.
(a) What is the probability that the second seven will occur on the 6th roll? (b) What is the probability that the third seven will not occur in the first ten rolls? (c) How many rolls would you expect to make to obtain the second seven?