Back to homeMathematics · Secondary Year 3 · Change subject
Start for free
Secondary 3 · Mathematics
Statistics · Statistics

Statistics with technology and critical reading

Before you start, make sure you know: Statistical parameters (Secondary Year 2 (first cycle))
Before you start, make sure you know: Representing data (Secondary Year 2 (first cycle))

You open Instagram and see a graph from a soda brand with one giant bar next to a tiny one, and a headline shouting "Sales through the roof!" Is it true, or are they just selling you something? Knowing statistics also helps you defend yourself: you can read a number and ask who calculated it, how, and why.

Statistics with a spreadsheet

A spreadsheet (Excel, Google Sheets, LibreOffice) does in a second what takes a while by hand. The most useful functions, in English:

I want… Function
Mean =AVERAGE(A1:A20)
Median =MEDIAN(A1:A20)
Mode =MODE(A1:A20)
Maximum / minimum =MAX(…) / =MIN(…)
Range (maximum − minimum) =MAX(A1:A20)-MIN(A1:A20)
Quartiles =QUARTILE(A1:A20, 1)
Standard deviation (population) =STDEV.P(A1:A20)
Count how many meet a condition =COUNTIF(A1:A20, 5)

Depending on the spreadsheet's settings, the argument separator can be a comma or a semicolon. If your program uses different names, look up the function by its description.

The range is the simplest measure of spread: the distance between the largest and smallest data values. If a player scores between 6 and 20 points, her range is $20-6=14$ points. It tells you how wide the spread of the data is, but it only looks at the two extremes.

Spreadsheet with three numerical data values in a column and the result of the AVERAGE function calculated automatically ·AB 1points 218 324 412 5=AVERAGE(A2:A4) 18 type the formulaand the spreadsheet calculates

Guided practice: data, calculations, graph, and conclusion

Let's use the arrival time at school, in minutes, of eight students (made-up data to learn the procedure): 4, 6, 8, 10, 10, 12, 14, 16.

  1. Type Minutes in A1 and the eight data values in A2:A9. Before calculating, estimate: the mean should be close to 10.

  2. In C1 type Measure and in D1, Result. Fill in C2:D5 using the table below.

  3. In F1 type Minutes and in G1, Frequency. In F2:F8 enter 4, 6, 8, 10, 12, 14, 16. In G2 type =COUNTIF($A$2:$A$9,F2) and copy it down to G8. You should get 1, 1, 1, 2, 1, 1, 1; the sum is 8.

  4. Select F1:G8 and insert a column chart. Give it a title, label both axes, and make the vertical axis start at zero.

Cell C Cell D: formula Expected result
Mean =AVERAGE(A2:A9) 10 min
Median =MEDIAN(A2:A9) 10 min
Standard deviation of the data set =STDEV.P(A2:A9) approx. 3.74 min
Proportion of times of 10 min or less =COUNTIF(A2:A9,"<=10")/COUNT(A2:A9) 0.625 (62.5%)

What the spreadsheet calculates and what is up to you

The spreadsheet and the calculator do the arithmetic; interpreting the result is your job. Three ideas that help you reason without knowing the data:

  • If you add a fixed amount to all the data values, the mean and median go up by that same amount. The spread doesn't change.

  • If you multiply all the data values by a number, the mean and median are multiplied by that number.

  • If a single data value changes, the sum changes, and the new mean is (new sum) ÷ (number of data values).

To find the standard deviation by hand, you build a table: data value, deviation $x_i-\bar{x}$, and its square. The variance is the mean of those squares, and the standard deviation is its square root:

$$\sigma^2=\frac{\sum (x_i-\bar{x})^2}{n}\qquad \sigma=\sqrt{\sigma^2}$$

In the spreadsheet, for the data value in A2, the deviation is written =A2-AVERAGE($A$2:$A$9) and its square, =(A2-AVERAGE($A$2:$A$9))^2. The $ signs fix the range when you copy the formula down.

Mean with grouped data

If the data come in intervals, you don't know each individual value, so the spreadsheet uses the class mark (the midpoint of each interval) as if all the data in the interval were equal to that. The mean is $\bar{x}=\dfrac{\sum f_i\, m_i}{n}$, where $m_i$ is the class mark and $f_i$ is the frequency.

