Professional Documents
Culture Documents
HYPOTHESIS TESTING
Hypothesis Testing
1. The manager of a hotel has stated that the mean guest bill for a
weekend is Birr 400 or less. A member of the hotel’s accounting staff
has noticed that the total charges for guest bills have been increasing in
recent months. The accountant will use a sample of weekend guest
bills to test the manager’s claim.
There are four possible outcomes of any hypothesis test, two of which are
correct and two of which are incorrect.
The incorrect ones are called type I and Type II errors.
Type I Error
In hypothesis testing sample evidence is used to test the null hypothesis Ho.
A type I error is committed when a true null hypothesis is rejected.
In short, rejecting a true Ho is called Type I error.
Type I error is represented by Alpha (), or the level of significance.
The larger the area of the rejection region, the greater is the risk of
committing Type I error.
Type II Error
Example
• A Teachers’ union is on strike for higher wages. The union claims that the
mean salary for teachers is at most Birr 8,400 per year. The legislator does
not want to reject the union’s claim, however, unless the evidence is very
strong against if. Assume that salaries follow a normal distribution and the
population standard deviation is known to be Birr 3000. A random sample of
64 teachers is obtained, and the sample mean is Birr, 9,400. Test if the state
legislator accepts the unions’ claim or not at 1% significance level.
By using P-value
ɑ = 0.01
P(Z > 2.67)= 0.5-
0.4962 = 0.0038
Reject Ho because prb.
Of computed value is
lass than ɑ
0.0038 <0.01
• Interval Estimation, use of the t-distribution is
appropriate when is unknown, the sample size is
small (n30), and population is normally distributed.
When we use the t-distribution, it replaces Z as test
statistic.
X S
t SX
SX n
Example
1. A contractor assumes that construction workers are
idle for 75 minutes or less per day. A random
sample of 25 construction workers was taken and
the mean idle time was found to be 84 minutes per
day with a sample standard deviation of 20 minutes.
Assume that the population is approximately
normally distributed; use a 5% level of significance
to test the contractor’s assumption.
Solution
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.
Cont…
• Hypothesis testing about a population proportion is based on the
difference between the sample proportion and the hypothesized
value P.
p p
Z
p
Example
Z
X 1
X 2 1 2 Z X
1X2
Z 20, 00018,500
20,000 18,500 0 3.36
2 2 1,550 2 2,100 2
S 1 S 2
33 35
n1 n 2
•Reject Ho; because /sample Z/ = 3.36 2.57. There is a difference in the average annual salary of
legal and medical secretary.
2. Small Sample Case
• t – Distribution: used when population normal 1, and 2
unknown, and n1, and/or n2 30. The unknown population
standard deviations are approximated by sample standard
deviations as:
Example
• A marketing research firm wishes to know if the mean number
of his of TV viewing per week is the same for teenage boys
and teenage girls using a 5% level of significance. The
unknown population variances are assumed to be equal. The
following data were obtained is an attempt to test the equality
of 1 and 2.
Hypothesis testing about the Difference between two population
proportions (P1-P2)
Example
• In a sample of 400 products produced by machine I, 200
were defective, and in a sample of 400 products
produced by machine II, 170 were defective. Using =
0.05, test the hypothesis that the rate of defect is the
same for both machine 1 and machine 2.
End of Chapter
Three