Displaying Distributions - Quantitative Variables

Similar documents
Boxplots. Lecture 17 Section Robb T. Koether. Hampden-Sydney College. Wed, Feb 10, 2010

The Normal Distribution

The Critical-Path Algorithm

Density Curves Sections

Minimal Spanning Trees

Recursive Sequences. Lecture 24 Section 5.6. Robb T. Koether. Hampden-Sydney College. Wed, Feb 27, 2013

Chapter 3 - Displaying and Summarizing Quantitative Data

Recursive Sequences. Lecture 24 Section 5.6. Robb T. Koether. Hampden-Sydney College. Wed, Feb 26, 2014

Rotations and Translations

Solving Recursive Sequences by Iteration

The Decreasing-Time Algorithm

TMTH 3360 NOTES ON COMMON GRAPHS AND CHARTS

Chapter 2 - Graphical Summaries of Data

Section 1.2. Displaying Quantitative Data with Graphs. Mrs. Daniel AP Stats 8/22/2013. Dotplots. How to Make a Dotplot. Mrs. Daniel AP Statistics

Sampling Distribution Examples Sections 15.4, 15.5

Organizing and Summarizing Data

Boolean Expressions. Lecture 31 Sections 6.6, 6.7. Robb T. Koether. Hampden-Sydney College. Wed, Apr 8, 2015

12. A(n) is the number of times an item or number occurs in a data set.

Implementing Linked Lists

Name Date Types of Graphs and Creating Graphs Notes

while Loops Lecture 13 Sections Robb T. Koether Wed, Sep 26, 2018 Hampden-Sydney College

Street-Routing Problems

STA Module 2B Organizing Data and Comparing Distributions (Part II)

STA Learning Objectives. Learning Objectives (cont.) Module 2B Organizing Data and Comparing Distributions (Part II)

Stack Applications. Lecture 27 Sections Robb T. Koether. Hampden-Sydney College. Wed, Mar 29, 2017

Scheduling and Digraphs

The Coefficient of Determination

The Pairwise-Comparison Method

The Traveling Salesman Problem Brute Force Method

Linked Lists. Lecture 16 Sections Robb T. Koether. Hampden-Sydney College. Wed, Feb 22, 2017

Lesson 18-1 Lesson Lesson 18-1 Lesson Lesson 18-2 Lesson 18-2

LR Parsing - Conflicts

XPath Lecture 34. Robb T. Koether. Hampden-Sydney College. Wed, Apr 11, 2012

Friends and Unary Operators

Prepare a stem-and-leaf graph for the following data. In your final display, you should arrange the leaves for each stem in increasing order.

Recursive Descent Parsers

STP 226 ELEMENTARY STATISTICS NOTES

The Plurality-with-Elimination Method

Chapter 1. Looking at Data-Distribution

The Traveling Salesman Problem Nearest-Neighbor Algorithm

Operators. Lecture 12 Section Robb T. Koether. Hampden-Sydney College. Fri, Feb 9, 2018

Magnification and Minification

MATH 112 Section 7.2: Measuring Distribution, Center, and Spread

2.1: Frequency Distributions

Scope and Parameter Passing

1.3 Graphical Summaries of Data

Pointers. Lecture 1 Sections Robb T. Koether. Hampden-Sydney College. Wed, Jan 14, 2015

Binary Tree Applications

Statistical Methods. Instructor: Lingsong Zhang. Any questions, ask me during the office hour, or me, I will answer promptly.

XML Attributes. Lecture 33. Robb T. Koether. Hampden-Sydney College. Wed, Apr 25, 2018

STA Rev. F Learning Objectives. Learning Objectives (Cont.) Module 3 Descriptive Measures

XPath. Lecture 36. Robb T. Koether. Wed, Apr 16, Hampden-Sydney College. Robb T. Koether (Hampden-Sydney College) XPath Wed, Apr 16, / 28

Frequency Distributions

Vocabulary. 5-number summary Rule. Area principle. Bar chart. Boxplot. Categorical data condition. Categorical variable.

