Skip to content
Gioi Toan
Start learning
A smiling die next to a coin

Notes on Lesson 2: Measures of central tendency for ungrouped data samples (Maths 10 Canh Dieu, Chapter VI)

Lesson summary

Meaning: The mean is the average value of the numbers in the sample, it shows the central position of the data sample and can be used to represent the sample when the data do not differ too much.

Median (denoted MeM_e) is the value that stands in the middle position of a data sample arranged in non-decreasing order (or non-increasing order).

The mean is like sharing a cake equally: put all the values together and share them equally among the elements, each element gets an equal part.

This content is not yet available in English. It is shown below in the original Vietnamese.

  • Tính số trung bình, trung vị, tứ phân vị, mốt của mẫu số liệu không ghép nhóm
  • Giải thích ý nghĩa và vai trò của các số đặc trưng trong thực tiễn

Think about this: in a class, if one student is much taller than everyone else, does the average height of the whole class still truly represent the 'typical height'? Or in a shoe shop, how do you know which shoe size to stock more of so it sells best? Today's lesson will help you answer questions like these. You will learn how to calculate and understand the meaning of four measures: the mean, the median, the quartile and the mode, and from there know which one to choose to best describe a data sample in real life.

Practise similar problems

Key ideas: what do you need to know?

Mean

  • The mean (or average) of the data sample x1,x2,...,xnx_1, x_2, ..., x_n, denoted x‾\overline{x}, is calculated by the formula:

x‾=x1+x2+...+xnn\overline{x} = \frac{x_1 + x_2 + ... + x_n}{n}.

  • When the data sample is given as a frequency table, where mim_i is the frequency of the value xix_i and n=m1+m2+...+mkn = m_1 + m_2 + ... + m_k, the mean is calculated by:

x‾=m1x1+m2x2+...+mkxkn\overline{x} = \frac{m_1x_1 + m_2x_2 + ... + m_kx_k}{n}.

  • Meaning: The mean is the average value of the numbers in the sample, it shows the central position of the data sample and can be used to represent the sample when the data do not differ too much.
  • Example: The sample 4;5;6;7;84; 5; 6; 7; 8 has x‾=4+5+6+7+85=6\overline{x} = \frac{4+5+6+7+8}{5} = 6.

In plain words: The mean is like sharing a cake equally: put all the values together and share them equally among the elements, each element gets an equal part. Because it evens everything out, it represents well when the values are fairly even. However, precisely because it evens out, a value that is too large or too small also gets a share, pulling the result off. For example, one student scoring 1 in a class where everyone gets 8 or 9 will pull the average down, even if it is just one student. When you see an outlier in the data, you should think right away of the median instead of the mean.

Phrase by phrase
Mean
The sum of all values divided by the number of values.Example: The sample 2;3;42; 3; 4 has x‾=93=3\overline{x} = \frac{9}{3} = 3.
frequency table
A table that records each value together with the number of times it appears.Example: If the value 7 appears 4 times, then the frequency of 7 is 4.
central position of the data sample
The spot that represents the whole sample, with the other values gathered around it.Example: If the class average score is 7.2, then 7.2 lies in the middle of the common score range.

Median

  • Median (denoted MeM_e) is the value that stands in the middle position of a data sample arranged in non-decreasing order (or non-increasing order).
  • How to find it: Arrange the data sample of nn quantitative data into a non-decreasing sequence.

+ If nn is an odd number, the median is the data value in the n+12\frac{n+1}{2} position (the one in the middle).
+ If nn is an even number, the median is the average of the two data values in the n2\frac{n}{2} and n2+1\frac{n}{2} + 1 positions.

  • Remark: The median is not necessarily one of the numbers in the data sample. When the values in the sample do not differ greatly, the mean and the median are approximately equal.
  • Meaning: The median is not affected by outliers, while the mean is. Therefore, when a data sample has an outlier, people usually use the median to represent the data sample.
  • Example: The sample 3;5;8;9;203; 5; 8; 9; 20 has n=5n = 5 odd, so the median is the third value, that is, Me=8M_e = 8.

