Chapter 2
Chapter 2
12th Edition
Chapter 2
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-1
Learning Objectives
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-2
A Step by Step Process For Examining &
Concluding From Data Is Helpful
In this book we will use DCOVA
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-3
Why Collect Data?
DCOVA
A marketing research analyst needs to assess the effectiveness
of a new television advertisement.
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-4
Sources of Data
DCOVA
Primary Sources: The data collector is the one using the data
for analysis
Data from a political survey
Data collected from an experiment
Observed data
Secondary Sources: The person performing data analysis is
not the data collector
Analyzing census data
Examining data from print journals or data published on the internet.
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-5
Sources of data fall into four
categories
DCOVA
Data distributed by an organization or an
individual
A designed experiment
A survey
An observational study
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-6
Examples Of Data Distributed
By Organizations or Individuals
DCOVA
Financial data on a company provided by
investment services
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-7
Examples of Data From
A Designed Experiment
DCOVA
Consumer testing of different versions of a
product to help determine which product should
be pursued further
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-9
Examples of Data From
Observational Studies
DCOVA
Market researchers utilizing focus groups to
elicit unstructured responses to open-ended
questions
Tallying Data
One Two
Categorical Categorical
Variable Variables
Summary Contingency
Table Table
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-11
Organizing Categorical Data:
Summary Table
DCOVA
A summary table indicates the frequency, amount, or percentage of items
in a set of categories so that you can see differences between categories.
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-12
A Contingency Table Helps Organize
Two or More Categorical Variables
DCOVA
Used to study patterns that may exist between
the responses of two or more categorical
variables
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-14
Contingency Table Based On
Percentage of Overall Total
DCOVA
No
Errors Errors Total 42.50% = 170 / 400
Small 170 20 190 25.00% = 100 / 400
Amount 16.25% = 65 / 400
Medium 100 40 140
Amount No
Large 65 5 70 Errors Errors Total
Amount Small 42.50% 5.00% 47.50%
335 65 400 Amount
Total Medium 25.00% 10.00% 35.00%
Amount
83.75% of sampled invoices
Large 16.25% 1.25% 17.50%
have no errors and 47.50% Amount
of sampled invoices are for 83.75% 16.25% 100.0%
small amounts. Total
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-15
Contingency Table Based On
Percentage of Row Totals
DCOVA
No
Errors Errors Total 89.47% = 170 / 190
Small 170 20 190 71.43% = 100 / 140
Amount 92.86% = 65 / 70
Medium 100 40 140
Amount No
Large 65 5 70 Errors Errors Total
Amount Small 89.47% 10.53% 100.0%
335 65 400 Amount
Total Medium 71.43% 28.57% 100.0%
Amount
Medium invoices have a larger
Large 92.86% 7.14% 100.0%
chance (28.57%) of having Amount
errors than small (10.53%) or 83.75% 16.25% 100.0%
large (7.14%) invoices. Total
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-16
Contingency Table Based On
Percentage Of Column Total
DCOVA
No
Errors Errors Total 50.75% = 170 / 335
Small 170 20 190 30.77% = 20 / 65
Amount
Medium 100 40 140
Amount No
Large 65 5 70 Errors Errors Total
Amount Small 50.75% 30.77% 47.50%
335 65 400 Amount
Total Medium 29.85% 61.54% 35.00%
Amount
There is a 61.54% chance
Large 19.40% 7.69% 17.50%
that invoices with errors are Amount
of medium size. 100.0% 100.0% 100.0%
Total
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-17
Tables Used For Organizing
Numerical Data
DCOVA
Numerical Data
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-18
Organizing Numerical Data:
Ordered Array
DCOVA
An ordered array is a sequence of data, in rank order, from the
smallest value to the largest value.
Shows range (minimum value to maximum value)
May help identify outliers (unusual observations)
The number of classes depends on the number of values in the data. With
a larger number of values, typically there are more classes. In general, a
frequency distribution should have at least 5 but no more than 15 classes.
To determine the width of a class interval, you divide the range (Highest
value–Lowest value) of the data by the number of class groupings desired.
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-20
Organizing Numerical Data:
Frequency Distribution Example
DCOVA
24, 35, 17, 21, 24, 37, 26, 46, 58, 30, 32, 13, 12, 38, 41, 43, 44, 27, 53, 27
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-21
Organizing Numerical Data:
Frequency Distribution Example
DCOVA
Sort raw data in ascending order:
12, 13, 17, 21, 24, 24, 26, 27, 27, 30, 32, 35, 37, 38, 41, 43, 44, 46, 53, 58
Find range: 58 - 12 = 46
Select number of classes: 5 (usually between 5 and 15)
Compute class interval (width): 10 (46/5 then round up)
Determine class boundaries (limits):
Class 1: 10 to less than 20
Class 2: 20 to less than 30
Class 3: 30 to less than 40
Class 4: 40 to less than 50
Class 5: 50 to less than 60
Compute class midpoints: 15, 25, 35, 45, 55
Count observations & assign to classes
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-22
Organizing Numerical Data: Frequency
Distribution Example
DCOVA
Data in ordered array:
12, 13, 17, 21, 24, 24, 26, 27, 27, 30, 32, 35, 37, 38, 41, 43, 44, 46, 53, 58
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-23
Organizing Numerical Data: Relative &
Percent Frequency Distribution Example
DCOVA
Data in ordered array:
12, 13, 17, 21, 24, 24, 26, 27, 27, 30, 32, 35, 37, 38, 41, 43, 44, 46, 53, 58
Relative
Class Frequency Percentage
Frequency
10 but less than 20 3 .15 15
20 but less than 30 6 .30 30
30 but less than 40 5 .25 25
40 but less than 50 4 .20 20
50 but less than 60 2 .10 10
Total 20 1.00 100
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-24
Organizing Numerical Data: Cumulative
Frequency Distribution Example
DCOVA
Data in ordered array:
12, 13, 17, 21, 24, 24, 26, 27, 27, 30, 32, 35, 37, 38, 41, 43, 44, 46, 53, 58
Cumulative Cumulative
Class Frequency Percentage
Frequency Percentage
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-25
Why Use a Frequency Distribution?
DCOVA
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-27
Visualizing Categorical Data
Through Graphical Displays
DCOVA
Categorical
Data
Visualizing Data
Summary Contingency
Table For One Table For Two
Variable Variables
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-28
Visualizing Categorical Data:
The Bar Chart
DCOVA
In a bar chart, a bar shows each category, the length of which
represents the amount, frequency or percentage of values falling into
a category which come from the summary table of the variable.
Banking Preference
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-29
Visualizing Categorical Data:
The Pie Chart
DCOVA
The pie chart is a circle broken up into slices that represent categories.
The size of each slice of the pie varies according to the percentage in
each category.
Banking Preference
Banking Preference? %
16% ATM
ATM 16% 24%
Automated or live 2% 2% Automated or live
telephone telephone
Drive-through service at
Drive-through service at 17%
17% branch
branch
In person at branch
In person at branch 41%
Internet 24% Internet
41%
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-30
Visualizing Categorical Data:
The Pareto Chart
DCOVA
Used to portray categorical data (nominal scale)
A vertical bar chart, where categories are
shown in descending order of frequency
A cumulative polygon is shown in the same
graph
Used to separate the “vital few” from the “trivial
many”
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-31
Visualizing Categorical Data:
The Pareto Chart (con’t)
DCOVA
Pareto Chart For Banking Preference
100% 100%
% in each category
80% 80%
Cumulative %
(line graph)
(bar graph)
60% 60%
40% 40%
20% 20%
0% 0%
In person Internet Drive- ATM Automated
at branch through or live
service at telephone
branch
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-32
Visualizing Categorical Data:
Side-By-Side Bar Charts DCOVA
The side by side bar chart represents the data from a contingency table.
No
Errors Errors Total
Invoice Size Split Out By Errors
Small 50.75% 30.77% 47.50% & No Errors
Amount
Medium 29.85% 61.54% 35.00% Errors
Amount
Large 19.40% 7.69% 17.50% No Errors
Amount
0,0% 10,0% 20,0% 30,0% 40,0% 50,0% 60,0% 70,0%
100.0% 100.0% 100.0% Large Medium Small
Total
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-33
Visualizing Numerical Data
By Using Graphical Displays
DCOVA
Numerical Data
Frequency Distributions
Ordered Array and
Cumulative Distributions
Stem-and-Leaf
Histogram Polygon Ogive
Display
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-34
Stem-and-Leaf Display
DCOVA
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-35
Organizing Numerical Data:
Stem and Leaf Display
DCOVA
A stem-and-leaf display organizes data into groups (called
stems) so that the values within each group (the leaves)
branch out to the right on each row.
Age of College Students
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-36
Visualizing Numerical Data:
The Histogram
DCOVA
Frequency
4
(In a percentage
histogram the vertical
axis would be defined to 2
show the percentage of
observations per class)
0
5 15 25 35 45 55 More
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-38
Visualizing Numerical Data:
The Polygon
DCOVA
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-39
Visualizing Numerical Data:
The Frequency Polygon DCOVA
Class
Class Midpoint Frequency
10 but less than 20 15 3
20 but less than 30 25 6
30 but less than 40 35 5 Frequency Polygon: Age Of Students
40 but less than 50 45 4
50 but less than 60 55 2
7
6
Frequency
5
4
3
2
(In a percentage 1
polygon the vertical axis 0
would be defined to 5 15 25 35 45 55 65
show the percentage of
Class Midpoints
observations per class)
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-40
Visualizing Numerical Data:
The Ogive (Cumulative % Polygon)
DCOVA
Lower % less
class than lower
Class boundary boundary
Cumulative Percentage
60 but less than 70 60 100
100
80
60
40
(In an ogive the percentage 20
of the observations less 0
than each lower class
boundary are plotted versus 10 20 30 40 50 60
the lower class boundaries. Lower Class Boundary
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-41
Visualizing Two Numerical
Variables: The Scatter Plot
DCOVA
Scatter plots are used for numerical data consisting of paired
observations taken from two numerical variables
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-42
Scatter Plot Example
DCOVA
29 146
150
33 160
100
38 167
50
42 170
0
50 188
20 30 40 50 60 70
55 195
Volume per Day
60 200
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-43
Visualizing Two Numerical
Variables: The Time-Series Plot
DCOVA
Time-series plots are used to study patterns in the values of a
numeric variable over time.
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-44
Time Series Plot Example
DCOVA
Number of
Year Franchises Number of Franchises, 1996-2004
120
1996 43
100
1997 54 Franchises
Number of
80
1998 60 60
1999 73 40
2000 82 20
0
2001 95
1994 1996 1998 2000 2002 2004 2006
2002 107 Year
2003 99
2004 95
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-45
Exploring Multidimensional Data
DCOVA
Can be used to discover possible patterns and
relationships.
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-46
Pivot Table Version of
Contingency Table For Bond Data
DCOVA
First Six Data Points In The Bond Data Set
Fund Expense Return 3-Year 5-Year
Number Type Assets Fees Ratio 2009 Return Return Risk
FN-1 Intermediate Government 7268.1 No 0.45 6.9 6.9 5.5 Below average
FN-2 Intermediate Government 475.1 No 0.50 9.8 7.5 6.1 Below average
FN-3 Intermediate Government 193.0 No 0.71 6.3 7.0 5.6 Average
FN-4 Intermediate Government 18603.5 No 0.13 5.4 6.6 5.5 Average
FN-5 Intermediate Government 142.6 No 0.60 5.9 6.7 5.4 Average
FN-6 Intermediate Government 1401.6 No 0.54 5.7 6.4 6.2 Average
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-47
Can Easily Convert To An
Overall Percentages Table
DCOVA
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-48
Can Easily Add Variables To
An Existing Table DCOVA
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-52
Graphical Errors: Chart Junk
DCOVA
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-53
Graphical Errors:
No Relative Basis
DCOVA
200 20%
100 10%
0 0%
FR SO JR SR FR SO JR SR
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-54
Graphical Errors:
Compressing the Vertical Axis
DCOVA
100 25
0 0
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-55
Graphical Errors: No Zero Point
on the Vertical Axis
DCOVA
Bad Presentation
Good Presentations
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-56
Chapter Summary
In this chapter, we have
Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 2-57