πŸ‡¨πŸ‡© Data handling

Frequencies, charts and means

⏱ 30 minOfficial programme: CD-E8-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

  • Define population, variable, frequency, mode.
  • Draw bar, histogram, pie charts; simple and weighted means.

The lesson

Introduction

The student committee of a school in Bukavu wants to know how students travel to school, how long their journey takes and what marks they got in the last test. To answer, the data must be organised: counted, arranged in a table, shown in a chart and summarised by a mean. In this lesson you learn the vocabulary of statistics, you draw bar charts, histograms and pie charts, and you compute simple and weighted means.

Explanation

Vocabulary

  • Population: the set being studied (the students of the school); each element is an individual.
  • Variable: what is observed. It is qualitative (means of transport) or quantitative (mark, duration). A quantitative variable is discrete if it takes separate values (number of brothers and sisters), continuous if it can take any value in an interval (height); the values are then grouped into classes, such as [20 ;30[[20\,;30[.
  • Frequency (count) of a value: number of individuals with that value. Total NN: sum of the counts.
  • Relative frequency: f=countNf=\dfrac{\text{count}}{N}, written as a fraction, a decimal or a percentage.
  • Mode: the value with the greatest count (for classes, we speak of the modal class).

Explanation

Charts

  • Bar chart: for a discrete variable. The values go on the horizontal axis; each value has a bar whose height is proportional to its count.
  • Histogram (in French diagramme en bandes): for classes. Each class is shown by a rectangle standing on its interval; the rectangles touch each other. When the classes have the same width, the height is proportional to the count.
  • Pie chart: to show the share of each category in the total. The angle of each sector is proportional to the count:
    angle=fΓ—360∘=countNΓ—360∘\text{angle}=f\times360^\circ=\dfrac{\text{count}}{N}\times360^\circ

Explanation

Means

  • Simple mean of nn values: xΛ‰=x1+x2+β‹―+xnn\bar{x}=\dfrac{x_1+x_2+\dots+x_n}{n}.
  • Weighted mean: when value xix_i has count (or weight) nin_i,
    xˉ=n1x1+n2x2+⋯+npxpn1+n2+⋯+np\bar{x}=\dfrac{n_1x_1+n_2x_2+\dots+n_px_p}{n_1+n_2+\dots+n_p}
  • Grouped data: replace each class by its midpoint, for example 2525 for [20 ;30[[20\,;30[, then compute a weighted mean. The result is an approximate value of the mean.

Worked example

Problem: Here are the marks out of 1010 of 2525 students in a quiz.

Mark4455667788
Count2255886644

Find the relative frequency of the mark 66, the mode and the mean.

Step 1: N=2+5+8+6+4=25N=2+5+8+6+4=25. Relative frequency of 66: 825=0.32=32%\dfrac{8}{25}=0.32=32\%.

Step 2: The greatest count is 88: the mode is 66.

Step 3: xˉ=2×4+5×5+8×6+6×7+4×825=8+25+48+42+3225=15525=6.2\bar{x}=\dfrac{2\times4+5\times5+8\times6+6\times7+4\times8}{25}=\dfrac{8+25+48+42+32}{25}=\dfrac{155}{25}=6.2.

Answer: relative frequency 32%32\%, mode 66, mean 6.26.2 out of 1010.

Worked example

Problem: Out of 4040 students, 2222 walk to school, 66 cycle, 88 come by motorbike taxi and 44 by bus. Compute the angles of the pie chart.

Step 1: Walking: 2240Γ—360∘=198∘\dfrac{22}{40}\times360^\circ=198^\circ.

Step 2: Bicycle: 640Γ—360∘=54∘\dfrac{6}{40}\times360^\circ=54^\circ; motorbike taxi: 840Γ—360∘=72∘\dfrac{8}{40}\times360^\circ=72^\circ; bus: 440Γ—360∘=36∘\dfrac{4}{40}\times360^\circ=36^\circ.

Step 3: Check: 198+54+72+36=360198+54+72+36=360.

Answer: 198∘198^\circ, 54∘54^\circ, 72∘72^\circ and 36∘36^\circ.

Worked example

Problem: In the school garden, 2020 bean plants are measured (in cm). Compute the mean and give the modal class.

Class[10 ;20[[10\,;20[[20 ;30[[20\,;30[[30 ;40[[30\,;40[
Count449977

Step 1: Class midpoints: 1515, 2525 and 3535.

Step 2: xˉ=4×15+9×25+7×3520=60+225+24520=53020=26.5\bar{x}=\dfrac{4\times15+9\times25+7\times35}{20}=\dfrac{60+225+245}{20}=\dfrac{530}{20}=26.5 cm.

Step 3: The greatest count is 99: the modal class is [20 ;30[[20\,;30[.

Answer: mean about 26.526.5 cm; modal class [20 ;30[[20\,;30[.

Watch out

Common mistakes:

  • In a weighted mean, divide by the sum of the counts (or weights), not by the number of different values. In the marks example, dividing 155155 by 55 would give 3131, which is impossible for a mark out of 1010.
  • The mode is a value of the variable, not a count: in the example, the mode is 66, not 88.

Key points

  • Population, individual, variable (qualitative or quantitative, discrete or continuous), count, relative frequency =countN=\dfrac{\text{count}}{N}.
  • Mode: value (or class) with the greatest count.
  • Bar chart for a discrete variable, histogram for classes, pie chart for shares: angle =fΓ—360∘=f\times360^\circ.
  • Weighted mean: βˆ‘nixiβˆ‘ni\dfrac{\sum n_ix_i}{\sum n_i}; for classes, use the midpoints.

✍️ Exercises

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

Exercise 1 of 10

β˜… Easy

Which of these variables is quantitative?

Your answer