In plain words: The median is like standing in the middle of a line when everyone lines up by height. Even if one very tall friend stands at the end of the line, the person in the middle does not move. That is why the median resists outliers: it only cares about order, not about how big the values are. Remember two things: you must sort first, and if the number of values is even, take the average of the two in the middle. The sample 3;5;8;9;203; 5; 8; 9; 20 has mean 9 but median only 8, because the number 20 pulls the mean up.

Phrase by phrase
Median
The value in the middle after sorting the data sample.Example: The sample 1;4;61; 4; 6 has median 4.
non-decreasing order
Arrange from smallest to largest, allowing equal values to stand next to each other.Example: 2;2;5;72; 2; 5; 7 is a non-decreasing sequence.
outlier
A value that is very large or very small compared with most of the other values.Example: In 3;5;8;9;203; 5; 8; 9; 20, the number 20 is an outlier.
the average of the two data values in the n2\frac{n}{2} and n2+1\frac{n}{2} + 1 positions
The median formula when the sample size is even: take the average of the two middle values.Example: The sample 2;4;6;102; 4; 6; 10 has Me=4+62=5M_e = \frac{4 + 6}{2} = 5.

Quartile

  • The quartiles of a data sample of nn quantitative data are the three values Q1,Q2,Q3Q_1, Q_2, Q_3 that divide the data sample, arranged in non-decreasing order, into four parts by convention (when nn is divisible by 4, each part has exactly 25% of the values).
  • How to find them:

+ Arrange the data sample in non-decreasing order.
+ Find the median of the sample, that is Q2Q_2.
+ If nn is even number: Q1Q_1 is the median of the lower half (to the left of Q2Q_2), Q3Q_3 is the median of the upper half (to the right of Q2Q_2).
+ If nn is odd number: Q1Q_1 is the median of the lower half not including Q2Q_2, Q3Q_3 is the median of the upper half not including Q2Q_2.

  • Meaning: The three values Q1,Q2,Q3Q_1, Q_2, Q_3 reflect how spread out the data sample is, and each value also measures the trend of the corresponding part of the data.
  • Example: The sample 2;3;5;7;8;10;122; 3; 5; 7; 8; 10; 12 has Q2=7Q_2 = 7; the left half 2;3;52; 3; 5 gives Q1=3Q_1 = 3; the right half 8;10;128; 10; 12 gives Q3=10Q_3 = 10.

In plain words: Quartiles are like splitting your line into four equal groups: the short group, the medium-short group, the medium-tall group, and the tall group. Q1Q_1 is the end of the first group, Q2Q_2 is the middle mark, Q3Q_3 is the end of the third group. A good tip is to find Q2Q_2 first, then cut the sample in half at Q2Q_2. The easiest mistake is when nn is odd number: the value Q2Q_2 is not counted in the left half or the right half, it stands alone in the middle.

Phrase by phrase
Quartile
The three marks Q1,Q2,Q3Q_1, Q_2, Q_3 divide the sorted sample into four parts by convention (when nn is divisible by 4, each part has 25% of the values).Example: A sample of 8 values has 2 values in each part.
Q2Q_2
The second quartile, which is the median of the whole sample.Example: The sample 1;2;3;41; 2; 3; 4 has Q2=2,5Q_2 = 2,5.
not including Q2Q_2
When cutting the sample in half, leave the middle value out of both halves (applies when nn is odd number).Example: Sample 1;2;3;4;51; 2; 3; 4; 5: leave out the number 3, the left half is 1;21; 2, the right half is 4;54; 5.

TipFind the quartiles in the right order: find Q2Q_2 first, split the data sample in half at Q2Q_2, then find the median of each half; remember to leave Q2Q_2 out when nn is odd.

Mode

  • The mode of a data sample is the value with the largest frequency in the frequency distribution table, denoted MoM_o.
  • Note: A data sample may have one or several modes.
  • Meaning: The mode represents the value that repeats most often at one position in the data sample. Based on the mode, we can draw useful conclusions about the statistical unit.
  • Example: The sample 2;3;3;5;7;7;7;92; 3; 3; 5; 7; 7; 7; 9 has mode 7, because 7 appears 3 times, the most.