Lecture Slides. Elementary Statistics Tenth Edition. by Mario F. Triola. and the Triola Statistics Series. Slide 1

Scope and Parameter Passing

Total Orders. Lecture 41 Section 8.5. Robb T. Koether. Hampden-Sydney College. Mon, Apr 8, 2013

MATH& 146 Lesson 10. Section 1.6 Graphing Numerical Data

Chapter 2 Organizing and Graphing Data. 2.1 Organizing and Graphing Qualitative Data

The Graphics Pipeline

Overview. Frequency Distributions. Chapter 2 Summarizing & Graphing Data. Descriptive Statistics. Inferential Statistics. Frequency Distribution

LR Parsing - The Items

Understanding and Comparing Distributions. Chapter 4

Chapter 2: Graphical Summaries of Data 2.1 Graphical Summaries for Qualitative Data. Frequency: Frequency distribution:

The string Class. Lecture 21 Sections 2.9, 3.9, Robb T. Koether. Wed, Oct 17, Hampden-Sydney College

The Class Construct Part 1

Learning Log Title: CHAPTER 7: PROPORTIONS AND PERCENTS. Date: Lesson: Chapter 7: Proportions and Percents

Chapter 6: DESCRIPTIVE STATISTICS

The Projection Matrix

Section 3.1 Shapes of Distributions MDM4U Jensen

Chapter 2 Describing, Exploring, and Comparing Data

CHAPTER 1. Introduction. Statistics: Statistics is the science of collecting, organizing, analyzing, presenting and interpreting data.

The Traveling Salesman Problem Cheapest-Link Algorithm

Specular Reflection. Lecture 19. Robb T. Koether. Hampden-Sydney College. Wed, Oct 4, 2017

2.1 Objectives. Math Chapter 2. Chapter 2. Variable. Categorical Variable EXPLORING DATA WITH GRAPHS AND NUMERICAL SUMMARIES

Recognition of Tokens

The CYK Parsing Algorithm

Building the Abstract Syntax Trees

Regular Expressions. Lecture 10 Sections Robb T. Koether. Hampden-Sydney College. Wed, Sep 14, 2016

Stat 428 Autumn 2006 Homework 2 Solutions

CHAPTER 2: SAMPLING AND DATA

Table of Contents (As covered from textbook)

Abstract Data Types. Lecture 23 Section 7.1. Robb T. Koether. Hampden-Sydney College. Wed, Oct 24, 2012

Fundamental Data Types

AND NUMERICAL SUMMARIES. Chapter 2

Introduction to Compiler Design

STA 570 Spring Lecture 5 Tuesday, Feb 1

Chapter 5. Understanding and Comparing Distributions. Copyright 2012, 2008, 2005 Pearson Education, Inc.

Sections Graphical Displays and Measures of Center. Brian Habing Department of Statistics University of South Carolina.

Pointer Arithmetic. Lecture 4 Chapter 10. Robb T. Koether. Hampden-Sydney College. Wed, Jan 25, 2017

Visualizing Data: Freq. Tables, Histograms

Recursive Linked Lists

Programming Languages

Stack Applications. Lecture 25 Sections Robb T. Koether. Hampden-Sydney College. Mon, Mar 30, 2015

Recursion. Lecture 2 Sections Robb T. Koether. Hampden-Sydney College. Wed, Jan 17, 2018

Programming Languages

Nondeterministic Programming in C++

Function Definition Syntax Tree

Lecture 6: Chapter 6 Summary

Mipmaps. Lecture 35. Robb T. Koether. Hampden-Sydney College. Wed, Nov 18, 2015

Transcription:

Displaying Distributions - Quantitative Variables Lecture 13 Sections 4.4.1-4.4.3 Robb T. Koether Hampden-Sydney College Wed, Feb 8, 2012 Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 1 / 34

Outline 1 Introduction 2 Frequency Plots 3 Shapes of Distributions 4 Stem-and-Leaf Displays Splitting the Stems Back-to-back Stem-and-leaf Displays 5 Assignment Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 2 / 34

