Collection and presentation of data

A class test, a household survey, a season of cricket scores — every one of these starts life as a messy pile of raw numbers with no order at all. Statistics is the craft of turning that pile into something readable: a table that shows what happened and how often, and a small set of numbers — the mean, median and mode — that summarise the whole pile in one glance. This chapter opens the Statistics unit of CBSE Class 9 Mathematics. It stays entirely with ungrouped data: single observations such as marks or family size, not numbers sorted into class intervals like 10–20 or 20–30 (that grouping, along with cumulative frequency, is Class 10 work). By the end you should be able to tell primary data from secondary data, build a frequency distribution table from a raw list using tally marks, and compute the mean, median and mode of that data — both from the raw list directly and from its frequency table.

The core insight

Raw, unordered data becomes usable once it is tallied into a frequency distribution table, from which the mean (xˉ=∑fixi/∑fi\bar{x}=\sum f_ix_i/\sum f_i), the median (the middle value of the sorted list) and the mode (the most frequent value) summarise it in a single number each.

The core idea

Primary vs secondary data. Primary data is collected first-hand by the person doing the study — a student polling classmates on their favourite sport. Secondary data has already been collected and published by someone else and is simply reused — pulling numbers from a government census report. Knowing which kind you are handling matters because primary data lets you control how the question was asked, while secondary data inherits whatever choices the original collector made.

Raw data and the frequency distribution table. Data fresh off a survey or test, before any organising, is called raw or ungrouped data — a plain, usually unordered, list. To make it readable you build a frequency distribution table: list every distinct value that appears, and record how many times it occurs, its frequency, written ff. Tally marks (groups of four strokes with a fifth struck through) are the standard bookkeeping trick for counting occurrences in a single pass through the raw list without losing count.

The three summary numbers. Once the frequency table exists, three single numbers describe the whole data set from different angles:

  • The mean xˉ\bar{x} is the arithmetic average — every observation contributes equally.
  • The median is the value that sits in the middle once the data is sorted — it is not pulled around by one extreme outlier the way the mean can be.
  • The mode is simply whichever value shows up most often — useful when you care about the single most common outcome, such as the most common shoe size sold.

For raw (ungrouped) data of nn observations x1,x2,…,xnx_1,x_2,\dots,x_n, the mean is

xˉ=x1+x2+⋯+xnn=∑xin\bar{x} = \frac{x_1+x_2+\cdots+x_n}{n} = \frac{\sum x_i}{n}

where: xix_i is the ii-th observation and nn is the total count of observations. The median needs the data sorted first, ascending or descending. If nn is odd, the median sits at position n+12\frac{n+1}{2} in the sorted list. If nn is even, there are two middle positions, n2\frac{n}{2} and n2+1\frac{n}{2}+1, and the median is their average. The mode is read straight off the frequency table: whichever value has the largest ff. A data set can have exactly one mode, more than one mode (if two or more values tie for highest frequency), or no mode at all (if every value occurs equally often).

Figure
A raw jumbled list of numbers on the left turning into an ordered frequency table with value and frequency columns on the right, connected by an arrow labelled tally and count
Raw data becomes a frequency distribution table raw, unordered list 4 7 7 8 5 6 7 9 4 6 7 no order, no pattern visible tally and count frequency distribution table value frequency f 4 2 5 1 6 2 7 4 8, 9 1, 1

Mean from a frequency table

The goal is to show why summing fixif_i x_i across the distinct values and dividing by the total count gives exactly the same mean as adding up every raw observation one by one — so that once data is tallied, you never need to revisit the original unsorted list to find the average.

Step 1. Start from the raw definition. With nn raw observations x1,…,xnx_1,\dots,x_n, the mean is xˉ=∑xin\bar{x} = \dfrac{\sum x_i}{n}, adding every single value once.

Step 2. Group the identical values. Suppose a distinct value v1v_1 appears f1f_1 times, v2v_2 appears f2f_2 times, and so on up to vkv_k appearing fkf_k times, with f1+f2+⋯+fk=nf_1+f_2+\cdots+f_k = n. Adding v1v_1 to itself f1f_1 times is the same as computing f1v1f_1 v_1, so the full sum of all nn raw observations can be rewritten as f1v1+f2v2+⋯+fkvk=∑fivif_1v_1 + f_2v_2 + \cdots + f_kv_k = \sum f_i v_i.

