1.3.4 · D1Basic Data & Probability

Foundations — Mean, median, mode — calculation for raw and grouped data

1,940 words9 min readBack to topic

Before you can compute anything, you must be fluent in the little symbols and pictures the parent note throws at you. This page builds every one of them from nothing, in an order where each new idea leans only on the ones before it.


1. What "data" actually is

Figure — Mean, median, mode — calculation for raw and grouped data

We write each observation with a subscript to give it a name and a position.

Why the topic needs it: without addresses we couldn't say things like "average the 3rd and 4th values." The subscript lets us talk about any slot without knowing what number is in it yet.


2. Counting the pile: and


3. The sum symbol — the star of the show

The single most important piece of new notation is the Greek capital sigma, . Everything else is arithmetic; this is the one symbol that scares people, so we build it slowly.

Figure — Mean, median, mode — calculation for raw and grouped data

Read the figure like a conveyor belt: the counter ticks , and at each tick the value drops into a running total (the red bucket). When passes , the belt stops and the bucket holds the sum.

Why the topic needs it: every formula for the mean starts with . The grouped-data mean is literally "add up (frequency times midpoint) for each group, then divide."


4. The bar: means "mean"

The mean is also the balance point of the data — the spot where the row of values would sit level on a see-saw.

Figure — Mean, median, mode — calculation for raw and grouped data

Look at the red triangle (the pivot) under the see-saw: it sits exactly at . Values far to the right (like a big outlier) push the pivot toward them — that is why the mean gets "pulled by extremes," a fact the parent note relies on but does not picture.


5. Sorting, position and the "middle" — median groundwork


6. Grouped data: intervals, class marks, width

When there are too many values to list, we sort them into buckets. This is where the capital and the letters enter.

Figure — Mean, median, mode — calculation for raw and grouped data

In the figure, each bar is a class interval; its width along the axis is , its height is the frequency , and the red dot on top of the axis marks the class mark dead-centre. The lower edge of a bar is its lower boundary — the last new symbol.

Recall Why does the grouped median add a fraction of

to ? Because we assume the class's values are spread evenly across its width . To reach observation number we must step values into a class holding values over width , i.e. a fraction of the way across — so we walk that fraction of past the starting edge .


How the foundations feed the topic

Observation and x sub i

Sigma sum symbol

Count n

Mean x-bar

Sort and position

Median raw

Frequency f and total N

Class mark x and width h

Grouped mean

Cumulative frequency CF and lower boundary L

Grouped median and mode

Central tendency


Once these symbols feel natural, they unlock: Frequency Distributions (where classes and frequencies come from), Cumulative Frequency Graphs (the picture behind and the grouped median), Weighted Mean (the idea generalised), Measures of Dispersion and Box Plots (spread around these centres), and Skewness (why mean, median and mode drift apart). Return to the parent: Mean, median, mode — calculation for raw and grouped data.


Equipment checklist

Cover the right side and test yourself — you are ready only if every line is instant.

means
the observation in slot number (its address, not a fixed number)
means
how many observations there are, counted individually (raw data)
means
total number of observations found by summing frequencies (grouped data)
means
add up for
means
the mean, the total shared equally among
Ascending order means
smallest to largest, which fixes each value's position
Median position for odd
the -th value after sorting
Median position for even
average of the -th and -th values
Class mark
midpoint of a class = (lower limit + upper limit) / 2
Class width
upper limit minus lower limit of a class
Frequency
how many observations landed in class
Cumulative frequency
running total of frequencies up to a given class
Lower boundary
the left edge (lower limit) of a class