Professional Documents
Culture Documents
DBM
Quantitative Techniques in Management
Semester - 1
Session - 5
HYPOTHESIS TESTING
Hypothesis Testing
1 Overview
2 Fundamentals of Hypothesis Testing
3 Testing a Claim about a Mean: Large
Samples
4 Testing a Claim about a Mean: Small
Samples
Hypothesis
in statistics, is a claim or statement about
a property of a population
Hypothesis Testing
is to test the claim or statement
Example: A conjecture is made that the
average starting salary for computer
science gradate is $30,000 per year.
Question:
How can we justify/test this conjecture?
this conjecture?
Answer to A:
Randomly select, say 100, computer
science graduates and find out their
annual salaries
---- We need to have some sample
observations, i.e., a sample set!
Answer to B:
That is what we will learn in this
chapter
---- Make conclusions based on the
sample observations
Statistical Reasoning
Analyze the sample set in an attempt to
distinguish between results that can
easily occur and results that are highly
unlikely.
x = 30k
x = 30k
z = 1.96
or
x = 20.2k
z=
1.96
or
x = 39.8k
x = 30k
z = 1.96
or
x = 20.2k
z=
1.96
or
x = 39.8k
Components of a
Formal
Hypothesis Test
Definitions
Null
Hypothesis (H 1):
Null Hypothesis: H0
Alternative Hypothesis: H1
Must be true if H0 is false
, <, >
opposite of Null
Example:
H0 : = 30 versus H1 : > 30
Important Notes:
H0 must always contain equality; however some
claims are not stated using equality. Therefore
sometimes the claim and H0 will not be the
same.
Type I Error
The mistake of rejecting the null hypothesis when it
is true.
The probability of doing this is called the
significance level, denoted by (alpha).
Common choices for : 0.05 and 0.01
Example: rejecting a perfectly good parachute
and refusing to jump
Type II Error
the mistake of failing to reject the null
hypothesis when it is false.
denoted by (beta)
Example: failing to reject a defective
parachute and jumping out of a
plane with it.
Type I error
(rejecting a true
null hypothesis)
The null
hypothesis is
false
Correct
decision
Decision
We fail to
reject the
null hypothesis
Correct
decision
Type II error
(failing to reject
a false null
hypothesis)
Definition
Test Statistic:
is a sample statistic or value based on sample data
Example:
z=
x x
n
Definition
Critical Region :
Critical Region
Critical Region
Critical Region
Definition
Critical Value:
is the value (s) that separates the critical
region from the values that would not lead
to a rejection of H 0
Critical Value
Value (s) that separates the critical region
from the values that would not lead to a
rejection of H 0
Critical Value
( z score )
Critical Value
Value (s) that separates the critical region
from the values that would not lead to a
rejection of H 0
Reject H0
Critical Value
( z score )
Fail to reject H0
Conclusions
in Hypothesis Testing
always test the null hypothesis
Wording of Conclusions
in Hypothesis Tests
Original
claim is H0
Do
you reject
H0?.
No
(Fail to
reject H0)
Original
claim is H1
Do
you reject
H0?
(This is the
only case
in
which the
original
claim
There is not sufficient
is rejected).
evidence to warrant
rejection of the claim
that. . . (original claim).
There is sufficient
evidence to warrant
(Reject H0) rejection of the claim
that. . . (original claim).
Yes
Yes
(Reject H0)
No
(Fail to
reject H0)
(This is the
The sample data
only case in
supports the claim that which the
. . . (original claim).
original claim
is supported).
There is not sufficient
evidence to support
the claim that. . .
(original claim).
Two-tailed,
Left-tailed,
Right-tailed
Tests
Left-tailed Test
H0: 200
H1: < 200
Left-tailed Test
H0: 200
H1: < 200
Points Left
Left-tailed Test
H0: 200
H1: < 200
Points Left
Reject H0
Values that
differ significantly
from 200
Fail to reject H0
200
Right-tailed Test
H0: 200
H1: > 200
Right-tailed Test
H0: 200
H1: > 200
Points Right
Right-tailed Test
H0: 200
H1: > 200
Points Right
Fail to reject H0
200
Reject H0
Values that
differ significantly
from 200
Two-tailed Test
H0: = 200
H1: 200
Two-tailed Test
H0: = 200
H1: 200
Two-tailed Test
H0: = 200
H1: 200
Two-tailed Test
H0: = 200
H1: 200
Reject H0
Fail to reject H0
Reject H0
200
Testing Hypotheses:
Using The Five Step Model
1. Make Assumptions and meet test
requirements.
2. State the null hypothesis.
3. Select the sampling distribution and
establish the critical region.
4. Compute the test statistic.
5. Make a decision and interpret results.
Random sampling
= )
100)
Z
N
Z
s n 1
Rule of Thumb:
If the test statistic is in the Critical Region
( =.05, beyond 1.96):
Reject the H0. The difference is significant.
If the test statistic is not in the Critical Region
(at =.05, between +1.96 and -1.96):
Fail to reject the H0. The difference is not
significant.
Degrees of Freedom
The curve of the t distribution varies with
sample size (the smaller the size, the flatter
the curve)
In using the t-table, we use degrees of
freedom based on the sample size.
For a one-sample test, df = n 1.
When looking at the table, find the t-value for
the appropriate df = n-1. This will be the
cutoff point for your critical region.
t
S
n 1
Example
A random sample of 26 sociology
graduates scored 458 on the GRE
advanced sociology test with a standard
deviation of 20. Is this significantly
different from the population average
( = 440)?
Solution (cont.)
Step 2: State the null and alternate
hypotheses.
H0: = 440 (or H0:
H1: 440
= )
Solution (cont.)
Solution (cont.)
Step 4: Use Formula to Compute the Test Statistic
458 440
t
4.5
S
20
n 1
26 1
Ps Pu
Pu (1 Pu ) / n
Example
In a recent statewide (or provincial)
election, 55% of voters rejected lotteries. A
random sample of 150 urban (or rural
communities) precincts showed that 49%
of voters rejected lotteries. Is the
difference significant?
Use the formula for proportions and 5 step
method to solve
Solution:
Step 1:
Random sample
L.O.M. is nominal
The sample is large
Step 2:
H0: Pu = .55 (convert % to proportion)
(Note you can also say H0: Ps = Pu )
H1: Pu .55
Step 3:
The sample is large, use Z distribution
Alpha () = .05
Critical Z = 1.96
Solution (cont.)
Step 4
Ps Pu
.49 .55
1.48
Pu (1 Pu ) / n
.55(1 .55) / 150
Step 5
Z (obtained) < Z (critical)
Fail to reject Ho. There is no significant difference
between the state population and the precincts.
Main Considerations in
Hypothesis Testing:
Sample size
Use Z for large samples, t for small (<100)
Alpha () level
.05, .01, or .001? (=.05 is most common)