14

Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 2 Exploring Data with Graphs and Numerical Summaries Section 2.1 Different Types of

Embed Size (px)

Citation preview

Page 1: Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 2 Exploring Data with Graphs and Numerical Summaries Section 2.1 Different Types of
Page 2: Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 2 Exploring Data with Graphs and Numerical Summaries Section 2.1 Different Types of

Copyright © 2013, 2009, and 2007, Pearson Education, Inc.

Chapter 2Exploring Data with Graphs and Numerical Summaries

Section 2.1

Different Types of Data

Page 3: Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 2 Exploring Data with Graphs and Numerical Summaries Section 2.1 Different Types of

Copyright © 2013, 2009, and 2007, Pearson Education, Inc.3

A variable is any characteristic observed in a study.

Examples: Marital status, Height, Weight, IQ

A variable can be classified as either Categorical (in Categories), or Quantitative (Numerical)

Variable

Page 4: Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 2 Exploring Data with Graphs and Numerical Summaries Section 2.1 Different Types of

Copyright © 2013, 2009, and 2007, Pearson Education, Inc.4

A variable can be classified as categorical if each observation belongs to one of a set of categories:

Examples: Gender (Male or Female) Religious Affiliation (Catholic, Jewish, …) Type of Residence (Apartment, Condo, …) Belief in Life After Death (Yes or No)

Categorical Variable

Page 5: Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 2 Exploring Data with Graphs and Numerical Summaries Section 2.1 Different Types of

Copyright © 2013, 2009, and 2007, Pearson Education, Inc.5

A variable is called quantitative if observations on it take numerical values that represent different magnitudes of the variable.

Examples: Age Number of Siblings Annual Income

Quantitative Variable

Page 6: Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 2 Exploring Data with Graphs and Numerical Summaries Section 2.1 Different Types of

Copyright © 2013, 2009, and 2007, Pearson Education, Inc.6

For Quantitative variables: key features are the center and spread (variability) of the data.

Example: What’s a typical annual amount of precipitation? Is there much variation from year to year?

For Categorical variables: a key feature is the percentage of observations in each of the categories.

Example: What percentage of students at a certain college are Democrats?

Main Features of Quantitative and Categorical Variables

Page 7: Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 2 Exploring Data with Graphs and Numerical Summaries Section 2.1 Different Types of

Copyright © 2013, 2009, and 2007, Pearson Education, Inc.7

A quantitative variable is discrete if its possible values form a set of separate numbers, such as 0,1,2,3,….

Discrete variables have a finite number of possible values.

Examples: Number of pets in a household Number of children in a family Number of foreign languages spoken by an

individual

Discrete Quantitative Variable

Page 8: Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 2 Exploring Data with Graphs and Numerical Summaries Section 2.1 Different Types of

Copyright © 2013, 2009, and 2007, Pearson Education, Inc.8

A quantitative variable is continuous if its possible values form an interval.

Continuous variables have an infinite number of possible values.

Examples: Height/Weight Age Blood pressure

Continuous Quantitative Variable

Page 9: Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 2 Exploring Data with Graphs and Numerical Summaries Section 2.1 Different Types of

Copyright © 2013, 2009, and 2007, Pearson Education, Inc.9

Identify the variable type as either categorical or quantitative.

Number of siblings in a family County of residence Distance (in miles) of commute to school Marital status

Class Problem #1

Page 10: Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 2 Exploring Data with Graphs and Numerical Summaries Section 2.1 Different Types of

Copyright © 2013, 2009, and 2007, Pearson Education, Inc.10

Identify each of the following variables as continuous or discrete.

Length of time to take a test Number of people waiting in line Number of speeding tickets received last year Your dog’s weight

Class Problem #2

Page 11: Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 2 Exploring Data with Graphs and Numerical Summaries Section 2.1 Different Types of

Copyright © 2013, 2009, and 2007, Pearson Education, Inc.11

The proportion of the observations that fall in a certain category is the frequency (count) of observations in that category divided by the total number of observations.

Frequency of that class Sum of all frequencies

The percentage is the proportion multiplied by 100.

Proportions and percentages are also called relative frequencies.

Proportion & Percentage (Relative Frequencies)

Page 12: Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 2 Exploring Data with Graphs and Numerical Summaries Section 2.1 Different Types of

Copyright © 2013, 2009, and 2007, Pearson Education, Inc.12

There were 268 reported shark attacks in Florida between 2000 and 2010. Table 2.1 classifies 715 shark attacks reported from 2000 through 2010, so, for Florida,

268 is the frequency. 0.375 =268/715 is the proportion and relative

frequency. 37.5 is the percentage 0.375 *100= 37.5%.

Frequency, Proportion, & Percentage Example

Page 13: Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 2 Exploring Data with Graphs and Numerical Summaries Section 2.1 Different Types of

Copyright © 2013, 2009, and 2007, Pearson Education, Inc.13

A frequency table is a listing of possible values for a variable, together with the number of observations and/or relative frequencies for each value.

Frequency Table

Table 2.1 Frequency of Shark Attacks in Various Regions for 2000–2010

Page 14: Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 2 Exploring Data with Graphs and Numerical Summaries Section 2.1 Different Types of

Copyright © 2013, 2009, and 2007, Pearson Education, Inc.14

A stock broker has been following different stocks over the last month and has recorded whether a stock is up, the same, or down in value. The results were:

1. What is the variable of interest?2. What type of variable is it?3. Add proportions to this frequency table.

1. Performance of stock Up Same Down Count 21 7 12

Class Problem #3