Presentation is loading. Please wait.

Presentation is loading. Please wait.

Statistics: Unlocking the Power of Data Lock 5 STAT 250 Dr. Kari Lock Morgan Describing Data: One Quantitative Variable SECTIONS 2.2, 2.3 One quantitative.

Similar presentations


Presentation on theme: "Statistics: Unlocking the Power of Data Lock 5 STAT 250 Dr. Kari Lock Morgan Describing Data: One Quantitative Variable SECTIONS 2.2, 2.3 One quantitative."— Presentation transcript:

1 Statistics: Unlocking the Power of Data Lock 5 STAT 250 Dr. Kari Lock Morgan Describing Data: One Quantitative Variable SECTIONS 2.2, 2.3 One quantitative variable (2.2, 2.3)

2 Statistics: Unlocking the Power of Data Lock 5 The Big Picture Population Sample Sampling Statistical Inference Descriptive Statistics

3 Statistics: Unlocking the Power of Data Lock 5 Descriptive Statistics In order to make sense of data, we need ways to summarize and visualize it Summarizing and visualizing variables and relationships between two variables is often known as descriptive statistics (also known as exploratory data analysis) Type of summary statistics and visualization methods depend on the type of variable(s) being analyzed (categorical or quantitative) Today: One quantitative variable

4 Statistics: Unlocking the Power of Data Lock 5 Question of the Day How obese are Americans?

5 Source: Behavioral Risk Factor Surveillance System, CDC. 2000 Obesity Trends* Among U.S. Adults BRFSS, 1990, 2000, 2010 (*BMI 30, or about 30 lbs. overweight for 5’4” person) 2010 1990 No Data <10% 10%–14% 15%–19% 20%–24% 25%–29% ≥30%

6 Statistics: Unlocking the Power of Data Lock 5 Obesity in America Obesity is a HUGE problem in America We’ll explore the topic of obesity in America question with two different types of data, both collected by the CDC:  Proportion of adults who are obese in each state  BMI for a random sample of Americans

7 Statistics: Unlocking the Power of Data Lock 5 Behavioral Risk Factor Surveillance System http://www.cdc.gov/obesity/data/table-adults.html

8 Statistics: Unlocking the Power of Data Lock 5 Obesity by State: 2013

9 Statistics: Unlocking the Power of Data Lock 5 Dotplot In a dotplot, each case is represented by a dot and dots are stacked. Easy way to see each case Minitab: Graph -> Dotplot -> One Y -> Simple ? ?

10 Statistics: Unlocking the Power of Data Lock 5 Histogram The height of the each bar corresponds to the number of cases within that range of the variable 5 states with obesity rate between 33.25 and 33.75 Minitab: Graph -> Histogram -> Simple 33.25 to 33.75

11 Statistics: Unlocking the Power of Data Lock 5 Shape SymmetricLeft-SkewedRight-Skewed Long right tail

12 Statistics: Unlocking the Power of Data Lock 5 National Health and Nutrition Examination Survey

13 Statistics: Unlocking the Power of Data Lock 5 BMI of Americans

14 Statistics: Unlocking the Power of Data Lock 5 BMI of Americans The distribution of BMI for American adults is a) Symmetric b) Left-skewed c) Right-skewed

15 Statistics: Unlocking the Power of Data Lock 5 Notation The sample size, the number of cases in the sample, is denoted by n We often let x or y stand for any variable, and x 1, x 2, …, x n represent the n values of the variable x x 1 = 32.4, x 2 = 28.4, x 3 = 26.8, …

16 Statistics: Unlocking the Power of Data Lock 5 Mean Minitab: Stat -> Basic Statistics -> Display Descriptive Statistics

17 Statistics: Unlocking the Power of Data Lock 5 Mean The average obesity rate across the 50 states is µ = 28.606.

18 Statistics: Unlocking the Power of Data Lock 5 Median The median, m, is the middle value when the data are ordered. If there are an even number of values, the median is the average of the two middle values. The median splits the data in half. Minitab: Stat -> Basic Statistics -> Display Descriptive Statistics

19 Statistics: Unlocking the Power of Data Lock 5 Measures of Center For symmetric distributions, the mean and the median will be about the same For skewed distributions, the mean will be more pulled towards the direction of skewness

20 Statistics: Unlocking the Power of Data Lock 5  =24.887 Measures of Center m = 24.163 Mean is “pulled” in the direction of skewness

21 Statistics: Unlocking the Power of Data Lock 5 Skewness and Center A distribution is left-skewed. Which measure of center would you expect to be higher? a) Mean b) Median

22 Statistics: Unlocking the Power of Data Lock 5 Outlier An outlier is an observed value that is notably distinct from the other values in a dataset.

23 Statistics: Unlocking the Power of Data Lock 5 Outliers More info here

24 Statistics: Unlocking the Power of Data Lock 5 Resistance A statistic is resistant if it is relatively unaffected by extreme values. The median is resistant while the mean is not. MeanMedian With Outlier105.22101.0 Without Outlier102.56100.5

25 Statistics: Unlocking the Power of Data Lock 5 Outliers When using statistics that are not resistant to outliers, stop and think about whether the outlier is a mistake If not, you have to decide whether the outlier is part of your population of interest or not Usually, for outliers that are not a mistake, it’s best to run the analysis twice, once with the outlier(s) and once without, to see how much the outlier(s) are affecting the results

26 Statistics: Unlocking the Power of Data Lock 5 Standard Deviation The standard deviation for a quantitative variable measures the spread of the data Sample standard deviation: s Population standard deviation:  (“sigma”) Minitab: Stat -> Basic Statistics -> Display Descriptive Statistics

