

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 random variable Y has a negative hypergeometric distribution if
P (Y = y) = p(y) =
(y− 1 k− 1
)(N −y r−k
) (N r
) y^ =^ k, k^ + 1,... , N^ −^ r^ +^ k
μ = E(Y ) = k
( N + 1 r + 1
)
σ^2 = V (Y ) = k(N + 1)(N − r)(r + 1 − k) (r + 1)^2 (r + 2)
Working with negative hypergeometric random variables in R.
R does not include the negative hypergeometric random variable as a built-in function. In order to work with this random variable, you will need to copy and paste the following function into R.
dneghyper<- function(y,r,N,k){choose(y-1,k-1)*choose(N-y,r-k)/choose(N,r)}
To find a probability P (Y = y) = p(y) for a single value y, the command in R is
dneghyper(y,r,N,k)
To find the probability P (Y ≤ y), use the sum command to add up all p(y) values for y between and including k and y.
sum(dneghyper(k:y,r,N,k))
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(dneghyper(y1:y2,r,N,k))
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(dneghyper(k:y-1,r,N,k))
Problems.
(a) What is the probability that the third yellow ball will be the seventh ball chosen? (b) What is the probability that the third yellow ball will be the 10th ball chosen? (c) Find the expected number of draws needed to obtain the third yellow ball. (d) Find the variance of the number of draws needed to obtain the third yellow ball.
(a) When sampling without replacement, what is the probability the second defective con- densor will be 10th condensors chosen? (b) When sampling without replacement, what is the probability the third defective con- densor will be chosen within the first 25 draws. (c) Find the expected number of draws needed to obtain the second defective condensor. (d) Find the variance of the number of draws needed to obtain the second defective conden- sor.