Skip to content
Gioi Toan
Start learning
A bar chart with three bars, the tallest one smiling

Notes on Lesson 3: Measures of central tendency of a data sample (Maths 10 Chan troi sang tao, Chapter VI)

Lesson summary

Meaning: the mean represents the values of the sample; it is a measure of central tendency of that sample.

When the data sample has an outlier (very large or very small compared with most other values), people do not use the mean to measure central tendency but use the median.

The mean is like sharing a cake equally: put everything together and give each friend an equal share.

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

  • Tính được 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 được ý nghĩa và vai trò của các số đặc trưng

In a group of 9 friends, most contribute from 5 to 25 thousand dong to the class fund, but one friend contributes 500 thousand. If we take the mean as the representative, we get nearly 69 thousand, much higher than what the other eight friends gave. So which number should we use to describe the whole group correctly? This lesson helps you compute the mean, median, quartiles and mode of an ungrouped data sample, understand what each measure tells you, and know which one to choose to suit real data.

Practise similar problems

Key ideas: what do you need to know?

Mean

  • For the data sample x1,x2,...,xnx_1, x_2, ..., x_n. The mean (also called the average) of the data sample, denoted x‾\overline{x}, is given 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 nin_i is the frequency of the value xix_i and n=n1+n2+...+nkn = n_1 + n_2 + ... + n_k, the mean is given by

x‾=n1x1+n2x2+...+nkxkn.\overline{x} = \frac{n_1x_1 + n_2x_2 + ... + n_kx_k}{n}.

  • Meaning: the mean represents the values of the sample; it is a measure of central tendency of that sample.
  • Example: the sample 4;5;6;7;84; 5; 6; 7; 8 has x‾=305=6\overline{x} = \frac{30}{5} = 6.

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

Phrase by phrase
Mean
The sum of all the 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 how many times it appears.Example: If the value 7 appears 4 times, the frequency of 7 is 4.
the 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 is 7.2, then 7.2 lies in the middle of the common score range.

Median

  • When the data sample has an outlier (very large or very small compared with most other values), people do not use the mean to measure central tendency but use the median.
  • To find the median (denoted MeMe) of a data sample, we do the following:

+ Arrange the values in the data sample in non-decreasing order.
+ If the number of values in the data sample is odd, the middle value of the sample is the median. If it is even, the median is the average of the two middle values of the sample.

  • In short: after arranging we get X1,X2,...,XnX_1, X_2, ..., X_n; if n=2k−1n = 2k - 1 then Me=XkMe = X_k; if n=2kn = 2k then Me=12(Xk+Xk+1)Me = \frac{1}{2}(X_k + X_{k+1}).
  • Meaning: the median is not affected by outliers while the mean is affected by outliers. Therefore, when a data sample has an outlier, people usually use the median to represent the quantitative data.
  • Example: the sample 3;5;8;9;203; 5; 8; 9; 20 has n=5n = 5 odd, k=3k = 3, so Me=8Me = 8.

In plain words: The median is the friend standing in the middle of the line when you line up by height. Even if one unusually tall friend stands at the end of the line, the middle friend does not change place. That is why the median resists outliers: it only cares about order, not about how large a value is. Remember two things: you must arrange first, and if the number of values is even, take the average of the two friends 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 exact middle after arranging the data sample.Example: Data sample 1;4;61; 4; 6 has median 4.
non-decreasing order
Arrange in ascending order, 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.
Me=12(Xk+Xk+1)Me = \frac{1}{2}(X_k + X_{k+1})
Formula for the median when the sample size is even: take the average of the two middle values.Example: Data sample 2;4;6;102; 4; 6; 10 has Me=4+62=5Me = \frac{4 + 6}{2} = 5.

Common mistakesSeeing that the sample has an outlier but still insisting on using the mean to represent it, so the conclusion is pulled off. When there is an outlier, you should use the median.

Quartile

  • To find the quartiles of a data sample with nn values, we do the following:

+ Arrange the data sample in non-decreasing order.
+ Find the median. This value is Q2Q_2.
+ Find the median of the left half of the data Q2Q_2 (not including Q2Q_2 if nn is odd). This value is Q1Q_1.
+ Find the median of the right half of the data Q2Q_2 (not including Q2Q_2 if nn is odd). This value is Q3Q_3.

  • Q1,Q2,Q3Q_1, Q_2, Q_3 are called the quartiles of the data sample.
  • Meaning: the points Q1,Q2,Q3Q_1, Q_2, Q_3 divide the data sample, arranged in ascending order, into four parts, each containing 25% of the values.
  • Note: Q1Q_1 is called the first quartile or lower quartile, Q3Q_3 is called the third quartile or upper quartile.
  • Example: data 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 row into four equal groups: the low group, the low-middle group, the high-middle group, the high group. Q1Q_1 is the end mark of the first group, Q2Q_2 is the middle mark, Q3Q_3 is the end mark of the third group. The trick is to find Q2Q_2 first, then cut the sample in half at Q2Q_2. The easiest place to go wrong is when nn is odd: 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 arranged sample into four parts equal in the number of values.Example: A sample of 8 values means each part has 2 values.
Q2Q_2
The second quartile, which is the median of the whole sample.Example: Data sample 1;2;3;41; 2; 3; 4 has Q2=2,5Q_2 = 2,5.
lower quartile
Another name for Q1Q_1.Example: Data sample 2;3;5;7;8;10;122; 3; 5; 7; 8; 10; 12 has lower quartile 3.
not including Q2Q_2 if nn is odd
When cutting the sample in half, leave the middle value out of both halves.Example: Data 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 sample in half at Q2Q_2, then find the median of each half; remember to leave out Q2Q_2 when nn is odd.

Mode

  • The mode of a data sample is the value that appears with the greatest frequency.
  • Meaning: the mode can be used to measure the central trend of a data sample when the data sample has many coincident values.
  • Remarks:

+ The mode may not be unique: data sample 8;7;10;9;7;5;7;8;88; 7; 10; 9; 7; 5; 7; 8; 8 has two modes, 7 and 8.
+ When the values in the data sample appear with equal frequency, the data sample has no mode.
+ The mode is also defined for qualitative data samples (qualitative data), for example the choice with the most votes in an opinion poll.

  • Example: data 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 the most. That is why the mode suits classified data such as shoe sizes sold, shirt colours chosen, drinks ordered. Remember two things: count the frequency first, then draw the conclusion, and if two values tie for the most appearances the sample has two modes, while if every value appears equally the sample has no mode.

Phrase by phrase
Mode
The value with the greatest frequency in the sample.Example: Data sample 1;4;4;61; 4; 4; 6 has mode 4.
greatest frequency
The most appearances.Example: In 2;3;3;5;7;7;7;92; 3; 3; 5; 7; 7; 7; 9, the greatest frequency is 3, for the value 7.
no mode
Every value appears with equal frequency.Example: Data sample 1;2;3;41; 2; 3; 4 has no mode.

Meaning and how to choose a representative number

  • The mean, median, quartiles and mode are all numbers that measure the central trend, that is, numbers that tell us about the central position of the data sample and are used to represent the data sample.
  • The mean is used to represent the sample when the values are fairly even, with no outlier.
  • The median is used when the sample has an outlier, because it is not pulled off by those values.
  • The quartiles also show where the marks fall when the sample is divided into four parts, useful when comparing two samples.
  • The mode is used when the sample has many coincident values, especially classified data.
  • 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, the median of 15 thousand dong should be used as the representative; the mean of about 68.9 thousand dong is pulled up by the value 500.

In plain words: Each representative number is a way of looking at a data sample, like looking at a person through height, weight or clothing size. No 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: 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
An outlier, whether it is very large or very small, does not change the median much.Example: The data sample 3;5;8;9;1003; 5; 8; 9; 100 still has median 8.

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 you must add all 7 numbers, 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 scores of 10 students in a 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 it with the usual formula.

