Estimate a distribution from café data
Unit 3 Topic 5: Discrete random variables
The question
A café records the number of coffees bought by each of 100 customers during one morning.
| Coffees bought | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| Number of customers | 52 | 30 | 12 | 6 |
Let \(X\) be the number of coffees bought by a randomly chosen customer.
- (a) Use relative frequencies to estimate the probability distribution of \(X\). [1 mark]
- (b) Estimate the probability that a customer buys more than one coffee. [1 mark]
- (c) Determine \(E(X)\). [1 mark]
- (d) Determine the standard deviation of \(X\). [2 marks]
The idea. Divide each frequency by the 100 customers to estimate each probability. Then the mean and variance come from the probabilities in the usual way.
The answer, one mark at a time
-
Part (a)
The relative frequency is the number of customers divided by the total of 100. Use it as the estimate of each probability.
\[P(X = 1) = \frac{52}{100} = 0.52\]\[P(X = 2) = \frac{30}{100} = 0.30\]\[P(X = 3) = \frac{12}{100} = 0.12\]\[P(X = 4) = \frac{6}{100} = 0.06\]determines the estimated probabilities [1 mark]
-
Part (b)
More than one coffee means 2, 3 or 4 coffees. Add those probabilities.
\[P(X > 1) = 0.30 + 0.12 + 0.06 = 0.48\]determines the probability [1 mark]
-
Part (c)
Multiply each value by its probability and add.
\[E(X) = 1(0.52) + 2(0.30)\]\[+ 3(0.12) + 4(0.06)\]\[E(X) = 0.52 + 0.60 + 0.36 + 0.24\]\[E(X) = 1.72 \text{ coffees}\]determines \(E(X)\) [1 mark]
-
Part (d)
Square each distance from the mean, weight it by its probability and add. Your calculator's one-variable statistics with frequencies gives the same value.
\[\mathrm{Var}(X) = 0.52(1 - 1.72)^{2} + 0.30(2 - 1.72)^{2}\]\[\quad + 0.12(3 - 1.72)^{2} + 0.06(4 - 1.72)^{2}\]\[= 0.269568 + 0.02352\]\[+ 0.196608 + 0.311904\]\[= 0.8016\]determines the variance [1 mark]
-
The standard deviation is the square root of the variance.
\[\sigma = \sqrt{0.8016}\]\[\sigma \approx 0.895 \text{ coffees}\]determines the standard deviation [1 mark]
Answer
Watch for. Don't stop at the variance in part (d). The question asks for the standard deviation, so take the square root.