Estimate a distribution from café data

Question MM3-036 Simple familiar 5 marks Technology-active

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 bought1234
Number of customers5230126

Let \(X\) be the number of coffees bought by a randomly chosen customer.

  1. (a) Use relative frequencies to estimate the probability distribution of \(X\). [1 mark]
  2. (b) Estimate the probability that a customer buys more than one coffee. [1 mark]
  3. (c) Determine \(E(X)\). [1 mark]
  4. (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.

Figure for question MM3-036A bar chart of the estimated distribution: 0.52 for 1 coffee, 0.30 for 2, 0.12 for 3 and 0.06 for 4. The bars for 2, 3 and 4 coffees are highlighted, and a line marks the mean at 1.72.0.20.40.61234coffees bought
Most customers buy one coffee, so the mean sits below 2.

The answer, one mark at a time

  1. 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]

  2. 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]

  3. 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]

  4. 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]

  5. 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

(a)\(\displaystyle P(X = 1) = 0.52,\)\(\displaystyle P(X = 2) = 0.30,\)\(\displaystyle P(X = 3) = 0.12,\)\(\displaystyle P(X = 4) = 0.06\)
(b)\(\displaystyle P(X > 1) = 0.48\)
(c)\(\displaystyle E(X) = 1.72 \text{ coffees}\)
(d)\(\displaystyle \sigma \approx 0.895 \text{ coffees}\)

Watch for. Don't stop at the variance in part (d). The question asks for the standard deviation, so take the square root.