27 Statistics: Unlocking the Power of Data Lock 5 Standard Deviation The larger the standard deviation, the more variability there is in the data and the more spread out the data are The standard deviation gives a rough estimate of the typical distance of a data values from the mean

28 Statistics: Unlocking the Power of Data Lock 5 Standard Deviation Both of these distributions are bell-shaped

29 Statistics: Unlocking the Power of Data Lock 5 Two Ways of Measuring Obesity Differences? States as cases Individual people as cases

30 Statistics: Unlocking the Power of Data Lock 5 95% Rule If a distribution of data is approximately symmetric and bell-shaped, about 95% of the data should fall within two standard deviations of the mean.

31 Statistics: Unlocking the Power of Data Lock 5 The 95% Rule

32 Statistics: Unlocking the Power of Data Lock 5 95% Rule Give an interval that will likely contain 95% of obesity rates of states. 47/50 = 94%

33 Statistics: Unlocking the Power of Data Lock 5 95% Rule Could we use the same method to get an interval that will contain 95% of BMIs of American adults? a) Yes b) No

34 Statistics: Unlocking the Power of Data Lock 5 The 95% Rule StatKey

35 Statistics: Unlocking the Power of Data Lock 5 The 95% Rule The standard deviation for hours of sleep per night is closest to a) ½ b) 1 c) 2 d) 4 e) I have no idea

36 Statistics: Unlocking the Power of Data Lock 5 z-score z-score measures the number of standard deviations away from the mean

37 Statistics: Unlocking the Power of Data Lock 5 z-score A z-score puts values on a common scale A z-score is the number of standard deviations a value falls from the mean Challenge: For symmetric, bell-shaped distributions, 95% of all z-scores fall between what two values?

38 Statistics: Unlocking the Power of Data Lock 5 z-score Which is better, an ACT score of 28 or a combined SAT score of 2100? ACT:  = 21,  = 5 SAT:  = 1500,  = 325 Assume ACT and SAT scores have approximately bell-shaped distributions a) ACT score of 28 b) SAT score of 2100 c) I don’t know

39 Statistics: Unlocking the Power of Data Lock 5 Other Measures of Location Maximum = largest data value Minimum = smallest data value Quartiles: Q 1 = median of the values below m. Q 3 = median of the values above m.

40 Statistics: Unlocking the Power of Data Lock 5 Five Number Summary Five Number Summary: MinMaxQ1Q1 Q3Q3 m  25%  Minitab: Stat -> Basic Statistics -> Display Descriptive Statistics

41 Statistics: Unlocking the Power of Data Lock 5 Five Number Summary The distribution of number of hours spent studying each week is a) Symmetric b) Right-skewed c) Left-skewed d) Impossible to tell > summary(study_hours) Min. 1st Qu. Median 3rd Qu. Max. 2.00 10.00 15.00 20.00 69.00

42 Statistics: Unlocking the Power of Data Lock 5 Percentile The P th percentile is the value which is greater than P% of the data We already used z-scores to determine whether an SAT score of 2100 or an ACT score of 28 is better We could also have used percentiles:  ACT score of 28: 91st percentile  SAT score of 2100: 97th percentile

43 Statistics: Unlocking the Power of Data Lock 5 Five Number Summary Five Number Summary: MinMaxQ1Q1 Q3Q3 m  25%  0 th percentile 100 th percentile 50 th percentile 75 th percentile 25 th percentile

44 Statistics: Unlocking the Power of Data Lock 5 Measures of Spread Range = Max – Min Interquartile Range (IQR) = Q 3 – Q 1 Is the range resistant to outliers? a) Yes b) No Is the IQR resistant to outliers? a) Yes b) No

45 Statistics: Unlocking the Power of Data Lock 5 Comparing Statistics Measures of Center:  Mean (not resistant)  Median (resistant) Measures of Spread:  Standard deviation (not resistant)  IQR (resistant)  Range (not resistant) Most often, we use the mean and the standard deviation, because they are calculated based on all the data values, so use all the available information

46 Statistics: Unlocking the Power of Data Lock 5 Boxplot Median Q1Q1 Q3Q3 Lines (“whiskers”) extend from each quartile to the most extreme value that is not an outlier Minitab: Graph -> Boxplot -> One Y -> Simple Middle 50% of data

47 Statistics: Unlocking the Power of Data Lock 5 Boxplot Outlier *For boxplots, outliers are defined as any point more than 1.5 IQRs beyond the quartiles (although you don’t have to know that)

48 Statistics: Unlocking the Power of Data Lock 5 Boxplot This boxplot shows a distribution that is a) Symmetric b) Left-skewed c) Right-skewed

49 Statistics: Unlocking the Power of Data Lock 5 Summary: One Quantitative Variable Summary Statistics  Center: mean, median  Spread: standard deviation, range, IQR  5 number summary  Percentiles Visualization  Dotplot  Histogram  Boxplot Other concepts  Shape: symmetric, skewed, bell-shaped  Outliers, resistance  z-scores

50 Statistics: Unlocking the Power of Data Lock 5 To Do Read Sections 2.2 and 2.3 Do Homework 2.2, 2.3 (due Friday, 9/18)


Download ppt "Statistics: Unlocking the Power of Data Lock 5 STAT 250 Dr. Kari Lock Morgan Describing Data: One Quantitative Variable SECTIONS 2.2, 2.3 One quantitative."

Similar presentations


Ads by Google