ECON 1005 Lectures: Hypothesis Testing
ECON 1005 Lectures: Hypothesis Testing
HYPOTHESIS TESTING
1
Statistical Decisions
• Very often in practice, we are called upon to make
decisions about populations on the basis of sample
information
4
Decision Errors
• Found Guilty, but really Innocent:
– A Type I Error is the error that results from
rejecting the null hypothesis when indeed the null
hypothesis is true.
5
Decision Errors
Ho is true
Ho is false
(really not
(really guilty)
guilty)
Your Decision: Correct
Decision Type II Error
Do Not
( )
Reject Ho
9
The Original Position: The Null Hypothesis
• The null hypothesis is denoted by Ho
11
The Alternative Position:
The Alternative Hypothesis
• The alternative hypothesis is denoted by H1 or Ha
• H0 : = 23
• H1 : 23
• H0 : = 75
• H1 : < 75
14
Class Activity
• Write the null and alternative hypotheses for each of
the following examples. Determine if each is a case of
a two-tailed, left-tailed or right-tailed test.
– To test if the mean number of hours spent working per week
by university students who hold jobs is different from 20
hours
– To test whether or not a bank’s ATM is out of service for an
average of more than 10 hours per month
– To test if the mean credit card debt of university students is
less than 1000 TTD
– To test if the mean time a customer has to wait on the phone
to speak to a b-mobile representative is more than 12
minutes
15
Rejection Regions for One-Tailed and Two Tailed
Hypothesis Tests f(z)
f(z)
f(z)
16
Class Activity
• Sketch the rejection regions for each of the following
cases by drawing a sample distribution curve for the
sample mean, assuming a normal distribution.
• H0 : = 45
• H1 : > 45
• H0 : = 23
• H1 : 23
• H0 : = 75
• H1 : < 75
17
Hypothesis Testing
• This example has outlined the steps of
hypothesis testing
• (1) you have an original position
• (2) you have an alternative position
• (3) you have some critical region that defines
your movement from one position to the next
• (4) you are presented evidence
• (5) you compare that evidence with your
critical region
• (6) you come to a conclusion
18
The Critical Region
• The critical region defines the conditions
under which the Null Hypothesis will be
rejected.
20
The Form of the Alternative Hypothesis
• A two-tailed test has rejection f(z)
-z 0 z
f(z)
• A Left-tailed test has the rejection
region in the left tail
-z 0
f(z)
22
Calculating the Critical Region
• Assuming normality, how can we calculate the
critical regions for one-tailed and two-tailed tests?
23
Activity
• For each of the following examples of tests of
hypotheses about , show the rejection and non-
rejection regions on the sampling distributions for
the stated levels of significance, assuming
normality.
25
The Evidence: The Test Statistic
• The Test Statistic is what is used as our
evidence. We calculate the Test Statistic,
and compare it to the Critical Region
previously discussed.
28
Testing Proportions
When Testing values of Proportions, the Test
Statistic is as follows:
ˆ
p p
Z
pq
n
p hat is the sample proportion
p is the population proportion under the null
q is 1-p
n is the sample size 29
Testing Differences Between Means
[( X1 X 2 ) ( 1 2 )]
Z
SE ( X1 X 2 )
30
Testing Differences Between Proportions
p 1 p 2
Var(p 1 p 2 )
31
Hypothesis Testing
• This example has outlined the steps of
hypothesis testing
• (1) you have an original position
• (2) you have an alternative position
• (3) you have some critical region that defines
your movement from one position to the next
• (4) you are presented evidence
• (5) you compare that evidence with your
critical region
• (6) you come to a conclusion
32
The Decision Rule
• The decision criteria or decision rule is
the logic by which a decision is made in a
test of hypothesis
34
P-Values (Probability Values)
• The p-value of a test of hypothesis gives us an
indication of how certain we are that the null
hypothesis should, or should not be rejected.
39