chapter 2 data. objectives: data individuals population sample variables categorical (or...

30
Chapter 2 Data

Upload: benedict-higgins

Post on 31-Dec-2015

239 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Chapter 2

Data

Page 2: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Objectives:

• Data• Individuals• Population• Sample• Variables• Categorical (or qualitative)• Quantitative

Page 3: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Data

• Definition Data: (latin for fact) Characteristics

or numbers that are collected by observation. Data are numbers with context.

• What Are Data?Data can be numbers, record

names, or other labels.Not all data represented by numbers

are numerical data (e.g., 1 = male, 2 = female).

Data are useless without their context…

Page 4: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

The “W’s”• To provide context we need the W’s

• Who• What (and in what units)• When• Where• Why (if possible)• and Howof the data.

• Note: the answers to “who” and “what” are essential.

Page 5: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Data Tables

• The following data table clearly shows the context of the data presented:

• Notice that this data table tells us the What (column) and Who (row) for these data.

Page 6: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

The first step in understanding data is to answer the W’s

Who, What, When, Where, Why, and How

• Who – Who are the individuals?

Individuals: (people, objects, etc.) that we are trying to gain information about.

In order to make decisions, we need to know what our population of interest is and whether our data are representative of that population.

Page 7: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Who• The Who of the data tells us the individual

cases for which (or whom) we have collected data.• Individuals who answer a survey are called

respondents.• People on whom we experiment are called

subjects or participants.• Animals, plants, and inanimate subjects are

called experimental units.• Sometimes people just refer to data values as

observations and are not clear about the Who.• But we need to know the Who of the data

so we can learn what the data say.

Page 8: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Definitions

Population Sample

A complete set of individuals being observed or of interest.

• This Class• This School• Broward County• USA

A subset of the population selected according to some scheme to represent the population.

• Population – this class• Sample – 5 students

selected from the class

Page 9: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

What and Why

• What – What variables were recorded about each of the individuals?

• Variables are characteristics recorded about each individual.

• The variables should have a name that identify What has been measured.

• To understand variables, you must Think about what you want to know.

EX: Data – Student data base (includes data on each student enrolled).

Individuals – students

Variables – DOB, Gender, GPA, etc.

Page 10: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

What and Why (cont.)

• Some variables have units that tell how each value has been measured and tell the scale of the measurement.

Page 11: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

What and Why (cont.)

Two Types of Variables1. A categorical (or qualitative) variable

names categories and answers questions about how cases fall into those categories.• Categorical examples: sex, race,

ethnicity2. A quantitative variable is a measured

variable (with units) that answers questions about the quantity of what is being measured.• Quantitative examples: income ($),

height (inches), weight (pounds)

Page 12: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Types of Variables

Categorical (qualitative) Quantitative (numerical) • Values that fall into

separate, nonover-lapping groups such as marital status or hair color.

• Data that can be counted and put in a specific order.

• Numerical values are categorical when it makes no sense to find an average for them – zip codes, jersey numbers, etc.

• Values for which arithmetic operations such as adding and averaging make sense.

• Data that can be measured.

• Values that have measurement units such as dollars, degrees, inches, etc.

Page 13: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

What and Why (cont.)

• The questions we ask a variable (the Why of our analysis) shape what we think about and how we treat the variable.

Page 14: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Def: Distribution

• The pattern of variation of a variable.

• What values a variable takes and how often it takes these values.

Page 15: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

What and Why (cont.)

• Example: In a student evaluation of instruction at a large university, one question asks students to evaluate the statement “The instructor was generally interested in teaching” on the following scale: 1 = Disagree Strongly; 2 = Disagree; 3 = Neutral; 4 = Agree; 5 = Agree Strongly.

• Question: Is interest in teaching categorical or quantitative?

Page 16: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

What and Why (cont.)

• Question: Is interest in teaching categorical or quantitative?

• We sense an order to these ratings, but there are no natural units for the variable interest in teaching.

• Variables like interest in teaching are often called ordinal variables. • With an ordinal variable, look at the

Why of the study to decide whether to treat it as categorical or quantitative.

Page 17: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Counts Count

• When we count the cases in each category of a categorical variable, the counts are not the data, but something we summarize about the data.• The category labels are the What, and• the individuals counted are the Who.

Page 18: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Counts Count (cont.)

• When we focus on the amount of something, we use counts differently. For example, Amazon might track the growth in the number of teenage customers each month to forecast CD sales (the Why). • The What is teens,

the Who is months, and the units are number of teenage customers.

Page 19: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Identifying Identifiers

• Identifier variables are categorical variables with exactly one individual in each category.• Examples: Social Security Number,

ISBN, FedEx Tracking Number• Don’t be tempted to analyze identifier

variables.• Be careful not to consider all variables with

one case per category, like year, as identifier variables.• The Why will help you decide how to

treat identifier variables.

Page 20: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Where, When, and How

• We need the Who, What, and Why to analyze data. But, the more we know, the more we understand.

• When and Where give us some nice information about the context. • Example: Values recorded at a large

public university may mean something different than similar values recorded at a small private college.

Page 21: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Where, When, and How (cont.)

• How the data are collected can make the difference between insight and nonsense. • Example: results from Internet surveys

are often useless• The first step of any data analysis should

be to examine the W’s—this is a key part of the Think step of any analysis.

• And, make sure that you know the Why, Who, and What before you proceed with your analysis.

Page 22: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

What Can Go Wrong?

• Don’t label a variable as categorical or quantitative without thinking about the question you want it to answer.

• Just because your variable’s values are numbers, don’t assume that it’s quantitative.

• Always be skeptical—don’t take data for granted.

Page 23: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

What have we learned?

• Data are information in a context.• The W’s help with context.• We must know the Who (cases), What

(variables), and Why to be able to say anything useful about the data.

Page 24: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

What have we learned? (cont.)

• We treat variables as categorical or quantitative.• Categorical variables identify a

category for each case.• Quantitative variables record

measurements or amounts of something and must have units.

• Some variables can be treated as categorical or quantitative depending on what we want to learn from them.

Page 25: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Example #1

A January 2007 Gallup Poll question asked, “In general, do you think things have gotten better or gotten worse in this country in the last 5 years?” Possible answers were “Better”, “Worse”, “No Change”, “Don’t Know”, and “No Response”. What kind of variable is the response?

Solution: Mood – Categorical variable.

Page 26: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Your Turn:

A medical researcher measures the increase in heart rate of patients under a stress test. What kind of variable is the researcher studying?

Solution: Stress – Quantitative variable.

Page 27: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Example #2For the following description of data, identify the W’s, name the variable, specify for

each variable whether its use indicates that it should be treated as categorical or quantitative, and, for any quantitative variable, identify the units in which it was measured.

The State Education Department requires local school districts to keep these records on all students: age, race, days absent, current grade level, standardized test scores in reading and math, and any disabilities.

Solution: Who – Students

What – Age (probably in years), Race, Number of absences, Grade Level, Reading score, Math score,

Disabilities.

When – Must be kept current.

Where – Not specified.

Why – State required.

How – Information collected and stored as part of school records.

Categorical Variables: Race, grade level, disablities

Quantitative Variables: Number of absences, age, reading score, math score.

Page 28: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Your Turn:For the following description of data, identify the W’s, name the variable, specify

for each variable whether its use indicates that it should be treated as categorical or quantitative, and, for any quantitative variable, identify the units in which it was measured.

The Gallup Poll conducted a representative telephone survey of 1180 American voters during the first quarter of 2007. Among the reported results were the voters region (Northeast, South, etc.), age, party affiliation, and whether or not the person had voted in the 2006 midterm congressional election.

Solution: Who – 1180 Americans.

What – Region, age (in years), political affiliation, and whether or not the person voted.

When – First quarter 2007.

Where – United States

Why – Gallup public opinion poll.

How – Telephone survey.

Categorical Variables: Region, political affiliation, whether or not the person voted.

Quantitative Variable: Age.

Page 29: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Finial Thought on Data

Page 30: Chapter 2 Data. Objectives: Data Individuals Population Sample Variables Categorical (or qualitative) Quantitative

Assignment

• Chapter 2, pg. 16 – 18; #1, 3, 7 - 17 odd• Read Chapter 3, pg. 20-37