Mada za sehemu hiiDevelop an understanding of statisticsMada 1
- Explore advanced tenets of statistics (measures of central tendency and dispersion: mean, variance and standard deviation by coding method, quartiles, and percentiles)
The coding method (also called step‑deviation) lets you find the mean, variance and standard deviation of grouped data without handling large numbers directly. It works by shifting the data using an assumed mean and a class width ; the same idea is extended to obtain quartiles and percentiles, which split the distribution into equal parts.
For a frequency distribution with class marks , frequencies and class size :
-
Choose an assumed mean (any class mark, preferably central).
-
Compute the coded value for each class:
-
Form the products and add them to get .
-
Apply the formula
Worked example (marks of students)
| Class (marks) | Class mark | |||
|---|---|---|---|---|
| 0 – 10 | 5 | 6 | ||
| 10 – 20 | 15 | 5 | ||
| 20 – 30 | 25 | 8 | ||
| 30 – 40 | 35 | 15 | ||
| 40 – 50 | 45 | 7 | ||
| 50 – 60 | 55 | 6 | ||
| 60 – 70 | 65 | 3 |
So the average mark is 33.4.
After obtaining we also need .
The variance of grouped data is
and the standard deviation is .
Worked example (continuing the table above)
From the table we have .
(If a smaller class width were used, the numbers would be smaller; the method stays the same.)
For grouped data the quartile is
where
- = lower real limit of the quartile class,
- = cumulative frequency before the quartile class,
- = frequency of the quartile class,
- = class width.
- Interquartile range (IQR) = .
- Semi‑interquartile range (SIR) = .
Worked example (internet‑time data)
| Time (min) | Cumulative | |
|---|---|---|
| 10‑12 | 4 | 4 |
| 13‑15 | 13 | 17 |
| 16‑18 | 16 | 33 |
| 19‑21 | 3 | 36 |
| 22‑24 | 24 | 60 |
.
- For : → the 15th observation lies in class 13‑15.
.
- For : → class 22‑24.
.
The percentile follows the same pattern as quartiles:
The position tells you which class contains the percentile.
Worked example (marks data)
| Marks | Cumulative | |
|---|---|---|
| 5‑10 | 5 | 5 |
| 10‑15 | 6 | 11 |
| 15‑20 | 15 | 26 |
| 20‑25 | 10 | 36 |
| 25‑30 | 5 | 41 |
| 30‑35 | 4 | 45 |
| 35‑40 | 2 | 47 |
| 40‑45 | 2 | 49 |
.
- (the median): position .
Class 15‑20 → .
- : position .
Class 20‑25 → .
Thus 50 % of students scored below 19.5 marks and 70 % below 24.15 marks.
| Concept | Formula (grouped data) |
|---|---|
| Mean (coding) | |
| Variance (coding) | |
| Standard deviation | |
| Quartile (i=1,3) | |
| Percentile (p) | |
| Interquartile range | |
| Semi‑interquartile range |
A market vendor in Dar es Salaam can use the coding method to compute the average daily sales (mean) and how much sales vary from day to day (standard deviation) from a table of weekly sales figures. Knowing the interquartile range helps the vendor identify the typical range of sales, while percentiles can be used, for example, to find the sales level that 90 % of days do not exceed—useful for planning stock and cash flow in a small‑scale shop.
Swali
What is the formula for finding the mean of grouped data using the coding method?
Ingia ili kuwasilisha jibu lako na lihesabiwe katika umahiri wako.
Ingia ili kufanya mazoeziMwalimu
Umekwama? Niulize chochote kuhusu mada hii.
Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu swali hili.
Ingia ili kuuliza