Professional Documents
Culture Documents
Statistics: Statistical Tests
Statistics: Statistical Tests
Statistics: Statistical Tests
Dr. Welker
Part 22 – Statistical Tests:1
Part 22 – Statistical
Tests: 1
1/40
Part 22 – Statistical Tests:1
Statistical Testing
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
2/40
Part 22 – Statistical Tests:1
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
3/40
Part 22 – Statistical Tests:1
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
4/40
Part 22 – Statistical Tests:1
http://query.nytimes.com/gst/fullpage.html?res=9C00E4DF113BF935A3575BC0A9649C8B63
Marginal Plot of Listing vs IncomePC
Pie Chart of Percent vs Type Boxplot of Listing Scatterplot of Listing vs IncomePC Probability Plot of Listing Scatterplot of Listing vs IncomePC Histogram of Listing Empirical CDF of Listing
Normal - 95% CI Normal
Category
Meatball 900000 900000 900000 14
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
5/40
Part 22 – Statistical Tests:1
Methodology
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
6/40
Part 22 – Statistical Tests:1
Errors in Testing
Hypothesis is Hypothesis is
True False
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
7/40
Part 22 – Statistical Tests:1
A Legal Analogy:
The Null Hypothesis is INNOCENT
Null Hypothesis Alternative Hypothesis
Not Guilty Guilty
Type I Error
Finding: Verdict Innocent defendant is Correct Decision
Guilty convicted
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
8/40
Part 22 – Statistical Tests:1
(Jerzy) Neyman –
(Karl) Pearson Methodology
“Statistical” testing
Methodology
Formulate the “null” hypothesis
Decide (in advance) what kinds of
“evidence” (data) will lead to rejection of the
null hypothesis. I.e., define the rejection
region)
Gather the data
Carry out the test.
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
9/40
Part 22 – Statistical Tests:1
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
10/40
Part 22 – Statistical Tests:1
Terms of Art
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
11/40
Part 22 – Statistical Tests:1
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
12/40
Part 22 – Statistical Tests:1
5469
5030
1845 To be
pursued
1100
in a later
class...
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
13/40
Part 22 – Statistical Tests:1
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
14/40
Part 22 – Statistical Tests:1
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
15/40
Part 22 – Statistical Tests:1
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
16/40
Part 22 – Statistical Tests:1
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
17/40
Part 22 – Statistical Tests:1
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
18/40
Part 22 – Statistical Tests:1
Application
The mean of a population takes a
specific value:
Null hypothesis:
H0: μ = $30,000
H1: μ ≠ $30,000
Test: Sample mean close to
hypothesized population mean?
Rejection region: Sample means that
are far from $30,000
Marginal Plot of Listing vs IncomePC
Pie Chart of Percent vs Type Boxplot of Listing Scatterplot of Listing vs IncomePC Probability Plot of Listing Scatterplot of Listing vs IncomePC Histogram of Listing Empirical CDF of Listing
Normal - 95% CI Normal
Category
Meatball 900000 900000 900000 14
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
19/40
Part 22 – Statistical Tests:1
Deciding on the
Rejection Region
If the sample mean is far from $30,000, reject the
hypothesis.
Choose, the region, for example,
Rejection Rejection
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
20/40
Part 22 – Statistical Tests:1
Probability outside
this interval is large.
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
21/40
Part 22 – Statistical Tests:1
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
22/40
Part 22 – Statistical Tests:1
Testing Procedure
The rejection region will be the range
of values
greater than μ0 + zσ/√N or
less than μ0 - zσ/√N
Use z = 1.96 for 1 - α = 95%
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
23/40
Part 22 – Statistical Tests:1
Deciding on the
Rejection Region
If the sample mean is far from $30,000, reject
the hypothesis.
Choose, the region, say,
Rejection Rejection
$30,000 1.96 $30,000 1.96
N N
I am 95% certain that I will not commit a type I error (reject the
hypothesis in error). (I cannot be 100% certain.)
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
24/40
Part 22 – Statistical Tests:1
x - 30,000
Reject if 1.96
/ N
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
25/40
Part 22 – Statistical Tests:1
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
26/40
Part 22 – Statistical Tests:1
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
27/40
Part 22 – Statistical Tests:1
Application
H0 : = $30,000
N = 13, 444 (Huge sample. t is the same as normal)
x = $30,144.3 (Is this far from $30,000?)
s = $15035.5
$30114.3 - $30,000
t= = 0.881
$15035.5/ 13,444
The rejection region is |t| > 1.96.
Do not reject the hypothesis.
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
28/40
Part 22 – Statistical Tests:1
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
29/40
Part 22 – Statistical Tests:1
If you choose
1-Sample Z…
to use the
normal
distribution,
Minitab
assumes you
know σ and
asks for the
value.
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
30/40
Part 22 – Statistical Tests:1
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
31/40
Part 22 – Statistical Tests:1
s
x 1.96
N
xi x
2
x N N
s i1
Mean x , StDev=s= , SE Mean= i1 i
N N 1 N
Marginal Plot of Listing vs IncomePC
Pie Chart of Percent vs Type Boxplot of Listing Scatterplot of Listing vs IncomePC Probability Plot of Listing Scatterplot of Listing vs IncomePC Histogram of Listing Empirical CDF of Listing
Normal - 95% CI Normal
Category
Meatball 900000 900000 900000 14
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
32/40
Part 22 – Statistical Tests:1
An Intuitive Approach
Using the confidence interval
The confidence interval gives the range of plausible values.
If this range does not include the null hypothesis, reject the hypothesis.
If the confidence interval contains the hypothesized value, retain the
hypothesis.
Includes $30,000.
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
33/40
Part 22 – Statistical Tests:1
The P value
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
34/40
Part 22 – Statistical Tests:1
α=.05
(The test) 0.025 in each tail
P=.378 t=.88
(The data)
0.189 in each tail
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
35/40
Part 22 – Statistical Tests:1
Insignificant Results
This is 1 – α.
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
36/40
Part 22 – Statistical Tests:1
The Power of a
Test Procedure
Power = The probability it will correctly reject a
false hypothesis.
A type II error occurs when you fail to reject a
false hypothesis.
β = probability of a type II error. (Standard notation in
statistics – yes, it does conflict with the standard
notation for regression coefficients.)
Power = 1 – β
Power depends on what the true value is
(remember, the null is false, so something else
is true).
Marginal Plot of Listing vs IncomePC
Pie Chart of Percent vs Type Boxplot of Listing Scatterplot of Listing vs IncomePC Probability Plot of Listing Scatterplot of Listing vs IncomePC Histogram of Listing Empirical CDF of Listing
Normal - 95% CI Normal
Category
Meatball 900000 900000 900000 14
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
37/40
Part 22 – Statistical Tests:1
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
38/40
Part 22 – Statistical Tests:1
Application:
One sided test of a mean
Hypothesis: The mean is greater than some
value
Business application: Does a new machine that
we might buy produce grommets faster than
the one we have now?
H 0: μ ≤ M
(where M is the mean of the old machine.)
H 1: μ > M
Rejection region: Mean of a sample of
production rates from the new machine is far
above M.
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
39/40
Part 22 – Statistical Tests:1
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000
40/40
Part 22 – Statistical Tests:1
Summary
e mc
Pepperoni 99 Mean 369687
Garlic 5.0% Mean 369687 100
Mushroom and Onion
9.2%
2.3%
Pepperoni
21.8%
Plain
Mushroom
Sausage
800000 800000
95
StDev
N
156865
51
800000 2 12
StDev
N
156865
51
AD 0.994 80
Pepper and Onion 700000 90 700000
700000 P-Value 0.012
Mushroom and Onion 10
Garlic 80 1000000
600000 600000 60
Frequency
Percent
Meatball 70
600000
Listing
Listing
7.3% 8
Percent
60 800000
500000 500000
Listing
50
40
Sausage 500000 40 6
Listing
5.8% 400000 30 400000 600000
400000 20 20
300000 300000 4
10 400000
300000 200000 5 200000 2 0
Mushroom Plain 200000
16.2% 32.5% 0 00 00 00 00 00 00 00 00 00
200000 100000 100000
1 0 00 00 00 00 00 00 00 00 00
15000 17500 20000 22500 25000 27500 30000 32500 0 200000 400000 600000 800000 1000000 15000 17500 20000 22500 25000 27500 30000 32500 200000 300000 400000 500000 600000 700000 800000 900000 10 20 30 40 50 60 70 80 90 15000 20000 25000 30000
IncomePC Listing IncomePC Listing Listing IncomePC
100000