Example: scores in the intervals $[60, 70)$, $[70, 80)$, and $[80, 90)$ with frequencies 2, 5, and 3. The class marks are 65, 75, and 85, and the mean is $\dfrac{2\times65+5\times75+3\times85}{10}=\dfrac{760}{10}=76$.

It is only an approximation: within each interval the real data can be above or below the midpoint. That is why the mean using class marks doesn't have to match exactly the mean of the original data, although it is usually close.

Practice★☆☆Not started
The figure shows a spreadsheet with the ages of the members of a book club. In cells B11 and B12 the sheet shows the results of the formulas $=\text{AVERAGE}(B2:B9)$ and…

The figure shows a spreadsheet with the ages of the members of a book club. In cells B11 and B12 the sheet shows the results of the formulas $=\text{AVERAGE}(B2:B9)$ and $=\text{MEDIAN}(B2:B9)$, respectively. The top bar shows the formula of cell B11, which is the selected cell.

Spreadsheet with eight ages in B2:B9 and, below, the mean in B11 and the median in B12; the formula bar shows the formula of B11 B11 fx =AVERAGE(B2:B9) A B 1 2 3 4 5 6 7 8 9 10 11 12 Age 13 14 14 15 13 16 14 15 Mean 14.25 Median 14
  1. a) What does the formula in cell B11, $=\text{AVERAGE}(B2:B9)$, calculate?
  1. b) And the one in cell B12, $=\text{MEDIAN}(B2:B9)$?
  1. c) Calculate both values by hand from the ages in B2 to B9 and check that they match the ones the sheet shows in B11 and B12.
Solve
Practice★☆☆Not started
A statistical calculator indicates that the mean of the $10$ marks of a group is $6.4$ and the median is $6.5$. a) If the teacher decides to give $0.5$ extra marks to…

A statistical calculator indicates that the mean of the $10$ marks of a group is $6.4$ and the median is $6.5$.

  1. a) If the teacher decides to give $0.5$ extra marks to all students, what will the new mean and the new median be? Reason your answer without knowing the individual marks.
  1. b) If instead they multiply all the marks by $1.1$, what happens to the mean and the median?
  1. c) The sum of the $10$ marks was $64$. After checking, a mark of $4$ is corrected to $7$. What is the new mean?
Solve
Practice★★☆Not started
The figure shows a spreadsheet with the points per match scored by a basketball player, as shown below. a) What value will cell B10 show if it contains the formula…

The figure shows a spreadsheet with the points per match scored by a basketball player, as shown below.

fx Sheet1 > Data and Statistics A B 1 2 3 4 5 6 7 8 9 10 11 Points 12 18 9 21 15 17 13 Mean =AVERAGE(B2:B8) = ? Range =MAX(B2:B8)−MIN(B2:B8) = ?
  1. a) What value will cell B10 show if it contains the formula $=\text{PROMEDIO}(B2:B8)$? Calculate it.
  1. b) Cell B11 contains $=\text{MAX}(B2:B8) - \text{MIN}(B2:B8)$. Which statistical parameter does it calculate and what is its value?
  1. c) Write in your own words the formula that should be entered to obtain the number of matches in which she scored more than $15$ points.
Solve
Practice★★★Not started
To calculate the standard deviation of the data $4$, $6$, $7$, $7$, $9$, $11$ using a spreadsheet, a table is constructed with auxiliary columns: | Data $x_i$ |…

To calculate the standard deviation of the data $4$, $6$, $7$, $7$, $9$, $11$ using a spreadsheet, a table is constructed with auxiliary columns:

Data $x_i$ $x_i - \bar{x}$ $(x_i - \bar{x})^2$
$4$
$6$
$7$
$7$
$9$
$11$
  1. a) Calculate the mean $\bar{x}$ and complete the table in your exercise book.
  1. b) What spreadsheet formula would give the value of the cell in the second column for data $4$? And for the third column?
  1. c) Calculate the mean of the squares in the third column (the variance) and, using a calculator, find the square root to obtain the standard deviation.
  1. d) The sum of the second column is $0$. Is this a coincidence or would it happen with any data set? Justify your answer.

You can do it on paper and send a photo with your answer.

Solve

Comparing with the mean and standard deviation

