A campus café recorded these 12 orders in the order \((\text{service type},\text{cup type})\):
\(
\begin{aligned}
&(\text{counter},\text{reusable}),(\text{mobile},\text{disposable}),(\text{counter},\text{disposable}),\\
&(\text{mobile},\text{reusable}),(\text{mobile},\text{disposable}),(\text{counter},\text{reusable}),\\
&(\text{counter},\text{disposable}),(\text{mobile},\text{disposable}),(\text{counter},\text{reusable}),\\
&(\text{mobile},\text{reusable}),(\text{counter},\text{disposable}),(\text{mobile},\text{disposable}).
\end{aligned}
\)
Create a two-way frequency table with service type as the row variable and cup type as the column variable. Include all margins.
Hints
- Treat each ordered pair as one observation in exactly one cell.
- Tally the four possible category combinations before finding any totals.
- Check that both sets of margins give the same grand total.
Solution
1. Tally each ordered pair: counter/reusable \(=3\), counter/disposable \(=3\), mobile/reusable \(=2\), and mobile/disposable \(=4\).
2. The row totals are \(6\) counter orders and \(6\) mobile orders.
3. The column totals are \(5\) reusable cups and \(7\) disposable cups, for a grand total of \(12\).
Answer
<table>
<tr><th></th><th>reusable</th><th>disposable</th><th>Total</th></tr>
<tr><td>counter</td><td>\(3\)</td><td>\(3\)</td><td>\(6\)</td></tr>
<tr><td>mobile</td><td>\(2\)</td><td>\(4\)</td><td>\(6\)</td></tr>
<tr><td>Total</td><td>\(5\)</td><td>\(7\)</td><td>\(12\)</td></tr>
</table>