Solution:
Key idea: A probability distribution lists every value of X with its probability. We write Pk for P(X=k); the mean is E(X)=∑xP(x); the variance is Var(X)=E(X2)−[E(X)]2.
Step 1 — Count the possible samples.
The lot has 6 items, 2 defective and 4 good. A sample of 4 can be chosen in 6C4 ways, all equally likely.
6C4=15
X can be 0, 1 or 2, since there are only 2 defective items.
Step 2 — Part (a): find each probability.
For X=k we choose k defective items and 4−k good items.
P0=152C0×4C4
P0=151
P1=152C1×4C3
P1=158
P2=152C2×4C2
P2=156
The probabilities add up to 1515=1, as they must.
| X | 0 | 1 | 2 |
|---|
| P(X) | 151 | 158 | 52 |
Step 3 — Part (b): find the mean.
We multiply each value by its probability and add.
E(X)=0×151+1×158+2×156
E(X)=1520
E(X)=34
Step 4 — Part (c): find E(X²).
We multiply each squared value by its probability and add.
E(X2)=0×151+1×158+4×156
E(X2)=1532
Step 5 — Part (c): find the variance.
We subtract the square of the mean from E(X2).
Var(X)=1532−916
Var(X)=4596−80
Var(X)=4516
Therefore, (a) P0=151, P1=158, P2=52; (b) the mean is 34; (c) the variance is 4516.