πŸ‡¨πŸ‡© Statistics: data handling

Tables, graphs and means

⏱ 25 minOfficial programme: CD-E7-STA-01

Your answers are checked, but your progress is not saved. To save it, sign in with your family code, or ask a parent to open this course from the dashboard.

🎯 In this lesson, you will learn to

  • Build frequency tables and graphs.
  • Compute simple and weighted means.

The lesson

Introduction

To prepare a parents’ meeting, the school in Isiro asks each 7th-grade pupil how many children live in their family. With the answers, a table and a chart must be made and a mean computed. This is the work of statistics: organising data so that it is easy to read. In this lesson you learn how to do it.

Explanation

Vocabulary and frequency table

  • The population is the whole set studied; each element is an individual.
  • The variable is what we observe. It is qualitative (colour, crop, means of transport) or quantitative (age, mass, number of children).
  • The frequency count of a value is the number of individuals with that value; the total count NN is the sum of the counts.
  • The relative frequency of a value is countN\dfrac{\text{count}}{N}; it is often given as a percentage. The relative frequencies add up to 11, that is 100 %100\,\%.

A frequency table gives, for each value, its count and its relative frequency.

Explanation

Charts

  • Stick chart (quantitative variable): the values on the horizontal axis; for each value, a vertical bar whose height is the count.
  • Bar chart (qualitative variable): same idea, with separate bars for each category.
  • Pie chart: the disc stands for the whole population; each value gets a sector whose angle is proportional to its count:
    angle=countNΓ—360∘\text{angle}=\frac{\text{count}}{N}\times360^\circ

Always give the chart a title and show the units on the axes.

Explanation

Means

  • Simple arithmetic mean of nn numbers: their sum divided by nn.
  • Weighted mean: when each value xix_i has a count (or a coefficient) nin_i,
    xˉ=n1x1+n2x2+⋯+nkxkn1+n2+⋯+nk\bar{x}=\frac{n_1x_1+n_2x_2+\dots+n_kx_k}{n_1+n_2+\dots+n_k}

Divide by the sum of the counts (or of the coefficients), not by the number of different values.

Worked example

Problem: 2020 families were asked how many children they have. Results: 00 children: 22 families; 11: 44; 22: 66; 33: 55; 44: 33. Make the frequency table and compute the mean number of children.

Step 1: Relative frequencies: 220=10 %\dfrac{2}{20}=10\,\%; 420=20 %\dfrac{4}{20}=20\,\%; 620=30 %\dfrac{6}{20}=30\,\%; 520=25 %\dfrac{5}{20}=25\,\%; 320=15 %\dfrac{3}{20}=15\,\%. Total: 100 %100\,\%.

Step 2: Sum of the products: 2Γ—0+4Γ—1+6Γ—2+5Γ—3+3Γ—4=0+4+12+15+12=432\times0+4\times1+6\times2+5\times3+3\times4=0+4+12+15+12=43.

Step 3: Weighted mean: xˉ=4320=2.15\bar{x}=\dfrac{43}{20}=2.15.

Answer: on average, 2.152.15 children per family.

Worked example

Problem: With the same data, compute the angles of the pie chart.

Step 1: One individual corresponds to 360∘20=18∘\dfrac{360^\circ}{20}=18^\circ.

Step 2: Angles: 2Γ—18∘=36∘2\times18^\circ=36^\circ; 4Γ—18∘=72∘4\times18^\circ=72^\circ; 6Γ—18∘=108∘6\times18^\circ=108^\circ; 5Γ—18∘=90∘5\times18^\circ=90^\circ; 3Γ—18∘=54∘3\times18^\circ=54^\circ.

Step 3: Check: 36+72+108+90+54=36036+72+108+90+54=360.

Answer: 36∘36^\circ, 72∘72^\circ, 108∘108^\circ, 90∘90^\circ, 54∘54^\circ.

Worked example

Problem: On the report card, Matondo has 1414 in mathematics (coefficient 44), 1212 in French (coefficient 33), 1515 in science (coefficient 22) and 1616 in drawing (coefficient 11). Compute the weighted mean.

Step 1: Products: 14Γ—4=5614\times4=56; 12Γ—3=3612\times3=36; 15Γ—2=3015\times2=30; 16Γ—1=1616\times1=16.

Step 2: Sum of the products: 56+36+30+16=13856+36+30+16=138. Sum of the coefficients: 4+3+2+1=104+3+2+1=10.

Step 3: xˉ=13810=13.8\bar{x}=\dfrac{138}{10}=13.8.

Answer: the mean is 13.813.8 (the simple mean 574=14.25\dfrac{57}{4}=14.25 ignores the coefficients).

Watch out

Watch out: in a weighted mean, divide by the sum of the coefficients (or of the counts), not by the number of subjects or values. For Matondo, dividing 138138 by 44 would give 34.534.5, an impossible mark out of 2020. Always check that your mean lies between the smallest and the largest value.

Key points

  • Population, individual, variable (qualitative or quantitative), count, relative frequency =countN=\dfrac{\text{count}}{N}.
  • Stick chart or bar chart: height == count.
  • Pie chart: angle =countNΓ—360∘=\dfrac{\text{count}}{N}\times360^\circ.
  • Simple mean: sum Γ·\div number of values.
  • Weighted mean: βˆ‘nixiβˆ‘ni\dfrac{\sum n_ix_i}{\sum n_i}.

✍️ Exercises

Answer one exercise at a time. Your answer is checked right away, with an explanation.

Exercise 1 of 8

β˜… Easy

Compute the mean of the numbers 1212, 1515, 99, 1414, 1010.

You can use a decimal comma or point (2,5 or 2.5).