By the end of this chapter, you will be able to:
Mastering these skills will help you tackle real-world engineering problems with confidence and precision!
A measure of central tendency is a single value that represents the centre or typical value of a data set. Instead of reading hundreds of figures, a manager can use one number to describe the whole set. For example, a county hospital can summarise a month of daily outpatient numbers with one typical daily figure. The three main measures are the mean (the arithmetic average), the median (the middle value when data are ordered) and the mode (the most frequent value). Each measure is calculated differently, answers a slightly different question and suits different kinds of data.
The arithmetic mean is the sum of all the values divided by the number of values. It uses every observation, so it is the most widely used measure for numerical data. A dairy SACCO, for instance, can use it to find the average daily milk delivery from its members.
Formula: mean = Σx ÷ n
where Σx is the sum of the values and n is the number of values.
Example: A dairy SACCO recorded milk deliveries (in litres) over seven days: 120, 135, 128, 142, 130, 125 and 140.
Σx = 120 + 135 + 128 + 142 + 130 + 125 + 140
Σx = 920
mean = 920 ÷ 7
mean = 131.43 litres
Properties of the mean:
Example: Five staff at a small hotel earn Ksh 25,000, 28,000, 30,000, 32,000 and 35,000 per month.
mean = (25,000 + 28,000 + 30,000 + 32,000 + 35,000) ÷ 5
mean = 150,000 ÷ 5
mean = Ksh 30,000
If the general manager, who earns Ksh 150,000, is added to the list:
mean = (150,000 + 150,000) ÷ 6
mean = 300,000 ÷ 6
mean = Ksh 50,000
The mean rises sharply, yet five of the six employees earn well below it. This shows how an extreme value can distort the mean.
When the same value occurs many times, the data are arranged in a frequency table. Each value x is multiplied by its frequency f, the products are added, and the total is divided by the total frequency. This saves time and avoids listing every observation.
Formula: mean = Σfx ÷ Σf
Example: A county office surveyed 50 households and recorded the number of children per household.
| Number of children (x) | Frequency (f) | fx |
|---|---|---|
| 0 | 5 | 0 |
| 1 | 12 | 12 |
| 2 | 18 | 36 |
| 3 | 10 | 30 |
| 4 | 5 | 20 |
| Total | 50 | 98 |
mean = Σfx ÷ Σf
mean = 98 ÷ 50
mean = 1.96 children per household
The answer need not be a whole number even though the data are counts. It describes the average, not an actual household.
A weighted mean is used when some values matter more than others. Each value x is multiplied by a weight w that shows its importance, and the total is divided by the sum of the weights. It is used for average prices, course marks and index numbers.
Formula: weighted mean = Σwx ÷ Σw
Example: A building contractor bought 1,000 bags of cement in three lots: 200 bags at Ksh 700, 300 bags at Ksh 720 and 500 bags at Ksh 740.
Σwx = (200 × 700) + (300 × 720) + (500 × 740)
Σwx = 140,000 + 216,000 + 370,000
Σwx = 726,000
Σw = 200 + 300 + 500 = 1,000
weighted mean = 726,000 ÷ 1,000
weighted mean = Ksh 726 per bag
A simple average of the three prices would give Ksh 720, which wrongly treats a lot of 200 bags as equal to a lot of 500 bags.
The median is the middle value of a data set arranged in order of size. Half the observations lie below it and half above it. Because it depends on position and not on the size of extreme values, it is a reliable measure when the data contain unusually large or small figures.
Median of ungrouped data:
Example (odd n): The seven milk deliveries in order are 120, 125, 128, 130, 135, 140, 142.
position = (7 + 1) ÷ 2 = 4
median = 130 litres
Example (even n): The six hotel salaries in order are 25,000, 28,000, 30,000, 32,000, 35,000 and 150,000.
positions = 6 ÷ 2 = 3 and 4
median = (30,000 + 32,000) ÷ 2
median = Ksh 31,000
The median of Ksh 31,000 describes the typical employee far better than the mean of Ksh 50,000 found earlier.
Median from a frequency table:
Add the frequencies to form a cumulative frequency column, then find the position of the middle value.
Example: In the county office survey of 50 households, the cumulative frequencies are 5, 17, 35, 45 and 50 for 0, 1, 2, 3 and 4 children.
The middle lies between positions 25 and 26.
Both positions fall in the group with cumulative frequency 35, which is the group for 2 children.
median = 2 children
The mode is the value that occurs most often. It is the only measure of central tendency that can be used for non-numerical (categorical) data, for example the most common type of loan product at a bank. A data set may have one mode (unimodal), two modes (bimodal), more than two modes (multimodal) or no mode when every value occurs equally often.
Example (one mode): A shoe shop sold pairs in these sizes: 6, 7, 7, 8, 8, 8, 9, 9, 10. Size 8 occurs three times, more than any other, so the mode is size 8. This tells the owner which size to stock most.
Example (two modes): The values 2, 3, 3, 5, 7, 7, 9 have modes 3 and 7, so the data are bimodal.
Example (frequency table): In the county office survey, the highest frequency is 18, which belongs to 2 children, so the mode is 2 children.
Points to remember about the mode:
When data are grouped into classes, the individual values are lost, so the measures are estimated. The class midpoint stands in for every value in the class.
Example data: A bank recorded the waiting time (in minutes) of 60 customers.
| Waiting time (minutes) | Frequency (f) | Midpoint (x) | fx | Cumulative frequency |
|---|---|---|---|---|
| 0 to under 5 | 6 | 2.5 | 15 | 6 |
| 5 to under 10 | 14 | 7.5 | 105 | 20 |
| 10 to under 15 | 20 | 12.5 | 250 | 40 |
| 15 to under 20 | 12 | 17.5 | 210 | 52 |
| 20 to under 25 | 8 | 22.5 | 180 | 60 |
| Total | 60 | 760 |
Mean of grouped data:
mean = Σfx ÷ Σf
mean = 760 ÷ 60
mean = 12.67 minutes
Median of grouped data:
n ÷ 2 = 60 ÷ 2 = 30
The median class is 10 to under 15, so L = 10, F = 20, f = 20 and h = 5.
median = 10 + ((30 − 20) ÷ 20) × 5
median = 10 + 2.5
median = 12.5 minutes
Mode of grouped data:
The modal class is 10 to under 15, so L = 10, h = 5, f1 = 20, f0 = 14 and f2 = 12.
mode = 10 + ((20 − 14) ÷ ((20 − 14) + (20 − 12))) × 5
mode = 10 + (6 ÷ 14) × 5
mode = 10 + 2.14
mode = 12.14 minutes
When midpoints or frequencies are large, calculation is easier if deviations from an assumed mean A are used. Choose A as a convenient midpoint near the centre of the data and let d = x − A for each class.
Formula: mean = A + (Σfd ÷ Σf)
Example: Using the bank waiting-time data with A = 12.5:
| Midpoint (x) | d = x − 12.5 | f | fd |
|---|---|---|---|
| 2.5 | −10 | 6 | −60 |
| 7.5 | −5 | 14 | −70 |
| 12.5 | 0 | 20 | 0 |
| 17.5 | 5 | 12 | 60 |
| 22.5 | 10 | 8 | 80 |
| Total | 60 | 10 |
mean = 12.5 + (10 ÷ 60)
mean = 12.5 + 0.17
mean = 12.67 minutes
This agrees with the direct method, because the choice of A does not change the result.
The best measure depends on the type of data, the shape of the distribution and the purpose of the analysis.
| Measure | Advantages | Limitations | Best used when |
|---|---|---|---|
| Mean | Uses every value; suited to further calculation | Distorted by extreme values | Data are numerical and fairly symmetrical |
| Median | Not affected by extremes; easy to find | Ignores the size of most values | Data are skewed, such as incomes or house prices |
| Mode | Easy to see; works for categories | May be absent or not unique | The most common item or category is needed |
The relationship between the three measures also shows the shape of the distribution:
Example: A farm records the weight of tomato crates at harvest. If a few crates are much heavier than the rest, the mean weight will be above the median, and the median is the better description of a typical crate.
Create a free account to open more of this chapter.
Free: practical guides, quick cards, workplace scenarios and more.
Create a free accountAt the start of this chapter we promised you would be able to:
Tick each one you can genuinely do.
So, are you there yet?
You're competent when you can confidently do 50% or more of what this chapter promised.
Sign in to record how you're doing.