Chapter 1 Statistics
Chapter 1 Statistics
Chapter 1
Ch. 1-1
Chapter Goals
After completing this chapter, you should be able to:
Explain how decisions are often based on incomplete information
Explain key definitions:
Population vs. Sample
Consider:
Ch. 1-4
Dealing with Uncertainty
(continued)
Ch. 1-5
1.2
Key Definitions
Ch. 1-6
Population vs. Sample
Population Sample
a b cd b c
ef gh i jk l m n gi n
o p q rs t u v w o r u
x y z y
Annual returns of all stocks traded on the New York Stock Exchange
Grade point averages of all the students in your university
Ch. 1-8
Random Sampling
Ch. 1-9
Descriptive and Inferential Statistics
Inferential statistics
Using data to make predictions, forecasts, and estimates to assist decision making
Ch. 1-10
Descriptive Statistics
Collect data
e.g., Survey
Present data
e.g., Tables and graphs
Summarize data
X i
e.g., Sample mean = n
Ch. 1-11
Inferential Statistics
◼ Estimation
◼ e.g., Estimate the population
mean weight using the sample
mean weight
◼ Hypothesis testing
◼ e.g., Test the claim that the
population mean weight is 140
pounds
Data
Categorical Numerical
Examples:
◼ Marital Status
◼ Are you registered to Discrete Continuous
vote?
◼ Eye Color
(Defined categories or Examples:
groups) Examples: ◼ Weight
◼ Number of Children ◼ Voltage
◼ Defects per hour (Measured characteristics)
Ch. 1-13
(Counted items)
Measurement Levels
Differences between
measurements, true Ratio Data
zero exists
Quantitative Data
Differences between
measurements but no Interval Data
true zero
Ordered Categories
(rankings, order, or Ordinal Data
scaling)
Qualitative Data
Categories (no
ordering or direction) Nominal Data
Ch. 1-14
Graphical
1.3
Presentation of Data
Data in raw form are usually not easy to use for decision making
Table
Graph
Ch. 1-15
Graphical
Presentation of Data
(continued)
Techniques reviewed in this chapter:
Categorical Numerical
Variables Variables
Ch. 1-16
Tables and Graphs for
Categorical Variables
Categorical
Data
Frequency
Distribution Bar Pie Pareto
Table Chart Chart Diagram
Ch. 1-17
The Frequency
Distribution Table
Summarize data by category
Bar charts and Pie charts are often used for qualitative
(category) data
Ch. 1-19
Bar Chart Example
Hospital Number
Unit of Patients
Number of
3000
2000
1000
Cardiac
Emergency
Intensive
Surgery
Maternity
Care
Care
Ch. 1-20
Pie Chart Example
Hospital Number % of
Unit of Patients Total
Hospital Patients by Unit
Cardiac Care 1,052 11.93
Emergency 2,245 25.46 Cardiac Care
12%
Intensive Care 340 3.86
Maternity 552 6.26
Surgery 4,630 52.50
Emergency
Surgery 25%
53%
Intensive Care
(Percentages 4%
are rounded to Maternity
the nearest 6%
Ch. 1-21
percent)
Pareto Diagram
Ch. 1-22
WHEN TO USE A PARETO CHART
23
Pareto Diagram Example
Example: 400 defective items are examined
for cause of defect:
Source of
Manufacturing Error Number of defects
Bad Weld 34
Poor Alignment 223
Missing Part 25
Paint Flaw 78
Electrical Short 19
Cracked case 21
Total 400
Ch. 1-24
Pareto Diagram Example
(continued)
Source of
Manufacturing Error Number of defects % of Total Defects
Poor Alignment 223 55.75
Paint Flaw 78 19.50
Bad Weld 34 8.50
Missing Part 25 6.25
Cracked case 21 5.25
Electrical Short 19 4.75
Ch. 1-25
Total 400 100%
Pareto Diagram Example
(continued)
Step 3: Show results graphically
Pareto Diagram: Cause of Manufacturing Defect
60% 100%
% of defects in each category
90%
70%
(bar graph)
40%
60%
30% 50%
40%
20%
30%
20%
10%
10%
0% 0%
Poor Alignment Paint Flaw Bad Weld Missing Part Cracked case Ch. 1-26
Electrical Short
1.4
Graphs for Time-Series Data
A line chart (time-series plot) is used to show the values of a variable over
time
Ch. 1-27
Line Chart Example
350
300
Thousands of subscribers
250
200
150
100
50
0
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
Ch. 1-28
1.5 Graphs to Describe
Numerical Variables
Numerical Data
Histogram Ogive
Ch. 1-29
Frequency Distributions
Ch. 1-30
Why Use Frequency Distributions?
Ch. 1-31
Class Intervals
and Class Boundaries
24, 35, 17, 21, 24, 37, 26, 46, 58, 30,
Ch. 1-33
Frequency Distribution Example
(continued)
Find range: 58 - 12 = 46
Select number of classes: 5 (usually between 5 and 15)
Compute interval width: 10 (46/5 then round up)
Determine interval boundaries: 10 but less than 20, 20 but less than 30, . .
. , 60 but less than 70
Count observations & assign to classes
Ch. 1-34
Frequency Distribution Example
(continued)
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
Interval 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
Ch. 1-35
Histogram
Ch. 1-36
Histogram Example
Interval Frequency
Histogram : Daily High Tem perature
10 but less than 20 3
20 but less than 30 6 7 6
30 but less than 40 5
40 but less than 50 4
6 5
50 but less than 60 2 5 4
Frequency
4 3
3 2
2
1 0 0
(No gaps 0
between 0 0 1010 2020 30 30 40 40Ch.50 50 60 60 70
1-37
bars) Temperature in Degrees
Histograms in Excel
1
2
Select Data Tab
Click on Data Analysis
Ch. 1-38
Histograms in Excel
(continued)
3
Choose Histogram
(
Input data range and bin
range (bin range is a cell
4 range containing the upper
interval endpoints for each class
grouping)
Frequency
2
1.5
Can give a poor indication of how frequency varies 1
across classes 0.5
0
4
8
12
16
20
24
28
32
36
40
44
48
52
56
60
More
Few (Wide class intervals)
Temperature
12
may compress variation too much and yield a blocky 10
distribution 8
Frequency
can obscure important patterns of variation. 6
4
0
0 30 60 More
Temperature
(X axis labels are upper class endpoints)
Ch. 1-41
The Cumulative
Frequency Distribuiton
Cumulative Cumulative
Class Frequency Percentage
Frequency Percentage
Cumulative Percentage
50 but less than 60 60 100
80
60
40
20
0
10 20 30 40 50 60
Interval endpoints
Ch. 1-43
Stem-and-Leaf Diagram
Ch. 1-44
Example
Stem Leaf
◼ 21 is shown as 2 1
◼ 38 is shown as 3 8
Ch. 1-45
Example
(continued)
Data in ordered array:
21, 24, 24, 26, 27, 27, 30, 32, 38, 41
Stem Leaves
2 1 4 4 6 7 7
3 0 2 8
4 1
Ch. 1-46
Using other stem units
1224 becomes 12 2
Ch. 1-47
Using other stem units
(continued)
Categorical Numerical
(Qualitative) (Quantitative)
Variables Variables
Ch. 1-50
Scatter Diagram Example
Cross Tables (or contingency tables) list the number of observations for
every combination of values for two categorical or ordinal variables
If there are r categories for the first variable (rows) and c categories
for the second variable (columns), the table is called an r x c cross
table
Ch. 1-53
Cross Table Example
C o m p arin g In vesto rs
S avings
CD
B onds
S toc k s
0 10 20 30 40 50 60
60
50
40
East
30 West
North
20
10
0
1st Qtr 2nd Qtr 3rd Qtr 4th Qtr Ch. 1-56
1.7
Data Presentation Errors
Ch. 1-57
Data Presentation Errors
(continued)
Ch. 1-58
Chapter Summary
Ch. 1-59
Chapter Summary
(continued)
Reviewed types of data and measurement levels
Data in raw form are usually not easy to use for decision
making -- Some type of organization is needed:
Table Graph
Consider:
Ch. 1-62
Dealing with Uncertainty
(continued)
Ch. 1-63
1.2
Key Definitions
Ch. 1-64
Population vs. Sample
Population Sample
a b cd b c
ef gh i jk l m n gi n
o p q rs t u v w o r u
x y z y
Annual returns of all stocks traded on the New York Stock Exchange
Grade point averages of all the students in your university
Ch. 1-66
Random Sampling
Ch. 1-67
Descriptive and Inferential Statistics
Inferential statistics
Using data to make predictions, forecasts, and estimates to assist decision making
Ch. 1-68
Descriptive Statistics
Collect data
e.g., Survey
Present data
e.g., Tables and graphs
Summarize data
X i
e.g., Sample mean = n
Ch. 1-69
Inferential Statistics
◼ Estimation
◼ e.g., Estimate the population
mean weight using the sample
mean weight
◼ Hypothesis testing
◼ e.g., Test the claim that the
population mean weight is 140
pounds
Data
Categorical Numerical
Examples:
◼ Marital Status Discrete Continuous
◼ Are you registered to
vote?
◼ Eye Color Examples: Examples:
(Defined categories or ◼ Number of Children ◼ Weight
groups) ◼ Defects per hour ◼ Voltage
(Counted items) (Measured characteristics)
Ch. 1-71
Measurement Levels
Differences between
measurements, true Ratio Data
zero exists
Quantitative Data
Differences between
measurements but no Interval Data
true zero
Ordered Categories
(rankings, order, or Ordinal Data
scaling)
Qualitative Data
Categories (no
ordering or direction) Nominal Data
Ch. 1-72
Graphical
1.3
Presentation of Data
Data in raw form are usually not easy to use for decision making
Table
Graph
Ch. 1-73
Graphical
Presentation of Data
(continued)
Techniques reviewed in this chapter:
Categorical Numerical
Variables Variables
Ch. 1-74
Tables and Graphs for
Categorical Variables
Categorical
Data
Frequency
Distribution Bar Pie Pareto
Table Chart Chart Diagram
Ch. 1-75
The Frequency
Distribution Table
Summarize data by category
Bar charts and Pie charts are often used for qualitative
(category) data
Ch. 1-77
Bar Chart Example
Hospital Number
Unit of Patients
Number of
3000
2000
1000
Cardiac
Emergency
Intensive
Surgery
Maternity
Care
Care
Ch. 1-78
Pie Chart Example
Hospital Number % of
Unit of Patients Total
Hospital Patients by Unit
Cardiac Care 1,052 11.93
Emergency 2,245 25.46 Cardiac Care
12%
Intensive Care 340 3.86
Maternity 552 6.26
Surgery 4,630 52.50
Emergency
Surgery 25%
53%
Intensive Care
(Percentages 4%
are rounded to Maternity
the nearest 6%
Ch. 1-79
percent)
Pareto Diagram
Ch. 1-80
Pareto Diagram Example
Example: 400 defective items are examined
for cause of defect:
Source of
Manufacturing Error Number of defects
Bad Weld 34
Poor Alignment 223
Missing Part 25
Paint Flaw 78
Electrical Short 19
Cracked case 21
Total 400
Ch. 1-81
Pareto Diagram Example
(continued)
Source of
Manufacturing Error Number of defects % of Total Defects
Poor Alignment 223 55.75
Paint Flaw 78 19.50
Bad Weld 34 8.50
Missing Part 25 6.25
Cracked case 21 5.25
Electrical Short 19 4.75
Ch. 1-82
Total 400 100%
Pareto Diagram Example
(continued)
Step 3: Show results graphically
Pareto Diagram: Cause of Manufacturing Defect
60% 100%
% of defects in each category
90%
70%
(bar graph)
40%
60%
30% 50%
40%
20%
30%
20%
10%
10%
0% 0%
Poor Alignment Paint Flaw Bad Weld Missing Part Cracked case Ch. 1-83
Electrical Short
1.4
Graphs for Time-Series Data
A line chart (time-series plot) is used to show the values of a variable over
time
Ch. 1-84
Line Chart Example
350
300
Thousands of subscribers
250
200
150
100
50
0
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
Ch. 1-85
1.5 Graphs to Describe
Numerical Variables
Numerical Data
Histogram Ogive
Ch. 1-86
Frequency Distributions
Ch. 1-87
Why Use Frequency Distributions?
Ch. 1-88
Class Intervals
and Class Boundaries
24, 35, 17, 21, 24, 37, 26, 46, 58, 30,
Ch. 1-90
Frequency Distribution Example
(continued)
Find range: 58 - 12 = 46
Select number of classes: 5 (usually between 5 and 15)
Compute interval width: 10 (46/5 then round up)
Determine interval boundaries: 10 but less than 20, 20 but less than 30, . .
. , 60 but less than 70
Count observations & assign to classes
Ch. 1-91
Frequency Distribution Example
(continued)
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
Interval 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
Ch. 1-92
Histogram
Ch. 1-93
Histogram Example
Interval Frequency
Histogram : Daily High Tem perature
10 but less than 20 3
20 but less than 30 6 7 6
30 but less than 40 5
40 but less than 50 4
6 5
50 but less than 60 2 5 4
Frequency
4 3
3 2
2
1 0 0
(No gaps 0
between 0 0 1010 2020 30 30 40 40Ch.50 50 60 60 70
1-94
bars) Temperature in Degrees
Histograms in Excel
1
2
Select Data Tab
Click on Data Analysis
Ch. 1-95
Histograms in Excel
(continued)
3
Choose Histogram
(
Input data range and bin
range (bin range is a cell
4 range containing the upper
interval endpoints for each class
grouping)
Frequency
2
1.5
Can give a poor indication of how frequency varies 1
across classes 0.5
0
4
8
12
16
20
24
28
32
36
40
44
48
52
56
60
More
Few (Wide class intervals)
Temperature
12
may compress variation too much and yield a blocky 10
distribution 8
Frequency
can obscure important patterns of variation. 6
4
0
0 30 60 More
Temperature
(X axis labels are upper class endpoints)
Ch. 1-98
The Cumulative
Frequency Distribuiton
Cumulative Cumulative
Class Frequency Percentage
Frequency Percentage
Cumulative Percentage
50 but less than 60 60 100
80
60
40
20
0
10 20 30 40 50 60
Ch. 1-
Interval endpoints 100
Stem-and-Leaf Diagram
Ch. 1-
101
Example
Stem Leaf
◼ 21 is shown as 2 1
◼ 38 is shown as 3 8
Ch. 1-
102
Example
(continued)
Data in ordered array:
21, 24, 24, 26, 27, 27, 30, 32, 38, 41
Stem Leaves
2 1 4 4 6 7 7
3 0 2 8
4 1
Ch. 1-
103
Using other stem units
1224 becomes 12 2
Ch. 1-
104
Using other stem units
(continued)
Categorical Numerical
(Qualitative) (Quantitative)
Variables Variables
Ch. 1-
107
Scatter Diagram Example
Cross Tables (or contingency tables) list the number of observations for
every combination of values for two categorical or ordinal variables
If there are r categories for the first variable (rows) and c categories
for the second variable (columns), the table is called an r x c cross
table
Ch. 1-
110
Cross Table Example
C o m p arin g In vesto rs
S avings
CD
B onds
S toc k s
0 10 20 30 40 50 60
60
50
40
East
30 West
North
20
10
0
1st Qtr 2nd Qtr 3rd Qtr 4th Qtr Ch. 1-
113
1.7
Data Presentation Errors
Ch. 1-
114
Data Presentation Errors
(continued)
Ch. 1-
115
Chapter Summary
Ch. 1-
116
Chapter Summary
(continued)
Reviewed types of data and measurement levels
Data in raw form are usually not easy to use for decision
making -- Some type of organization is needed:
Table Graph