In plain words: The mode is the best-selling dish on the menu: not the tastiest, not the one in the middle, but the one ordered most. That is why the mode suits classification data such as shoe sizes sold, shirt colors chosen, or drinks ordered. Remember two things: count the frequency first, then draw the conclusion, and if two values tie for the most appearances then the sample has two modes, while if every value appears equally often then the sample has no mode.

Phrase by phrase
Mode
The value with the largest frequency in the sample.Example: The sample 1;4;4;61; 4; 4; 6 has mode 4.
largest frequency
The number of appearances that is the most.Example: In 2;3;3;5;7;7;7;92; 3; 3; 5; 7; 7; 7; 9, the largest frequency is 3, corresponding to the value 7.
no mode
Every value appears with the same frequency.Example: The sample 1;2;3;41; 2; 3; 4 has no mode.

Meaning and how to choose representative values

  • The mean, median, quartiles and mode are all numbers that measure the central trend, giving information about the centre of the data sample and used to represent the data sample.
  • The mean is used to represent the sample when the values are fairly even, with no outliers.
  • The median is used when the sample has outliers, because it is not pulled off by those values.
  • The quartiles also show where the marks fall when the sample is split into four parts, useful when comparing two samples.
  • The mode is used when the sample has many coincident values, especially for quantitative data in classification form.
  • Example: If the money donated (thousand dong) by 9 friends is 5;10;10;15;15;20;20;25;5005; 10; 10; 15; 15; 20; 20; 25; 500, then the median of 15 thousand dong should be used to represent it; the mean of about 68.9 thousand dong is pulled up by the value 500.

In plain words: Each characteristic number is a way of looking at a data sample, like looking at a person through height, weight or shirt size. No single number is right for every case, it depends on the data. When the data has a troublemaker, choose the median. When the data is steady, the mean says a lot because it uses all the values. When the question is "which kind is most liked", choose the mode. When you need to know where the low group and the high group are, choose the quartiles.

Phrase by phrase
numbers that measure the central trend
A number that represents the typical level of the whole data sample.Example: The mean, median, quartiles, mode.
represent the sample
Use one number in place of a whole long list.Example: Say the class average is 7.2 instead of reading out 40 marks.
not pulled off by those values
Whether an outlier changes to big or small, the median does not change much.Example: The sample 3;5;8;9;1003; 5; 8; 9; 100 still has median 8.

The reasonableness of quantitative data

  • Based on the median and quartiles of the data sample, at first we can notice unusual values in the sample.
  • In practice, unusual values of a data sample are determined with deeper mathematical tools.

In plain words: The median and quartiles tell us where most of the data is concentrated. If a value lies too far from these marks, that is a sign to check: it may be an unusual value. In grade 10, we only recognise this at first; determining it officially needs deeper tools.

Phrase by phrase
unusual value
A value that is very large or very small compared with most other values in the sample.Example: In the sample 3;5;8;9;1003; 5; 8; 9; 100, the number 100 is an unusual value.
the reasonableness of quantitative data
Checking whether a value fits with most of the sample.Example: A height of 250 cm in a sample of grade 10 students is a value that needs checking again.

Worked examples

Example 1

Find the mean of the data sample: 5;6;6;7;8;9;105; 6; 6; 7; 8; 9; 10.

Show the solution to example 1

Step 1: Count the sample size: the sample has n=7n = 7 values.
Step 2: Add the values: 5+6+6+7+8+9+10=515 + 6 + 6 + 7 + 8 + 9 + 10 = 51.
Why: The mean is the sum of all values divided by the number of values, so all 7 numbers must be added, including both 6s.
Step 3: x‾=517≈7,29\overline{x} = \frac{51}{7} \approx 7,29.
Result: x‾=517≈7,29\overline{x} = \frac{51}{7} \approx 7,29.

Example 2

The Maths test marks of 10 friends in the group were recorded: 6; 7; 7; 8; 8; 8; 9; 9; 10; 10. a) Make a frequency table. b) Find the mean using the frequency table and check again with the usual formula.

Show the solution to example 2

