Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Sample Variance © Christine Crisp “Teach A Level Maths” Statistics 1.

Similar presentations


Presentation on theme: "The Sample Variance © Christine Crisp “Teach A Level Maths” Statistics 1."— Presentation transcript:

1 The Sample Variance © Christine Crisp “Teach A Level Maths” Statistics 1

2 The Sample Variance Statistics 1 "Certain images and/or photos on this presentation are the copyrighted property of JupiterImages and are being used with permission under license. These images and/or photos may not be copied or downloaded without permission from JupiterImages" MEI/OCR

3 The Sample Variance Can you find the medians and means for the following 3 data sets? Although the medians and means are the same, the data sets are not really alike. The spread or variability of the numbers is quite different. How can we measure the spread within the data sets? ANS: The range and inter-quartile range both measure spread but neither uses all the data items. 5 5 5 5 5 5 955555551 Set C 999654111 Set B 987654321 Set A Mean,Median

4 The Sample Variance If you had to invent a method of measuring spread that used all the data items, what could you do? One thing we could do is find out how far each item is from the mean and add up these differences. e.g.  4  3... + 3 + 4 = Data sets B and C give the same result. The negative and positive values have cancelled each other out. 43210 11 22 33 44 55955555551 Set C 55999654111 Set B 55987654321 Set A Mean,Median 987654321 Set A: x 0

5 The Sample Variance To avoid the effect of the negative values we can either ignore the negative signs, or square each difference ( since the squares will all be positive ). Squaring is more convenient for developing theory, so, e.g. 169410149 43210 11 22 33 44 987654321 Set A: x Let’s do this calculation for all 3 data sets:

6 The Sample Variance Set A:Set B:Set C: The larger value for set B shows greater variability. Set C has least variability. Can you see a snag with this measurement? ANS: The calculated value increases if we have more data, so comparing data sets with different numbers of items would not be possible. To allow for this, we need to take n, the number of items, into account. 5955555551 Set C: x 5999654111 Set B: x 5987654321 Set A: x Mean, x

7 The Sample Variance There are 2 formulae that can be used, the mean square deviation. or the sample variance. In many books you will find the word variance used for the 1 st of these formulae and you may have used it at GCSE. However, our data is nearly always a sample from a large unknown set of data ( the population ) and we take samples to find out about the population. The 1 st formula does not give the best estimate of the variance of the population so is not used.

8 The Sample Variance So, there are 2 quantities and their square roots that we need to be clear about the mean square deviation, Also the sample variance, and the root mean square deviation. and the sample standard deviation.

9 The Sample Variance This all seems very complicated but help is at hand. Both the quantities, rmsd and s are given by your calculator. The rmsd is smaller than s ( because we are dividing by a larger number ). Correct to 3 s.f. we have e.g. Find the root mean square deviation, rmsd, and the sample standard deviation, s, for the following data: x7914 Use the Statistics function on your calculator and enter the data. Select the list of calculations. You will be able to find the following: Ignore the calculator notation. and

10 The Sample Variance x7914 So, for the data we have Squaring these gives ( sample variance )( mean square deviation ) The part of the formula,, is in your formulae booklet ( see correlation and regression ), labelled S xx. An expanded form of the expression is also given. All you have to do is divide by the correct quantity.

11 The Sample Variance e.g.1 For the following sample data, find (a) the root mean square deviation, rmsd, (b) the mean square deviation, msd, (c) the sample standard deviation, s, and (d) the sample variance s 2. x1215149 Answer: Using the calculator functions, (a)(b) (c) (d)

12 The Sample Variance e.g.2 The following summary data are given for a sample of size 5: Solution: Using the formulae book, msd = (a) (b) (c) (d) rmsd = (a) the mean square deviation, msd, (b) the root mean square deviation, rmsd, (c) the sample variance, s 2 (d) the sample standard deviation, s, and, Find

