Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Hypothesis Testing 2
Test statistic:
x " 0 x " 0
z= #
!x s/ n
Rejection region: Rejection region:
z > z (or z < - z )
" " z < -z /2
" (or z > z /2)
"
where z is the z-value such that P(z > z ) = "; and z /2 is the z-value such that P(z >
" ! "
z /2) = !/2. [Note: 0 is our symbol for the particular numerical value specified for in
!
Size n = 35
Using a significance level of = 0.05
We will reject the null hypothesis for this one-tailed test
if z > z (z = z0.05)
z = 1.645
Computing the value of the test statistic, we
obtain z = x ! 0 = 42.1! 40 = 0.897
s / n 13.85 / 35
Since this value does not fall within the rejection
region, we do not reject H0.
We say that there is insufficient evidence (at =
0.05) to conclude that the mean time spent on
studies per week of all students at the university
this year is greater than 40 hours.
Example (Two-Tailed Test)
A sugar refiner packs sugar into bags weighing, on average 1
kilogram. Now the setting of machine tends to drift i.e. the
average weight of bags filled by the machine sometimes
increases sometimes decreases. It is important to control the
average weight of bags of sugar. The refiner wish to detect
shifts in the mean weight of bags as quickly as possible, and
reset the machine.
In order to detect shifts in the mean weight, he will
periodically select 50 bags, weigh them, and calculate the
sample mean and standard deviation. The data of a
periodical sample as follows: x =1.03 kg s=.05 kg
Test whether the population mean is different from 1 kg at
significance level = .01.
Solution
We formulate the following hypotheses:
H 0: = 1
H a: 1
The sample size (50) exceeds 30, we may proceed with
the larger sample test about . Because shifts in in
either direction are important, so the test is two-tailed.
Using significance level = .01,
We will reject the null hypothesis for this two tail test if
z < - z/2 = - z.005 or z > z/2 = z.005 i.e., if z < - 2.576
or z > 2.576.
The value of the test statistic is computed as follows:
x " 0 1.03"1
z! = = 4.243
s / n .05 / 50
Since this value is greater than the upper-tail critical
value (2.576), we reject the null hypothesis and accept
the alternative hypothesis at the significance level of
1%.
We would conclude that the overall mean weight was
no longer 1 kg, and would run a less than 1% chance of
committing a Type I error.
Tests of population means using small samples
Assumption: n < 30
Use t-Distribution
Large samples depend upon the type of test
(one or two tailed).
Small samples, depend upon the degrees of
freedom as well as the type of test.
Why a small sample need a specific
hypothesis-testing procedure?
Because if we use methods of the large-sample
test, we will run into trouble on two accounts.
Our small sample will underestimate the
population variance, so our test statistic will be
wrong.
The means of small samples are not normally
distributed, so our critical values will be wrong.
Small-sample test of hypothesis about a population mean
ONE-TAILED TEST TWO-TAILED TEST
H0: = 0 H0: = 0
Ha: > 0 (or Ha: < 0) Ha: ! 0
Test statistic:
x ! 0
t=
s/ n
Rejection region: Rejection region:
t > t (or t < - t )
" " t < -t /2 (or t > t /2)
" "
t-value such that P(t > t ) = !; and t /2 is the t-value such that P(t > t /2) = !/2.
! " !
Assumption: The relative frequency distribution of the population from Which the
sample was selected is approximately normal.