X is the number of red balls contained in the sample. X can have values 0, 1, 2, 3, 4 (sample size is 5, but we have only 4 red balls).
P(X=0)=C512C58=5!3!12!8!7!5!=9∗10∗11∗124∗5∗6∗7=0.071
Here we divide number of ways to chose 0 red balls from red balls to amount of ways to choose any 5 balls.
P(X=1)=C125C84∗C41=4!4!3!12!8!4!5!7!=0.354
P(X=2)=C125C83∗C42=3!5!2!2!12!8!4!5!7!=0.424
P(X=3)=C125C82∗C43=2!6!3!12!8!4!5!7!=0.141
P(X=4)=C125C81=7!12!8!5!7!=0.01
The distribution looks like:
X 0 1 2 3 4
P(X) 0.071 0.354 0.424 0.141 0.01
The check for this is ∑P(X)=1
Comments