Download presentation
Presentation is loading. Please wait.
Published byAshlynn McKinney Modified over 9 years ago
1
The Sample Variance © Chistine Crisp Edited by Dr Mike Hughes
2
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 Interquartile range we will do later with Cumulative Frequency
3
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 11 22 33 44 55955555551 Set C 55999654111 Set B 55987654321 Set A Mean,Median 987654321 Set A: x 0
4
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 11 22 33 44 987654321 Set A: x Let’s do this calculation for all 3 data sets:
5
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
6
The Sample Variance There are 2 formulae that can be used, the mean square deviation. or the sample variance. 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.
7
The Sample Variance So, there are 2 quantities and their square roots that we need to be clear about the mean square deviation, POPULATION VARIANCE Also the sample variance, and the root mean square deviation. POPULATION STANDARD DEVIATION and the sample standard deviation. WE nearly ALWAYS use THESE TWO formula
8
The Sample Variance e.g. Find the rmsd and msd of the following data: (i) x7914 Mean, (ii) The 2 nd form is exactly the same as the first form but quicker to use !!
9
The Sample Variance e.g. Find the sample SD and Variance of the following data: (i) x7914 Mean, (ii) The 2 nd form is in general quicker to use.
10
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: and
11
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 sheet, labelled S xx. (said as Sum of squares X X) An expanded form of the expression is also given. All you have to do is divide by the correct quantity.
12
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 Your formulae sheet will gives the formula or equivalent: Then, we divide by n for the msd or ( n – 1 ) for s 2. The sample standard deviation is the larger than the rmsd because we divide by (n-1)
13
The Sample Variance The formula for the variance can be easily adapted to find the variance of frequency data. Becomes for FREQUENCY DATA Frequency Data We usually 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.
14
The Sample Variance But note that............... becomes Frequency Data
15
The Sample Variance SO MSD= SXX/n and VARIANCE = SXX/(n-1) becomes Frequency Data
16
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:
17
The Sample Variance e.g.1 Find the mean and sample standard deviation of the following data: x12510 Frequency, f 3584 Solution: So,
18
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:
19
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 x2x2 25144289600.25 x2fx2f50100834685402.25 xf1084204220.5
20
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,
21
The Sample Variance SUMMARY Frequency data Raw data MSD is called POPULATION VARIANCE Take square root for rmsd and sample standard deviation RMSD is called POPULATION STANDARD DEVIATION
22
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
23
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.
24
The Sample Variance 3. 10 observations where and Solution: Standard deviation, s mean, variance,
25
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.
26
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.
27
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.
28
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.
29
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.
30
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)
31
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 =
32
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.
33
The Sample Variance e.g.1 Find the mean and sample standard deviation of the following data: 4853 Frequency, f 10521x Solution: So,
34
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
35
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,
36
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.
37
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
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.