Statistics Formulas: A Clear Guide to the Basics
Statistics is the branch of mathematics that deals with collecting, organising, summarising and interpreting data. Most of the formulas you meet early on belong to descriptive statistics: their job is to shrink a long list of numbers into a couple of values that tell you where the data sits and how spread out it is. Once you understand what each formula is measuring, the symbols stop feeling arbitrary.
Finding the centre of your data
The three averages each answer the question "what is a typical value?" in a different way.
- The mean adds every value and divides by how many there are: sum of all values divided by the number of values. It uses all the data, which also means a single extreme value can pull it far off.
- The median is the middle value once you have put the data in order. With an even number of values, take the average of the two middle ones. The median is more resistant to outliers than the mean.
- The mode is the value that appears most often. A data set can have one mode, several, or none at all if every value is different.
Read more
A weighted mean is useful when some values count more than others: multiply each value by its weight, add those products, then divide by the total of the weights.
Measuring spread
Two data sets can share the same mean and still look completely different. Spread formulas capture that difference.
- Range is the largest value minus the smallest. It is quick and easy, but it depends on only two numbers.
- Variance averages the squared distances of each value from the mean. Squaring keeps positive and negative deviations from cancelling out.
- Standard deviation is the square root of the variance. It is popular because it comes back in the same units as your original data, so it is easier to interpret.
One detail trips up many beginners: the variance of a sample is usually divided by one less than the number of values, while the variance of a whole population is divided by the full count. The distinction matters, so know which one your course expects.
Working with grouped data
When data arrives in class intervals rather than as individual values, you use the midpoint of each class as a stand-in for its values. The mean becomes the sum of frequency times midpoint, divided by the total frequency. The median and mode are then estimated by locating the class that contains them and interpolating within it. These grouped formulas give approximations, not exact values.
Practical habits that help
- Always sort the data before hunting for the median.
- Write the formula out first, then substitute your numbers. It makes mistakes easier to spot.
- Keep track of units and of how many values you actually have.
- Sanity-check the result: a mean outside the range of your data, or a negative variance, means something went wrong.
For moderately skewed distributions, there is a rough relationship worth remembering: the mode is approximately three times the median minus twice the mean. It is a guide rather than a rule.