Professional Documents
Culture Documents
HYPOTHESIS TESTING
Hypothesis testing is conducted when:
The statement or the claim contradicts with the observation. For example, if a company claims that, the average weight of their
products is at least 50. However, based on the sample, the average weight of the sample is only 49. Consequently, the
hypothesis testing must be conducted to justify whether we are able to reject the company’s claim.
It is often that, the claim is put in H0. Based on H0 , the alternative H1 is identified
However, in case it is difficult to identify H0, H1 can be identified first through comparing the real observations with the value
in the claim. For the above example, the mean of the sample is 49<50. So H1 : 50 H 0 : 50
Under the null hypothesis, if the probability that we obtain the sample is too small, i.e., smaller than significant level , we
think that it cannot occur, so we reject the null hypothesis.
For example, if someone tell you that a coin is fair, i.e., Ho: P(Head) =0.5. You tossed a coins 10 times and you got 9 Heads,
and 1 Tails. You use the null hypothesis that H0: P(Head)= 0.5 to calculate the probability that in 10 tosses , we obtains less
than 1 tail is only 0.0107. Since it is extremely rare to occur, but it already occurred => the null hypothesis maybe wrong, so
we reject the null hypothesis
H : 0
2-tailed test: 0
H1 : 0
H : 0 ( 0 )
1-tailed test: 0
H1 : 0 ( 0 )
Sample size: n
Mean of sample: x
Standard deviation of sample: s
2-TAILED TEST
Sample size: n Small sample size (n<30) Large sample size (n>30)
H 0 : 0 H 0 : 0 H 0 : 0
Hypothesis
H1 : 0 H1 : 0 H1 : 0
2 s2 s2
Distribution of x z-distribution: x, t-distribution: x, , dof n 1 z-distribution: x,
n n n
x 0 x 0 x 0
Test statistic zt tt zt
n s n s n
1-TAILED TEST
Sample size: n Small sample size (n<30) Large sample size (n>30)
H 0 : 0 ( 0 ) H 0 : 0 ( 0 ) H 0 : 0 ( 0 )
Hypothesis
H1 : 0 ( 0 ) H1 : 0 ( 0 ) H1 : 0 ( 0 )
2 s2 s2
Distribution of x z-distribution: x, t-distribution: x, , dof n 1 z-distribution: x,
n n n
x 0 x 0 x 0
Test statistic zt tt zt
n s n s n
PROPROTION TEST
Sample size: n n
H 0 : p p0 H 0 : p p0 ( p p0 )
Hypothesis
H 1 : p p0 H1 : p p0 ( p p0 )
pq pq
Distribution of p z-distribution: p, z-distribution: p,
n n
p p p p
0 0
zt zt
Test statistic p0 q0 p0 q0
n n
Critical Values z 2 z ( z )
Reject Ho if : Reject Ho if :
Decision
zt z 2 or zt z 2 zt z ( zt z )
VARIANCE TEST
Sample size: n n
2 2 2 2 2 2
H 0 : 0 H 0 : 0 ( 0 )
Hypothesis 2 2 2 2 2 2
H1 : 0 H1 : 0 ( 0 )
(n 1)s 2
Distribution of χ2 -distribution: dof n 1 χ2 -distribution: dof n 1
2
2 (n 1) s 2 2(n 1) s 2
Test statistic
t
t
02 02
Assignments
Question 1: A producer specifies that the mean lifetime of a certain type of battery is at least 240
hours. A sample of 18 such batteries yielded the following data.
Assuming that the life of the batteries is approximately normally distributed, do the data indicate
that the specification is not being met?
Question 2: The mean breaking strength of a certain type of fiber is required to be at least 200
psi. Past experience indicates that the standard deviation of breaking strength is 5 psi. If a sample
of 8 pieces of fiber yielded breakage at the following pressures,
Would you conclude, at the 5 percent level of significance, that the fiber is unacceptable? What
about at the 10 percent level of significance?
Question 3: In a certain chemical process, it is very important that a particular solution that is to
be used as a reactant have a pH of exactly 8.20. A method for determining pH that is available
for solutions of this type is known to give measurements that are normally distributed with a
mean equal to the actual pH and with a standard deviation of .02. Suppose 10 independent
measurements yielded the following pH values:
Question 4: An advertisement for a new toothpaste claims that it reduces cavities of children in
their cavity-prone years. Cavities per year for this age group are normal with mean 3 and
standard deviation 1. A study of 2,500 children who used this toothpaste found an average of
2.95 cavities per child. Assume that the standard deviation of the number of cavities of a child
using this new toothpaste remains equal to 1.
07 Regression Analysis 6
INTERNATIONAL UNIVERSITY (IU) Engineering Probability & Statistic
ISE Department Lecturer: Phan Nguyễn Kỳ Phúc
--------------------o0o------------------
1. Are these data strong enough, at the 5 percent level of significance, to establish the claim of
the toothpaste advertisement?
Question 5: The weights of salmon grown at a commercial hatchery are normally distributed
with a standard deviation of 1.2 pounds. The hatchery claims that the mean weight of this year’s
crop is at least 7.6 pounds. Suppose a random sample of 16 fish yielded an average weight of 7.2
pounds. Is this strong enough evidence to reject the hatchery’s claims at the
Question 6: A medical scientist believes that the average basal temperature of (outwardly)
healthy individuals has increased over time and is now greater than 98.6 degrees Fahrenheit (37
degrees Celsius). To prove this, she has randomly selected 100 healthy individuals. If their mean
temperature is 98.74 with a sample standard deviation of 1.1 degrees, does this prove her claim
at the 5 percent level? What about at the 1 percent level?
07 Regression Analysis 7