Step 1: a) Count the frequency: the value 6 has frequency 1; 7 has frequency 2; 8 has frequency 3; 9 has frequency 2; 10 has frequency 2. Sample size n=1+2+3+2+2=10n = 1 + 2 + 3 + 2 + 2 = 10.
Step 2: b) Find m1x1+m2x2+...+mkxk=1⋅6+2⋅7+3⋅8+2⋅9+2⋅10=6+14+24+18+20=82m_1x_1 + m_2x_2 + ... + m_kx_k = 1 \cdot 6 + 2 \cdot 7 + 3 \cdot 8 + 2 \cdot 9 + 2 \cdot 10 = 6 + 14 + 24 + 18 + 20 = 82.
Why: A value that repeats how many times is added that many times, so multiply frequency by value to keep it short.
Step 3: x‾=8210=8,2\overline{x} = \frac{82}{10} = 8,2.
Step 4: Check again: the sum of the 10 original values is 6+7+7+8+8+8+9+9+10+10=826 + 7 + 7 + 8 + 8 + 8 + 9 + 9 + 10 + 10 = 82, divided by 10 gives 8.2, which matches.
Result: x‾=8,2\overline{x} = 8,2.

Example 3

Find the median of the two data samples: a) 3;5;8;9;203; 5; 8; 9; 20; b) 2;4;6;102; 4; 6; 10.

Show the solution to example 3

Step 1: a) The sample is already sorted in non-decreasing order, n=5n = 5 is odd, n=2k−1n = 2k - 1 with k=3k = 3, so Me=X3=8M_e = X_3 = 8.
Step 2: b) The sample is already sorted in non-decreasing order, n=4n = 4 is even, n=2kn = 2k with k=2k = 2, so Me=12(X2+X3)=4+62=5M_e = \frac{1}{2}(X_2 + X_3) = \frac{4 + 6}{2} = 5.
Why: When the sample size is even there is no single value in the middle, so you must take the average of the two middle values.
Step 3: Compare with the mean: sample a) has x‾=455=9\overline{x} = \frac{45}{5} = 9, greater than the median 8 because the number 20 pulls it up.
Result: a) Me=8M_e = 8; b) Me=5M_e = 5.

Common mistakesFinding the median but forgetting to sort the data sample in non-decreasing order, just taking the middle value of the original list. You must sort again before finding the middle position.

Common mistakesWith an even sample size, still taking one middle value as the median, when you must take the average of the two middle values.

Common mistakesSeeing an outlier in the data sample but still insisting on using the mean as the representative, so the conclusion is skewed. When there is an outlier, use the median.

TipWith nn odd, the median is exactly at position n+12\frac{n+1}{2}; with nn even, take the average of the two values at positions n2\frac{n}{2} and n2+1\frac{n}{2} + 1.

Example 4

Find the quartiles of the two data samples: a) 2;3;5;7;8;10;122; 3; 5; 7; 8; 10; 12; b) 1;2;3;4;5;6;7;81; 2; 3; 4; 5; 6; 7; 8.

Show the solution to example 4

Step 1: a) The sample has n=7n = 7 odd, already sorted in non-decreasing order. Median Q2=X4=7Q_2 = X_4 = 7.
Step 2: The left half (not including Q2Q_2) is 2;3;52; 3; 5, its median is Q1=3Q_1 = 3. The right half is 8;10;128; 10; 12, its median is Q3=10Q_3 = 10.
Why: nn is odd so the value 7 stands alone in the middle and is not counted in either half.
Step 3: b) The sample has n=8n = 8 even. Q2=12(X4+X5)=4+52=4,5Q_2 = \frac{1}{2}(X_4 + X_5) = \frac{4 + 5}{2} = 4,5.
Step 4: The left half is 1;2;3;41; 2; 3; 4, median Q1=2+32=2,5Q_1 = \frac{2 + 3}{2} = 2,5. The right half is 5;6;7;85; 6; 7; 8, median Q3=6+72=6,5Q_3 = \frac{6 + 7}{2} = 6,5.
Result: a) Q1=3Q_1 = 3, Q2=7Q_2 = 7, Q3=10Q_3 = 10; b) Q1=2,5Q_1 = 2,5, Q2=4,5Q_2 = 4,5, Q3=6,5Q_3 = 6,5.

Common mistakesFinding quartiles when nn is odd but still counting Q2Q_2 in the left half or the right half, which shifts Q1Q_1, Q3Q_3 by one step. When nn is odd, you must leave Q2Q_2 out of both halves.

