Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 9 Statistics.

Similar presentations


Presentation on theme: "Chapter 9 Statistics."— Presentation transcript:

1 Chapter 9 Statistics

2 Frequency Distributions; Measures of Central Tendency
Three types of frequency distributions: Categorical – primarily for nominal, ordinal level data (FYI) Grouped – range of data is large Ungrouped – range of data is small, single data values for each class (FYI)

3 Frequency Distributions; Measures of Central Tendency
Grouped Frequency Distributions Step 1: Order data from smallest to largest Step 2: Determine the number of classes (e.g. class intervals) using Sturges’ Rule k= (log10n) where n is the number of observations (data values). *Always round up Class intervals are contiguous, nonoverlapping intervals selected in such a way that they are mutually exclusive and exhaustive. That is, each and every value in the set of data can be placed in one, and only one, of the intervals.

4 Frequency Distributions; Measures of Central Tendency
Grouped Frequency Distributions Step 3: Determine width of class intervals Width (W) = Range (R) k where Range= largest value-smallest value k represents Sturges’ Rule

5 Frequency Distributions; Measures of Central Tendency
Grouped Frequency Distributions Step 4: Assign observations to class intervals The count in each class interval represents the frequency for that interval. The smallest observation serves as the first lower class limit (LCL). Add the ‘width minus one’ to the LCL to get UCL (upper class limit) NOTE: Technically, class limits (i.e., 0-5, 6-11, and so on) are not adjacent. However, class boundaries account for the space between the class limit intervals (i.e., 0.5 – 5.5, , and so on). Boundaries are written for convenience but understood to mean all values up to but not including the upper boundary.

6 Frequency Distributions; Measures of Central Tendency
Grouped Frequency Distributions Step 5: Calculate cumulative & relative frequencies Cumulative Frequency-Add number of observations from the first interval through the preceding interval, inclusive. Relative Frequency – Divide number of observations in each class interval by the total number of observations Cumulative Relative Frequency-Same calculation as cum-ulative frequency, but using the relative frequencies A Frequency Distribution Table Class Int. Freq. Cum. Freq. Rel. Freq. Cum. Rel. Freq. LCL - UCL

7 Frequency Distributions; Measures of Central Tendency
Measures of Central Tendency – the value(s) the data tends to center around Arithmetic mean (average) Mode Median

