Professional Documents
Culture Documents
HYPOTHESIS TESTING
o Hypothesis is : the assumptions we make about the
values of population parameters.
o It is something that has not yet been proven to be
true.
o It is some statement about a population parameter or
about a population distribution.
1
The Null and Alternative Hypothesis
1. A null hypothesis: (Ho)
It is an assertion that we hold as true
unless we have sufficient statistical
evidence to conclude otherwise.
It is tentative assumption and is
denoted by Ho- it is the assumption we
wish to test.
2
2. Alternative Hypothesis (Ha)
Itis the opposite of what is stated in the null
hypothesis.
This alternative hypothesis specifies all possible
values of the population parameter that are
not specified in the null hypothesis, and in
denoted by Ha.
3
Example
The manager of a hotel has stated that the mean guest bill
for a weekend is Br. 400 or less.
Required: State the null and Alternative hypotheses
Ho:μ Birr 400
Ha: Birr 400
The equality part of the expression (either =, or)
always appears in the null hypothesis.
4
Example 2
Production workers at XY Company have been trained
in their jobs by using two different training programs.
The company training director would like to know
whether there is a difference in mean productivity for
workers trained in the two programs.
Required: Develop the null and alternative hypotheses.
Solution
Ho: 1 = 2 or 1 - 2 = 0
Ha: 1 2 1 - 2 0
Type I and Type II Errors
Type I Error
It will be committed if we wrongly reject the null
hypothesis which is actually true.
Type II Error
It will be committed by failing to reject a false null
hypothesis. That is to say that, accepting a null
hypothesis when it is false is called a Type II error.
6
Two – Tailed Vs One – Tailed Tests
1. Two – Tailed test
If the alternate hypothesis not states the direction (i.e. ),
the test of significance has two tails
Example: Ho: μ = 20
H1: μ 20
2. One Tailed test
If the alternate hypothesis states the direction, the test
of significance has one tail
Example: Ho: μ > 20
H1: μ < 20 8
Steps in Hypothesis Testing
1.Determine/state the null and alternative Hypothesis
Eg. Ho:
Ha:
2. Select the test statistic that will be used to decide whether
or not to reject the null hypothesis.
3. Select the level of significance
Eg. = 0.05 Z012 = 1.96 Reject Ho if /Sample Z/ 1.96
4. Collect the sample data, and compute the value the test
statistic. E.g sample Z=2.0
5. Compare the value of the test statistic to the critical value(s)
& make the decision (either reject Ho or accept HO).
9
Hypothesis Test about a population mean
Popn Normal, Standard deviation known
In hypothesis testing if the population is normal and
standard deviation is known, we use Z-Value to test
the hypothesis; regardless of the sample size, n.
It is also applicable when n 30 regardless of the
pop distn.
We use “t” table only if n < 30 and
σ is unknown
otherwise we use Z table
10
Example:
Addis Tire Share Company claims that its tires have a mean life
of 35,000 miles. A random sample of 16 of these tires is tested
if the sample mean in 33,000 miles. Assume that the
population standard deviation is 3,000 miles and the lives of
tires are approximately normally distributed. Test the share
company’s claim using a 5% level of significance.
Solution
1. Ho: = 35,000 miles 2. Z – Distribution, two tailed test
Ha: ≠ 35,000 miles
3. = 0.05 4. X = 33,000 miles
/2 = 0.025 = 3,000 miles
Z0.025 = ± 1.96 n = 16 tires
Reject Ho if /Sample Z/ > 1.96 Zcal =? 11
33,000 35,000
Zcal 2.67
3,000
16
Reject Ho; because + 2.25 1.711. Workers are idle for more than 75 minute s/ day.
16
Example 2:
A director of a secretarial school claims that its
graduates can type at least 50 words per minute on
average. Suppose you want to hire some of these
graduates if the director’s claim is true; and you test the
typing speed of 18 of the graduates and obtain a mean
of 40 wards per minute with a sample variance of 720.
Assuming the typing speed for the graduates of the
secretarial school is normally distributed, test the
director’s claim and decide whether to hire the
graduates or not, using a 5% level of significance.
17
Solution
1. Ho: 50 words
Ha: 50 words
t – distribution, Left – tailed test = 0.05 n = 18
= n – 1 = 18 – 1 = 17 t, = t0.05, 17 = 1.74
Reject Ho if sample t -1.74
X = 40 words n = 18 s2 = 720
viii. tcal =?
40 50
ix. tcal 1.58
720
18
Do not reject Ho because –1.58 > -1.74
18
Hypothesis testing about a population proportion (p)
A proportion is a value between 0 and 1 that expresses the part
of the whole that possesses a given characteristic. Similar to that
of hypothesis testing about a population mean, hypothesis
testing about a population proportion has three terms.
21
Example 2:
An Economist states that more than 35% of Addis’s labor force
in unemployed you don’t know if the economists estimate is
too high or too low. You want to test the economists claim
using a 5% level of significance. You obtain a random sample
of 400 people in the labor force, of whom 128 are unemployed.
Would you reject the economist’s claim?
22
Solution
1. Ho: P ≤ 0.35
Ha: P > 0.35
2.Z – distribution , right-tailed test
3.𝜎 = 0.05 Z 0.05 = 1.645
Reject Ho if sample Z > 1.645
4.n = 400 x = 128 P ഥ = 0.32
Sample Z =? Z 0.32 0.35
1.26
0.32 0.35 * 0.65
400
5.Do not reject Ho because / -1.26/ < 1.645
23
Hypothesis testing about the difference in two means
1. Ho: 1-2 = 0 2. Ho: 1-2 0 3. Ho: 1-2 0
Ha: 1-2 0 Ha: 1-2 0 Ha: 1-2 0
Two tailed test One tailed test
24
The above formulas are simplified as follows:
25
26
The computed z of + 3.32 is in the region of rejection
Therefore, the null hypothesis is rejected, and the
alternative hypothesis, that the average weekly wage in
the two firms is different, is accepted.
27
EXERCISE
Use the following information to test the hypothesis that there is
no difference between the means using 5 % level of Significance.
END OF
CHAPTER 5
29