Sub topic 2
The Mean: Sum Divided by Count
Prerequisites and the basic idea
Assume you can add positive and negative numbers, divide, and solve a simple linear equation. You should also be comfortable reading a list of numbers.
The mean is the arithmetic average of a data set. To find it, add all the values and divide by the number of values:
\text{mean}=\frac{\text{sum of all values}}{\text{number of values}}The mean gives each value equal importance. A large value can pull the mean upward, while a small value can pull it downward.
flowchart TD
A[Data set] --> B[Add all values]
B --> C[Count the values]
C --> D[Divide the sum by the count]
D --> E[Mean]A worked example
Find the mean of:
2, 4, 4, 4, 5, 5, 7, 9
There are 8 values. Their sum is:
2 + 4 + 4 + 4 + 5 + 5 + 7 + 9 = 40
Therefore:
\text{mean}=\frac{40}{8}=5The mean does not need to be one of the values in the data set. For example, the mean of 1 and 2 is 1.5.
data = [2, 4, 4, 4, 5, 5, 7, 9]
total = sum(data)
count = len(data)
mean = total / count
print(total) # 40
print(count) # 8
print(mean) # 5.0Use the total when a value is missing
The mean formula can be rearranged:
\text{sum}=\text{mean}\times\text{count}This form is useful when a question gives a mean and asks for a missing value.
Suppose five numbers have a mean of 12. Four of the numbers are 8, 10, 13, and 15. Let the missing number be \(x\).
The total of all five numbers must be:
12(5)=60The known numbers have sum:
8+10+13+15=46Thus:
46+x=60x=14Always check that the count includes the missing value.
Combining groups correctly
Do not usually average two group means directly. The groups may contain different numbers of values.
If 10 students have a mean score of 70 and 30 students have a mean score of 90, find the combined mean by finding each group’s total:
10(70)+30(90)=700+2700=3400There are 40 students, so:
\text{combined mean}=\frac{3400}{40}=85The answer is 85, not \((70+90)/2=80\), because the second group is larger.
Quick checks and common errors
- Count every value, including repeated values.
- Do not divide by the largest value or by a value that appears most often.
- Keep negative signs when finding the sum.
- If one value increases while all other values stay fixed, the mean increases, but by less than the full increase when there is more than one value.
- A mean can be a decimal or a fraction.
Exercise
Six numbers have a mean of 18. Five of the numbers are 11, 14, 17, 20, and 23. What is the sixth number?
Show answer
The total must be 6 × 18 = 108. The known values sum to 85, so the sixth number is 108 − 85 = 23.