1 / 58

1.2: Describing Distributions with Numbers

1.2: Describing Distributions with Numbers. Measures of Location (Center) Mean Median B. Measures of Spread (Variability) Quartiles (Quantiles) Variance and Standard deviation. Measures of Location. 1. Mean (Average). How to find the mean (average):.

Download Presentation

1.2: Describing Distributions with Numbers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 1.2: Describing Distributions with Numbers • Measures of Location (Center) • Mean • Median B. Measures of Spread (Variability) • Quartiles (Quantiles) • Variance and Standard deviation

  2. Measures of Location 1. Mean (Average) How to find the mean (average): 1) Add the values together 2) Divide the total by the number of observations • Example: Test Scores : 56, 65, 54, 55, 57, 54, 61, 62, 60, 55, 57, • 56, 57, 61, 62, 60, 49, 66, 59, 80 Step 1 : 56 + 65 + 54 + …… + 59 + 80 = 1186 Step 2 : 1186 / 20 = 59.3 Mean

  3. To find the mean x of a set of observations, add their values and divide by the number of observations. If the n observations are x , x , x , ….. , x , their mean is : 1 2 3 n ... + + + + = n x x x 1  x x x x x = 3 n 1 i 2 n Mean Or, in more compact notation:

  4. 2. Median How to find the median M : 1) Arrange the observations in order from smallest to largest. 2) If the number of observations is odd, then the median is located at the center of the list. So, if there are n observations, then the median is located in spot (n + 1) / 2 3) If the number of observations is even, then the median is the average of the two terms in the middle spots. These are located in spots (n / 2) and (n / 2) + 1

  5. Median Example of finding a Median : List 1 : 2, 4, 6, 3, 5, 2, 6, 8, 10, 11, 1 Step 1: Order the list : 1, 2, 2, 3, 4, 5, 6, 6, 8, 10, 11 Step 2 : Find the middle term2 : (n+1) / 2 = (11 + 1) / 2 = 6 1, 2, 2, 3, 4, 5, 6, 6, 8, 10, 11 Median

  6. Median Example of finding a Median : List : 2, 4, 6, 3, 5, 2, 6, 8, 10, 11, 1, 12 Step 1: Order the list : 1, 2, 2, 3, 4, 5, 6, 6, 8, 10, 11, 12 Step 2 : Find the two middle terms : (n / 2) + 1 = (12 / 2) + 1 = 7 n / 2 = 12 / 2 = 6 Step 3 : Average the sixth and seventh terms : 1, 2, 2, 3, 4, 5, 6, 6, 8, 10, 11, 12 Median = (5 + 6) /2 = 5.5

  7. In The Presence Of Outliers Q: Do outliers affect the Mean and Median? Consider the list on numbers from 1 through 9 : 1, 2, 3, 4, 5, 6, 7 ,8 ,9 The Mean is : 5 The Median is : 5 What if we put the number 100 at the end of the list : 1, 2, 3, 4, 5, 6, 7 ,8 ,9, 100 The Mean is : 14.5 The Median is : 5.5 A: Outliers affect the Mean much more than the Median !

  8. Distributions The mean is the point at which ahistogram balances. For symmetric distributions the mean and median will be nearly the same. However, since the mean is influenced by outliers, for skewed distributions the mean will be pulled in the direction of the long tail while the median will be resistant to the outliers and remain in nearly the same place.

  9. Skewed Right M X

  10. XM Skewed Left

  11. Describing Spread The Five Number Summary : 1) The Median 2) First Quartile : 25% of the observations lie below the First Quartile 3) Third Quartile : 75% of the observations lie below the third quartile 4) Lowest Individual Observation (Minimum) 5) Highest Individual Observation (Maximum)

  12. Quartiles Calculating the Quartiles : 1) Arrange the observations in increasing order and locate the Median M in the ordered list o’ observations. 2) The First Quartile Q1 is the median of the observations whose position in the ordered list is to the left of the location of the overall median. 3) The Third Quartile Q3 is the median of the observations whose position in the ordered list is to the right of the location of the overall median.

  13. Quartiles Example of calculating First Quartile : List of quiz scores: 10, 8, 9, 4, 6, 6, 8, 9, 2, 7 1) Order the list: 2, 4, 6, 6, 7, 8, 8, 9, 9, 10 Find the median: (7 + 8) / 2 = 7.5 2) Find all the observations whose position in the list is to the left of the median : 2, 4, 6, 6, 7 , 8, 8, 9, 9, 10 Find the median of these values : 6

  14. Quartiles Example of calculating Third Quartile : List of quiz scores: 10, 8, 9, 4, 6, 6, 8, 9, 2, 7, 11 1) Order the list: 2, 4, 6, 6, 7, 8, 8, 9, 9, 10, 11 Find the median: 8 2) Find all the observations whose position in the list is to the right of the median : 2, 4, 6, 6, 7, 8, 8, 9, 9, 10, 11 8, 9, 9, 10, 11 Find the median of these values : 9

  15. Interquartile Range The interquartile range , IQR, is the distance between the first quartile and the third quartile. Determining Outliers Call an observation a suspected outlier if it falls more than 1.5 * IQR above the third quartile or below the first quartile. Example : Imagine we have a bunch of test scores with Q1 = 50 and Q3 = 80. The IQR = 80 - 50 = 30 So, 1.5 * IQR = 1.5 * 30 = 45 This means that if there are any scores above Q3 + 45 = 125 or any scores Q1 - 45 = 5, then these scores are suspected outliers.

  16. Highest Observation (98) 90 Q3 (85) Median (77) 70 Q1 (65) 50 Lowest Observation (47) 30 10 0 Boxplot Example: Low = 47, High = 98, Median = 77, Q1 = 65, Q3 = 85 • A Boxplot is a graph of the five number summary. A central box • spans the quartiles, with a line marking the median. Whiskers • extend out from the box to the extremes.

  17. Describing Spread 2. The Standard Deviation • Variance: The variance of a set of observations is an “average” of the • deviations of the observations from the mean. • Note: You divide by (n - 1) instead of n. • Standard Deviation: The SD is the square root of the variance.

  18. Obs Deviation from Mean Deviations Squared 65 -15 225 77 -3 9 83 3 9 80 0 0 95 15 225 Describing Spread The Standard Deviation Example : Test Scores : 65, 77, 83, 80, 95 1) Find the average : 80 2) Find the deviations from the mean, and their squares

  19. (225 + 9 + 9 + 0 + 225) (5 - 1) 117 = 10.8 Describing Spread The Standard Deviation 3) Determine the mean of the squares: = 117 Variance 4) Determine the Standard Deviation:

  20. More Fancy Notation The variance of a set of observations is the average of the squares of the deviations of the observations from their mean. In symbols, the variance on n observations , , is : ... + + + ... = n - 1 2 2 2 2 2 (x - x ) (x - x ) (x - x ) (x - x ) (x - x )   i i 1 2 n = x x x n 1 2 s s s s The standard deviation s is the square root of the variance : 2 2 2 2 1 1 n-1 s = or, in more compact notation : n-1

  21. Another Example of Standard Deviation 2 (x - x ) ( 214879 ) =  x x i = x x x 1 2 s 2 i i i ( ( - - ) ) 1 6 n-1 Consider the following years in our past : 1792, 1666, 1362, 1614, 1460, 1867, 1439 Find the standard deviation of these years. The Mean = 1600 1792 1666 1362 1614 1460 1867 1439 192 66 -238 14 -140 267 -161 36864 4356 56644 196 19600 71298 25921 = 35813.166 s = 189.2

  22. Why Do We Square The Deviations ? 1) The sum of the squared deviations of any set of observations from their mean is the smallest that the sum of squared deviations from any number can possibly be. Why use the Standard Deviation and not the Variance ? 1) The standard deviation is the measure of spread for an important class of symmetric unimodal distributions called the normal distribution. 2) The standard deviation is used by the normal distribution. 3) The variance uses squared deviations, which gives a different unit from the original data. Why use n - 1 ? 1) The sum of the deviations is *always* zero. So, if we know n-1 of the deviations, then the last deviation can be calculated. So, only n-1 of the deviations can vary freely. These are called degrees of freedom.

  23. Properties of Standard Deviations 1) The standard deviation measures spread about the mean and should be used only when the mean is chosen as the measure of center. 2) s = 0 only when there is no spread. This happens only when all observations have the same value. Otherwise, s > 0. As the observations get more spread out from the mean, then s gets larger. 3) s, like the mean, is not resistant. A few outliers can make s very large.

  24. Which Measure To Use ? Q: When is the mean better than median? When is the five number summary better than the standard deviation? Rules Of Thumb A1: If outliers appear, or if your distribution is skewed, then the mean could be affected, so use the median and the five number summary. A2: If the distribution is reasonably symmetric and is free of outliers, then the mean and standard deviation should be used.

  25. Changing Units Consider the following values : 30, 40, 50, 60, 70 The mean is 50 and the standard deviation is 15.8 What happens to these if we take every score, multiply it by 2 and add 10 We get these values : 70, 90, 110, 130, 150 The mean is 110 and the standard deviation is 31.6

  26. 150 150 150 130 130 130 110 110 110 90 90 90 70 70 70 50 50 50 30 30 30 Changing Units Old values : 30, 40, 50, 60, 70 mean = 50 and s = 15.8 What happens to these if we take every score, multiply it by 2 and add 10 New values : 70, 90, 110, 130, 150 mean = 110 and s = 31.6

  27. Linear Transformations A linear transformation changes the original variable x into the new variable given an equation of the form : x x = bx + a new new Note: The constant a shifts all values of x either up or down by the value a. The constant b changes the size of the unit of the distribution. Effects of Linear Transformations 1) To get the new spread, multiply the old spread by |b|. 2) To get the new mean, multiply the old mean by b and add the constant a.

  28. 1.3: The Normal Distributions Density Curves A density curve is a curve that : 1) is always on or above the vertical axis, and 2) has area exactly 1 underneath it. A density curve describes the overall pattern of a distribution. The area under the curve and above any range of values is the relative frequency of all observations that fall in that range.

  29. Density Curves

  30. Median Mean Normal and Skewed Curves

  31. Why are Normal Distributions important in stats? • Normal distributions are good descriptions for some • distributions of real data. 2) Normal distributions are good to the results of many kinds of chance outcomes. 3) Many statistical inference procedures based on normal distributions work well for other roughly symmetric distributions.

  32. The 68 - 95 - 99.7 Rule In the normal distribution with mean  and standard deviation  : • 68 % of the observations fall within of the mean  • 95 % of the observations fall within2 of the mean  • 99.7 % of the observations fall within3 of the mean 

  33. Normal Curve Example John collected data on the heights of women ages 18 to 24. He found that the distribution was roughly normal, with a mean of 64.5 inches and a standard deviation of 2.5 inches.

  34. x -  z =  106 - 97 9 = = 6 6 Standardizing Observations If x is an observation from a roughly symmetric distribution that has mean  and standard deviation , then the standard value of x is : Note: A standardized score is often called a z-score. Example : Women’s IQ’s have a symmetric distribution with a mean of 97 and a standard deviation of 6. What is the standard score for a woman with an IQ of 106 ? z = 1.5

  35. x -  z =  66 - 72 -6 = = 8 8 Standardizing Observations If x is an observation from a roughly symmetric distribution that has mean  and standard deviation , then the standard value of x is : Note: A standardized score is often called a z-score. Example : Men’s IQ’s have a roughly symmetric distribution with a mean of 72 and a standard deviation of 8. What is the standard score for a man with an IQ of 66 ? z = - .75

  36. The Standard Normal Distribution x -  z =  66 - 72 -6 = = 8 8 If x is an observation from a roughly symmetric distribution that has mean  and standard deviation , then the standard value of x is : Note: A standardized score is often called a z-score. Example : Men’s IQ’s have a roughly symmetric distribution with a mean of 72 and a standard deviation of 8. What is the standard score for a man with an IQ of 66 ? z = - .75 Q: What percentage of people have a score below 66 ?

  37. The Standard Normal Table Table A is a table of areas under the standard normal curve. The table entry for each z value is the area under the curve to the left of z

  38. The Standard Normal Table Example : Imagine we have done an experiment, and we want to find what percentage of people fell under a score, namely x. We then proceed to find that the z-score for the value x is -1.10. .1357

  39. The Standard Normal Table Example : The Graduate Record Examinations (GRE) are widely used to help predict the performance of applicants to graduate schools. The range of possible sores on a GRE is 200 to 900. The psychology department at a university finds the scores of its applicants on the quantitative GRE are approximately normal with mean  = 544 and standard deviation  = 103. Answer the following : 1) Find the percentage of people who scored 700 or higher on the test. 2) Find the percentage of people who scored below 500 on the test. 3) Find the percentage of people who scored between 500 and 800 on the test.

  40. 1) Find the percentage of people who scored 700 or higher on the test. Find the percentage to the right of the 700 marker.

  41. .9345 .0655 700 - 544 = 103 156 = 103 1) Find the percentage of people who scored 700 or higher on the test. Find the z-score : z = 1.51 P(X>700)=P(Z>1.51)=1-P(Z<1.51)=1 - .9345 = .0655

  42. 2) Find the percentage of people who scored below 500 on the test. Find the percentage to the left of 500

  43. 0.3336 500 - 544 = 103 - 44 = 103 2) Find the percentage of people who scored below 500 on the test. Find the z-score : z = - 0.43 Answer : 0.3336

  44. 3) Find the percentage of people who scored between 500 and 800 on the test. Find the percentage between 500 and 800

  45. - 0.43 z = Find the first z-score : z = Find the second z-score : 2.49 0.9936 800 - 544 500 - 544 0.3336 = = 103 103 - 44 256 = = 103 103 3) Find the percentage of people who scored between 500 and 800 on the test. Area = .9936 - .3336 = 0.66

  46. 4.50 Example : The Soup Nazi charges, on the average, $4.50 for a cup of soup, and if you’re lucky, some bread, with a standard deviation of $0.45. What is the probability that our check will be more than $5.00 ?

  47. 0.1335 0.8665 4.50 5.00 - 4.50 Z = 0.45 5.00 What is the probability that our check will be more than $5.00 ? P (X > 5 ) =P(Z >1.11)=0.1335 13.35 % = 1.11

  48. “Backward” Normal Calculations • We could find the observed value (x) of a given proportion in N( , )by unstandardizing the z-score. • State the problem • Draw a picture • Use the normal table to find the proportion closest to the one you need • Read off the z-value • Unstandardize x= + z

  49. s = 1 .10 0 Example Find the value of z such that the probability of being less than z is 0.10. 1. z: P(Z < z) = .10

More Related