5_Script_Hypothesis-Large Sample test & Chisquare test200320111103035454
5_Script_Hypothesis-Large Sample test & Chisquare test200320111103035454
5_Script_Hypothesis-Large Sample test & Chisquare test200320111103035454
null hypothesis.
1
It is claimed by the railway authority that a particular train has an average speed of 120 k.m.
per hour. During last 100 trips it was found that the average speed was 116 k.m. per hour
with standard deviation of 15 k.m. per hour. Is the claim justified?
Solution:
Step 1: Here and .
Step 3:
Step 4: Since the given test is one tailed test hence the critical value for 5% level of
significance is obtained from the tables of normal distribution and is
Step 2: H 0 : 1 2 vs H1 : 1 2
2
S12 S22
SE = 11.31
n1 n2
Step 4: Since the given test is two tailed test hence the critical value for 5% level of
significance is obtained from the tables of normal distribution and is
Boy 121 83 10
Girl 81 81 12
Step 2: H 0 : 1 2 vs H1 : 1 2
Step 3: Difference S1 S2 2
S12 S22
SE = 1.14
2n1 2n2
3
Step 4: Since the given test is two tailed test hence the critical value for 5% level of
significance is obtained from the tables of normal distribution and is
PQ
SE 0.02
n
Under Ho the test statistic is
Step 4: Since the given test is two tailed test hence the critical value for 1% level of
significance is obtained from the tables of normal distribution and is
4
Illustration 5: In a factory production is to be carried on a machine and it is known that in a
batch of 500 articles 16 articles are found defective. After maintenance of that machine, 3
defective articles are found in a batch of 100 articles. Can it be concluded that the
performance of machine is improved after maintenance?
Solution:
x1 x
Step 1: Here n1 = 500, n 2 = 100, x1 = 16, x 2 = 3, p1 = = 0.032, p2 = 2 = 0.03
n1 n2
and .
Step 2: H 0 : P1 P2 vs H1 : P1 P2
1 1
SE PQ
n1 n 2
n p n p 19 581
Where P 1 1 2 2 ,Q
n1 n2 600 600
SE 0.0192
Under Ho the test statistic is
Step 4: Since the given test is one tailed test hence the critical value for 5% level of
significance is obtained from the tables of normal distribution and is
Confidence Interval:
As we have discussed earlier, when an estimator is used to predict a single value of
parameter then it is called a point estimate. In practice an interval is obtained which may
include the value of parameter with a certain degree of confidence. The interval developed by
using standard error of the statistic is called confidence interval or fiducial interval.
Confidence interval for the population mean is given as
x (critical value for given )( SE )
Confidence interval for the population proportion is given as
5
p (critical value for given )(SE )
For illustration 1 the 95% confidence interval for population mean can be obtained as
116 (1.96)(1.5) (113.06, 118.94)
For illustration 5 the 99% confidence interval for population proportion can be obtained as
under
0.16 (2.575)(0.02) (0.1085,0.2115)
normal variate is called chi square distribution with n degree of freedom. i.e. if x1 , x2 ,......., xn is
a random sample of size n drawn from a normal population with mean and variance
2
x
n 2
then the distribution of statistic is called chi square distribution with n df. It
2
i 1
should be noted that the chi square distribution is a function of its degree of freedom and it is
also considered as non parametric test.
Important Properties:
Followings are some important properties of chi square distribution:
i. It is a continuous distribution
ii. Its mean is equal to its df and variance is 2(df)
iii. Its skewness is always positive
iv. For large value of sample size it follows normal distribution.
Important Application:
Following are some important applications of chi square distribution.
i. To test the goodness of fit
ii. To test the independency of attributes
iii. To test the significance of variance.
(i) To test goodness of fit:
6
This test is used to test the hypothesis that there is no significant difference between
observed and expected frequencies or to test the hypothesis that the observed frequencies
are distributed according to specified probability law.
Let us consider the illustrations to understand the above application
Illustration 6: The information regarding the daily demand of milk bag of a particular dairy at
a retail distribution center is given below. Can it be said that the demand of milk bag does not
depend on the day of week?
Day Mon Tue Wed Thu Fri Sat Sun
Solution: Ho: demand of milk bag does not depend on the day of week, i.e. the probability of
1
demand of milk bag at any day is same and is 7
Expected
Demand
(Oi Ei ) 2
Day P( x) frequency
Ei
(Oi )
Ei N P( x)
1 4
Mon 14 12
7 12
1 16
Tue 16 12
7 12
1 16
Wed 8 12
7 12
1
Thu 12 12 0
7
1 1
Fri 11 12
7 12
1 9
Sat 9 12
7 12
1 4
Sun 14 12
7 12
7
50
Total 84 1 84
12
Illustration 7: In classical random experiment of tossing five coins 320 times the distribution
of number of heads is as under:
Number of heads 0 1 2 3 4 5 Total
heads is
p( x) nCx p x q n x : x 0,1, 2...5.
x 5 x
1 1
Cx
5
2 2
Expected
Observed frequency 5 x
1 1
x
(Oi Ei ) 2
Number of heads p( x) 5Cx frequency
(Oi ) 2 2 Ei
Ei N P( x)
0 5 0
1 1 1
0 8 5
C0 10 0.40
2 2 32
1 51
1 1 5
1 42 5
C1 50 1.28
2 2 32
8
2 5 2
1 1 10
2 116 5
C2 100 2.56
2 2 32
3 5 3
1 1 10
3 90 5
C3 100 1.00
2 2 32
4 5 4
1 1 5
4 52 5
C4 50 0.08
2 2 32
5 5 5
1 1 1
5 12 5
C5 10 0.40
2 2 32
(Oi Ei ) 2
The test statistic is 5.72
2
i Ei
At 5% level of significance and with n – 1 = 6 – 1 = 5 df the critical value from chi square
table is 11.07.
Since, 5.72 < 11.07 so at 5% level of significance and 5 df, the null hypothesis is accepted
and hence we conclude that the coins are unbiased.
(ii) Test of independence of attributes:
Illustration 8: The result of last examination of a sample of 100 students is as under:
Gender First class Second class Pass class Total
Boys 10 28 12 50
Girls 20 22 8 50
Total 30 50 20 100
Can we say that the performance in examination depends upon gender of student?
Solution: Ho: the performance in examination does not depend upon gender of students
Summary:
In this talk we have discussed large sample tests for variable and for proportion. Tests for
variable are (i) Test for mean, (ii) test for two means, (iii) test for two standard deviations.
Tests for proportion are (i) test for single proportion, (ii) test for two proportions. We have
seen a method of determining confidence interval estimation based on the above tests. We
9
have discussed also chi square distribution with its properties .The applications are for
testing of single variance, independence of attributes and goodness of fit.
10