Test of Hypothesis
Test of Hypothesis
Steps in solving testing of hypothesis: The major steps involved in a hypothesis testing
are outlined as follows:
-1- TM
3. There is no difference between the process
Types of Hypotheses:
There are two types of hypothesis.
1. Null Hypothesis ( H 0 )
2. Alternative Hypothesis ( H 1 )
H1 : 0
or
H1 : 0
Then this type of test is called one tailed test.
-2- TM
10- 18
0 1.65
Critical value
One-Tailed Test
10- 20
Region of Region of
Do not
rejection rejection
reject
[Probability=.025] [Probability=.025]
[Probability =.95]
-1.96 0 1.96
Critical value Critical value
-3- TM
Type II Error: Accepting the null hypothesis when it is actually false.
Example: Suppose a person getting negative result in HIV test whether he is HIV
positive.
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.
Decision Rule
-4- TM
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
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.
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
Re ject H0 if t t0 or -t −t0
Or
Accept H 0 if t t0 or -t −t0
Step 5
Make a decision and interpret the results.
Example-1: A drug manufacturer has installed a machine which fills automatically 5
grms in each phile.Randomly 10 sample was taken and found to contain 5.02 grams
on an average in a phial. The Standard deviation of the sample was 0.002 grms.Test at
5% levels of significance, if the adjustment in the machine is in order.
-5- TM
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
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.
Example-2: An automobile tyre manufacturer company said that the average life of
certain grade of tyre is 25,000 km.A random sample of 15 tyres were tested and mean
and standard deviation of 27,000 and 5000 kms respectively, were computed. At
5%level of significance is it reasonable to conclude that the average life of certain
grade of tyre is greater than 25,000 km.
Z-test: Test for the population mean from a large sample ( (n 30) . The Z statistics
is defined as
-6- TM
( X − )
z=
n
Here,
X is sample mean.
is population mean.
is population standard deviation.
s is sample standrad deviation.
n sample size.
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
-7- TM
Here z = 3.33 and tabulated value z 0 is 1.96.
As 3.33>1.96 that is z z 0 ,
So null hypothesis is rejected. Hence the mean life time of the tubes produced by the
company may not be 1550 hours.
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.
-8- TM