Show the solution to example 2

Step 1: a) Count the frequencies: 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) Calculate n1x1+n2x2+...+nkxk=1⋅6+2⋅7+3⋅8+2⋅9+2⋅10=6+14+24+18+20=82n_1x_1 + n_2x_2 + ... + n_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 many times is added that many times, so multiply the frequency by the value to save work.
Step 3: x‾=8210=8,2\overline{x} = \frac{82}{10} = 8,2.
Step 4: Check: 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, and dividing 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 arranged in non-decreasing order, n=5n = 5 is odd, n=2k−1n = 2k - 1 with k=3k = 3, so Me=X3=8Me = X_3 = 8.
Step 2: b) The sample is already arranged in non-decreasing order, n=4n = 4 is even, n=2kn = 2k with k=2k = 2, so Me=12(X2+X3)=4+62=5Me = \frac{1}{2}(X_2 + X_3) = \frac{4 + 6}{2} = 5.
Why: When the sample size is even there is no single middle value, 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, which is greater than the median 8 because the number 20 pulls it up.
Result: a) Me=8Me = 8; b) Me=5Me = 5.

Common mistakesFinding the median while forgetting to arrange the sample in non-decreasing order, and just taking the middle value of the original list. You must rearrange it before finding the middle position.

Common mistakesWhen the sample size is even, still taking one middle value as the median, whereas you must take the average of the two middle values.

TipWith an odd nn, the median sits exactly at position n+12\frac{n+1}{2}; with an even nn, 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, which is odd, and is already arranged in non-decreasing order. The median is Q2=X4=7Q_2 = X_4 = 7.
Step 2: The left half (not including Q2Q_2) is 2;3;52; 3; 5, and its median is Q1=3Q_1 = 3. The right half is 8;10;128; 10; 12, and 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, which is 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 the 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 sample in non-decreasing order and number the positions X1,X2,...,XnX_1, X_2, ..., X_n so you don't get confused.

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 two times, 40 three times, 41 four times, 42 one time, 43 one time.
Step 2: The greatest frequency is 4, which belongs to the value 41, so the mode is 41.
Why: The mode is the value with the greatest frequency, not the middle value or the maximum value.
Step 3: b) Size 41 sells best, so restocking size 41 is the most reasonable choice.
Result: a) the mode is 41; b) restock size 41.

Common mistakesConfusing the mode with the maximum value or the middle value of the sample; the mode is the value with the greatest frequency, and has nothing to do with how large the value is.

Example 6

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

Show the solution to example 6

Step 1: The sample is already arranged 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=15Me = X_5 = 15 (thousand dong).
Why: The mean adds all 9 values, so the number 500 pulls it up very strongly to 68.9, more than 4 times the level of 15; the median only looks at the fifth value, so it stays right where most students' donations are.
Step 4: b) Only one student donated 500 thousand, and 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 to represent them.
Result: a) x‾=6209≈68,9\overline{x} = \frac{620}{9} \approx 68,9 thousand dong, Me=15Me = 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: Sample 4;6;84; 6; 8 has x‾=6\overline{x} = 6.
Median
The value at the middle position of the sorted sample, denoted MeMe.Example: Sample 1;3;91; 3; 9 has Me=3Me = 3.
Quartile
The three marks Q1,Q2,Q3Q_1, Q_2, Q_3 divide the sorted sample into four equal parts.Example: 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.
Lower quartile
Another name for Q1Q_1.Example: Data sample 2;3;5;7;8;10;122; 3; 5; 7; 8; 10; 12 has lower quartile 3.
Upper quartile
Another name for Q3Q_3.Example: Sample 2;3;5;7;8;10;122; 3; 5; 7; 8; 10; 12 has upper quartile 10.
Mode
The value that appears with the highest frequency in the data sample.Example: 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 sample 3;5;8;9;1003; 5; 8; 9; 100.
Sample size
The number of values in the data sample, usually denoted nn.Example: Sample 1;2;3;41; 2; 3; 4 has sample size n=4n = 4.