PYQ Vault

SPI Mathematics · Formula sheet

Statistics formulas

11 formulas, 2 reference tables and 25 common traps for SPI Mathematics Statistics, grouped by subtopic.

Full notes with worked examples

Mean of Raw Data

Learn this subtopic in the notes

Mean, sum and count

Mean of n values

xˉ=x1+x2+⋯+xnn∑x=nxˉ\bar{x} = \frac{x_1 + x_2 + \dots + x_n}{n} \qquad \sum x = n\bar{x}
  • xˉ\bar{x}the mean
  • nnhow many values there are

Mean of a number pattern

Means of common patterns

mean of 1,2,…,n=n+12mean of first n odd numbers=nmean of first n multiples of k=k(n+1)2\text{mean of } 1, 2, \dots, n = \frac{n + 1}{2} \qquad \text{mean of first } n \text{ odd numbers} = n \qquad \text{mean of first } n \text{ multiples of } k = \frac{k(n + 1)}{2}

When every value changes the same way

Changing every value

new values kx+c  ⇒  new mean=kxˉ+c∑(x−xˉ)=0\text{new values } kx + c \;\Rightarrow\; \text{new mean} = k\bar{x} + c \qquad \sum (x - \bar{x}) = 0

Common traps

Dividing by the number of known values

In a list like 5, x, 9, y, 11 there are five values, so the sum is 5 times the mean. Leaving the unknowns out of the count gives a wrong sum.

Looking for x and y separately

One mean gives one equation. With two unknowns it fixes only their sum, so the right option is the one that states x+yx + y, not a value of x alone.

Starting whole numbers at 1

The first six whole numbers are 0 to 5, not 1 to 6. Starting at 1 gives the answer for natural numbers, and that answer is usually printed as a wrong option.

Taking the sum for the mean

The first n odd numbers add to n2n^2, but their mean is n2÷n=nn^2 \div n = n. Divide by the count before you compare with the options.

Using first plus last over two for squares

The first and last trick works only when the numbers go up by a fixed step. The squares 1, 4, 9, 16 do not, so add them up instead.

Adding n times the change to the mean

Adding 3 to each of n values adds 3n3n to the total, but the count is also n, so the mean rises by 3. 'Increases by 3n' is a printed wrong option.

Doing the steps in the wrong order

If the mean is m, dividing every value by x and then adding y gives a new mean of mx+y\frac{m}{x} + y. Adding first and then dividing gives m+yx\frac{m + y}{x}, which is a different number.

Median and Mode of Raw Data

Learn this subtopic in the notes

Median of a list

Position of the median

n odd: (n+12)th valuen even: mean of the (n2)th and (n2+1)th valuesn \text{ odd: } \left(\frac{n + 1}{2}\right)\text{th value} \qquad n \text{ even: mean of the } \left(\frac{n}{2}\right)\text{th and } \left(\frac{n}{2} + 1\right)\text{th values}

Mean, median and mode side by side

MeasureWhat it isHow to find it
MeanThe averageAdd all the values and divide by how many there are
MedianThe middle valuePut the values in order and take the middle one
ModeThe most frequent valueCount how often each value occurs
Smallest and largest value removedThe median stays the sameThe middle of an ordered list is still the middle
The mean uses every value, so it usually changes. The mode changes only if an end value was the most frequent one.
The mode is the most frequent value, the median the middle one: 'middle most frequent' is a mix of the two.

Common traps

Calling the mode the middle value

The middle value of ordered data is the median. The mode is the most frequent value, whether or not it sits in the middle.

Taking the middle of an unordered list

In 59, 46, 30, 23, 27 the middle number as written is 30, but in order the list is 23, 27, 30, 46, 59. Always sort before you count to the middle.

Giving the position for the value

For 9 values, 9+12=5\frac{9 + 1}{2} = 5 says the median is the 5th value. The answer is whatever number stands 5th, not 5.

Losing count in a long list

In a list of 15 numbers, two values can look equally common at a glance. Tally them and check that the tallies add to 15 before you choose.

Mean of Grouped Data

Learn this subtopic in the notes

Class marks and the direct method

Direct method

class mark=lower+upper2xˉ=∑fixi∑fi\text{class mark} = \frac{\text{lower} + \text{upper}}{2} \qquad \bar{x} = \frac{\sum f_i x_i}{\sum f_i}
  • fif_ifrequency of a class
  • xix_iclass mark of that class

Assumed mean method

di=xi−axˉ=a+∑fidi∑fid_i = x_i - a \qquad \bar{x} = a + \frac{\sum f_i d_i}{\sum f_i}
  • aaassumed mean
  • did_ideviation of a class mark from a