The mean tells you where the center is; the standard deviation tells you how spread out the data are around it. Two groups can have almost the same mean and be very different.

Imagine two baseball teams with the same mean number of runs per game. If one always scores between 3 and 5 and the other alternates between 0 and 10, the first is more consistent (smaller standard deviation) and the second is more unpredictable.

  • Small deviation: data clustered close to the mean; the behavior is predictable.

  • Large deviation: widely scattered data; it is hard to predict a specific value.

Practice★★☆Not started
A coach uses an app to compare the minutes played by two basketball teams across $10$ matches. The app shows these results: North Team: mean $= 18.4$ min, standard…

A coach uses an app to compare the minutes played by two basketball teams across $10$ matches. The app shows these results:

  • North Team: mean $= 18.4$ min, standard deviation $= 7.9$ min.

  • South Team: mean $= 17.8$ min, standard deviation $= 2.1$ min.

  1. a) Which team distributes the minutes more evenly among its players? Which parameter tells you this?
  1. b) If the North coach wants a specific player to play a lot, is it predictable that they will manage it? What about in the South?
  1. c) The North team's mean is slightly higher. Does that mean that all of its players play more than those in the South? Reason your answer.
Solve
Practice★★★Not started
An athletics club needs to sign a relay runner and has the times of two candidates in their last $8$ $100\ \text{m}$ races: Candidate 1: mean $= 12.40\ \text{s}$,…

An athletics club needs to sign a relay runner and has the times of two candidates in their last $8$ $100\ \text{m}$ races:

  • Candidate 1: mean $= 12.40\ \text{s}$, standard deviation $= 0.45\ \text{s}$.

  • Candidate 2: mean $= 12.55\ \text{s}$, standard deviation $= 0.10\ \text{s}$.

  1. a) The coach needs a runner who will most reliably beat $12.9\ \text{s}$ in the championship, because a bad time will eliminate the team. Who should they sign? Reason your answer using the mean and standard deviation.
  1. b) If instead they were looking for the runner capable of achieving the best time of the day, would your choice change? Why?
  1. c) Calculate the coefficient of variation for each candidate, $CV = \frac{\sigma}{\bar{x}}$, and explain what information it adds compared to the standard deviation.
Solve

Graphs that mislead

In a bar graph, cutting the vertical axis can exaggerate a small difference, because we interpret the length of the bar as the quantity. In graphs of change over time (line graphs) a axis that doesn't start at zero is sometimes justified, but the scale must be clearly indicated.

Comparison of two bar graphs with the same data: one with a truncated vertical axis that exaggerates the difference and another with the axis starting at zero showing the real difference. axis from 40 (misleading) A: 42 %B: 47 % 40 axis from 0 (honest) A: 42 %B: 47 % 0

Other common tricks:

  • Sectors that don't add up to 100%, or 3D circle graphs where the front sector looks bigger. If the percentages add up to more than 100%, people could choose several options: in that case a bar graph is better than a circle graph.

  • Pictograms in which a figure that is twice as tall is also twice as wide: it takes up 4 times more area!

  • Different scales in two graphs that are being compared.

  • Percentages without the base: "sales go up 100%" (from 2 to 4 units!).

  • Exaggerated headlines: calculate the real increase yourself with the values in the graph: $\dfrac{\text{final}-\text{initial}}{\text{initial}}\times 100\%$.

Choosing the right graph is also part of being honest:

Data Suitable graph
Parts of a total (percentages that add up to 100%) Circle graph or bar graph
Categories or discrete data (number of pets) Bar graph
Change over time (temperature month by month) Frequency polygon or line graph
Continuous data grouped in intervals (a class's scores) Histogram
Practice★☆☆Not started
A television channel showed this bar chart about the audience of two programs, as shown in the figure. a) At first glance, how many times more audience does program B…

A television channel showed this bar chart about the audience of two programs, as shown in the figure.

Audience (millions) 2.5 2.4 2.3 2.2 2.1 2.0 2.1 M 2.4 M Program A Program B
  1. a) At first glance, how many times more audience does program B seem to have than A?
  1. b) Read the actual values from the bars and calculate the true proportion between both audiences.
  1. c) What trick does the graph use to exaggerate the difference? How should the vertical axis be designed so as not to be misleading?

You can do it on paper and send a photo with your answer.