Step 3. Substitute this grouped sum back into the mean formula. Since ∑xi=∑fivi\sum x_i = \sum f_i v_i and n=∑fin = \sum f_i, the mean becomes xˉ=∑fivi∑fi\bar{x} = \dfrac{\sum f_iv_i}{\sum f_i} — the frequency-table formula, built from nothing more than regrouping equal terms in an addition.

Step 4. Read the result. No information is lost in tallying: multiplying each distinct value by how often it occurs, summing those products, and dividing by the total count of observations gives the identical mean you would get by patiently adding every one of the nn raw numbers.

Worked example

A survey of 20 households recorded the number of family members in each: 3,5,4,3,2,4,4,5,3,6,4,5,3,4,2,6,4,3,5,43, 5, 4, 3, 2, 4, 4, 5, 3, 6, 4, 5, 3, 4, 2, 6, 4, 3, 5, 4. Build the frequency distribution table and find the mean, median and mode of family size.

Step 1. Tally the raw list into a frequency table. Family size 2 occurs 2 times, 3 occurs 5 times, 4 occurs 7 times, 5 occurs 4 times, and 6 occurs 2 times. Check: 2+5+7+4+2=202+5+7+4+2 = 20, matching the 20 households, so no value was missed or double-counted.

Step 2. Compute the mean using xˉ=∑fivi∑fi\bar{x} = \dfrac{\sum f_iv_i}{\sum f_i}: ∑fivi=(2×2)+(5×3)+(7×4)+(4×5)+(2×6)=4+15+28+20+12=79\sum f_iv_i = (2\times2)+(5\times3)+(7\times4)+(4\times5)+(2\times6) = 4+15+28+20+12 = 79, so xˉ=7920=3.95\bar{x} = \dfrac{79}{20} = 3.95.

Step 3. Find the median by sorting all 20 values in ascending order: 2,2,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,62,2,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,6. Here n=20n=20 is even, so average the values at positions 202=10\frac{20}{2}=10 and 202+1=11\frac{20}{2}+1=11. Both the 10th and 11th values are 44, so the median is 44.

Step 4. Find the mode by reading the highest frequency in the table: family size 4 occurs 7 times, more than any other value, so the mode is 44.

The 20 households have mean family size 3.953.95, median 44, and mode 44 — all three summaries agree the "typical" household has around 4 members, with the mean pulled down slightly by the smaller households of size 2.

Common traps

  • Confusing the frequency with the observation itself. In a table row "4 | 7", the 4 is the value and 7 is how many times it occurred — averaging the frequency column instead of the value column gives nonsense.
  • Finding the median without sorting first. The position rule (n+12\frac{n+1}{2} or the two middle positions) only works on data already arranged in ascending or descending order.
  • Picking one middle value when nn is even. Even-count data has two middle positions; the median is their average, not just one of them.
  • Assuming a mode always exists and is unique. Data can be bimodal (two tied values), or have no mode at all if every value occurs equally often.

Ask the tutor: Want to build your own frequency table from a jumbled list and check your mean, median and mode step by step? Ask the AI tutor for a fresh practice data set.

Why do we even need a frequency table — why not just look at the raw list?

A raw list of, say, 50 marks scattered in the order they were collected hides every pattern: you cannot tell at a glance which mark is most common or how spread out the marks are. Tallying groups identical values together and counts them once, so a table with a handful of rows replaces fifty scattered numbers. It also makes computing the mean far faster, since you multiply each distinct value by its count instead of adding fifty separate numbers one at a time.

Can the mean, median and mode of the same data set all be different numbers?

Yes, and this is common. The mean uses every value and shifts if any single value changes, even a small change. The median only depends on which value sits in the middle after sorting, so it barely moves if one extreme value changes. The mode only cares about which value repeats most. For symmetric, evenly spread data the three often land close together, as in the worked example above, but for lopsided data, such as incomes with a few very high earners, the mean can be noticeably higher than the median.

Is primary data always more reliable than secondary data?

Not automatically — reliability depends on how carefully each was collected, not just on who collected it. Primary data gives you control over the question, the sample and the method, which is valuable, but a small or biased sample of primary data can still mislead. Secondary data, such as a national census, is often collected on a far larger and more rigorous scale than a single student could manage, so it can be more reliable for broad questions even though someone else gathered it. The right choice depends on what exactly you are trying to find out.

Before this

Where this leads