8 Frequency Distributions; Measures of Central Tendency
Arithmetic mean (sample mean or sample average) --“x-bar” Ungrouped data (individual data such as 5, 6, 10, 14, etc. _ x =  xi n x = x1 + x2 + x3 +… + xn where xi is each data value (observation) in the data set. where n is the number of observations in the data set

9 Frequency Distributions; Measures of Central Tendency
Calculate the sample mean for ungrouped data: Step 1: add all values in a data set Step 2: divide the total by the number of values summed.

10 Frequency Distributions; Measures of Central Tendency
Example n = *This is ungrouped data _ x = 12 = =

11 Frequency Distributions; Measures of Central Tendency
Grouped data (assumes each value (observation) falling within a given class interval is equal to the value of the midpoint of that interval _ x =  fi  xi n where xi represents each class interval midpoint (class mark)* *an easy way to determine the class mark is to simply add the upper class limit (boundary) to the lower class limit (boundary) then divide by 2.

12 Frequency Distributions; Measures of Central Tendency
Calculate the sample mean for grouped data: Step 1: multiply each class mark by its corresponding frequency Step 2: add the resulting products Step 3: divide the total by the number of observations

13 Frequency Distributions; Measures of Central Tendency
Example Class Limits Frequency Class Mark xI  fI 90 – (see note below) _ x = = 113 108 Note: Where did the number 6 come from? There are 6 data values (observations) in the data set that fall between the range 90-98 (inclusive)

14 Frequency Distributions; Measures of Central Tendency
Mode – value that occurs most frequently Ungrouped data Step 1: identify the data value that occurs most frequently Bi-modal -two values occurring at the same frequency No mode – all values different (not same as mode=0) Grouped data Step 1: specify the modal class (i.e., the class interval containing the largest number of observations

15 Frequency Distributions; Measures of Central Tendency
For ungrouped data <mode> There are four numbers that appear two times each: Therefore there are four modes. The data set is quad-modal

16 Frequency Distributions; Measures of Central Tendency
For grouped data <modal class> The modal class: or 3rd class (The class with the largest number of data values)

17 Frequency Distributions; Measures of Central Tendency
Median – The value above which half the values in a data set lie and below which the other half lie. (The middle value) Ungrouped Data Step 1: arrange the values in order of magnitude (smallest to largest) Step 2: locate the middle value

18 Frequency Distributions; Measures of Central Tendency
For ungrouped data <median> Even number of values therefore we must get an average of the middle two values = 6.45 2

19 Measures of Variation (Dispersion)
Range (R) (for ungrouped data only) Ungrouped data Step 1: Take the difference between the largest and smallest values in a data set. For example, a data set such as 5, 6, 10, 14 has a range of 9 because 14 (the largest value) minus 5 (the smallest value) is 9.

20 Measures of Variation (Dispersion)
Deviations from the Mean Differences found by subtracting the mean from each number in a sample Given 3, 5, 2, 6 The mean ( ) is 4 The deviations from the mean would be -1, 1, -2, 2

21 Measures of Variation (Dispersion)
Variance (s2) - an average of the squares of the deviations of the individual values from their mean. Ungrouped data s2 =  (xi – )2 n-1

22 Measures of Variation (Dispersion)
Standard deviation (s) Step 1: Calculate the sample standard deviation for grouped or ungrouped data by: taking the square root of the variance

23 Measures of Variation (Dispersion)
Example _ *This is ungrouped data x = 4.2 n = 15 (a) Range (R) = 10 – 0 = 10 (b) variance (s2) = (8-4.2)2 + (6-4.2)2 + (3-4.2)2 + (0-4.2)2 + (0-4.2)2 + (5-4.2) (9-4.2)2 + (2-4.2)2 + (1-4.2)2 + (3-4.2)2 + (7-4.2)2 + (10-4.2) (0-4.2)2 +(3-4.2)2 + (6-4.2)2 _________ 15-1 = __ 14 = (c) standard deviation (s) = the square root of = 3.36

24 Measures of Variation (Dispersion)
Grouped data s2 = n ( xi2  fi) - (xi  fi)2 n(n-1) where xi represents each class boundary (or limit) midpoint (class mark)* where fi represents each class frequency *an easy way to determine the class mark is to simply add the upper class limit (boundary) to the lower class limit (boundary) then divide by 2.

25 Measures of Variation (Dispersion)
Calculate the sample variance for grouped data: Step 1: multiply each squared class mark by its corresponding frequency Step 2: add the resulting products Step 3: multiply the sum by n [A] Step 4: multiply each class mark by its corresponding frequency Step 5: add the resulting products Step 6 :square the sum [B] Step 7: perform subtraction [C] = [A] – [B] Step 8: divide [C] by n(n-1)

26 Measures of Variation (Dispersion)
Example Class limits freq(fi) xi xifi xi2fi 90 – (946) 53,016 [(942)6] ,398 ,392 ,948 ,100 ,387,854

27 Measures of Variation (Dispersion)
Refer to the formula for variance of grouped data below and see if you can fill in the formula using values from the table on the previous slide. s2 = n ( xi2  fi) - (xi  fi)2 n(n-1)

28 Measures of Variation (Dispersion)
108(107) = 149,888, ,937,616.0 11,556 = 950,616 = Therefore s = 9.07

29 The Normal Distribution
Also known as the “bell-shaped” curve Some statisticians say it is the most important distribution in statistics Most popular distribution in statistics

30 The Normal Distribution
The normal density function is given by where ∏≈ and ex ≈ 2.718

31 The Normal Distribution
Properties of the Normal Distribution - symmetrical about mean; - mean = median = mode - area under the curve = 1 - each different and specifies different normal distribution, thus the normal distribution is really a family of distributions - a very important member of the family is the standard normal distribution

32 The Normal Distribution
The Standard Normal Distribution has mean (μ) = 0 has standard deviation (σ) = 1 the normal density function reduces to

33 The Normal Distribution
The probability that z lies between any two points on the z-axis is determined by the area bounded by perpendiculars erected at each of the points, the curve, and the horizontal axis. P(a <z< b)

34 The Normal Distribution
Generally we find the area under the curve for a continuous distribution via calculus by integrating the function between a & b. dz

35 The Normal Distribution
However, we don't have to integrate because we have a table that has calculated this area See TABLE 1 of Appendix A-2

36 The Normal Distribution
Exercises 6-3 #7 p. 282 Find the area under the normal distribution curve between z = 0 and z = 0.56 So, we want P (0 < z < 0.56) From the standard normal table we find that P (0 < z < 0.56) = where a = 0 and b = 0.56

37 The Normal Distribution
Exercises 6-3 #16 p. 283 Find the area under the normal distribution curve between z = and z = -0.21 So we want P(-0.87 < z < -0.21) a b 0 where a = and b =-0.21

38 The Normal Distribution
Exercises 6-3 #16 p. 283 con’t The table gives a probability of at z = (note area same for negative or positive z since distribution is symmetrical). This area covers values of z from 0 out to Since we don’t want that entire area we subtract the area from 0 out to That is , we subtract which is the area under the curve at z = 0.21 So – =

39 The Normal Distribution
Exercises 6-3 #25 p. 283 Find the area under the normal distribution curve to the right of z = 1.92 and to the left of z = -0.44 So we want P(z >1.92)  P(z < -0.44) = where a = and b = 1.92 a b

40 The Normal Distribution
Exercises 6-3 #25 p. 283 Con’t Since the area at z = .44 is which is the area under the curve from 0 out to 0.44, the remaining area of interest has to be 0.5 – = AND Since the area at z = 1.92 is which is the area under the curve from 0 out to 1.92, the remaining area of interest has to be 0.5 – = So the combined areas of interest are =

41 The Normal Distribution
Exercises 6-3 # z = ? Given that the shaded area is , what would be the value of z? z has to be equal to Since the area from 0 out to z is equal to ( ) Recall that one-half of the area under the curve is .5. If we look in the body of the standard normal table for an area of we find that value at the intersection of the 13th row and 7th column which corresponds to a z value of Since z is located to the left of 0 it has to be negative, hence – 1.26. 0.8962 z 0

42 The Normal Distribution
Section 6-4 Applications of the Normal Distribution To solve problems for a normally distributed variable with a   0 or   1 we MUST transform the variable to a standard normal variable, that is P(x1 < X < x2) becomes P(z1 < Z < z2) which allows us to use the standard normal table. Using z = value – mean = x -  standard dev 

43 The Normal Distribution
Example A survey found that people keep their television sets an average of 4.8 years. The standard deviation is 0.89 year. If a person decides to buy a new TV set, find the probability that he or she has owned the set for the following amount of time. Assume the variable is normally distributed. Less than 2.5 years Between 3 and 4 years More than 4.2 years  = 4.8  = 0.89 (a) P(x < 2.5) becomes P(z<-2.58) because z = (2.5 – 4.8)/ 0.89 = -2.58 The area under the curve at Z=2.58 is therefore the P(z<-2.58) = 0.5 – =

44 The Normal Distribution
(b) P(3 < X < 4) becomes P(-2.02 < z < -0.9) because z = (3-4.8)/ .89 = and z=(4-4.8)/.89 = -0.90 from the standard normal table at a z of 2.02 we get and at a z of .9 we get so the P(-2.02 < z < -0.9) = = .1624

45 The Normal Distribution
(c) P (x > 4.2) becomes P(z > -0.67) because z = ( )/.89 = -0.67 from the standard normal table at z of .67 we get so the P(z > -0.67) = =

46 The Normal Distribution
Review Exercises #9 Area (%age) = .5 =  = 15 We can find the X values that correspond to the z values by using the same transformation equation. -0.67 = (x – 100)/15 and 0.67 = (x -100)/15 15(-.67) = x – (.67) = x - 100 x = x = therefore the highest and lowest scores are in the range (89.95 < x < )


Download ppt "Chapter 9 Statistics."

Similar presentations


Ads by Google