Outline 1 Introduction 2 Frequency Plots 3 Shapes of Distributions 4 Stem-and-Leaf Displays Splitting the Stems Back-to-back Stem-and-leaf Displays 5 Assignment Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 3 / 34

Introduction Now we wish to create displays of quantitative data. Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 4 / 34

Introduction Now we wish to create displays of quantitative data. With quantitative data, what is it that we wish to convey through our display? Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 4 / 34

Introduction Are the data clustered around the middle? Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 5 / 34

Introduction Or are they spread out? Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 5 / 34

Introduction Here? Here? Here? Where is the middle? Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 5 / 34

Introduction Are they any outliers? Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 5 / 34

Introduction Smallest Largest What are the extremes? Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 5 / 34

Introduction Are the values skewed to the left or right? Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 5 / 34

Introduction To obtain such information, we need a graph that plots the value of the variable on one axis and its frequency on the other axis. Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 6 / 34

Outline 1 Introduction 2 Frequency Plots 3 Shapes of Distributions 4 Stem-and-Leaf Displays Splitting the Stems Back-to-back Stem-and-leaf Displays 5 Assignment Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 7 / 34

Example The following data represent rainfall amounts at the Richmond airport in September for the years 1981-2010 (30 years). 9.52 0.08 6.14 8.68 2.93 2.03 3.60 14.71 4.01 0.85 6.89 11.07 4.42 3.41 2.85 2.56 1.92 5.15 1.58 4.44 0.77 4.76 1.15 3.02 1.73 2.60 2.56 10.01 2.46 6.49 How might we display these data graphically? Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 8 / 34

Frequency Plots Definition (Frequency plot) A frequency plot is a display of quantitative data in which each data point is represented by an X over that value on a horizontal scale. Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 9 / 34

Drawing Frequency Plots Draw a horizontal line. Choose a resolution, e.g., 0.1. Keeping in mind the minimum and maximum values, mark reference points on the scale, as on a ruler. Mark at regular intervals. For each data value, draw an X over that value on the scale. Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 10 / 34

Example Make a frequency plot of the rainfall data. 9.52 0.08 6.14 8.68 2.93 2.03 3.60 14.71 4.01 0.85 6.89 11.07 4.42 3.41 2.85 2.56 1.92 5.15 1.58 4.44 0.77 4.76 1.15 3.02 1.73 2.60 2.56 10.01 2.46 6.49 Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 11 / 34

Frequency Plots 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 What information is conveyed by this frequency plot? Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 12 / 34

Outline 1 Introduction 2 Frequency Plots 3 Shapes of Distributions 4 Stem-and-Leaf Displays Splitting the Stems Back-to-back Stem-and-leaf Displays 5 Assignment Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 13 / 34

Shapes of Distributions Definition (Symmetric) The distribution is symmetric if the left side is a mirror image of the right side. Definition (Unimodal) The distribution is unimodal if it has a single peak, showing the most common values. Definition (Bimodal) The distribution is bimodal if it has two peaks. Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 14 / 34

Shapes of Distributions Definition (Uniform) The distribution is uniform if all values have equal frequency. Definition (Skewed) The distribution is skewed if it is stretched out more on one side than the other. Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 15 / 34

Shapes of Distributions 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 What properties does this distribution have? Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 16 / 34

Shapes of Distributions 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Maybe smooth it out a bit. Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 16 / 34

Shapes of Distributions 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 What properties does this distribution have? Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 16 / 34

Shapes of Distributions 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Is 14 an outlier? Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 16 / 34

Outline 1 Introduction 2 Frequency Plots 3 Shapes of Distributions 4 Stem-and-Leaf Displays Splitting the Stems Back-to-back Stem-and-leaf Displays 5 Assignment Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 17 / 34

Stem-and-Leaf Displays Definition (Stem-and-leaf display) A stem-and-leaf display is a display of quantitative data in which the numerical representation of each data value is split into a stem and a leaf. The stem is the part to the left of the division point. The leaf is the first digit to the right of the division point. Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 18 / 34

