When data comes as a frequency table, each value is listed once together with how often it occurs. The mean is still the total divided by the count — but you must not add the values once each. A value that occurs ten times contributes ten times over, so weight each value by its frequency:
Add a column for
| Value ( | Frequency ( | |
|---|---|---|
| 1 | 4 | 4 |
| 2 | 6 | 12 |
| 3 | 10 | 30 |
| Total | 20 | 46 |
The total frequency is