SMFDA
SMFDA
TOPICS:
Sampling distribution of ¿
Sampling distribution of ( p )
CSE -200
2
POPULATION μ,σ
Sample (SRSWR/SRSWOR)
X 1 , X 2 , X 3 ,… … … … , X n(ls).
Sample mean , X
T, Estimator
therefore
E ( X 1) =E ( X 2 ) =… … … … .. E ( X n ) =μ
2
V ( X 1 ) =V ( X 2 )=… … … … ..V ( X n )=σ
E ( X )=E { X 1 + X 2+ … … … . X n
n }
1
¿
n
[ E ( X 1 ) + E ( X 2 ) + … … … … .. E ( X n ) ]
1
¿ [ μ+ μ+… … … … . μ ]
n
1
¿ (nμ)
n
¿μ
And V ( X )=V { X 1 + X 2 +… … … . X n
n }
()
2
1
¿ . V ( X 1+ X 2+ … … … . X n )
n
2
∴ V ( α + βX )=β V ( X)
1
2[
¿ V ( X 1 ) +V ( X 2 ) +… … … … .. V ( X n ) ]
n
∴( X ' s is indep.)
1 2 2
¿ 2
[ σ + σ +… … … … . σ 2 ]
n
2
1 ( 2) σ
¿ 2
nσ =
n n
2
σ
⇒ V ( X )=
n
Note:
2
σ
We have, The sampling distribution of sample mean is x N (μ , )
n
σ
1 Standard error of x , SE( x )=
√n
2 If n → ∞ , SE ( x ) → 0
x −μ
Z= N (0 , 1)
σ
√n
x −μ
Z= N (0 , 1)
s , If σ 2 is unknownis LS
√n
x−μ
t= t n−1 ,
S 2
If σ is unknownis SS
√n
T ∓t α SE ( T ) , for SS
[ x−1.9 6
s
√n
, x +1.96
s
√n
,
] for LS
3 Sampling distribution of ( x− y ) :
CSE -B
CSE -A
2 POPULATION
POPULATION μ1 , σ 1 2
μ2 , σ 2
and
V(X ± Y ¿=V ( X ) +V (Y )
( x − y )−( μ1−μ 2)
Z= N (0 , 1)
√
2 2
s1 s 2
+
n1 n2
Testing of Hypothesis
Population
2
μσ P
unknown
WR/WOR
¿ 30 , SS / ¿ 30 , LS
Sample X 1 , X 2 , X 3 ,… … … … X n
p :sample proportion
2
S :mean square
Basic definitions
Null hypothesis
Level of significance
Type-I & Type –II errors
1 Problem :
SOLUTION:
POPULATION
2+ 3+6+8+ 11 30
¿ = =6
5 5
μ=6
2 Population Variance, σ 2
N
1
σ = ∑ ( Y i−μ )
2 2
N i=1
5
1
σ = ∑ ( Y i−μ )
2 2
5 i=1
2 1
⇒ σ = 5 {( 2−6 ) + ( 3−6 ) + ¿ ( 6−6 ) + ( 8−6 ) + ( 11−6 ) }
2 2 2 2 2
2 1
σ = { 16+9+ 0+4 +25 }
5
1
¿ ( 54 )=10.8
5
2
σ =10.8
3 Population SD, σ
σ =√ PopulationVariance , σ 2
¿ √ 10.8
σ =3.29
POP {x , y , z}
{ } { }
( x , x ) , ( x , y ) , (x , z ) , ( x , y ) ,( x , z )
¿( y ,x),( y, y),( y, z) ¿ , ,( y , z )
¿ ( z , x ) , ( z , y ) , (z , z ) ¿,,
n= 2 , 9=32=Nn
POP. Size N = 5
Y 1=¿ 2, Y 2=¿ 3, Y 3=¿ 6 ,
Sample size n = 2
Y 4 =¿8, Y 5=¿11
SRSWR
∴ The no of samples N n=5 2=25(LS)
Samples:
Mean of each sample X 1 =2 X 2 =2.5 X 3 =4 X 4 =5 X 5 =6.5
x=
∑ of the obs
no of obs
X 1 + X 2 +… … … . X n −wr
¿
n wr
2+ 2.5+4 … … … .+9.5+11
¿
25
150
¿
25
¿6
⇒ x=6 (¿ μ=Population mean)
25 i=1
{ }
( 2−6 )2+ (2.5−6 )2+ … … … . ( 6.5−6 )2
1 ( 2.5−6 )2+ … … … . (7−6 )2
¿ .
25
.
2 2
( 6.5−6 ) +… … … . ( 11−6 ) .
1
¿ [ 135 ]
25
2
s =5.4
6 Sample sd, s :
s= √ sample variance
s= √ s 2
¿ √ 5.4
s=2.32
1
¿ [ 135 ] =¿
24
2
S =5.625
10.8
x N (6 , )
2
x N (6 , 5.4)
T, E(T), V(T)
S.E (( T )=+ √ V (T )
S.E ( ( x )=+ √ V ( x )
¿ √ 5.4
¿ 2.32
Note: If σ is unknown,
2
σ is estmated by s in LS
2 2
2
s
x N (μ , )
n
5.4
x N (6 , )
2
x N (6 , 2.32)
SRSWOR
N 5
( ) ()
The no. of samples n = 2 =10.
Samples
Mean of each sample X 1 =2.5 X 2 =4 X 3 =5 X 4 =6.5
sample (8,11)
sample
Now, inSRSWOR,
x=
∑ of the obs
no of obs
X 1 + X 2 +… … … . X n
¿
nwor
2.5+4 … … … .+9.5
¿
10
60
¿
10
¿6
⇒ x=6=μ
⇒ x is UBE for μ
2 Sample variance :
10
1
s2= ∑ ( x i−x ) 2
n wor i=1
{ }
( 2.5−6 )2+ … … … . ( 6.5−6 )2
2 2
1 ( 2.5−6 ) + … … … . (7−6 )
¿ .
10
.
2 2
( 6.5−6 ) + … … … . ( 9.5−6 ) .
1
¿ [ 45 ] =4.5
10
s= √ s 2
¿ √ 4.5
s=2.12
{ }
( 2.5−6 )2 +… … … . ( 6.5−6 )2
2 2
1 ( 2.5−6 ) +… … … . ( 7−6 )
¿ .
9
.
2 2
( 6.5−6 ) +… … … . ( 9.5−6 ) .
1
¿ [ 45 ] =¿
9
2
S =5
4 Sampling distribution of sample mean.
We have
( )
2
σ
x N μ,
n
(
x N 6,
10.8
2 )
x N (6 , 5.4)
S.E (( T )=√ V (T )
S.E ( ( x )=√ V ( x )
¿ √ 5.4
¿ 2.32
Note: If σ is unknown
2
σ is estmated by S in SS
2 2
( )
2
S
x N μ,
n
x N 6, ( 52 )
x N (6 , 2.5)
Practice problems
1 Let the population is 3, 6, 9, 15 and 27. Consider all samples of size two
which can be drawn wr/without replacement from this population.
Then. find
(a)The population mean
(b) The population standard deviation
(c)The mean of the sampling distribution of means
(d) The standard deviation of the sampling distribution of means.
2 A population consists of six numbers 4, 8, 12, 16, 20, 24. Consider all
samples of size two which can be drawn wr/without replacement from
this population. Then, find
(a)The population mean
(b) The population standard deviation
(c)The mean of the sampling distribution of means
(d) The standard deviation of the sampling distribution of means.
CASE STUDY
MTE(parameter)
H 0 : μ=32.3
H 1 : μ ≠ 32.3 % (T −T )
H 1 : μ >32.3 %(R−T )
H 1 : μ <32.3 %( L−T )
Los, α =5 %∨1 %
Sample(wr/wor)
⏟
X , X , X , X , X ,… … … … , X =n ( ¿ 30 LS )
1 2 3 4 5 40
Sample data
T −E (T )
Under H 0, the test statistic, Z= SE (T ) N (0 ,1)
x−μ0
Z= N (0 ,1)
s∨√ n
31.4−32.3
⇒ Z cal=
1.6∨ √ 40
−0.9
Z cal=
0.253
Z cal=−3.55
|Z cal|=3.55
Conclusion:
Example:
H 0 : μ=20 (Normal distribution)
2
H 0 :σ =5 (Normal distribution)
1
H 0 : P=
3
(Binomial distribution)
1
H 0 :θ=
3
(Exponential distribution)
i.e., H 0 ; μ=μ0
H 1 ; μ> μ 0 (R−T )
H 1 ; μ< μ 0 (L−T )
STEP – 3
Power of the test: the number (1- β )is called power of the test
STEP – 4
Sample Size, n
Sample mean, x
1
Sample variance( s2 ¿
2
s=
n
∑ ( x−x )2
Sample sd, s
1
Sample mean square ( S2)
2
S=
n−1
∑ ( x−x )2
Sampling distribution
Standard error
Ex:
2 Test for significance difference of two POP mean (or) Test for
√ s 21 s 22
+
n1 n2
X +Y n1 p 1+ n2 p2
Where, ^P= n +n = n + n ^
and Q=1− ^
P
1 2 1 2
( x− y )
t= t n +n −2
√ 1 1
1 2
2
S( + )
t
n1 n2
n s +n s
Where S = 1 1 2 2 2
2 2
2
or S =
∑ ( x−x )2 + ∑ ( y− y )2
t t
n1 +n2 −1 n + n −2
1 2
2 2
n s n s
Where S = 1 1 and S22= 2 1
2
1
n1−1 n2−1
From sample data, we can calculate test statistic Z cal and compared
with Z(tab)
α for either rejecting or accepting
H 0.
If |Z cal|>3 , we reject H 0.
H 1: μ ≠ μ 0 If |Z cal|≤ Z ( tab ) ,
Z ( tab )=1.96 Z ( tab )=2.58 Don’t reject H 0, at
(T −T ) α los
H 1: μ< μ0
If Z cal ≤ Z ( tab ) ,
Z ( tab )=−1.645 Z ( tab )=−2.52
(L−T ) Reject H 0, at α los
:
Problem-1
Synthetic fiber
Sol
Points : H0 :
MBS μ=8 ( μ 0 )
Single pop.
7.8−8
¿ =−2.82
0.5
√50
|Zcal|=2.83
Step 6 : Decision :
T ± t α SE ( T ) , for SS
Now,
T ± t α SE ( T ) , for SS
[ ¿ , UL ] = [ T −Z α SE (T ) , T + Z α SE ( T ) ] , for LS
[ s
= x−1.96 , x +1.96
√n
s
√n
, for LS
]
[
= 7.8−(1.96)
0.5
√ 50
, 7.8+(1.96)
0.5
√50
,
] for LS
=[7.66, 7.93 ]
[ ¿ , UL ] = [ T −Z α SE (T ) , T + Z α SE ( T ) ] , for LS
[ s
= x−2.58 , x +2.58
√n
s
√n
, for LS
]
[
= 7.8−(2.58)
0.5
√ 50
, 7.8+(2.58)
0.5
√50
,
] for LS
=[7.61, 7.98]
c) Maximum Error
Now,
E=Z α SE ( T ), for LS
¿ 1.96 SE (T ) at α =5 %
s 0.5
¿ ( 1.96 ) =(1.96) = 0.13
√n √ 50
And Similarly,
Maximum Error
E=Z α SE ( T ), for LS
¿ 2.58 SE (T ) at α =1 %
s 0.5
¿(2.58) = (2.58) =0.18
√n √ 50
Problem-2 :
Ten individuals are chosen at random from the population and their
heights are found to be in inches 63 , 64 , 63 ,65 ,66 , 70, 69, 70, 71 & 69.
Is it reasonable to believe that the average height 68 inches ?
Sol: H0
μ=68(μ¿¿ 0)¿
H1 μ ≠ 68
⏟
X , X , … … … … X =n (ss )
1 2 10
63 ,64 ,… … …… ….. 69
Sample mean, x
Sample SD, s
x−μ0
t= t n−1
s
√ n−1
Step 1: H 0 : The mean height of individual is 68
Sample size , n = 10 (¿ 30 , SS ¿.
And calculate,
Sample mean, x=
∑x
n
1 1
Sample variance, s = n ∑ ( x−x ) = n ∑ x −x
2 2 2 2
Sample SD, s= √ s2
S.No Sample, X X
2
1 63 3969
2 64 4096
3 63 3969
4 65 4225
5 66 4356
6 70 4900
7 69 4761
8 70 4900
9 71 5041
10 69 4761
Tota 10 10
Sample mean, x=
∑ x = 670 =67
n 10
1
Sample variance, s = n ∑ x −x
2 2 2
1
¿ ( 44978 )−67 2=8.8
10
(Or)
x−μ0
t= t n−1
s
√ n−1
67−68
⇒ t cal=
2.96∨√ 10−1
= 1.01
⇒|t cal|=1.01
Step 6 Decision
Note:
1 1
2
s=
n
∑ ( x−x )2 and
2
S=
n−1
∑ ( x−x )2
⇒ n s2=∑ ( x −x )2 ⇒(n−1)S 2=∑ ( x−x )2
⇒ n s2=(n−1)S 2
2 2
s S
⇒ =
n−1 n
s S
=
√ n−1 √ n
T ± t α SE ( T ) , for SS
Where Z α ∧t α ( Statistical table value )
Now,
T ± t α SE ( T ) , for SS
[ ¿ , UL ] = [ T −t α SE ( T ) , T +t α SE ( T ) ] , for SS
[ x−2.262
s
√ n−1
, x+2.262
s
√ n−1
, for SS
]
[ 67− ( 2.262 )
2.96
√9
,67+(2.262)
2.96
√9
,
] for LS
=[64.76, 69.23]
[ ¿ , UL ] = [ T −t α SE ( T ) , T +t α SE ( T ) ] , for SS
=[ T −3.250 SE ( T ) ,T +3.250 SE (T ) ] , for SS
[
= x−3.25
s
√ n−1
, x+ 3.25
s
√ n−1 ]
, for SS
[
¿ 67−(3.25)
2.96
√9
, 67+(3.25)
2.96
√9 ]
, for SS
=[63.79, 70.20]
Maximum Error
Now,
E=t α SE ( T ), for SS
s
¿ 2.262 at α =5 %
√ n−1
2.96
¿ ( 2.262 ) =¿ 2.23
√9
And Similarly, Maximum Error
E=T α SE ( T ), for SS
s
¿ 3.25 at α =1 %
√n−1
2.96
¿ ( 3.25 ) =¿3.2
√9
Problem 3
Can it be conclude that, the average lifespan of Indian is more than 70
years if a replace of 100 Indians has an average lifespan of 71.8 years
with S.D 8.9 years, at 5% LOS
Sol:
Under H 0,
x−μ
Z= N ( 0 ,1)
∂∨√ 10
71.8−70
¿ =2.02
8.9
√ 400
Z cal=4
Problem
The problem is under test 1 because n ¿25 large sample and single
population variables.
Step 2 : H 1 : μ ≠ μ 0
40−38
¿
10
√ 400
Z cal=4
Step 6 : Conclusion
Problem
Plant: 1 2 3 4 5 6 7 8 9 10
Before: 30 18 24 32 16 15 23 25 28 18
After: 23 21 22 28 14 15 24 21 23 16
The life time of electric bulbs for a random sample of 10 from a large
consignment gave the following data.
Item: 1 2 3 4 5 6 7 8 9 10
Life in ‘000 3. 3.
1.2 4.6 4.1 5.2 3.8 4.3 4.4 5.6
hrs: 9 9
Can we accept the hypothesis that the average life time of bulbs is
4000 hrs.
POP
Sol: H0 μ=4000
H1 μ ≠ 4000
⏟
X , X , … … … … X =n
1 2 10
1.2 , 4.6 , …… …… ….. 5.6
Sample mean, x
Sample SD, s
1 1.2 1.44
2 4.6 21.1
3 3.9 15.21
4 4.1 16.81
5 5.2 27.04
6 3.8 14.44
7 3.9 15.21
8 4.3 18.49
9 4.4 19.36
10 5.6 31.36
∑ X=41 ∑ X 2=180.46
Sample X =
∑ x = 41 =4.1
n 10
√
Sample S.D S = √ s 2= 1 ∑ x 2−x 2=√ 18.046−4.12=1.11
n
Step 5 :
X −μ0 4.1−4
t= = =0.27
( )
S 1.1
√ n−1 √ 10−1
Step 6 :
Diesel comp.
Sol MTE
Points : H0 : μ=32.3 %
Quantitative measure ⏟
X , X ,… … … … X
1 2 40
Sample SD s = 1.6 %
i.e., H 0 : μ=32.3 (μ 0)
31.4−32.3
⇒ Z cal=
1.6∨ √ 40
0.9
¿−
0.253
¿−3.55
⇒|Z cal|=3.55
Step 6 : Decision :
Problem :
Two file servers are compared according to their response time for
retrieving a small file. The mean response time of 50 such requests
submitted to server I was measured to be 682 ms with a SD of 25ms. A
similar measurement on server II resulted a mean of 675 was with an SD
of 28ms. Test the hypothesis that server I provide better response than
server II ?
SOL:
Server -I = Server-II
H0 =
μ1 μ2
X 1 , X 2 , … … … … X 50=n 1
Y 1 ,Y 2 , … … … … Y 50=n 2
Step 1:
H 0 : there is no significance difference between mean response times of
servers I and II
i.e., H 0 : μ1=μ2
x− y
Z= N (0 ,1)
√ ∂21 ∂22
+
n1 n2
682−675
⇒ Z cal= =1.32
√ 252 28 2
+
50 50
Step 6 :
Problem - 4
The mean yield of wheat from a district A was 210 pounds with S.D 10
pounds per acre from a sample of 100 plots. In another district B the
mean yield was 220 pounds with S.D 12 pounds from a sample of 150
plots. Test whether there is any significant difference between the mean
yields of crops.
district A district B
H0 = = μ2
μ1
X 1 , X 2 , … … … … X 100 =n1 Y 1 ,Y 2 , … … … … Y 150 =n2
√ s 21 s 22
+
n1 n2
210−220
Z cal= =−7.14
√
2 2
10 12
+
100 150
|Z cal|=7.14
Step 6 : Conclusion
Since, |Z (7.14
cal )
|> Z (1.96
tab )
, we reject H 0 at 5 % LOS .
Indo - American 9 11 13 11 15 9 12 14
Anglo - 10 12 10 14 9 8 10
American
Test the significance difference between two groups in averages of
reading test at 5% LOS.
Sol :
I-A = A-A
H0 =
μ1 μ2
H 1 μ1 ≠ μ2
X 1 , X 2 , … … … … X 8=n1 Y 1 ,Y 2 , … … … … Y 7 =n2
9 , 11 , ……. 14 10 , 12 , 12 , ……..10
(tab) (tab)
Step-3 LOS , α =5 % , t n +n −2 ,α /2=,t 8+ 7−2, 0.025=2.160.
1 2
Indo – Anglo – X
2
Y
2
American(x) American(y)
9 10 81 100
11 12 121 144
13 10 169 100
11 14 121 196
15 9 225 81
9 8 81 64
12 10 144 100
14 196
∑ x =94 ∑y =73 ∑ x 2=1138 ∑ x 2=¿ 785
1 2
¿ (1138)−11.75 =4.187
8
and
2 1 2
Sample variance of 2 nd sample s2= 7 ( 785 )−10.43 =3.36
2 2
2 n1 s 1 +n2 s 2 8 (4.187)+7(3.36)
St = = =4.38
n1 +n2 −2 8+7−2
√ 1 1
1 2
2
S( + )
t
n1 n2
11.75−10.43
⇒ t cal=
√ 4.38 ( 18 + 17 )
⇒ t cal=1.22
|t cal|=1.22
Step-6 Decision,