Hypothesis Testing
Hypothesis Testing
of Hypotheses
Dr. V. Darling Selvi
Assistant Professor of Commerce
Rani Anna Government College for Women
Tirunelveli - 8
Hypothesis Testing - the scientists’
• To tell whether our data supports or rejects our ideas,
we use statistical hypothesis testing. Immanuel Kant
Complement of the
null hypothesis
Stating a Hypothesis
Example:
Write the claim as a mathematical sentence. State the null
and alternative hypotheses and identify which represents the
claim.
Statesville college claims that 94% of their graduates find
employment within six months of graduation.
p = 0.94
Complement of the
null hypothesis
More than one sample
H 0 : 0 H 0 : 0 H 0 : 0
H a : 0 H a : 0 H a : 0
Actual Truth of H0
Decision H0 is true H0 is false
The statistic that is compared with the parameter in the null hypothesis is
called the test statistic.
H0: μ k
H a: μ < k
P is the area to
the left of the test
statistic.
z
-3 -2 -1 0 1 2 3
Test
statistic
Right-tailed Test
2. If the alternative hypothesis contains the greater-than symbol (>), the
hypothesis test is a right-tailed test.
H0: μ k
H a: μ > k
P is the area to
the right of the
test statistic.
z
-3 -2 -1 0 1 2 3
Test
statistic
Two-tailed Test
3. If the alternative hypothesis contains the not-equal-to
symbol (), the hypothesis test is a two-tailed test. In a
1
two-tailed test, each tail has an area of P. 2
H0: μ = k
H a: μ k
P is twice the
P is twice the area to the right
area to the left of of the positive
the negative test test statistic.
statistic.
z
-3 -2 -1 0 1 2 3
Test Test
statistic statistic
Identifying Types of Tests
Example:
For each claim, state H0 and Ha. Then determine whether the
hypothesis test is a left-tailed, right-tailed, or two-tailed test.
a.) A cigarette manufacturer claims that less than one-eighth of
the Indian adult population smokes cigarettes.
H0: p 0.125
Ha: p < 0.125 (Claim) Left-tailed test
Claim
Decision Claim is H0 Claim is Ha
There is enough evidence to There is enough evidence to
Reject H0 reject the claim. support the claim.
=?
3. Determine the standardized sampling
distribution and draw its graph. z
0
Continued.
Steps for Hypothesis Testing
5. Find the P-value.
6. Use the following decision rule.
Yes
Examples
P =.27 non-significant evidence against H0
P =.01 highly significant evidence against H0
* It is unwise to draw firm borders for “significance”
Normal Distribution
• So if we make many observations and use
averages as our data, we can draw valid
conclusions because we know their distribution
* See the exception next slide **There are statistics designed to test this assumption
The x 2 formula
Note that although there are 3 cells in the table that are not greater than 5, these
are observed frequencies. It is only the expected frequencies that have to be
greater than 5.
Work out the expected frequency.
But x 2
= (O – E) 2
Test Statistic
p p0
z
p
where:
p0 (1 p0 )
p
n