P-value method

Download Report

Transcript P-value method

P-value method
2 means, both σ’s known
An economist is comparing credit card debt from two recent years.
She has gathered the following data:
Year 1
sample mean: $6618
sample size: 35
population standard deviation: $1928
Year 2
sample mean: $9205
sample size: 35
population standard deviation: $1928
Source: data is taken from problem 18, section 9-1 of Bluman, Elementary Statistics, eighth
edition
The economist
claims that
average credit
card debt
increased from
year 1 to year 2.
Evaluate her
claim using
the P-value
method with
Ξ±=.01.
If you want to try this
problem on your
own, click the kid to
the left.
Otherwise, click
away from the kid,
and we’ll work
through this
together.
Set-up
Summarizing the data using mathematical symbols, we get:
Year 1
population
πœ‡1 =?
𝜎1 = 1928
sample
𝑋1 = 6618
𝑛1 =35
Year 2
population
πœ‡2 =?
𝜎2 = 1928
sample
𝑋2 = 9205
𝑛2 = 35
These are what the
hypotheses will be about.
Step 1: State the hypotheses and
identify the claim.
The claim is that the average credit card debt increased
from year 1 to year 2. That is:
The debt from year 2 is bigger than the debt from year 1.
πœ‡2
>
πœ‡1
πœ‡2 > πœ‡1
I don’t see an equals
sign. That should make
this the Alternate
Hypothesis, though I
suppose it could be the
cucumbers on my eyes.
𝐻0 :
𝐻1 :
πœ‡2 = πœ‡1
πœ‡2 > πœ‡1 (π‘π‘™π‘Žπ‘–π‘š)
𝐻0 always
gets an equals
sign!
Yes. And it always
compares the same
quantities as 𝐻1 !
𝐻0 :
𝐻1 :
πœ‡2 = πœ‡1
πœ‡2 > πœ‡1
If we subtract, we’ll
be able to see what
number will be at the
center of our
distribution.
πœ‡2 βˆ’ πœ‡1 = 0
πœ‡2 βˆ’ πœ‡1 > 0
I hope she subtracts
β€œbigger minus
smaller” so we get a
positive number later,
when we work with
the sample values!
𝐻0 :
𝐻1 :
πœ‡2 = πœ‡1
πœ‡2 > πœ‡1
While the number 0 shows up in the
hypotheses, since we subtracted
β€œbigger minus smaller” (year 2 is
claimed to be bigger in the Alternate
hypothesis, and is actually bigger in the
sample data) we have set things up so
that we will have a right-tailed test and
our observed difference will be positive.
If you subtracted in the other order,
you’ll be doing a left-tailed test and your
observed difference will be negative.
πœ‡2 βˆ’ πœ‡1 = 0
πœ‡2 βˆ’ πœ‡1 > 0
Step (*)
Draw the picture and mark off the
observed value.
Do we know we have a normal distribution?
We do! Both sample sizes are
35, so they are big enough---they
are at least 30.
β€’ First, draw the picture
Step (*):
Top level: Area
Middle Level: Standard Units (z)
We use z-values when we know both
population standard deviations.
Step (*):
β€’ First, draw the picture
Top level: Area
Middle Level: Standard Units (z)
0
The center is always 0 in standard units.
Label this whenever you draw the picture.
Step (*):
β€’ First, draw the picture
Top level: Area
Middle Level: Standard Units (z)
Bottom level: Actual Units ($)
0
In this case, the actual
units are dollars, since our
hypotheses are about
credit card debt.
Step (*):
β€’ First, draw the picture
Top level: Area
Middle Level: Standard Units (z)
0
Bottom level: Actual Units ($)
0
The number from the Null Hypothesis always goes in the center
in standard units; that’s because we’re drawing the picture as if
the Null is true.
Then remember:
The P-value Method
is bottom-up
Step (*):
(continued)
Once you’ve drawn the picture,
start at the Bottom level and
mark off the observed value 𝑋2 βˆ’
𝑋1 = 9205 βˆ’ 6618 = 2587.
Standard Units (z)
Bottom level
Actual units ($)
0
0
Mark off the right
tail, with its
boundary at 2587
2587
Step 2:
Middle level
Move up to the middle level. Convert
the observed value to standard units
and mark this off. (The value you
found is called the test value.)
Standard Units (z)
Actual units ($)
0
0
2587
Put your
answer here!
𝑧 =
π‘œπ‘π‘ π‘’π‘Ÿπ‘£π‘’π‘‘ π‘£π‘Žπ‘™π‘’π‘’ βˆ’ 𝑒π‘₯𝑝𝑒𝑐𝑑𝑒𝑑 π‘£π‘Žπ‘™π‘’π‘’
π‘ π‘‘π‘Žπ‘›π‘‘π‘Žπ‘Ÿπ‘‘ π‘’π‘Ÿπ‘Ÿπ‘œπ‘Ÿ
(𝑋2 βˆ’π‘‹1 )βˆ’(πœ‡2 βˆ’ πœ‡1 )
=
=
(𝜎1 )2 (𝜎2 )2
+𝑛
𝑛1
2
2587 βˆ’ 0
(1928)2 (1928)2
+
35
35
Hypothesized
difference
= 5.613 … β‰ˆ 5.61
Finishing up Step 2: Put the test value at the boundary of the
tail in standard units.
Standard Units (z)
Actual units ($)
0
5.61
0
2587
Step3:
Move up to the top level and
calculate the area in the tail;
this is the P-value.
P
Top Level (area)
Standard Units (z)
Actual units ($)
0
5.61
0
2587
We can either use Table E or the
calculator to find the P-value. Click on
the option you prefer.
Table E
Calculator
Note: the calculator
used in this tutorial is
the Casio fx-115MS
plus.
We can use Table E to
find our P-value.
If our z-value is on
the table, table E will
give us the area to
the left of it, and
we’ll have to subtract
that area from 1 to
get the area in the
tail. But…
5.61 is so
BIG
, it’s off the chart!
Looks like we’re
supposed to use
0.9999.
Label .9999 as the area to the left
of the observed value.
P = 1-.9999 = .00001
P
.9999
Standard Units (z)
Actual units ($)
0
5.61
0
2587
Step 4: Decide whether or not to
reject 𝐻0
Please be
merciful!
π»π‘œ
β€’ Compare P to Ξ±.
β€’ P = area in right tail
= probability of getting 2587 (or a
bigger value) if 𝐻0 is true
β€’ Ξ±= maximum allowable probability of
making a Type I error (rejecting π»π‘œ if it is
true)
P
.00001
Ξ±
<
.01
β€’ The probability we would get the result
we did (if 𝐻0 is true) is small.
β€’ But we did get that result.
β€’ So the probability that 𝐻0 is true is small.
Reject 𝐻0.
Step 5: Answer the question.
β€’ Talk about the claim.
β€’ Since the claim is 𝐻1 , switch to the
language of β€œsupport.”
β€’ We rejected the 𝐻0 , so we support
the claim.
There is enough evidence to support the
claim that credit card debt increased from
year 1 to year 2.
Let’s recap!
Each click will give
you one step. Step
(*) is broken up into
two clicks.
Step 1. 𝐻0 : πœ‡2 βˆ’ πœ‡1 = 0
𝐻1 : πœ‡2 βˆ’ πœ‡1 > 0 (π‘π‘™π‘Žπ‘–π‘š)
P = .00001
Step 3
Standard Units (z)
Actual units ($)
0
5.61
Step 2
0
2587
Step (*)
Step 4. Reject 𝐻0 .
Step 5: There’s enough
evidence to support the claim.
And there was much rejoicing.
Press the escape key to exit the slide show.
With the calculator, there’s
no need to round the critical
value, so be sure you’ve still
got the calculated critical
value displayed on
your screen.
Then hit the β€œshift” key
followed by the β€œ3” key.
LEFT
RIGHT
MIDDLE
You’ll see this menu.
RIGHT
Our test is right-tailed, so select the area to
the right.
You’ll see
To enter in the calculated test value after the
R( , just hit the β€œAns” key and then hit the
equals key.
You should get 0; there is some area in the
right tail, but it is so small that it rounds to 0!
Add the P-value to the
picture.
P=0
P
Standard Units (z)
Actual units ($)
0
5.61
0
2587
Step 4: Decide whether or not to
reject 𝐻0
Please be
merciful!
π»π‘œ
β€’ Compare P to Ξ±.
β€’ P = area in right tail
= probability of getting 2587 (or a
bigger value) if 𝐻0 is true
β€’ Ξ±= maximum allowable probability of
making a Type I error (rejecting π»π‘œ if it is
true)
P
0
Ξ±
<
.01
β€’ The probability we would get the result
we did (if 𝐻0 is true) is small.
β€’ But we did get that result.
β€’ So the probability that 𝐻0 is true is small.
Reject 𝐻0.
Step 5: Answer the question.
β€’ Talk about the claim.
β€’ Since the claim is 𝐻1 , switch to the
language of β€œsupport.”
β€’ We rejected the 𝐻0 , so we support
the claim.
There is enough evidence to support the
claim that credit card debt increased from
year 1 to year 2.
Let’s recap!
Each click will give
you one step. Step
(*) is broken up into
two clicks.
Step 1. 𝐻0 : πœ‡2 βˆ’ πœ‡1 = 0
𝐻1 : πœ‡2 βˆ’ πœ‡1 > 0 (π‘π‘™π‘Žπ‘–π‘š)
P=0
Step 3
Standard Units (z)
Actual units ($)
0
5.61
Step 2
0
2587
Step (*)
Step 4. Reject 𝐻0 .
Step 5: There’s enough
evidence to support the claim.
And there was much rejoicing.