Stem-and-Leaf Displays For example, the value 1.23 could be split as 1 23 stem = 1, leaf = 2, or 12 3 stem = 12, leaf = 3. Indeed, it could even be split as 123 stem = 0, leaf = 1, or 123 stem = 123, leaf = 0. Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 19 / 34

Stem-and-Leaf Displays The stem consists of the digits to the left of the division point. The leaf consists of the first digit to the right of the division point. A note should be added indicating how to interpret the numbers. Note: 12 3 means 1.23. Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 20 / 34

Example Draw a stem-and-leaf display of the rainfall data. 9.52 0.08 6.14 8.68 2.93 2.03 3.60 14.71 4.01 0.85 6.89 11.07 4.42 3.41 2.85 2.56 1.92 5.15 1.58 4.44 0.77 4.76 1.15 3.02 1.73 2.60 2.56 10.01 2.46 6.49 Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 21 / 34

Splitting the Numbers We choose where to split the numbers in order to avoid Too many stems, each with too few leaves. Too few stems, each with too many leaves. Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 22 / 34

Splitting the Numbers We choose where to split the numbers in order to avoid Too many stems, each with too few leaves. Too few stems, each with too many leaves Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 23 / 34

Example Draw a stem-and-leaf display of the rainfall data, in centimeters. 24.18 0.20 15.60 22.04 7.44 5.16 9.14 37.36 10.19 2.16 17.50 28.12 11.23 8.66 7.24 6.50 4.88 13.08 4.01 11.28 1.96 12.09 2.92 7.67 4.39 6.60 6.50 25.43 6.25 16.48 Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 24 / 34

Example We may split the values after the 10 s digit: Stem Note: 1 2 means 12. Leaf 0 0 7 5 9 2 8 7 6 4 4 1 2 7 4 6 6 6 1 5 0 7 1 3 1 2 6 2 4 2 8 5 3 7 Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 25 / 34

Example Or we may split the values at the decimal point: Stem Leaf Note: 12 3 means 12.3. 0 2 1 9 2 1 9 3 4 8 0 3 5 1 6 5 6 5 2 7 4 2 6.. 37 3 Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 26 / 34

Example Which is better? Is either one particularly good? Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 27 / 34

Outline 1 Introduction 2 Frequency Plots 3 Shapes of Distributions 4 Stem-and-Leaf Displays Splitting the Stems Back-to-back Stem-and-leaf Displays 5 Assignment Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 28 / 34

Splitting the Stems We can obtain a good compromise (in this example) by splitting the stems. Each stems appears twice. The first time for leaves 0-4. The second time for leaves 5-9. Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 29 / 34

Splitting the Stems Display with split stems: Stem Note: 1 2 means 12. Leaf 0 0 2 4 4 1 2 4 0 7 5 9 8 7 6 7 6 6 6 1 0 1 3 1 2 1 5 7 6 2 4 2 2 8 5 3 3 7 Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 30 / 34

Outline 1 Introduction 2 Frequency Plots 3 Shapes of Distributions 4 Stem-and-Leaf Displays Splitting the Stems Back-to-back Stem-and-leaf Displays 5 Assignment Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 31 / 34

Example Draw back-to-back stem-and-leaf displays of the September rainfall vs. the April rainfall 1981-2010 (shown below). 2.63 4.25 3.82 3.88 3.04 2.48 2.14 2.60 4.48 2.25 1.05 2.72 4.86 4.05 14.59 5.33 3.61 5.72 1.33 1.26 2.47 0.80 4.12 1.87 1.39 1.47 2.06 3.41 0.74 2.82 Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 32 / 34

Outline 1 Introduction 2 Frequency Plots 3 Shapes of Distributions 4 Stem-and-Leaf Displays Splitting the Stems Back-to-back Stem-and-leaf Displays 5 Assignment Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 33 / 34

Assignment Homework Read Section 4.4.1-4.4.3, pages 238-241, 242-248. Let s Do It! 4.10, 4.12. Page 241, exercise 18. Page 248, exercises 22-27, 29. Robb T. Koether (Hampden-Sydney College)Displaying Distributions - Quantitative Variables Wed, Feb 8, 2012 34 / 34