Stat Unit 3 - T Test
Stat Unit 3 - T Test
1.41
1.2 TESTING OF HYPOTHESIS FOR MEAN AND
DIFFERENCE OF MEANS USING
t-DISTRIBUTION.
1.2 (a) t-test
a. Student's t
Let x1, z, ..n be a random sample of size n from a
normal
population with mean and variance o.
The student's t test is áefined in the
statistics as
t =
S where x = - ) X , is the
Vn ni=1
n
1
sample mean and S = Wi (; - x) is an unbiased estimate of
n=1
f)= Yo,
v+1
2
2. In the 1+2|
distribution y () =f() = Yo
where t =
S Sf) dt = 1
Vn Vn - i
Total area under the curve is 1.
-ta/2 ta/2
(b) If > u, then the test is one-tail test (right) for the given a
The critical values is t with d.f. = n- 1.
ta/2
(c) If u < un then the test is one-tailed test (left) for the given a.
The critical value is -t, with d.f = n - 1.
-te/2
1.44
Vn - 1
where x ’ mean of the sample
sample size
sample s.d.
6. Conclusion :
(a) If -lal2 <l < lal2 , then we accept Ho;
otherwise,
we reject HÍ
(b) If t <l¡o then accept HÙ,
otherwise, we reject H,
(c) If -t, < I, then accept Ho, otherwise, we
reject Ho
1.2(a) Problems under t-test single mean
Example 1.2a(1).
A sample of ten house owners is drawn and the
following values of
their incomes are obtained, mean Rs. 6,000 standard deviation Rs. 650.
test the hypothesis that the average income of house owners of the
town is Rs. 5,500.
Solution : Given : n = 10 < 30 (So, we can apply (-test)
S= 650, x = 6000, u = 5500
1. HÍ : u= 5500
HË : u 5500 [Two-tailed test]
3 a= 5% with d.f. = n -1 10 - 1 =9
4
Critical region :
2262 =2.262
Testing of Hypothesis 1.45
6. Conclusion
Example 1.2a(2).
A machinist is making engine parts with axle diameters of 0.7 inch.
A random sample of 10 parts shows a mean diameter of 0.742 inch
with astandard deviation of 0.04 inch. Compute the statistic you would
use to test, whether the work is meeting the specification.
[A.U M/J 2006]
Solution : Given :n= 10, x = 0.742, s = a =0.04, u = 0.7
1. HÍ: u = 0.7
-ta/2 Lal2
5. =-2.262 =2.262
The test statistic :
0.742 -0.7
= 3.15
0.04
Vn -+ V9
1.46
Testing of Hypothesi
Conclusion :
31
= 2.58 i.e., x = 2.58
12
185
-
ta
1.796
Testing of Hypothesis 1.47
Example 1.2.a(4)
Arandom sample of 16 values from a normal population showed a
mean of 41.5 inches and the sum of squares of deviations from this
mean equal to 135 square inches. Show that the assumption of a mean
of 43.5 inches for the population is not reasonable. Obtain 95 percent
and 99 percent fiducial limits for the same.
Solution : Given : n= 16, x= 41.5, u= 43.5
E(r-x) = 135,
135
= = 8.44
n 16
S = 2,9
1. HÍ : u = 43.5
2. HÍ : u 43.5 |Two-tailed test]
3 a= 5% and a = 1% d.f. = n-1 = 16 -- 1 = 15
4 Critical region
-ta/2 la/2
-2.131 (5%) = 2.131 (5%)
-2.947 (1%) = -2.947 (1%)
SIS
41.5 - 43.5 -2
2.9 0.749 -2.67
V15
Conclusion
If -a/
<I<la/2s We accept HÍ ; otherwise, we
Here, -2.131 -2.67 < 2.131 reject H
So, we reject HÍ at 5%
level of significance.
Here, -2.947 < -2.67 < 2,947
So, we accept Ho at 1%
level of significance.
We conclude that the
7.
assumplion
95% fiducial limits for u:
is reasonable.
(d.f = 15)
S
Vn
41.5 ± 2.131 = 41.5 1598
39.902 < u 43.098
99% fiducial limits for u :
(d.f = 15)
S
= 41.5 +
t 2.947
Vn = 43.71 and 39.29
39.29 < u< 43.71
Example 1.2.a(5)
A random sample of 10 bovs had the
i01, 88, 83, 95, 98, 107, 100. Do these
folowing .Q's : 70, 120, 10
of a
data support the assumpu
populatiog mean LQ of 100 ? Find a
reasonable range in which
most oB the mean 1.Q. values of
samples of l0 beys He.
Solution: |A.U AM 2015 R-8. N/D 2012 R-8, MJ 2016 R-13)
[A.UN/D 2017 R-13}
Testing of Hypothesis
Tota!
96312
(97.2)? = 9631.2 - 9447.84
- (r)² 10
n
= 183.36
S = 13.5
1. HÍ : u = 100
100 [Two-tailed test)
2. HË : u
a= 59%. d.f = n - 1 = 10 - 1 = 9
3
4 Critical region
tal2
-ta/2
=-2.262 =2.262
- () = 2.883
12(0.49)2 = 0.00015
= 0.012
1 HÍ : ñ = 0.5
V
-ta/2 ta/'
=-2.201 =2.201
So, we reject H,
:. The average packing cannot be taken to be 0.5 kg.
Example 1.2a(7)
The mean lifetime of a sample of 25 bulbs is found as 1550 hours
With a S.D. of 120 hours. The company manufacturing the bulbs claims
that the average life of their bulbs is 1600 hours. Is the claim acceptable
at 5% level of
significance?
Solution: Given:n =25, =1550, s= 120, u=1600
I. H, : u= 1600
2. H u <1600
|One-tailed test (left)]
3
a= 5%, d.f. = n--1 = 25 -1= 24
1.52 Testing Hypoh
4 Critical region :
-la/
=-1.711
Example 1.2a(8)
A
of machinist
is
1.75 cm. A expected to make engine
random parts
1.85 cm, with a S.D. 10 parts with axle
sample of
you say that the
of 0.1
Work of
diameter
cm. On the showS a mean diameter
the basis of this
Solution: Given :n= 10, machinåist inferior? sample,
is would
1. HÍ : u = 1.75 x=185, =175, s =0.1
2.
H: 1.75 [Two-tailed testl
3. a= 5 . df.
=n-i = 10 - 1 = 9
Testing of Hypothesis 1.53
4. Critical region
--tal2 ta/2
=-2.262 = 2.262
where, nË
y=
and
th,
1
- 22 - +Eo-p
n
IS an
unbiased estimate of the population variance o.
1.56
Testing of H
t follows -distribution with degrees of freedom + Hypothes
Under the null hypothesis HÍ, that () samples have n-
2.
from the population with the same mcans 1.e., uË=u2, or (Y been dra,
sample means x and y do not differ significantly, take the statict:
with degrees of
freedom, nËt ny-2,
n1 n2
If | < table value of ta accept HÍ, at a level of significance.
Assumption : The following assumptions are made in using this tes
(i) Parent populations, from which the samples have been drawm
ar
normally distributed.
nË t n - 2
n1 sít n2 S~ 1 1
nj t n - 2 n1
statistic
Note 1. If n=n, =n, t can be used as a test
n -1
correlated)
Note 2. If the pairs of values are in some way associated (or
findthe
we cannot adopt the case under Note 1. Then, we have to meal
-ta/2 ta/2
(D) II u,>u, then the test is one-tailed test (right) for the given c,
ta/2
(c) If u < uz, then the test is one-tailed test (left) for the given
The critical value is -tg with d.f. = n t n, -2
-la/2
where S =
n sí + n, s5
1 1
nË t n, -2
6. Conclusion :
(b) Ift< la, then we accept Ho for one-tailed test (right); otherwise,
we reject HÍ
(C) I1 -la <t, then we accept Ho for one-tailed test (left); otherwSC,
we reject Ho
Testing of Hypothesis
Example 1.2b(1)|
tine (in seconds)
Two horses A and B were tested accofding to the
:
to run a particular race with the foilowing results
28 30 32 33 33 29 34
Horse A :
Horse B 29 30 30 24 27 29
level.
Test whether the horse Ais running faster than B at 5%
[Anna, May 2001, N/D 20091
Solution : Given : n 7, n, = 6
= 219
£x = 28 + 30 + 32 + 33 + 33 + 29 + 34
29 = 169
Ex = 29 + 30 + 30 + 24 + 27 +
219 = 31.29
7
169
28.17
6
4787
(28.17) = 797.83 793.55 = 4.28
6 -9
29.61 + 25.68
7(4.23) + 6 (4.28)
n t n -2 7+6 - 2 11
55.29
= 5,03
11
ta=1.796
X1 - X 31.29 -- 28.17
= 2.498
1
V(so3)
6. Conclusion
If 1< Las then we accept Ho ; otherwise, we reject H)
Here, 2.498 1.796
So, we reject HÍ at 5% level of
significance.
Example 1.2b(2)
A group of 10 rats fed on
ldiet A and another group of 8 rats fed
on diet B, recorded the
following
Diet A : 5, 6, 8, , 12, 4, 3, 9, 6, increase in weight (gms).
10
Diet B: 2, 3, 6, 8, 10, 1, 2, 8
Does it show superiority of diet A over diet B.
[A.U. N/D 2011]
Solution : Given : nË = 10, n, = 8
2 = 5+ 6 t 8 + 1 +
12 t 4 t 3 + 9 + 6+
10 = 64
Ex = 5 + 6 +8'+1 + 12+ 4
+3 + 9 + 6 + 10 = 512
2I, = 2+3 + 6 + 8 + 10 + 1
+ 2+8 = 40
E= 2+3 +6 +8² +10 + 1² +2 +
8² = 262
Testing of Hypothesis S 1.61
Ex 64
= 6.4
10 10
40
=5
2
512
10 (6.4) 10.24
282
25 =10.25
la=1.75
XË - X 6.4 - 5
1 1 1 1
11.525
10 8
1.4
= 0.869
1.6103
6. Conclusion :
It<tas then we accept Ho; otherwise, we reject Ho
1.66
Testing of Hypothe
Example 1.2b(5)
measurements of the
The following random samples are heat produg
capacity (in millions of caBories per ton) of specimen's of coals fr
two mines.
47640
7940
6
338,727,500
5 (8230)
67745500 - 67732900
12,600
378316200
n2 (7940)
= 63052700 - 63043600
9,100
Testing of Hypothesis 1.67
| " tn, -2
(5) (12600) +(6) (9100)
5 +6- 2
117600
9
= 13066.67
1. HÍ : u1 = 2
2. H :u u [Two-tailed test)
3. a= 1%, d.f. = n, + n, -2 = 5 +6-2 = 9
4. Critical region :
-tal' ta/2
=-3.25 =3.25
2 1 1
V 13066.67
6. Conclusion :
Example 1.2b(6)|
independent samples are chosen from two schools A and n
Two
subject. The scores of the students a
a commnon test is given in a
follows :
70 43 94 68 33
School A : 76 68
40 48 92 85 70 76 68 22
School B
}x = 76 + 68 + 70 + 43 + 94 + 68 + 33 = 452
£x, = 40 + 48 + 92 + 85 + 70 + 76 + 68 + 22 = 501
Ex =40 + 48 + 92 + 85 + 70 + 76 + 68 + 22 = 35377
452 501
= 64.6, 62.6
8
31698
7 (64.6) = 4528.3 -4173.16 =: 355.14
35377
n2 (62.6)² = 4422.13 - 3918.76 = 503.3/
ta=1.771
64.6 - 62.6
= 0,173
11.58
1 1
n2
6. Conclusion :
If t<ta then we accept Ho ; otherwise, we reject Ho
Here, 0.173 < 1.771
So, we accept HÍ
Example 1.2b(7)|
Ihe following table gives the values of protein from Kangeyam cow's
milk and bufalo's milk. Examine if these differences are significant.
Cow's milk : 1.90 1.95 2.00 2.02 1.85 1.80
Buffalo's milk 2.12 2.00 2.20 2.45 2.20 2.10