Hypothesis Testing
Hypothesis Testing
Hypothesis Testing
• Hypothesis testing is the one of the primary ways we derive inference, since
it provides a technique for us to scientifically and reliably decide if the
evidence supports the theory.
Hypothesis Testing
• Non-directional hypothesis/Two-tailed test: It is a two-tailed test
if the researcher does not take a position on the value of the
parameter. He does not care or know whether the value of the
population parameter (or difference between two parameters) is less
than or greater than a certain value; he just wants sample evidence
to support that it is not equal to that certain value.
• Directional hypothesis/ One-tailed test: This type of test
examines if the population parameter (or difference between two
parameters) is greater than a certain value or if it is less than a
certain value.
Ho Ha
• Rejection (or critical) region: This is the region that allows for the rejection of
the H0. The Z-values that separate the rejection region from the non-rejection
region are called critical values. The position of the rejection region depends on
the type of test.
7
Critical Values (Z)
5% 1.96 1.645
1% 2.58 2.33
8
Hypothesis Testing
Test statistic: It is a sample statistic which computes a value that is used to
determine whether to actually reject H0. If this value falls in the rejection region,
reject the H0; otherwise, do not reject H0.
Decision:
q Ifthe test statistics value falls in the region of rejection, we reject the null
hypothesis.
q Ifthe test statistics value falls in the non- rejection region, we fail to reject (or we
accept) the null hypothesis.
There are two possible types of errors that can be made when making a
statistical decision, i.e. accepting or rejecting the null hypothesis (H0).
Type I error: occurs whenever the null hypothesis is rejected and it is true.
Type II error: occurs whenever the null hypothesis is accepted and it is false.
9
• One-tailed test:
In this case, the alternative hypotheses are written as:
x1 - x2
x-µ Z=
Z= s 12 s 22
s +
n n1 n2
13
Worked Example
A random sample of 26 psychology Step 1: μ = 440
majors at a local college scored an Step 2: μ > 440
average of 458 on the Graduate Record Step 3: Level of significance (α) = 5%
Examination verbal skills test, with a Step 4: Critical value: Z = 1.645 (Since it is a
standard deviation of 20. The national one-tailed test at the 5% level of
significance)
average on this test for all psychology
Step 5: Test statistics – Z = σX − µn
majors is 440. Can we conclude that the 458 − 440
Z =
average score at the local college is 20
26
higher than the national average? Test at Z =
20
18
5.10
the 5% significance level. Z =
18
3.92
Solution:
Z = 4.59
Worked Example
The average household size in a
certain region several years ago
was 3.14 persons. A sociologist
wishes to test, at the 5% level of
significance, whether it is
different now. Perform the test
using the information collected
by the sociologist: in a random
sample of 75 households, the
average size was 2.98 persons,
with sample standard deviation
0.82 person.
Worked Example 15
A training manager in a large industrial
firm claims that employees taking his
course perform better on the job than
those not receiving this training. Of 72
recently hired employees, 36 were
randomly selected to receive training.
The other 36 received no special training.
Six months later, an on-the-job
performance test showed that the trained
group averaged 84.6 with a standard
deviation of 3.5. For the group with no
training, the average was 81.5 with a
standard deviation of 4.0. Test the
manager’s claim at the 1% significance
level.
Solution:
1. Blood glucose levels for obese patients have a mean of 100 with a standard deviation of
15. A researcher thinks that a diet high in raw cornstarch will have a positive or negative
effect on blood glucose levels. A sample of 30 patients who have tried the raw cornstarch
diet have a mean glucose level of 140. Test the hypothesis that the raw cornstarch had an
effect.
2. A teachersʼ union would like to establish that the average salary for high school teachers
in a particular state is less than $32,500. A random sample of 100 public high school
teachers in the particular state has a mean salary of $31, 578. It is known from history
that the standard deviation of the salaries for the teachers in the state is $4,415. Test the
unionʼs claim at the 5% level of significance.
3. The average earnings of a sample of 1500 female workers who are not union members is
$909 per week. The average earnings of a sample of 2000 female workers who are union
members is $1035 per week. The standard deviations for the two corresponding
populations are $70 and $90, respectively. Test at a 5% significance level whether the
mean weekly earnings of female workers who are not union members are less than those
of female workers who are union members.
17
Examples 18