Solve
Practice★☆☆Not started
For each of these data sets, choose the most suitable graph (bar graph, circle graph, line graph, frequency polygon or histogram) and justify your choice: a) The…

For each of these data sets, choose the most suitable graph (bar graph, circle graph, line graph, frequency polygon or histogram) and justify your choice:

  1. a) The percentage of time a teenager spends sleeping, studying, on leisure and on screens.
  1. b) The month-by-month evolution of the average temperature of a city over a year.
  1. c) The math grades of a class of $28$ students.
  1. d) The number of pets that the students in a grade have at home.
Solve
Practice★★☆Not started
A soft drink brand published this circle graph about consumer preferences, as shown in the figure. a) Add up the percentages of all the sectors. What result do you get?…

A soft drink brand published this circle graph about consumer preferences, as shown in the figure.

Which soft drink do you prefer? Soft drink A: 45 % Soft drink B: 38 % Soft drink C: 22 % Soft drink D: 15 %
  1. a) Add up the percentages of all the sectors. What result do you get? Is this possible in a circle graph?
  1. b) Explain what might have happened in the survey to obtain these data and why a circle graph is not suitable to present them.
  1. c) What type of graph would you choose to represent these percentages correctly?
Solve
Practice★★★Not started
Decision-making task. An online newspaper publishes the headline "Teenagers' spending on video games soars!" alongside the graph in the figure, as shown below. a) Read…

Decision-making task. An online newspaper publishes the headline "Teenagers' spending on video games soars!" alongside the graph in the figure, as shown below.

Spending soars! RD$118 RD$122 RD$127 RD$131 RD$135 RD$130 RD$125 RD$120 RD$115 RD$0 2021 2022 2023 2024 Year Mean annual spending (RD$)
  1. a) Read the actual values for annual spending from the graph and calculate the true percentage increase between the first and last year.
  1. b) Why does the graph give a much more alarming impression than the data? Point out at least two design decisions that cause this.
  1. c) Rewrite the headline honestly using the data.
  1. d) What questions would you ask about the survey sample before accepting even that moderate increase?
Solve

Biased samples and false causes

A correct number can come from a poorly chosen sample. The population is the group you want to talk about (the 850 students at a school); the sample is the part you actually ask. If you survey people leaving the gym, you are mostly asking people who already exercise: the sample is biased and the conclusion doesn't hold for the whole school.

A good sample is random (everyone has the same chance of being picked, for example by drawing roll numbers) and of a reasonable size. The percentage that the sample represents is $\dfrac{\text{sample}}{\text{population}}\times100\%$.

Questions for reading any data with a critical eye: Who published it and why? How many people were surveyed and how were they chosen? What is the percentage based on? Where does the axis start?

Practice★★☆Not started
The school council of a high school with $850$ students wants to decide which new extracurricular activity to offer. A student surveys $40$ students outside the gym and…

The school council of a high school with $850$ students wants to decide which new extracurricular activity to offer. A student surveys $40$ students outside the gym and concludes: "$70\ \%$ of students want more sports, so we need to set up a climbing club."

  1. a) What is the sample size? What is the population?
  1. b) What flaw is there in the way the sample was chosen? How does it affect the conclusion?
  1. c) Propose a better way to select the $40$ survey respondents and explain why the conclusion would be more reliable.
  1. d) What percentage of the population does the sample represent? Express it to two decimal places.
Solve
Practice★★★Not started
State whether each statement about the use of technology in statistics is true or false and justify your answer: a) "The mean calculated using a spreadsheet from data…

State whether each statement about the use of technology in statistics is true or false and justify your answer:

  1. a) "The mean calculated using a spreadsheet from data grouped into intervals (using class midpoints) is exactly the same as the one calculated using the original data."
  1. b) "If a statistical chart is produced with computer software, it cannot be misleading."
  1. c) "A scientific calculator can provide the standard deviation even if we do not understand the formula, but interpreting it remains our job."
  1. d) "To compare the dispersion of two data sets with very different means, it is better to use the standard deviation than the coefficient of variation."
Solve

Go back to the beginning: the soda graph with giant bars almost always hides a cut axis, a small sample, or a percentage without a base. With the real values and the questions above, you can check it yourself.

Summary

See all the exercises in this section