Presentation on theme: "Chapter 1: Exploring Data"— Presentation transcript:
1 Chapter 1: Exploring Data Section 1.3Describing Quantitative Data with NumbersThe Practice of Statistics, 4th edition - For AP*STARNES, YATES, MOORE
2 Chapter 1 Exploring Data Introduction: Data Analysis: Making Sense of Data1.1 Analyzing Categorical Data1.2 Displaying Quantitative Data with Graphs1.3 Describing Quantitative Data with Numbers
3 Section 1.3 Describing Quantitative Data with Numbers Learning ObjectivesAfter this section, you should be able to…MEASURE center with the mean and medianMEASURE spread with standard deviation and interquartile rangeIDENTIFY outliersCONSTRUCT a boxplot using the five-number summaryCALCULATE numerical summaries with technology
4 WARM UPStudents in a college statistics class responded to a survey designed by their teacher. One of the survey questions was “How much sleep did you get last night?” Here are the data:1. Make a dotplot to display the data.2. Describe the overall pattern of the distribution.3. What other types of graphs display quantitative data?
5 WARM UP 1. Describe the shape of the following data set. 2. Does the graph represent categorical or quantitative data?3. Is the graph above a bar graph or a histogram? Explain.
6 Population Parameters vs. Sample Statistics Population: A population is any entire collection of people, animals, plants or things from which we may collect data. It is the entire group we are interested in, which we wish to describe or draw conclusions about.Examples: “all women in the Bay Area between the ages of 18 and 54.” “House cats raised as pets in American households.” “The light bulbs we are manufacturing in this plant.”Sample: A sample is a group of units selected from a larger group (the population). By studying the sample it is hoped to draw valid conclusions about the larger group.Examples:“500 women in the Bay Area between the ages of 18 and 54.” “50 house cats drawn from households in San Francisco, CA.” “10 light bulbs manufactured at this plant in the last year.”Population Parameters vs. Sample Statistics
7 Population Parameters vs. Sample Statistics Parameter: A parameter is a value, usually unknown (and which therefore has to be estimated), used to represent a certain population characteristic.Statistic: A statistic is a quantity that is calculated from a sample of data. It is used to give information about unknown values in the corresponding population.Population Parameters vs. Sample Statistics
8 Describing Quantitative Data Measuring Center: The MeanThe most common measure of center is the ordinary arithmetic average, or mean.Describing Quantitative DataDefinition:To find the mean (pronounced “x-bar”) of a set of observations, add their values and divide by the number of observations. If the n observations are x1, x2, x3, …, xn, their mean is:
9 Population Parameters vs. Sample Statistics What is the difference between and ?refers to the mean of a sample. Most of the time, the data we’ll encounter can be thought of as a sample from some larger population.When we need to refer to the mean of the population, we’ll use the symbolPopulation Parameters vs. Sample Statistics
10 Describing Quantitative Data Measuring Center: The MedianAnother common measure of center is the median. The median describes the midpoint of a distribution.Describing Quantitative DataDefinition:The median M is the midpoint of a distribution, the number such that half of the observations are smaller and the other half are larger.To find the median of a distribution:Arrange all observations from smallest to largest.If the number of observations n is odd, the median M is the center observation in the ordered list.If the number of observations n is even, the median M is the average of the two center observations in the ordered list.
11 Resistant Measure What is a resistant measure? A resistant measure is one that is not influenced by extreme values in a data set.Because the mean can not resist the influence of extreme values (or outliers), we say that the mean is NOT a resistant measure.Example: Class Test ScoresCalculate the mean of each data set. Then, calculate the median of each data set.Class 1: 71, 78, 82, 84, 85, 89, 92, 100Class 2: 41, 78, 82, 84, 85, 89, 92, 100Resistant Measure
12 Describing Quantitative Data Comparing the Mean and the MedianThe mean and median measure center in different ways, and both are useful.Describing Quantitative DataComparing the Mean and the MedianThe mean and median of a roughly symmetric distribution are close together.If the distribution is exactly symmetric, the mean and median are exactly the same.In a skewed distribution, the mean is usually farther out in the long tail than is the median.Skewed Right = mean > medianSkewed Left = mean < median
13 Describing Quantitative Data Measuring SpreadA measure of center alone can be misleading.A useful numerical description of a distribution requires both a measure of center and a measure of spread.Describing Quantitative DataMeasures of Spread:RangeIQRStandard Deviation
14 Measuring Spread Why measure spread? We often want to know not only what the central tendency is in a set of scores or values (i.e, the mean, the median or the mode), we also want to know how bunched up or “spread out” the scores are.
15 Describing Quantitative Data Measuring Spread: The RangeThe range is the difference between the highest value and the lowest value in a data setExample: Class Test ScoresFind the range of each class.71, 78, 82, 84, 85, 89, 92, 10041, 78, 82, 84, 85, 89, 92, 100Is the range a resistant measure?Describing Quantitative Data
16 Describing Quantitative Data Measuring Spread: The Interquartile Range (IQR)The difference between the first and third quartiles in a data setBefore you can find the IQR, you need to find the quartilesDescribing Quantitative DataHow to Calculate the Quartiles and the Interquartile RangeQuartiles: Points that divide the data set into 4 equal pieces***Note: there are only 3 of them!Arrange the observations in increasing order and locate the median M.The first quartile Q1 is the median of the observations located to the left of the median in the ordered list.The third quartile Q3 is the median of the observations located to the right of the median in the ordered list.The interquartile range (IQR) is defined as:IQR = Q3 – Q1
17 Describing Quantitative Data Find and Interpret the IQRExampleDescribing Quantitative DataHere is the data for the amount of fat (in grams) for McDonald’s beef sandwiches. Calculate the median and the IQR.912192324262829394042Q1 = 19M = 26Q3= 39IQR = Q3 – Q1== 20Interpretation: The range of the middle half of fat for McDonald’s beef sandwiches is 20 grams.
18 Describing Quantitative Data Identifying OutliersIn addition to serving as a measure of spread, the interquartile range (IQR) is used as part of a rule of thumb for identifying outliers.Describing Quantitative DataDefinition:The 1.5 x IQR Rule for OutliersCall an observation an outlier if it falls more than 1.5 x IQR above the third quartile or below the first quartile.Example: McDonld’s Beef SandwichesIn the data, we found Q1=19 grams, Q3=39 grams, and IQR=20 gramsFor these data, 1.5 x IQR = 1.5(20) = 30Q x IQR = 19 – 30 = -11Q x IQR = = 69Any beef sandwich with fat content higher than 69 g or lower than -11 g would be an outlier. So, there are NOT any outliers in this data.Try the example in your notes on the chicken sandwiches!
19 The Five-Number Summary What’s the point? The minimum and maximum values alone tell us little about the distribution as a whole. Likewise, the median and quartiles tell us little about the tails of a distribution.To get a quick summary of both center and spread, combine all five numbers.Describing Quantitative DataDefinition:The five-number summary of a distribution consists of the smallest observation, the first quartile, the median, the third quartile, and the largest observation, written in order from smallest to largest.Minimum Q1 M Q3 Maximum
20 Describing Quantitative Data Boxplots (Box-and-Whisker Plots)The five-number summary divides the distribution roughly into quarters. This leads to a new way to display quantitative data, the boxplot.Describing Quantitative DataHow to Make a BoxplotDraw and label a number line that includes the range of the distribution.Draw a central box from Q1 to Q3.Note the median M inside the box.Extend lines (whiskers) from the box out to the minimum and maximum values that are not outliers.
21 Describing Quantitative Data BoxplotConsider our beef sandwiches data. Construct a boxplot.Example: McDonald’s SandwichesDescribing Quantitative Data
22 WARM UP – HW on the Rainbow Trays The following data represents test scores for 24 students in AP Statistics1. Find the mean, median, range and IQR for the data.2. What is the five-number summary for this data?3. Are there any outliers? Justify your answer mathematically.
23 WARM UP – HW on the Rainbow Trays The following data represents test scores for 24 students in AP Statisticsmean: median: 83.5range: 25 IQR: 13Five Number Summary:
24 Describing Quantitative Data Measuring Spread: The Standard DeviationThe most commonly used measure of spread is called the standard deviation.Standard deviation measures how far each observation is from the mean.Describing Quantitative DataDefinition:The standard deviation sx measures the average distance of the observations from their mean. It is calculated by finding an average of the squared distances and then taking the square root. This average squared distance is called the variance.
25 Describing Quantitative Data Measuring Spread: The Standard DeviationHow do you calculate standard deviation?Consider the following data on the number of pets that 9 students own.Describing Quantitative DataCalculate the mean.Calculate each deviation.deviation = observation – meandeviation: = -4deviation: = 3= 5
26 Describing Quantitative Data Measuring Spread: The Standard DeviationDescribing Quantitative Dataxi(xi-mean)(xi-mean)211 - 5 = -4(-4)2 = 1633 - 5 = -2(-2)2 = 444 - 5 = -1(-1)2 = 155 - 5 = 0(0)2 = 077 - 5 = 2(2)2 = 488 - 5 = 3(3)2 = 999 - 5 = 4(4)2 = 16Sum= 0Sum= 523) Square each deviation.4) Find the “average” squared deviation. Calculate the sum of the squared deviations divided by (n-1)…this is called the variance.5) Calculate the square root of the variance…this is the standard deviation.What is the variance? “average” squared deviation = 52/(9-1) = 6.5Standard deviation = square root of variance =
27 What are the similarities and differences between range, IQR and standard deviation? Similarities: all are measures of variabilityDifferences: resistance to outliers, using all of the dataWhat are some properties of standard deviation?Standard deviation is never negative.Standard deviation is sensitive to outliers. A single outlier can raise the standard deviation and in turn, distort the picture of spread.For data with approximately the same mean, the greater the spread, the greater the standard deviation.If all values of a data set are the same, the standard deviation is zero (because each value is equal to the mean).
28 Example: A random sample of 5 students was asked how many minutes they spent doing homework the previous night. Here are there responses (in minutes): 0, 25, 30, 60, 90. Calculate and interpret the standard deviation.Standard Deviation
29 Example: A random sample of 5 students was asked how many minutes they spent doing homework the previous night. Here are there responses (in minutes): 0, 25, 30, 60, 90. Calculate and interpret the standard deviation.Standard Deviation: 31.05Interpretation: On average, the distance between the amount of time a student does homework and the mean amount of time students spent doing homework is minutes.Standard Deviation
30 Describing Quantitative Data Choosing Measures of Center and SpreadWe now have a choice between two descriptions for center and spreadMean and Standard DeviationMedian and Interquartile RangeDescribing Quantitative DataChoosing Measures of Center and SpreadThe median and IQR are usually better than the mean and standard deviation for describing a skewed distribution or a distribution with outliers.Use mean and standard deviation only for reasonably symmetric distributions that don’t have outliers.NOTE: Numerical summaries do not fully describe the shape of a distribution. ALWAYS PLOT YOUR DATA!
31 Section 1.3 Describing Quantitative Data with Numbers SummaryIn this section, we learned that…A numerical summary of a distribution should report at least its center and spread.The mean and median describe the center of a distribution in different ways. The mean is the average and the median is the midpoint of the values.When you use the median to indicate the center of a distribution, describe its spread using the quartiles.The interquartile range (IQR) is the range of the middle 50% of the observations: IQR = Q3 – Q1.
32 Section 1.3 Describing Quantitative Data with Numbers SummaryIn this section, we learned that…An extreme observation is an outlier if it is smaller than Q1–(1.5xIQR) or larger than Q3+(1.5xIQR) .The five-number summary (min, Q1, M, Q3, max) provides a quick overall description of distribution and can be pictured using a boxplot.The variance and its square root, the standard deviation are common measures of spread about the mean as center.The mean and standard deviation are good descriptions for symmetric distributions without outliers. The median and IQR are a better description for skewed distributions.
33 Looking Ahead… In the next Chapter… We’ll learn how to model distributions of data…Describing Location in a DistributionNormal DistributionsIn the next Chapter…