13 The Sample Variance  The mean square deviation, msd, and sample variance, both measure the spread or variability in the data. SUMMARY  To find the msd or sample variance, we square the relevant quantity given by the calculator:  If we have raw data we use the statistical functions on the calculator to find the rmsd or sample standard deviation. msd = ( rmsd ) 2 sample variance  s 2  For summary data, we use the formulae book, choosing the appropriate form: Then, we divide by n for the msd or ( n – 1 ) for s 2. The sample standard deviation is the larger of these quantities.

14 The Sample Variance The formula for the variance can be easily adapted to find the variance of frequency data. becomes Frequency Data We only use the formulae if we are given summary data. With raw data we enter the data into the calculator and use the statistical functions to get the answers directly.

15 The Sample Variance e.g.1 Find the mean and sample standard deviation of the following data: x12510 Frequency, f 3584 Solution: sample standard deviation, Using the calculator functions, the mean,  = Although we don’t need the formula for this question, let’s check we have the correct value by using the formula:

16 The Sample Variance e.g.1 Find the mean and sample standard deviation of the following data: x12510 Frequency, f 3584 Solution: So,

17 The Sample Variance Length (cm) 1-910-1415-1920-29 Frequency, f 27129 e.g.2 Find the sample standard deviation of the following lengths: Solution:We need the class mid-values

18 The Sample Variance e.g.2 Find the sample standard deviation of the following lengths: Length (cm) 1-910-1415-1920-29 x Frequency, f 27129 Solution: Standard deviation, s = We need the class mid-values 5121724·5 We can now enter the values of x and f on our calculators.

19 The Sample Variance e.g.3 Find the mean and sample variance of 20 values of x given the following: Solution: and sample mean, Since we only have summary data, we must use the formulae sample variance,

20 The Sample Variance  To find the root mean square deviation, rmsd, or the sample standard deviation, s, using the calculator functions, SUMMARY the values of x ( and f ) are entered and checked, the table of calculations gives both values, the variance is the square of the standard deviation. the larger value is the sample standard deviation, s

21 The Sample Variance Exercise Find the mean, sample standard deviation and sample variance for each of the following samples, using calculator functions where appropriate. 1. 8121497f 54321x 2. 8121497f 21-2516-2011-156-101-5 Time ( mins ) 3. 10 observations where and

22 The Sample Variance 1. 8121497f 54321x mean, variance, standard deviation, s = Answer: mean, variance, standard deviation, s = 23181383x Time ( mins ) 8121497 2. 21-2516-2011-156-101-5 f N.B. To find we need to use the full calculator value for s, not the answer to 3 s.f.

23 The Sample Variance 3. 10 observations where and Solution: Standard deviation, s mean, variance,

24 The Sample Variance Outliers We’ve already seen that an outlier is a data item that lies well away from the other data. It may be a genuine observation or an error in the data. e.g. 1 Consider the following data: 10121417192181 With this data set, we would immediately suspect an error. The value 81 was likely to have been 18. If so, there would be a large effect on the mean and standard deviation although the median would not be affected and there would be little effect on the IQR. The presence of possible outliers is an argument in favour of using median and IQR as measures of data.

25 The Sample Variance A 2 nd method used to identify outliers is to find points that are further than 2 standard deviations from the mean. The point 33 is more than 2 standard deviations above the mean so, using this measure, it is an outlier. In an earlier section, we met a method of identifying outliers using a measure of 1·5  IQR above or below the median. e.g. 2. Consider the following sample: 10121417181921222433 The sample mean and sample standard deviation are : mean, standard deviation, s = So, and

26

27 The following slides contain repeats of information on earlier slides, shown without colour, so that they can be printed and photocopied. For most purposes the slides can be printed as “Handouts” with up to 6 slides per sheet.

28 The Sample Variance There are 2 formulae that can be used to measure spread: or the mean square deviation. the sample variance, In many books you will find the word variance used for the 1 st of these formulae and you may have used it at GCSE. However, our data is nearly always a sample from a large unknown set of data ( the population ) and we take the sample to find out about the population. The 1 st formula does not give the best estimate of the variance of the population so is not used.

