A library surveyed \(20\) teens about the workshop they most wanted next month. The responses were:
Coding, Art, Writing, Coding, Robotics, Art, Coding, Writing, Art, Robotics, Coding, Writing, Coding, Art, Robotics, Writing, Coding, Art, Robotics, Writing.
Construct a frequency and relative-frequency table with the categories in alphabetical order. Report each relative frequency as a percentage.
Hints
- Tally one category at a time so every response is counted exactly once.
- Use the total number of responses as the denominator for every relative frequency.
- Check that the final frequencies and percentages have the correct totals.
Solution
1. Count each category: Art \(5\), Coding \(6\), Robotics \(4\), and Writing \(5\).
2. Divide each frequency by \(20\): Art \(25\%\), Coding \(30\%\), Robotics \(20\%\), and Writing \(25\%\).
3. The frequencies total \(20\), and the relative frequencies total \(100\%\), which checks the table.
Answer
<table><thead><tr><th>Workshop</th><th>Frequency</th><th>Relative frequency</th></tr></thead><tbody><tr><td>Art</td><td>\(5\)</td><td>\(25\%\)</td></tr><tr><td>Coding</td><td>\(6\)</td><td>\(30\%\)</td></tr><tr><td>Robotics</td><td>\(4\)</td><td>\(20\%\)</td></tr><tr><td>Writing</td><td>\(5\)</td><td>\(25\%\)</td></tr></tbody></table>