Mean & Standard Deviation (SQA National 5 Maths): Revision Note

Exam code: X847 75

Roger B

Written by: Roger B

Reviewed by: Dan Finlay

Updated on

Finding the mean & standard deviation

What are the mean and standard deviation of a data set?

  • The mean of a data set is a type of average

    • Its value gives a 'typical value' for a number in the data set

    • The median is another type of average

  • The standard deviation is a measure of spread

    • It tells you how spread out the data set is around the mean

      • The larger the standard deviation, the more spread out the data is

      • The smaller the standard deviation, the less spread out the data is

        • If the standard deviation is zero, then all the data values are equal to the mean!

    • The interquartile range is another measure of spread

  • The mean and standard deviation are used together to analyse a set of data

    • The median and interquartile range may also be used together to analyse a data set

    • But you should not use the mean with the interquartile range, or the median with the standard deviation

Examiner Tips and Tricks

An exam question will tell you which average, and which measure of spread, to calculate for a given data set.

How do I find the mean of a data set?

  • The mean is the sum of the data values divided by the number of values

    • The mean of 1, 2, 6 is (1 + 2 + 6) ÷ 3 = 3

  • The mean can be fraction or a decimal

    • It may need rounding

    • You do not need to force it to be a whole number

      • You can have a mean of 7.5 people, for example!

  • The mean of a data set is sometimes represented by x with bar on top

    • Then the mean can be written as a formula

      • x with bar on top equals fraction numerator straight capital sigma x over denominator n end fraction

    • where

      • straight capital sigma x is the sum of all the data values

      • n is the number of data values

    • This formula is not given to you in the exam

How do I find the standard deviation of a data set?

  • The Formulae List in the exam paper gives you two different ways to calculate the standard deviation, s

    • s equals square root of fraction numerator straight capital sigma open parentheses x minus x with bar on top close parentheses squared over denominator n minus 1 end fraction end root

    • Error converting from MathML to accessible text.

  • In those formulae:

    • n is the sample size (the number of values in the data set)

    • x with bar on top is the mean of the data set

    • x stands for 'a value in the data set'

    • straight capital sigma x squared is the sum of the squares of the data values

      • Square each data value, then add those squared values together

    • Error converting from MathML to accessible text. is the square of the sum of the data values

      • Find the sum of all the data values, then square the sum

    • straight capital sigma open parentheses x minus x with bar on top close parentheses squared is the sum of the squares of the differences between the data values and the mean

      • Find the difference between each data value and the mean

      • Square each one of those differences

      • Then add those squared differences together

  • It can be useful to set up a table to work out these values and sums

    • See the Worked Example

Examiner Tips and Tricks

If you have already calculated the mean, then the space s equals square root of fraction numerator straight capital sigma open parentheses x minus x with bar on top close parentheses squared over denominator n minus 1 end fraction end root spaceform of the standard deviation formula will usually be easier to use.

But either formula will give you the same answer if you use it correctly.

Worked Example

A teacher recorded the number of correct answers achieved by a sample of seven students in a short mathematics test. The results for School A were:

19, 21, 16, 22, 17, 19, 26

Calculate the mean and standard deviation of the number of correct answers achieved by the students in School A.

Answer:

To calculate the mean

  • Find the sum of the data values

  • and divide it by the number of data values (7)

table row mean equals cell fraction numerator 19 plus 21 plus 16 plus 22 plus 17 plus 19 plus 26 over denominator 7 end fraction end cell row blank equals cell 140 over 7 end cell end table

mean = 20

To calculate the standard deviation, there are two different formulae you can use

Method 1

Using the formula s equals square root of fraction numerator straight capital sigma open parentheses x minus x with bar on top close parentheses squared over denominator n minus 1 end fraction end root

  • The mean, x with bar on top, is 20, as calculated above

  • n equals 7

Start by finding the value of straight capital sigma open parentheses x minus x with bar on top close parentheses squared

bold italic x

bold italic x bold minus bold italic x with bold bar on top

Error converting from MathML to accessible text.

19

19-20=-1

(-1)2=1

21

21-20=1

12=1

16

16-20=-4

(-4)2=16

22

22-20=2

22=4

17

17-20=-3

(-3)2=9

19

19-20=-1

(-1)2=1

26

26-20=6

62=36

sum:  68

Substitute the values into the formula

s equals square root of fraction numerator 68 over denominator 7 minus 1 end fraction end root equals 3.366501...

Round to a sensible degree of accuracy

  • If a question doesn't say otherwise, 3 significant figures is usually a good choice

standard deviation = 3.37  (3 s.f.)

Method 2

Using the formula Error converting from MathML to accessible text.

  • n equals 7

Find the values of straight capital sigma x and straight capital sigma x squared

bold italic x

bold italic x to the power of bold 2

19

192=361

21

212=441

16

162=256

22

222=484

17

172=289

19

192=361

26

262=676

sum:  140

sum:  2868

Substitute the values into the formula

Error converting from MathML to accessible text.

Round to a sensible degree of accuracy

  • If a question doesn't say otherwise, 3 significant figures is usually a good choice

standard deviation = 3.37  (3 s.f.)

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Roger B

Author: Roger B

Expertise: Maths Content Creator

Roger's teaching experience stretches all the way back to 1992, and in that time he has taught students at all levels between Year 7 and university undergraduate. Having conducted and published postgraduate research into the mathematical theory behind quantum computing, he is more than confident in dealing with mathematics at any level the exam boards might throw at you.

Dan Finlay

Reviewer: Dan Finlay

Expertise: Maths Subject Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.