Unformatted text preview: Y is σ 2 = V ( Y ) = n p r N P p Nr N P p Nn N1 P Working with hypergeometric random variables in R. To Fnd a probability P ( Y = y ) = p ( y ) for a single value y , the command in R is dhyper(y,r,Nr,n) To Fnd the probability P ( Y ≤ y ), use the sum command to add up all p ( y ) values for y between and including 0 and y . sum(dhyper(0:y,r,Nr,n)) To Fnd 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(dhyper(y1:y2,r,Nr,n)) To Fnd the probability P ( Y ≥ y ), use the sum command to add up all p ( y ) values between and including y and n . sum(dhyper(y:n,r,Nr,n)) 1...
View
Full Document
 Spring '08
 Staff
 Variance, Probability distribution, Probability theory, probability density function, Hypergeometric Distribution

Click to edit the document details