29 The Sample Variance So, there are 2 quantities and their square roots that we need to be clear about Also the mean square deviation the sample variance, and the root mean square deviation. and the sample standard deviation.

30 The Sample Variance The rmsd is smaller than s ( because we are dividing by a larger number ). Correct to 3 s.f. we have e.g. Find the root mean square deviation, rmsd, and the sample standard deviation, s, for the following data: 1497x Use the Statistics function on your calculator and enter the data. Select the list of calculations. You will be able to find the following: Ignore the calculator notation.

31 The Sample Variance Squaring these gives ( variance ) ( mean square deviation ) The part of the formula,, is in your formulae booklet ( see correlation and regression ), labelled S xx. An expanded form of the expression is also given. All you have to do is divide by the correct quantity, n or n  1. Using the formulae: If summary data are given, you will need to use the formulae instead of the calculator functions.

32 The Sample Variance  The mean square deviation, msd, and sample variance, both measure the spread or variability in the data. SUMMARY  To find the msd or sample variance, we square the relevant quantity given by the calculator:  If we have raw data we use the stats functions on the calculator to find the rmsd or sample standard deviation. msd = ( rmsd ) 2 sample variance  s 2  For summary data, we use the formulae book, choosing the appropriate form: Then, we divide by n for the msd or ( n – 1 ) for s 2. The sample standard deviation is the larger of these quantities.

33 The Sample Variance e.g.1 For the following sample data, find (a) the root mean square deviation, rmsd, (b) the mean square deviation, msd, (c) the sample standard deviation, s, and (d) the sample variance s 2. 9141512x Answer: Using the calculator functions, (a)(b) (c)(d)

34 The Sample Variance e.g.2 Given the following summary of data for a sample of size 5, find Solution: Using the formulae book, (a) the mean square deviation, msd, (b) the root mean square deviation, rmsd, (c) the sample variance s 2 (d) the sample standard deviation, s, and, msd = (a) (b) (c) (d) rmsd =

35 The Sample Variance The formula for the variance can be easily adapted to find the variance of frequency data. becomes Frequency Data As before, we only use the formulae if we are given summary data.

36 The Sample Variance e.g.1 Find the mean and sample standard deviation of the following data: 4853 Frequency, f 10521x Solution: So,

37 The Sample Variance e.g.2 Find the sample standard deviation of the following lengths: 91272 Frequency, f 20-2915-1910-141-9 Length (cm) Solution: Standard deviation, s = We need the class mid-values 5121724·5 We can now enter the values of x and f on our calculators. x 91272 Frequency, f

38 The Sample Variance  To find the root mean square deviation, rmsd, or the sample standard deviation, s, using the calculator functions, SUMMARY the values of x ( and f ) are entered and checked, the table of calculations gives both values, the variance is the square of the standard deviation. the larger value is the sample standard deviation, s, and this is the value that is most often used by statisticians,

39 The Sample Variance Outliers We’ve already seen that an outlier is a data item that lies well away from the other data. It may be a genuine observation or an error in the data. e.g. 1 Consider the following data: 81211917141210 With this data set, we would immediately suspect an error. The value 81 was likely to have been 18. If so, there would be a large effect on the mean and standard deviation although the median would not be affected and there would be little effect on the IQR. The presence of possible outliers is an argument in favour of using median and IQR as measures of data.

40 The Sample Variance A 2 nd method used to identify outliers is to find points that are further than 2 standard deviations from the mean. The point 33 is more than 2 standard deviations above the mean so, using this measure, it is an outlier. In an earlier section, we met a method of identifying outliers using a measure of 1·5  IQR above or below the median. e.g. 2. Consider the following sample: 21222433191817141210 The sample mean and sample standard deviation are : mean, standard deviation, s = So, and


Download ppt "The Sample Variance © Christine Crisp “Teach A Level Maths” Statistics 1."

Similar presentations


Ads by Google