Professional Documents
Culture Documents
TEST OF HYPOTHESIS
There are many problems in which, rather then estimating the
value of a parameter, we need to decide whether to accept or
reject statement about the parameter. This statement is called
hypothesis and the decision making procedure about the
hypothesis is called Hypothesis-Testing. For e.g.
a) The teaching method in both the institutes are effective
b) The average IQ of normal human being is 113
Statistical Hypotheses
A verbal statement or claim ,about a population
parameter is called a Statistical Hypotheses To Test a
population Parameter we state a pair of Hypotheses:-
a) NULL HYPOTHESES
b) ALTERNATE HYPOTHESES
CONTD..
Null Hypotheses H0:It is a statistical hypotheses that contains a statement of
Equality such as :- , or
, , .
>,< or
CONTD..
e.g1.......H 0 : k
.............H1 : k
e.g 2......H 0 : k
.............H1 : k
(Stating
PROBLEM1
the Null and Alternate Hypotheses)
Solution
a) The claim the proportion.82% can be written
as p = 0.82 contains the statement of equality ,it
becomes the null hypotheses.
H0: p = 0.82(claim)
H1: p 0.82
bThe claim the mean..than 20 ouncescan be
written as > 20.Its complement is 20.
because 20. contains the statement of
equality it becomes null hypotheses
Thus
H 0 : 20ounces
H1 : 20ounces (claim )
Reject H
H is true
Correct decision
Type I error
H is false
Type II error
Correct decision
PROBLEM 2
(Identifying TypeI and TypeII error)
The USDA limit for salmonella
contamination for chicken is 20%. A meat
inspector reports that the chicken produced
by a company exceeds the USDA limit.You
perform a hypotheses test to determine
whether meat inspectors claim is true.When
will type I or type II error occur?
Solution
Let p represent the proportion of the chicken that is
contaminated. The meat inspectors claim is more than 20%
is contaminated . Null and alternate hypotheses is as follows.
H0:
H1:
p
0.2
p > 0.2 (claim)
LEVEL OF SIGNIFICANCE
The probability of committing Type I error is called level of
significance and is denoted by Greek letter alpha
Definition:
Probability of committing Type II error is
denoted by Greek letter
Definition (POWER)
The probability that null hypotheses will be
rejected when ,alternate hypotheses is true
is called Power of the test. Thus
Power + = 1
Critical Region
A crical region in the sample space which
amount to rejection of H0 is termed as critical
region or region of rejection.Then
P( X w H 0 )
P( X w H1 )
where w , the complementaryset of is
called the acceptance region
Problem 3
A process for making steel pipe is under control if the
diameter of the pipe has a mean of 3.0000 inches with a
standard deviation of 0.0250 inch. To check whether the
process is under control, a random sample of size n = 30 is
taken each day and the null hypothesis = 3.0000 is
rejected if X is less than 2.9960 or greater than 3.0040. Find
(a) The probability of a Type I error
(b) The probability of a Type II error when = 3.0050
inches.
3.0040 3.0000
0.0250/ 30
/
n
0
.
0250
/
30
P Z 0.876 1 P ( Z 0.876)
since
/ n
2.9960 3.0000
/ n
st andardnormaldistribution.
F (0.876) 1 F (0.876) 2 F (0.876) 0.381
2.9960 3.0050
0.0250/ 30
P(1.97 Z .219)
since
/ n
3.0040 3.0050
0.0250/ 30
/ n
st andardnormaldist ribut ion.
F (.219) F (1.97)
0.4133 0.0244 0.3889
Problem 4
Suppose that for a given population with = 8.4 in2 we want
to test the null hypothesis = 80.0 in2 against the alternative
hypothesis < 80.0 in2 on the basis of a random sample of
size n = 100.
(a) If the null hypothesis is rejected for X < 78.0 in 2 and
otherwise it is accepted, what is the probability of a Type
I error?
(b) What is the answer to part (a) if the null hypothesis is
80.0 in2 instead of = 80.0 in2 ?
78 80
P
/ n 8.4 / 100
Test of Hypotheses
To illustrate the general concepts involved in deciding
whether or not a statement about the population is true or
false, suppose that a consumer protection agency wants to
test a paint manufacturers claim that the average drying time
of his new fast-drying paint is 20 minutes. It instructs a
member of its research staff to take 36 boards and paint them
with paint from 36 different 1-gallon cans of the paint, with
intention of rejecting the claim if the mean drying times
exceeds 20.75 minutes otherwise, it will accept the claim and
in either case it will take whatever action is called for in its
plans.
Test of Hypotheses
(contd)
X 20.75 20
P( X 20.75) P
2.4 / 36
/ n
P( Z 1.875) 1 F (1.875)
1 0.9696 0.0304
0.0304
x Minutes
= 20
20.75
Accept the claim Reject the claim
that = 20
that = 20
Test of Hypotheses
(contd)
Consider the other possibility where the procedure fails to detect that
> 20 minutes. Suppose that true mean drying time is = 21 minutes
so calculate the probability of getting a sample mean less than or equal
to 20.75 minutes and hence erroneously accepting the claim that
= 20 minutes.
X 20.75 21
P ( X 20.75) P
/ n 2.4 / 36
P ( Z 0.625) F (0.625)
0.2660
0.2660
x Minutes
20.75
= 21
Accept the claim Reject the claim
that = 20
that = 20
Problem 5
Suppose that for a given population with = 8.4 in2 we want
to test the null hypothesis = 80.0 in2 against the alternative
hypothesis > 80.0 in2 on the basis of a random sample of
size n = 100.
(a) If the null hypothesis is rejected for X >82.0 in 2 and
otherwise it is accepted, what is the probability of a Type
I error?
P (typeIerror )
P( X 82)
X-
82 80
P
8
.
4
n
100
P(Z 2.38)
1 - P( Z 2.38)
1 - F(2.38)
1 - .9913
0.0087
Problem 6
A process for making steel pipe is under control if the
diameter of the pipe has a mean of 3.0000 inches with a
standard deviation of 0.0250 inch. To check whether the
process is under control, a random sample of size n = 30 is
taken each day and the null hypothesis = 3.0000 is
rejected if X is less than 2.9960 or greater than 3.0040. Find
(a) The probability of a Type I error
3.0040 3.0000
0.0250/ 30
/
n
0
.
0250
/
30
P Z 0.876 1 P ( Z 0.876)
since
/ n
2.9960 3.0000
/ n
st andardnormaldistribution.
F (0.876) 1 F (0.876) 2 F (0.876) 0.381
Problem 7
Suppose that for a given population with = 8.4 in2 we want
to test the null hypothesis = 80.0 in2 against the alternative
hypothesis < 80.0 in2 on the basis of a random sample of
size n = 100.
(a) If the null hypothesis is rejected for X < 78.0 in 2 and
otherwise it is accepted, what is the probability of a Type
I error?
78 80
P
/ n 8.4 / 100
(since n is large)
P( Z 2.38)
F (2.38) 0.0087
When unknown
If a small (n < 30) random sample is
coming from the normal population then
X
S/ n
is a random variable with t-distribution with
= n 1 degree of freedom.
The standard normal distribution provides a
good approximation to the t distribution for
samples of size 30 or more.
X 0
Z
/ n
Alternative
hypothesis
Reject null
hypothesis if:
< 0
Z < - z
>0
Z > z
Z < - z/2 or
Z > z/2
76.7 73.2
8.6 / 45
2.73
unknown
X 0
Z
S/ n
Alternative
hypothesis
Reject null
hypothesis if:
< 0
Z < - z
>0
Z > z
Z < - z/2 or
Z > z/2
X 0
t
S/ n
Alternative
hypothesis
Reject null
hypothesis if:
< 0
t < - t
>0
t > t
t < -t/2
or t > t/2
x 25 and s 4.195
S/ n
Significance Testing
P-Value Approach:
The P- value is the smallest level of significance
that would lead to rejection of the null hypotheses
H0 If Z is the computed value of the test statistic ,
then the P-value is
i) If H0: = 0, H1: 0
P= 2(1-F(|Z|))
ii) if H0: = 0, H1: > 0
P= 1-F(Z)
iii) if H0 : = 0, H1 : < 0
P= F(Z)
PROBLEM 8
Suppose that we want to test on the basis of n = 35
determinants and at the 0.05 level of significance
whether the thermal conductivity of a certain kind
of cement brick is 0.340, as has been claimed.
From information gathered in similar studies, we
can expect the variability of such determination is
given by = 0.010and suppose that the mean of
35 determination is 0.343
Solution
Hypotheses test method
1. H0: = 0.340
H1: 0.340
2 = 0.05
3 Criterion: Reject the null hypotheses if
Z< -1.96 or Z>1.96
where
X 0
4. Calculation:
Z=1.77
5 Decision since Z=1.77<1.96, H0 cant be
rejected
P- value approach
P=2(1-F(1.77))=0.0768
Since P >=0.05 H0 cant be rejected, agreeing
with our earlier result.