Statistics with technology and critical reading
A mobile phone company posts a bar chart on social media: its network looks twice as good as its rival's. Is it really? The media, social networks and advertising are full of graphs and percentages. Some inform well; others, without exactly lying, mislead. Knowing statistics also helps you defend yourself: to read a figure and ask yourself, "Is this true, or is someone trying to sell it to me?".
Statistics with a spreadsheet
A spreadsheet does in a second what takes a while by hand. The most useful functions (these names work in Excel and Google Sheets, with commas between the parts):
| I want to… | Function |
|---|---|
| Mean | =AVERAGE(A1:A20) |
| Median | =MEDIAN(A1:A20) |
| Mode | =MODE(A1:A20) |
| Maximum / minimum | =MAX(…) / =MIN(…) |
| Range | =MAX(A1:A20)-MIN(A1:A20) |
| Total | =SUM(A1:A20) |
| Count how many meet a condition | =COUNTIF(A1:A20,">15") |
Guided practice: data, calculations, graph and conclusion
We continue the investigation into journey time to school with these fictitious data, in minutes: 4, 6, 8, 10, 10, 12, 14, 16. They represent a sample for learning the procedure, not real results from the school.
-
Type
Minutesin A1 and the eight data values in A2:A9, one per cell. Before calculating, estimate: the mean should be close to 10. -
In C1 type
Measureand in D1,Result. Use the table below to complete C2:D5. -
In F1 type
Minutesand 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 down to G8. You should get 1, 1, 1, 2, 1, 1, 1; the sum is 8. -
Select F1:G8 and insert a column chart with separate columns. Give it the title "Journey time: sample of 8 students", label the horizontal axis "Minutes" and the vertical axis "Number of students", starting at zero. Here we are plotting the recorded minutes as discrete values; with class intervals we would use a histogram.
| Cell C | Cell D: formula | Expected result |
|---|---|---|
| Mean | =AVERAGE(A2:A9) |
10 min |
| Median | =MEDIAN(A2:A9) |
10 min |
| Proportion of times of at most 10 min | =COUNTIF(A2:A9,"<=10")/COUNT(A2:A9) |
0.625; with percentage formatting, 62.5% |
Function names and separators may vary depending on the application and its language. Choose the equivalent function using its description if your spreadsheet uses different names.
To try your own data, take the daily maximum temperatures at the nearest Met Éireann weather station over the last 15 days. Decide whether the variable is categorical or numerical (discrete or continuous), build a frequency table with intervals of equal width and draw a histogram.
Working in a team and learning from mistakes
In a team of three, share out the roles of recorder, checker and spokesperson, and rotate them whenever the data change. Before deciding, each person explains their proposal; the team notes one reason in favour and one limitation. If there is disagreement, go back to the data or try both options. Challenge the argument without putting the person down, and make sure everyone can take part, including those who need more time or an enlarged table.
If you get stuck, write down how you feel and which specific step you don't understand. Try with less data, draw a table or ask someone to explain their strategy. When you finish, complete: "I thought that…; when I checked…; now I would change…". Correcting a formula or changing method is part of mathematical work.
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.
- a) What does the formula in cell B11, $=\text{AVERAGE}(B2:B9)$, calculate?
- b) And the one in cell B12, $=\text{MEDIAN}(B2:B9)$?
- 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.
Lucas is using a spreadsheet to calculate the average mark of his five Mathematics exams. He has entered the marks in cells $B2$ to $B6$: $6$, $7$, $8$, $7$, and $7$. To…
Lucas is using a spreadsheet to calculate the average mark of his five Mathematics exams. He has entered the marks in cells $B2$ to $B6$: $6$, $7$, $8$, $7$, and $7$. To organize himself, in cell $B7$ he calculates the sum of all the marks using the formula $=\text{SUM}(B2:B6)$, obtaining $35$. Then, in cell $B8$, he writes $=\text{AVERAGE}(B2:B7)$ hoping to obtain his final average mark, but the screen displays $11.67$, an impossible mark since it is out of $10$.
- a) Identify the mistake Lucas made when defining the formula's range in $B8$ and explain with reasoning why the spreadsheet returns $11.67$.
- b) Write the correct formula he should have entered in $B8$ to calculate the mean directly with the $\text{AVERAGE}$ function.
- c) If Lucas wanted to use the sum value he already calculated in $B7$, what formula with basic arithmetic operations (without using the word $\text{AVERAGE}$) could he write in $B8$?
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.
- a) What value will cell B10 show if it contains the formula $=\text{AVERAGE}(B2:B8)$? Calculate it.
- b) Cell B11 contains $=\text{MAX}(B2:B8) - \text{MIN}(B2:B8)$. Which statistical parameter does it calculate and what is its value?
- 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.
Changing the data
When one value changes, or every value changes in the same way, you do not need to start from scratch. Edit the numbers below and watch the mean and the median.
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$.
- 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.
- b) If instead they multiply all the marks by $1.1$, what happens to the mean and the median?
- c) The sum of the $10$ marks was $64$. After checking, a mark of $4$ is corrected to $7$. What is the new mean?
A small local IT services company has seven employees on its staff. In a spreadsheet, their monthly net salaries (in euros) have been recorded in cells $B2$ to $B8$:…
A small local IT services company has seven employees on its staff. In a spreadsheet, their monthly net salaries (in euros) have been recorded in cells $B2$ to $B8$: $1\,250$, $1\,300$, $1\,300$, $1\,350$, $1\,400$, $1\,450$, and $5\,950$ (the latter corresponds to the company's management). To publish a job vacancy, the communications department must decide which statistical parameter to include as the team's "typical salary".
- a) Calculate the result that the formula $=\text{AVERAGE}(B2:B8)$ would provide and the one that $=\text{MEDIAN}(B2:B8)$ would yield.
- b) Choose which of the two methods is more representative to honestly inform someone applying for an entry-level position at the company, and justify your choice by analyzing the impact of the highest salary.
- c) If the company ultimately decides to publish the mean value instead of the median, what persuasive intent do you think it is pursuing, and which rule of critical data reading is being violated?
In a school spreadsheet, cells $B2$ to $B6$ show the weekly hours that five students from a class spend doing sports. By mistake, the data item corresponding to cell…
In a school spreadsheet, cells $B2$ to $B6$ show the weekly hours that five students from a class spend doing sports. By mistake, the data item corresponding to cell $B6$ has been deleted. For the other four cells, the values are known: $3$, $4$, $6$, and $8$ hours.
- a) Knowing that cell $B7$ contains the formula $=\text{AVERAGE}(B2:B6)$ and returns exactly a value of $6$ hours, reconstruct the numerical value that must appear in the empty cell $B6$.
- b) With the data item for $B6$ now recovered, calculate the value that the formula $=\text{MEDIAN}(B2:B6)$ would return.
- c) Imagine that the student in cell $B6$ competes at a professional level and actually trains $25$ hours per week instead of the value you found. Without recalculating everything, explain whether the median value would change compared to the previous section and justify why the median is a more robust parameter against outliers than the mean.
Graphs that mislead
In a bar chart, cutting the vertical axis can exaggerate a small difference, because we interpret the length of the bars as quantity. Other graphs, such as those showing change over time, can use an axis that does not start at zero if the scale is clearly indicated: you have to judge what is being represented and how.
Other common tricks:
-
Pie charts whose sectors don't add up to 100%, or tilted 3D graphs where the sector at the front looks bigger.
-
Pictograms in which a figure twice as tall is also twice as wide: it takes up 4 times more area!
-
Different scales on two graphs that are being compared.
-
Small or biased samples: "9 out of 10 users recommend it" (out of how many? Who chose them?).
-
Percentages without the base: "sales rise by 100%" (from 2 to 4 units).
To check a claim of growth, use the percentage change: $\frac{\text{new} - \text{old}}{\text{old}} \times 100\%$. Going from €40 to €50 is $\frac{10}{40} \times 100\% = 25\%$, however steep the bars look. In a pie chart, the angle of a sector is $\frac{\text{value}}{\text{total}} \times 360^\circ$, so 25% is $90^\circ$ and all the angles add up to $360^\circ$.
A television channel showed this bar chart about the audience of two programmes, as shown in the figure. a) At first glance, how many times more audience does programme…
A television channel showed this bar chart about the audience of two programmes, as shown in the figure.
- a) At first glance, how many times more audience does programme B seem to have than A?
- b) Read the actual values from the bars and calculate the true proportion between both audiences.
- 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.
A municipality's newsletter publishes a bar chart to show how the number of registered members at the municipal sports centre has grown. In 2022 there were $500$…
A municipality's newsletter publishes a bar chart to show how the number of registered members at the municipal sports centre has grown. In 2022 there were $500$ registered people, and in 2023 $520$ were recorded. However, the graphic designer decided to truncate the vertical axis and start it at $490$ instead of $0$. Thus, the 2022 bar has a graphical height of $10$ mm ($500 - 490$) and the 2023 bar measures $30$ mm ($520 - 490$).
- a) Estimate the visual impression a resident gets by looking at the chart at first glance without reading the numbers on the axis: by how many times does the number of users appear to have multiplied?
- b) Check the reality by calculating the real percentage increase in registrations from 2022 to 2023.
- c) Critically assess whether the chart is misleading and explain what mandatory geometric modification the vertical axis should have so as not to distort the reader's perception.
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.
- a) Read the actual values for annual spending from the graph and calculate the true percentage increase between the first and last year.
- b) Why does the graph give a much more alarming impression than the data? Point out at least two design decisions that cause this.
- c) Rewrite the headline honestly using the data.
- d) What questions would you ask about the survey sample before accepting even that moderate increase?
Choosing the right graph
A good graph matches the type of data. Use this guide:
| Data | Best chart | Why |
|---|---|---|
| Categories (favourite sport) or a few separate values (number of pets) | Bar chart, with gaps between the bars | Compares sizes |
| Parts of a whole that add up to 100% | Pie chart | Shows shares |
| Numerical data grouped in equal intervals (heights, times) | Histogram, bars touching | The axis is a continuous scale |
| Change over time (monthly temperature) | Line graph | Shows the trend |
If people can tick more than one answer, the percentages add up to more than 100%, so a pie chart is not suitable: use a bar chart.
For each of these data sets, choose the most suitable chart (bar chart, pie chart, line graph, frequency polygon or histogram) and justify your choice: a) The percentage…
For each of these data sets, choose the most suitable chart (bar chart, pie chart, line graph, frequency polygon or histogram) and justify your choice:
- a) The percentage of time a teenager spends sleeping, studying, on leisure and on screens.
- b) The month-by-month evolution of the average temperature of a city over a year.
- c) The maths marks of a class of $28$ students.
- d) The number of pets that the students in a year group have at home.
You can do it on paper and send a photo with your answer.
A soft drinks brand published this pie chart about consumer preferences, as shown in the figure. a) Add up the percentages of all the sectors. What result do you get? Is…
A soft drinks brand published this pie chart about consumer preferences, as shown in the figure.
- a) Add up the percentages of all the sectors. What result do you get? Is this possible in a pie chart?
- b) Explain what might have happened in the survey to obtain these data and why a pie chart is not suitable to present them.
- c) What type of chart would you choose to represent these percentages correctly?
Samples, causes and headlines
A headline usually comes from a sample, not from the whole population. The sample must be big enough and unbiased: everyone in the population had a fair chance of being chosen. The share of the population surveyed is $\frac{n}{N} \times 100\%$.
When a headline links two things, also ask whether a third factor could explain both (heat explains ice-cream sales and swimming accidents), and whether a few months of data can really show a pattern. For any headline ask: who was asked, how many, how were they chosen, what is the percentage of, and where does the axis start?
The school council of a secondary school with $850$ students wants to decide which new extracurricular activity to offer. A student surveys $40$ students outside the gym…
The school council of a secondary 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 sport, so we need to set up a climbing club".
- a) What is the sample size? What is the population?
- b) What flaw is there in the way the sample was chosen? How does it affect the conclusion?
- c) Propose a better way to select the $40$ survey respondents and explain why the conclusion would be more reliable.
- d) What percentage of the population does the sample represent? Express it to two decimal places.
A news website publishes the following headline: "Health alert: eating watermelon in summer triggers hospital admissions for heatstroke". To justify this, they display…
A news website publishes the following headline: "Health alert: eating watermelon in summer triggers hospital admissions for heatstroke". To justify this, they display the following table with genuine data from a district over six months, entered in a spreadsheet in columns $A$ (Month), $B$ (Tons of watermelon sold), and $C$ (Heatstroke cases treated):
-
May: $15$ t of watermelon and $2$ heatstrokes.
-
June: $60$ t of watermelon and $16$ heatstrokes.
-
July: $150$ t of watermelon and $45$ heatstrokes.
-
August: $170$ t of watermelon and $52$ heatstrokes.
-
September: $45$ t of watermelon and $8$ heatstrokes.
-
October: $10$ t of watermelon and $0$ heatstrokes.
- a) Model the observed relationship between both variables: describe whether there is a positive, negative, or zero correlation between watermelon consumption and heatstroke cases, justifying it using the data from the table.
- b) Apply the critical reading criterion "correlation does not imply causation" to debunk the article's headline. What is the underlying confounding variable that explains why both data series rise and fall together?
- c) In cell $C7$, there is a $0$ corresponding to the month of October. If someone were to delete that number, leaving the cell completely empty (blank), how would this affect the result returned by the formula $=\text{AVERAGE}(C2:C7)$? Explain the technical difference between how a spreadsheet processes an empty cell and a cell with the number $0$ when calculating the mean.
A soft drink brand presents an advertising campaign under the slogan: "$80\,\%$ of consumers prefer our brand over the leading competitor". When reviewing the technical…
A soft drink brand presents an advertising campaign under the slogan: "$80\,\%$ of consumers prefer our brand over the leading competitor". When reviewing the technical report supporting the advertisement, a consumers' association discovers three questionable methodological decisions:
-
The total sample consisted of $20$ customers selected as they were leaving a concert sponsored by the brand itself (of which $16$ said "Yes" to their soft drink and $4$ said "No").
-
The advertisement includes a pie chart where the "Yes" sector is drawn with a central angle of $324^\circ$ and the "No" sector with $36^\circ$.
-
The brand claims that if they manage to convince $5$ more people to vote favorably in a second survey with $25$ people in total ($21$ affirmative votes out of $25$), the approval percentage will have grown by exactly $25\,\%$ compared to the initial sample.
- a) Detect the error made in the construction of the pie chart: calculate the central angle that would actually correspond to $80\,\%$ and explain what misleading visual effect is caused by the angle drawn by the brand.
- b) Formulate a reasoned critique of the sample size and the selection procedure: why can these results not be extrapolated to the whole population of consumers in Ireland?
- c) Correct the calculation error in the technical report: calculate the actual percentage of support if there were $21$ favorable opinions out of $25$ respondents, and explain why it is false that support has increased by $25\,\%$, clarifying the difference between percentage points and percentage increase.
Spread: standard deviation
A frequency polygon, which joins the midpoints of the tops of a histogram's bars, is also beyond the course.
Two teams can have almost the same mean and still be very different: in one every player gets similar minutes, in the other some play 30 and some play 2. The mean and median give the centre, the range gives a rough spread, and the standard deviation, written $\sigma$, gives the typical distance of the data from the mean. Small $\sigma$ means consistent data; large $\sigma$ means spread out.
Why square? Distances above and below the mean would cancel out to 0, so we square them, average them, and take the square root to get back to the original units.
On a spreadsheet use =STDEV.P(A2:A9). On a scientific calculator, go into STAT mode (1-VAR), enter the data and read the key marked $\sigma x$ (population standard deviation). The calculator does the work; explaining what the number means is your job.
Most data usually lie within two standard deviations of the mean, so $\bar{x} \pm 2\sigma$ gives a rough range of typical values. To compare the spread of data sets with very different means, use the coefficient of variation $\frac{\sigma}{\bar{x}} \times 100\%$: a mean of 10 with $\sigma = 2$ gives 20%, while a mean of 100 with $\sigma = 10$ gives 10%, so the second set is relatively more consistent.
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.
- a) Which team distributes the minutes more evenly among its players? Which parameter tells you this?
- 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?
- 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.
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$ |
- a) Calculate the mean $\bar{x}$ and complete the table in your exercise book.
- b) What spreadsheet formula would give the value of the cell in the second column for data $4$? And for the third column?
- 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.
- 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.
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}$.
- 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.
- b) If instead they were looking for the runner capable of achieving the best time of the day, would your choice change? Why?
- 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.
Putting it together
These techniques are exactly what you need for CBA 2, the Statistical investigation you carry out in 3rd Year. A critical statistical report answers: What was the question? Who was asked and how were they chosen? What type of variable is it? What do the table, graph and measures say? What are the limits of the conclusion?
Mean of grouped data (Higher Level only)
When data are grouped, use the mid-interval value of each interval as a stand-in for its data: mean ≈ (sum of frequency × mid-interval value) ÷ total frequency. On a spreadsheet: =SUMPRODUCT(B2:B3,C2:C3)/SUM(C2:C3).
Software draws whatever you ask it to. It may start a bar chart's axis at 480 so that the bars fill the screen, so always check a chart before you share it.
Back to the start: the phone company's chart showed 96% against 93%, but with the axis starting at 90 the bars were 6 and 3 units tall, so its network looked twice as good. The real difference is only 3 percentage points.
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:
- 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."
- b) "If a statistical chart is produced with computer software, it cannot be misleading."
- c) "A scientific calculator can provide the standard deviation even if we do not understand the formula, but interpreting it remains our job."
- 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."
Topic challenge. Is the weather over these two weeks representative in your town or city? Become a data analyst and produce a critical meteorological report. 1. Data…
Topic challenge. Is the weather over these two weeks representative in your town or city? Become a data analyst and produce a critical meteorological report.
-
Data collection and classification: Go to the Met Éireann website and record the daily maximum temperature of your county over the last $15$ days. Identify the type of statistical variable with reasons and create its complete frequency table in a spreadsheet (or GeoGebra).
-
Parameters and chart: Using spreadsheet formulas, obtain the mean ($\bar{x}$), the median ($Me$), the range and the standard deviation ($\sigma$). With the same tool, generate the most appropriate statistical chart, properly labelling the axes and units.
-
Critical reading and conclusions: Write a brief report (one page) analysing whether the mean faithfully describes thermal behaviour or whether a high standard deviation (for example, greater than $3.5$ °C) indicates too much dispersion. Reflect: could a media outlet manipulate the perception of the climate by using only one of these parameters?
Evaluation criteria:
-
Rigour in classifying the variable and correct creation of the frequency table.
-
Precision in the calculated parameters and technical quality of the chart in a spreadsheet or GeoGebra.
-
Depth of critical reading regarding the representativeness of the measures and dispersion.