Step deviation method

ui=xi−ahxˉ=a+h×∑fiui∑fiu_i = \frac{x_i - a}{h} \qquad \bar{x} = a + h \times \frac{\sum f_i u_i}{\sum f_i}
  • hhclass size, the same for every class

Common traps

Multiplying by a class limit

Each frequency is multiplied by the class mark, the mid-point. Using the lower or upper limit shifts the mean by half a class.

Dividing by the number of classes

The mean of a table is ∑fixi\sum f_i x_i over the total frequency ∑fi\sum f_i. A table with 6 classes and 50 students divides by 50, not 6.

Using only one equation for two unknown frequencies

When two frequencies are missing, the total frequency gives one equation and the mean gives the other. Solve them together, then check that the frequencies add to the total.

Dropping the minus signs

Class marks below the assumed mean give negative deviations. Adding them as positive numbers makes ∑fidi\sum f_i d_i too large and the mean too high.

Forgetting to multiply by h

In the step deviation method, ∑fiui∑fi\frac{\sum f_i u_i}{\sum f_i} counts steps, not marks. Multiply it by the class size h before adding it to a.

Median and Mode of Grouped Data

Learn this subtopic in the notes

Cumulative frequency and the median class

Median class

median class: first class with cf≥N2\text{median class: first class with } cf \ge \frac{N}{2}

The median formula

Median of grouped data

Median=l+N2−cff×h\text{Median} = l + \frac{\frac{N}{2} - cf}{f} \times h
  • lllower limit of the median class
  • NNtotal frequency
  • cfcfcumulative frequency of the class before the median class
  • fffrequency of the median class
  • hhclass size

The mode formula

Mode of grouped data

Mode=l+f1−f02f1−f0−f2×h\text{Mode} = l + \frac{f_1 - f_0}{2f_1 - f_0 - f_2} \times h
  • lllower limit of the modal class
  • f1f_1frequency of the modal class
  • f0f_0frequency of the class before it
  • f2f_2frequency of the class after it
  • hhclass size

Common traps

Picking the tallest class as the median class

The class with the largest frequency is the modal class. The median class is found from the cumulative frequencies and is often a different class.

Using the median class's own cumulative frequency

cf in the median formula is the running total up to the class before the median class. Using the median class's own cumulative frequency makes N2−cf\frac{N}{2} - cf negative or too small.

Plugging mid-values in as limits

When a table lists mid-values, the lower limit l is the mid-value minus half the class size. A median class with mid-value 45 and size 10 has l = 40, not 45.

Swapping f0 and f1 in the top line

The top of the mode fraction is f1−f0f_1 - f_0, the modal class minus the class before it. Writing f0−f1f_0 - f_1 makes it negative and puts the mode below the modal class.

Using classes with gaps as they are

For classes like 41-45 and 46-50, the true limits are 40.5-45.5 and 45.5-50.5. Using 46 as l without the 0.5 shift gives the wrong mode.

Empirical Relation and Graphs

Learn this subtopic in the notes

Mode equals 3 median minus 2 mean

Empirical relation

Mode=3 Median−2 Mean\text{Mode} = 3\,\text{Median} - 2\,\text{Mean}

Which graph shows what

GraphWhat it showsWhat you can read from it
HistogramClass intervals on the x-axis, frequencies on the y-axis, bars touchingThe mode, from the tallest bar
Bar graphSeparate items as bars with gaps between themWhich item is largest or smallest
Pie chartA whole divided into sectors for its partsThe share of each part: sector angle = part ÷ whole × 360°
PictographQuantities drawn as rows of picturesCounts, from the number of pictures
Frequency polygonThe mid-points of the histogram bar tops joined by linesThe shape of the distribution
OgiveCumulative frequencies plotted against class limitsThe median, where the less-than and more-than ogives cross
No graph gives the mean: it must be calculated.
The mean is the one average that cannot be found from a graph.

Common traps

Swapping mean and median

The 3 goes with the median and the 2 with the mean: Mode =3= 3 Median −2- 2 Mean. 'Mode =3= 3 Mean −2- 2 Median' is the printed wrong option.

Losing the minus sign when matching a pattern

Written as x Median ++ y Mean =z= z Mode, the relation has x=3x = 3, y=−2y = -2 and z=1z = 1. The minus sign belongs to y.

Putting the classes on the y-axis

In a histogram the class intervals run along the x-axis and the frequencies up the y-axis. A histogram's bars also touch, unlike a bar graph's.

Thinking every average has a graph

The median comes from an ogive and the mode from a histogram, but the mean has no graphical method. It is the answer when a question asks which cannot be found graphically.

More SPI Mathematics formula sheets