Testing of Hypothesis - Fall
Testing of Hypothesis - Fall
Steps in solving testing of hypothesis: The major steps involved in a hypothesis testing
are outlined as follows:
Reject null and accept alternative Reject alternative and accept null
Types of Hypotheses:
There are two types of hypothesis.
1. Null Hypothesis ( H 0 )
2. Alternative Hypothesis ( H 1 )
Null Hypothesis ( H 0 ): A statement about the value of a population parameter. That is a
null hypothesis is that statement which we want to reject. Null hypothesis denoted by H 0
For the above example the number 3 hypothesis is called hull hypothesis. That is there is
no difference between the two processes. Null hypothesis can be written as follows
H 0 : µ = µ0
-1- TM
Alternative Hypothesis ( H 1 ): A statement that is accepted if the sample data provide
evidence that the null hypothesis is false. Alternative hypothesis is usually denoted
by H 1 .
The difference between Type I Error and Type II Error given as below:
• Rejecting the null hypothesis when it is actually true is called type I error
On the other hand, accepting the null hypothesis when it is actually false is called
type II error.
On the other hand, if the probability of type II error is subtracted from 1 then that
term is called power of the test.
-2- TM
Test statistic: A value, determined from sample information, used to determine
whether or not to reject the null hypothesis is called test statistic.
Example: There are many types of test statistic. As like, z test, t test, F test, χ 2 test etc.
Mean/Average test:
t- test: Testing for a Population Mean where sample size is small i.e less than 30,
and Population Standard Deviation Unknown. The test statistic is the t distribution is
X −µ
t=
s/ n
The critical value of t is determined by its degrees of freedom equal to n-1.
Z-test: Test for the population mean from a large sample ( (n ≥ 30) . The Z statistics
is defined as
( X − µ) s
z= ; here σ =
σ n
so we can write
( X − µ)
z=
s
n
Here,
X is sample mean.
µ is population mean.
σ is population standard deviation.
s is sample standrad deviation.
n sample size.
-3- TM
Decision Rule
If Computed value < critical value then Null Hypothesis is accepted.i.e. Alternative
hypothesis is rejected
If Computed value > critical value then Null Hypothesis is rejected. i.e. Alternative
hypothesis is rejected
Step 1
State the null and the alternative hypotheses that is we have to state.
H 0 : µ = µ 0 and H 1 : µ > µ 0 or
µ < µ 0 or
µ ≠ µ0
Step 2
Select the significance level.
Step 3
Calculate test statistic. Here we have to calculate z test.
Step 4
State the decision rule. That is
Sol:
Here the null and the alternative hypotheses are
H 0 : µ = 5 i.e. the adjustment in the machine is in order
H1 : µ ≠ 5 i.e. the adjustment in the machine is not in order
X −µ
Now the test statistic is: t =
s/ n
Here; =x 5.02,= µ 5,= s 0.002,= n 10
5.02 − 5
= = 31.62
0.002 10
-4- TM
α 5%
Here (n-1) =9, = = 0.025
2 2
From the t table, the tabulated value of t is, ttab = ± 2.262.
As, the calculated value is greater than the tabulated value, that is,
tcal =31.62> ttab =2.262.
So null hypothesis is rejected.
Hence, the adjustment in the machine is not in order.
Problem: The mean life time of a sample of 100 light tubes produced by a company
is found to be 1580 hours and the population standard deviation is 90 hours. Test the
hypothesis at the 5% level of significance that the mean of the tubes produced by the
company is 1550 hours.
Solution:
So,
X − µ 1580 − 1550
=z = = 3.33
σ n 90 100
We know,
Re ject H 0 if z > z 0
Otherwise accept H 0
So null hypothesis is rejected. Hence the mean life time of the tubes produced by the
company may not be 1550 hours.
-5- TM
Variance test:
χ n2−1 =
(n − 1)s 2
σ 2
Assumptions:
1. The sample should contain at least contain 50 observations.
2. The sample observation should be independent of each other
3. It is use for variance test.
-6- TM