TipBefore finding the median or quartiles, rewrite the data sample in non-decreasing order and number them X1,X2,...,XnX_1, X_2, ..., X_n so you do not mix them up.

Example 5

A shoe shop recorded the sizes of 12 pairs sold in the morning: 38; 39; 39; 40; 40; 40; 41; 41; 41; 41; 42; 43. a) Find the mode. b) If the shop only restocks one shoe size, which size should it choose?

Show the solution to example 5

Step 1: Count the frequencies: 38 appears 1 time, 39 twice, 40 three times, 41 four times, 42 once, 43 once.
Step 2: The largest frequency is 4, which goes with the value 41, so the mode is 41.
Why: The mode is the value that appears with the largest frequency, not the value in the middle or the maximum value.
Step 3: b) Size 41 sells best, so restocking size 41 makes the most sense.
Result: a) the mode is 41; b) restock size 41.

Common mistakesConfusing the mode with the maximum value or the value in the middle of the sample; the mode is the value with the largest frequency.

Example 6

The class fund donations (unit: thousand dong) of 9 friends in a group are: 5;10;10;15;15;20;20;25;5005; 10; 10; 15; 15; 20; 20; 25; 500 (one friend asked their parents to donate 500 thousand). a) Find the mean and the median. b) Which number should be used to say "about how many thousand dong does each friend in the group donate"?

Show the solution to example 6

Step 1: The data sample is already sorted in non-decreasing order and has n=9n = 9 values.
Step 2: The sum of the values is 5+10+10+15+15+20+20+25+500=6205 + 10 + 10 + 15 + 15 + 20 + 20 + 25 + 500 = 620, so x‾=6209≈68,9\overline{x} = \frac{620}{9} \approx 68,9 (thousand dong).
Step 3: n=9n = 9 is odd, n=2k−1n = 2k - 1 with k=5k = 5, so the median is Me=X5=15M_e = X_5 = 15 (thousand dong).
Why: The mean averages all 9 values, so the value 500 pulls it up very strongly, giving 68.9, more than 4 times the level of 15; the median only looks at the fifth value, so it stays right where most friends' donations are.
Step 4: b) Only one friend donated 500 thousand, the other eight donated from 5 to 25 thousand. Using the mean 68.9 would misrepresent the majority, so use the median 15 thousand dong as the representative.
Result: a) x‾=6209≈68,9\overline{x} = \frac{620}{9} \approx 68,9 thousand dong, Me=15M_e = 15 thousand dong; b) use the median 15 thousand dong.

Terms

Mean
The sum of the values divided by the number of values, denoted x‾\overline{x}.Example: The data sample 4;6;84; 6; 8 has x‾=6\overline{x} = 6.
Median
The value at the middle position of the sorted sample, denoted MeM_e.Example: The data sample 1;3;91; 3; 9 has Me=3M_e = 3.
Quartile
The three markers Q1,Q2,Q3Q_1, Q_2, Q_3 divide the sorted sample into four equal parts.Example: The data sample 1;2;3;4;5;6;7;81; 2; 3; 4; 5; 6; 7; 8 has Q1=2,5Q_1 = 2,5, Q2=4,5Q_2 = 4,5, Q3=6,5Q_3 = 6,5.
First quartile
Another name for Q1Q_1.Example: The data sample 2;3;5;7;8;10;122; 3; 5; 7; 8; 10; 12 has first quartile 3.
Third quartile
Another name for Q3Q_3.Example: The data sample 2;3;5;7;8;10;122; 3; 5; 7; 8; 10; 12 has third quartile 10.
Mode
The value that appears with the largest frequency in the data sample, denoted MoM_o.Example: The data sample 2;5;5;5;82; 5; 5; 5; 8 has mode 5.
Frequency
The number of times a value appears in the sample.Example: In 3;3;73; 3; 7, the value 3 has frequency 2.
Outlier
A value that is very large or very small compared with most of the other values.Example: The number 100 in the data sample 3;5;8;9;1003; 5; 8; 9; 100.
Sample size
The number of values in the data sample, usually denoted nn.Example: The data sample 1;2;3;41; 2; 3; 4 has sample size n=4n = 4.