Data Collection & Graphs
Interactive curriculum lessons, worked examples, and geometric problem-solving techniques designed to help Kenyan students master CBC, KPSEA, KCSE, and IGCSE mathematics.
First Principles
Objective
Understand how to systematically collect raw data, organise it into frequency distribution tables, and accurately represent it using bar charts, pie charts, and line graphs.
Interactive Data Collector & Bar Chart
Click + or − to adjust attendance across weekdays at a school in Nakuru. Observe how the bar heights and relative frequency scale in real time.
Total Absences: 0
(a) Concrete Scenario: The Market Tally
Imagine Mama Sarah selling fruit at Kongowea Market in Mombasa. As customers purchase pineapples, mangoes, and watermelons, recording each fruit name repeatedly becomes messy. Instead, she draws a tally stroke \(|\) for each item sold, bundling groups of five with a diagonal line (\(\bcancel{||||}\)). Each tally represents a single raw datum, and the bundle sum is the frequency.
Data refers to distinct pieces of factual information. Frequency (\(f\)) simply counts how many times a particular value occurs.
(b) Visual Representation: Choosing the Right Graph
- Bar Chart: Uses vertical or horizontal bars separated by uniform spaces. Best for comparing categorical data (e.g., types of vehicles passing a checkpoint).
- Line Graph: Connects consecutive data points with line segments. Ideal for showing continuous trends over time (e.g., daily temperature or stock price).
- Pie Chart: A circle subdivided into sectors where each angle is proportional to the category's share of the total \(360^\circ\).
Key Formulas
Worked Examples
Problem: A roadside count in Machakos recorded the following vehicles: Cars: 18, Matatus: 24, Boda-bodas: 30, Trucks: 8. Find the total number of vehicles observed and calculate the relative frequency of Matatus as a simplified fraction.
- Sum total frequencies: \[ N = 18 + 24 + 30 + 8 = 80 \]
- Calculate relative frequency: \[ \text{Relative Frequency of Matatus} = \frac{f_{\text{Matatu}}}{N} = \frac{24}{80} = \frac{3}{10} \]
- Answer: Total = \(80\), Relative Frequency = \(\frac{3}{10}\) (or \(0.30\)).
Problem: In a Form 1 class of 72 students, 20 walk to school, 32 board matatus, 12 use bicycles, and 8 are driven by personal car. Calculate the sector angle for the 'Matatu' category on a pie chart.
- Identify total frequency: \[ N = 20 + 32 + 12 + 8 = 72 \]
- Apply the sector angle formula: \[ \theta = \frac{f_{\text{Matatu}}}{N} \times 360^\circ = \frac{32}{72} \times 360^\circ \]
- Simplify: \[ \frac{32}{72} = \frac{4}{9} \implies \frac{4}{9} \times 360^\circ = 4 \times 40^\circ = 160^\circ \]
- Answer: The sector angle is \(160^\circ\).
Problem: The masses (in kg) of 40 bags of maize delivered to a collection depot are grouped as follows:
Mass (kg): 40–44, 45–49, 50–54, 55–59
Frequency: 6, 14, 12, 8
Calculate the estimated mean mass of the bags.
- Determine the class midpoints (\(x_i\)):
- 40–44: \(\frac{40+44}{2} = 42\)
- 45–49: \(\frac{45+49}{2} = 47\)
- 50–54: \(\frac{50+54}{2} = 52\)
- 55–59: \(\frac{55+59}{2} = 57\)
- Compute \(f_i \times x_i\):
- \(6 \times 42 = 252\)
- \(14 \times 47 = 658\)
- \(12 \times 52 = 624\)
- \(8 \times 57 = 456\)
- Sum the products and total frequency: \[ \sum f_i = 40 \] \[ \sum f_i x_i = 252 + 658 + 624 + 456 = 1990 \]
- Calculate the mean: \[ \bar{x} = \frac{\sum f_i x_i}{\sum f_i} = \frac{1990}{40} = 49.75\text{ kg} \]
- Answer: \(49.75\text{ kg}\).
Common Mistakes
Why it happens: Learners often see the highest number in the table (the highest frequency) and mistakenly write that frequency number as the mode.
Why it happens: Bar charts and histograms look similar at first glance.
Why it happens: Percentages sum to 100%, leading students to multiply fractions by 100 instead of 360 when finding angles.
Real World
Practice