SlideShare a Scribd company logo
1 of 12
Download to read offline
Inferential Test Procedures
Probability and Statistics (MA202): Unit V
Department of Applied Sciences, DIT University Dehradun
Contents
๏ต Z-test (Large sample test)
For single mean and difference of means
๏ต t-test (Small sample test)
For single mean and difference of means
๏ต Chi-Square test
For goodness of fit and independence of attributes
Z-test (Large sample test nโ‰ฅ30)
๏ต For single mean
๏ต H0: ยต = ยต0
๏ต H1 : ยต โ‰  ยต0
๏ต ๐‘ง๐‘๐‘Ž๐‘™ =
๐‘‘๐‘’๐‘“๐‘“๐‘’๐‘Ÿ๐‘’๐‘›๐‘๐‘’
๐‘ ๐‘ก๐‘Ž๐‘›๐‘‘๐‘Ž๐‘Ÿ๐‘‘ ๐‘’๐‘Ÿ๐‘Ÿ๐‘œ๐‘Ÿ
=
าง
๐‘ฅโˆ’ ๐œ‡0
๐œŽ
๐‘›
๏ต If ๐’๐œ๐š๐ฅ < ๐’๐ญ๐š๐› , null hypothesis is
accepted
๏ต For difference of means
๏ต H0: ยต1 = ยต2
๏ต H1: ยต1 โ‰  ยต2
๏ต ๐‘ง๐‘๐‘Ž๐‘™ =
าง
๐‘ฅโˆ’ เดค
๐‘ฆ
๐œŽ1
2
๐‘›1
+
๐œŽ2
2
๐‘›2
๏ต If ๐œŽ1
2
and ๐œŽ2
2
are unknown, sample variances
estimates ๐‘ 1
2
and ๐‘ 2
2
are used
๏ต If ๐œŽ1
2
= ๐œŽ2
2
= ๐œŽ2
(say), for unknown ๐œŽ2
estimate
เทข
๐œŽ2 is used where เทข
๐œŽ2 =
๐‘›1๐‘ 1
2+๐‘›2๐‘ 2
2
๐‘›1+๐‘›2
๏ต If ๐’๐œ๐š๐ฅ < ๐’๐ญ๐š๐› , null hypothesis is accepted
Example1. A sample of 900 members has a mean 3.4 and standard deviation 2.61. Is the
sample from a large population of mean 3.25 and standard deviation 2.61?
๏ต For single mean
๏ต H0: ยต = 3.25 ( the sample has been drawn from the population with
mean 3.25 and standard deviation 2.61)
๏ต H1 : ยต โ‰  3.25 (Two-tailed)
๏ต ๐‘ง๐‘๐‘Ž๐‘™ =
าง
๐‘ฅโˆ’ ๐œ‡0
๐œŽ
๐‘›
=
3.4โˆ’3.25
2.61
900
= 1.73
๏ต ๐’๐ญ๐š๐›=1.96 at 5% level of significance
๏ต Since ๐’๐œ๐š๐ฅ < ๐’๐ญ๐š๐› , null hypothesis is accepted
Example2. The average hourly wage of a sample of 150 workers in a plant โ€˜Aโ€™ was Rs. 2.56
with standard deviation of Rs. 1.08. The average hourly wage of a sample of 200 workers in
plant โ€˜Bโ€™ was Rs. 2.87 with a standard deviation of Rs. 1.28. Can an applicant safely assume
that the hourly wages paid by plant โ€˜Bโ€™ are higher than those paid by plant โ€˜Aโ€™?
๏ต For difference of means
๏ต H0: ยต1 = ยต2
๏ต H1: ยต1 < ยต2 (Left-tailed test)
๏ต ๐‘ง๐‘๐‘Ž๐‘™ =
าง
๐‘ฅโˆ’ เดค
๐‘ฆ
๐œŽ1
2
๐‘›1
+
๐œŽ2
2
๐‘›2
=
2.56โˆ’2.87
1.08 2
150
+
1.28 2
200
= 2.46
๏ต ๐œŽ1
2
and ๐œŽ2
2
are unknown, sample variances estimates ๐‘ 1
2
and ๐‘ 2
2
are used
๏ต ๐’๐ญ๐š๐› = 1.645 at 5% level of significance (one-tailed)
๏ต If ๐’๐œ๐š๐ฅ > ๐’๐ญ๐š๐› , null hypothesis is rejected and we can conclude that the
average hourly wages paid by plant โ€˜Bโ€™ are certainly higher than โ€˜Aโ€™.
t-test (Small sample test n<30)
๏ต For single mean
๏ต H0: ยต = ยต0
๏ต H1 : ยต โ‰  ยต0
๏ต ๐‘ก๐‘๐‘Ž๐‘™ =
าง
๐‘ฅโˆ’ ๐œ‡0
๐‘†
๐‘›
๐‘คโ„Ž๐‘’๐‘Ÿ๐‘’ ๐‘† =
ฯƒ ๐‘ฅ๐‘–โˆ’ าง
๐‘ฅ 2
๐‘›โˆ’1
๏ต ๐‘ก๐‘ก๐‘Ž๐‘ ๐‘ค๐‘–๐‘กโ„Ž ๐‘› โˆ’ 1 ๐‘‘๐‘’๐‘”๐‘Ÿ๐‘’๐‘’๐‘  ๐‘œ๐‘“ ๐‘“๐‘Ÿ๐‘’๐‘’๐‘‘๐‘œ๐‘š
๏ต If ๐’•๐œ๐š๐ฅ < ๐’•๐ญ๐š๐› , null hypothesis is
accepted
๏ต * sample variance ๐‘ 2
=
ฯƒ ๐‘ฅ๐‘–โˆ’ าง
๐‘ฅ 2
๐‘›
so, ๐‘›. ๐‘ 2
= (๐‘› โˆ’ 1)๐‘†2
๏ต For difference of means
๏ต H0: ยต1 = ยต2
๏ต H1: ยต1 โ‰  ยต2
๏ต ๐‘ก๐‘๐‘Ž๐‘™ =
าง
๐‘ฅโˆ’ เดค
๐‘ฆ
๐‘†.
1
๐‘›1
+
1
๐‘›2
๐‘คโ„Ž๐‘’๐‘Ÿ๐‘’๐‘† =
ฯƒ ๐‘ฅ๐‘–โˆ’ าง
๐‘ฅ 2+ฯƒ ๐‘ฆ๐‘–โˆ’ เดค
๐‘ฆ 2
๐‘›1+๐‘›2โˆ’2
๏ต ๐‘ก๐‘ก๐‘Ž๐‘ ๐‘ค๐‘–๐‘กโ„Ž (๐‘›1 + ๐‘›2 โˆ’ 2) ๐‘‘๐‘’๐‘”๐‘Ÿ๐‘’๐‘’๐‘  ๐‘œ๐‘“ ๐‘“๐‘Ÿ๐‘’๐‘’๐‘‘๐‘œ๐‘š
๏ต If ๐’•๐œ๐š๐ฅ < ๐’•๐ญ๐š๐› , null hypothesis is accepted
Example3.The specimen of copper wires drawn from a large lot have the following breaking
strength (in kg. weight): 578, 572, 570, 568, 572, 578, 570, 572, 596, 544. Test whether the
mean breaking strength of the lot may be taken to be 578 kg. weight.
๏ต For single mean
๏ต H0: ยต = 578 kg.
๏ต H1 : ยต โ‰  578 kg.
๏ต ๐‘ก๐‘๐‘Ž๐‘™ =
าง
๐‘ฅโˆ’ ๐œ‡0
๐‘†
๐‘›
= 1.4917 ๐‘คโ„Ž๐‘’๐‘Ÿ๐‘’ ๐‘† =
ฯƒ ๐‘ฅ๐‘–โˆ’ าง
๐‘ฅ 2
๐‘›โˆ’1
= 12.719
๏ต ๐‘ก๐‘ก๐‘Ž๐‘ = 2.262 ๐‘ค๐‘–๐‘กโ„Ž 10 โˆ’ 1 = 9 ๐‘‘๐‘’๐‘”๐‘Ÿ๐‘’๐‘’๐‘  ๐‘œ๐‘“ ๐‘“๐‘Ÿ๐‘’๐‘’๐‘‘๐‘œ๐‘š and 5%
level of significance
๏ต Since ๐’•๐œ๐š๐ฅ < ๐’•๐ญ๐š๐› , null hypothesis is accepted
๏ต We can conclude that the mean breaking strength of copper
wires lot may be taken as 578 kg.
๐’™๐’Š ๐’™๐’Š โˆ’ เดฅ
๐’™ ๐’™๐’Š โˆ’ เดฅ
๐’™ ๐Ÿ
578 6 36
572 0 0
570 -2 4
568 -4 16
572 0 0
578 6 36
570 -2 4
572 0 0
596 24 576
544 -28 784
5720 1456
Example4.Sample of sales in similar shops in two towns are taken for a new product with
the following results:
Is there any evidence of difference in sales in the towns?
๏ต For difference of means
๏ต H0: ยต1 = ยต2
๏ต H1: ยต1 โ‰  ยต2
๏ต ๐‘ก๐‘๐‘Ž๐‘™ =
าง
๐‘ฅโˆ’ เดค
๐‘ฆ
๐‘†.
1
๐‘›1
+
1
๐‘›2
=
57โˆ’61
2.236.
1
5
+
1
7
=3.055
๏ต ๐‘ก๐‘ก๐‘Ž๐‘ = 2.228 ๐‘ค๐‘–๐‘กโ„Ž (๐‘›1 + ๐‘›2 โˆ’ 2) = 10 ๐‘‘๐‘’๐‘”๐‘Ÿ๐‘’๐‘’๐‘  ๐‘œ๐‘“ ๐‘“๐‘Ÿ๐‘’๐‘’๐‘‘๐‘œ๐‘š and 5% level of significance
๏ต Since ๐’•๐œ๐š๐ฅ > ๐’•๐ญ๐š๐› , null hypothesis is rejected
๏ต We can conclude that the difference in sales in two towns is significant at 5% level of
significance.
Town Mean Sales Variance size of sample
A 57 5.3 5
B 61 4.8 7
Chi-Square ( ๐Œ๐Ÿ
) Test
For goodness of fit
๏ต H0: Fit is good
๏ต H1: Fit is bad
๏ต Expected value ๐‘ฌ๐’Š is the average value
๏ต Oi is the observed value
๏ต ๐Œ๐’„๐’‚๐’
๐Ÿ
= ฯƒ
๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š
๐Ÿ
๐‘ฌ๐’Š
๏ต ๐œ’๐‘ก๐‘Ž๐‘
2
๐‘ค๐‘–๐‘กโ„Ž ๐‘› โˆ’ 1 ๐‘‘๐‘’๐‘”๐‘Ÿ๐‘’๐‘’๐‘  ๐‘œ๐‘“ ๐‘“๐‘Ÿ๐‘’๐‘’๐‘‘๐‘œ๐‘š
๏ต If ๐œ’๐‘๐‘Ž๐‘™
2
< ๐œ’๐‘ก๐‘Ž๐‘
2
we accept the null
hypothesis
For independence of attributes
๏ต H0: Attributes are independent
๏ต H1: Attributes are not independent
๏ต Expected value ๐‘ฌ๐’Š is the average value
๏ต Oi is the observed value
๏ต ๐Œ๐’„๐’‚๐’
๐Ÿ
= ฯƒ
๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š
๐Ÿ
๐‘ฌ๐’Š
๏ต ๐œ’๐‘ก๐‘Ž๐‘
2
๐‘ค๐‘–๐‘กโ„Ž ๐’“ โˆ’ ๐Ÿ ๐’„ โˆ’ ๐Ÿ ๐‘‘๐‘’๐‘”๐‘Ÿ๐‘’๐‘’๐‘  ๐‘œ๐‘“ ๐‘“๐‘Ÿ๐‘’๐‘’๐‘‘๐‘œ๐‘š
๏ต If ๐œ’๐‘๐‘Ž๐‘™
2
< ๐œ’๐‘ก๐‘Ž๐‘
2
we accept the null hypothesis
Example5. A die is thrown 132 times with following results:
Is the die unbiased?
Solution: It is a case of goodness of fit
๏ต H0: Fit is good or die is unbiased
๏ต H1: Fit is bad or die is biased
๏ต Expected value ๐‘ฌ๐’Š is average = 22
๏ต ๐Œ๐’„๐’‚๐’
๐Ÿ
= ฯƒ
๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š
๐Ÿ
๐‘ฌ๐’Š
= 9
๏ต ๐œ’๐‘ก๐‘Ž๐‘
2
= 11.071 ๐‘ค๐‘–๐‘กโ„Ž 6 โˆ’ 1 ๐‘‘๐‘’๐‘”๐‘Ÿ๐‘’๐‘’๐‘  ๐‘œ๐‘“ ๐‘“๐‘Ÿ๐‘’๐‘’๐‘‘๐‘œ๐‘š at 5% level of significance
๏ต Since ๐œ’๐‘๐‘Ž๐‘™
2
< ๐œ’๐‘ก๐‘Ž๐‘
2
so we may accept the null hypothesis
๏ต So we can conclude that the die is unbiased.
X ๐‘ถ๐’Š ๐‘ฌ๐’Š ๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š ๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š
๐Ÿ
๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š
๐Ÿ
๐‘ฌ๐’Š
1 16 22 -6 36 1.636364
2 20 22 -2 4 0.181818
3 25 22 3 9 0.409091
4 14 22 -8 64 2.909091
5 29 22 7 49 2.227273
6 28 22 6 36 1.636364
132 9
Number turned up 1 2 3 4 5 6
Frequency 16 20 25 14 29 28
Example6. The table given below shows the data obtained during outbreak of
smallpox:
Test the effectiveness of vaccination in preventing the attack from smallpox?
Solution: It is a case of independence of attributes
๏ต H0: Vaccination and attack are independent
๏ต H1: Vaccination and attack are not independent
๏ต ๐‘ฌ๐’Š for AB = (500*216)/2000= 54
๏ต ๐‘ฌ๐’Š for Ab = (500*1784)/2000=446
๏ต ๐‘ฌ๐’Š for aB = (1500*216)/2000=162
๏ต ๐‘ฌ๐’Š for ab = (1500*1784)/2000=1338
๏ต ๐Œ๐’„๐’‚๐’
๐Ÿ
= ฯƒ
๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š
๐Ÿ
๐‘ฌ๐’Š
= 14.6431
๏ต ๐œ’๐‘ก๐‘Ž๐‘
2
= 3.841 ๐‘ค๐‘–๐‘กโ„Ž 2 โˆ’ 1 โˆ— 2 โˆ’ 1 = 1 ๐‘‘๐‘’๐‘”๐‘Ÿ๐‘’๐‘’๐‘  ๐‘œ๐‘“ ๐‘“๐‘Ÿ๐‘’๐‘’๐‘‘๐‘œ๐‘š at 5% level of significance
๏ต Since ๐œ’๐‘๐‘Ž๐‘™
2
> ๐œ’๐‘ก๐‘Ž๐‘
2
so we reject the null hypothesis
๏ต So we can conclude that the vaccination is effective in preventing the attack from smallpox.
Groups ๐‘ถ๐’Š ๐‘ฌ๐’Š ๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š ๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š
๐Ÿ
๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š
๐Ÿ
๐‘ฌ๐’Š
AB 31 54 -23 529 9.796296
Ab 469 446 23 529 1.186099
aB 185 162 23 529 3.265432
ab 1315 1338 -23 529 0.395366
2000 2000 14.64319
Attacked (B) Not Attacked (b) Total
Vaccinated (A) 31 469 500
Not Vaccinated (a) 185 1315 1500
Total 216 1784 2000
Thank You

More Related Content

Similar to t-z-chi-square tests of sig.pdf

Lesson06_new
Lesson06_newLesson06_new
Lesson06_newshengvn
ย 
Lecture 04 Inferential Statisitcs 2
Lecture 04 Inferential Statisitcs 2Lecture 04 Inferential Statisitcs 2
Lecture 04 Inferential Statisitcs 2Riri Ariyanty
ย 
10 ch ken black solution
10 ch ken black solution10 ch ken black solution
10 ch ken black solutionKrunal Shah
ย 
ANOVA Lec 1 (alternate).pptx
ANOVA Lec 1 (alternate).pptxANOVA Lec 1 (alternate).pptx
ANOVA Lec 1 (alternate).pptxMohsinIqbalQazi
ย 
K.A.Sindhura-t,z,f tests
K.A.Sindhura-t,z,f testsK.A.Sindhura-t,z,f tests
K.A.Sindhura-t,z,f testsSindhura Kopparthi
ย 
Chi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarChi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarAzmi Mohd Tamil
ย 
Inferential Statistics.pdf
Inferential Statistics.pdfInferential Statistics.pdf
Inferential Statistics.pdfShivakumar B N
ย 
Hypothesis testing - II.pptx
Hypothesis testing - II.pptxHypothesis testing - II.pptx
Hypothesis testing - II.pptxShashvatSingh12
ย 
Lesson06_static11
Lesson06_static11Lesson06_static11
Lesson06_static11thangv
ย 
Fundamentals of Sampling Distribution and Data Descriptions
Fundamentals of Sampling Distribution and Data DescriptionsFundamentals of Sampling Distribution and Data Descriptions
Fundamentals of Sampling Distribution and Data Descriptionsemonfahim11
ย 
Statistics-Non parametric test
Statistics-Non parametric testStatistics-Non parametric test
Statistics-Non parametric testRabin BK
ย 
C2 st lecture 12 the chi squared-test handout
C2 st lecture 12   the chi squared-test handoutC2 st lecture 12   the chi squared-test handout
C2 st lecture 12 the chi squared-test handoutfatima d
ย 
C2 st lecture 10 basic statistics and the z test handout
C2 st lecture 10   basic statistics and the z test handoutC2 st lecture 10   basic statistics and the z test handout
C2 st lecture 10 basic statistics and the z test handoutfatima d
ย 
ERF Training Workshop Panel Data 3
ERF Training WorkshopPanel Data 3ERF Training WorkshopPanel Data 3
ERF Training Workshop Panel Data 3Economic Research Forum
ย 

Similar to t-z-chi-square tests of sig.pdf (20)

Mech ma6452 snm_notes
Mech ma6452 snm_notesMech ma6452 snm_notes
Mech ma6452 snm_notes
ย 
Lesson06_new
Lesson06_newLesson06_new
Lesson06_new
ย 
Lecture 04 Inferential Statisitcs 2
Lecture 04 Inferential Statisitcs 2Lecture 04 Inferential Statisitcs 2
Lecture 04 Inferential Statisitcs 2
ย 
10 ch ken black solution
10 ch ken black solution10 ch ken black solution
10 ch ken black solution
ย 
Measures of dispersion
Measures of dispersionMeasures of dispersion
Measures of dispersion
ย 
ANOVA Lec 1 (alternate).pptx
ANOVA Lec 1 (alternate).pptxANOVA Lec 1 (alternate).pptx
ANOVA Lec 1 (alternate).pptx
ย 
K.A.Sindhura-t,z,f tests
K.A.Sindhura-t,z,f testsK.A.Sindhura-t,z,f tests
K.A.Sindhura-t,z,f tests
ย 
Chi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarChi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemar
ย 
Inferential Statistics.pdf
Inferential Statistics.pdfInferential Statistics.pdf
Inferential Statistics.pdf
ย 
Hypothesis testing - II.pptx
Hypothesis testing - II.pptxHypothesis testing - II.pptx
Hypothesis testing - II.pptx
ย 
Statistical analysis by iswar
Statistical analysis by iswarStatistical analysis by iswar
Statistical analysis by iswar
ย 
Lesson06_static11
Lesson06_static11Lesson06_static11
Lesson06_static11
ย 
Fundamentals of Sampling Distribution and Data Descriptions
Fundamentals of Sampling Distribution and Data DescriptionsFundamentals of Sampling Distribution and Data Descriptions
Fundamentals of Sampling Distribution and Data Descriptions
ย 
Statistics-Non parametric test
Statistics-Non parametric testStatistics-Non parametric test
Statistics-Non parametric test
ย 
C2 st lecture 12 the chi squared-test handout
C2 st lecture 12   the chi squared-test handoutC2 st lecture 12   the chi squared-test handout
C2 st lecture 12 the chi squared-test handout
ย 
Multivariate1
Multivariate1Multivariate1
Multivariate1
ย 
C2 st lecture 10 basic statistics and the z test handout
C2 st lecture 10   basic statistics and the z test handoutC2 st lecture 10   basic statistics and the z test handout
C2 st lecture 10 basic statistics and the z test handout
ย 
The siegel-tukey-test-for-equal-variability
The siegel-tukey-test-for-equal-variabilityThe siegel-tukey-test-for-equal-variability
The siegel-tukey-test-for-equal-variability
ย 
Hypothese concerning proportion by kapil jain MNIT
Hypothese concerning proportion by kapil jain MNITHypothese concerning proportion by kapil jain MNIT
Hypothese concerning proportion by kapil jain MNIT
ย 
ERF Training Workshop Panel Data 3
ERF Training WorkshopPanel Data 3ERF Training WorkshopPanel Data 3
ERF Training Workshop Panel Data 3
ย 

Recently uploaded

VIP Kolkata Call Girls Bidhannagar 8250192130 Available With Room
VIP Kolkata Call Girls Bidhannagar 8250192130 Available With RoomVIP Kolkata Call Girls Bidhannagar 8250192130 Available With Room
VIP Kolkata Call Girls Bidhannagar 8250192130 Available With Roomrran7532
ย 
Sustainability Leadership, April 26 2024
Sustainability Leadership, April 26 2024Sustainability Leadership, April 26 2024
Sustainability Leadership, April 26 2024TeckResourcesLtd
ย 
slideshare Call girls Noida Escorts 9999965857 henakhan
slideshare Call girls Noida Escorts 9999965857 henakhanslideshare Call girls Noida Escorts 9999965857 henakhan
slideshare Call girls Noida Escorts 9999965857 henakhanhanshkumar9870
ย 
Call Girls ๐Ÿซค East Of Kailash โžก๏ธ 9999965857 โžก๏ธ Delhi ๐Ÿซฆ Russian Escorts FULL ...
Call Girls ๐Ÿซค East Of Kailash โžก๏ธ 9999965857  โžก๏ธ Delhi ๐Ÿซฆ  Russian Escorts FULL ...Call Girls ๐Ÿซค East Of Kailash โžก๏ธ 9999965857  โžก๏ธ Delhi ๐Ÿซฆ  Russian Escorts FULL ...
Call Girls ๐Ÿซค East Of Kailash โžก๏ธ 9999965857 โžก๏ธ Delhi ๐Ÿซฆ Russian Escorts FULL ...Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
ย 
High Profile Call Girls Kolkata Gayatri ๐ŸคŒ 8250192130 ๐Ÿš€ Vip Call Girls Kolkata
High Profile Call Girls Kolkata Gayatri ๐ŸคŒ  8250192130 ๐Ÿš€ Vip Call Girls KolkataHigh Profile Call Girls Kolkata Gayatri ๐ŸคŒ  8250192130 ๐Ÿš€ Vip Call Girls Kolkata
High Profile Call Girls Kolkata Gayatri ๐ŸคŒ 8250192130 ๐Ÿš€ Vip Call Girls Kolkataanamikaraghav4
ย 
Teck Investor Presentation, April 24, 2024
Teck Investor Presentation, April 24, 2024Teck Investor Presentation, April 24, 2024
Teck Investor Presentation, April 24, 2024TeckResourcesLtd
ย 
Call Girls In South Delhi ๐Ÿ“ฑ 9999965857 ๐Ÿคฉ Delhi ๐Ÿซฆ HOT AND SEXY VVIP ๐ŸŽ SERVICE
Call Girls In South Delhi ๐Ÿ“ฑ  9999965857  ๐Ÿคฉ Delhi ๐Ÿซฆ HOT AND SEXY VVIP ๐ŸŽ SERVICECall Girls In South Delhi ๐Ÿ“ฑ  9999965857  ๐Ÿคฉ Delhi ๐Ÿซฆ HOT AND SEXY VVIP ๐ŸŽ SERVICE
Call Girls In South Delhi ๐Ÿ“ฑ 9999965857 ๐Ÿคฉ Delhi ๐Ÿซฆ HOT AND SEXY VVIP ๐ŸŽ SERVICECall Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
ย 
VIP 7001035870 Find & Meet Hyderabad Call Girls Shamshabad high-profile Call ...
VIP 7001035870 Find & Meet Hyderabad Call Girls Shamshabad high-profile Call ...VIP 7001035870 Find & Meet Hyderabad Call Girls Shamshabad high-profile Call ...
VIP 7001035870 Find & Meet Hyderabad Call Girls Shamshabad high-profile Call ...aditipandeya
ย 
Call Girls ๐Ÿซค Nehru Place โžก๏ธ 9999965857 โžก๏ธ Delhi ๐Ÿซฆ Russian Escorts FULL ENJOY
Call Girls ๐Ÿซค Nehru Place โžก๏ธ 9999965857  โžก๏ธ Delhi ๐Ÿซฆ  Russian Escorts FULL ENJOYCall Girls ๐Ÿซค Nehru Place โžก๏ธ 9999965857  โžก๏ธ Delhi ๐Ÿซฆ  Russian Escorts FULL ENJOY
Call Girls ๐Ÿซค Nehru Place โžก๏ธ 9999965857 โžก๏ธ Delhi ๐Ÿซฆ Russian Escorts FULL ENJOYCall Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
ย 
Malad Escorts, (Pooja 09892124323), Malad Call Girls Service
Malad Escorts, (Pooja 09892124323), Malad Call Girls ServiceMalad Escorts, (Pooja 09892124323), Malad Call Girls Service
Malad Escorts, (Pooja 09892124323), Malad Call Girls ServicePooja Nehwal
ย 
โœ‚๏ธ ๐Ÿ‘… Independent Goregaon Escorts With Room Vashi Call Girls ๐Ÿ’ƒ 9004004663
โœ‚๏ธ ๐Ÿ‘… Independent Goregaon Escorts With Room Vashi Call Girls ๐Ÿ’ƒ 9004004663โœ‚๏ธ ๐Ÿ‘… Independent Goregaon Escorts With Room Vashi Call Girls ๐Ÿ’ƒ 9004004663
โœ‚๏ธ ๐Ÿ‘… Independent Goregaon Escorts With Room Vashi Call Girls ๐Ÿ’ƒ 9004004663Call Girls Mumbai
ย 
OKC Thunder Reveal Game 2 Playoff T Shirts
OKC Thunder Reveal Game 2 Playoff T ShirtsOKC Thunder Reveal Game 2 Playoff T Shirts
OKC Thunder Reveal Game 2 Playoff T Shirtsrahman018755
ย 
Methanex Investor Presentation (April 2024)
Methanex Investor Presentation (April 2024)Methanex Investor Presentation (April 2024)
Methanex Investor Presentation (April 2024)Methanex Corporation
ย 
Nicola Mining Inc. Corporate Presentation April 2024
Nicola Mining Inc. Corporate Presentation April 2024Nicola Mining Inc. Corporate Presentation April 2024
Nicola Mining Inc. Corporate Presentation April 2024nicola_mining
ย 
VIP Kolkata Call Girl Entally ๐Ÿ‘‰ 8250192130 Available With Room
VIP Kolkata Call Girl Entally ๐Ÿ‘‰ 8250192130  Available With RoomVIP Kolkata Call Girl Entally ๐Ÿ‘‰ 8250192130  Available With Room
VIP Kolkata Call Girl Entally ๐Ÿ‘‰ 8250192130 Available With Roomdivyansh0kumar0
ย 
Call Girls ๐Ÿซค Mahipalpur โžก๏ธ 9999965857 โžก๏ธ Delhi ๐Ÿซฆ Russian Escorts FULL ENJOY
Call Girls ๐Ÿซค Mahipalpur โžก๏ธ 9999965857  โžก๏ธ Delhi ๐Ÿซฆ  Russian Escorts FULL ENJOYCall Girls ๐Ÿซค Mahipalpur โžก๏ธ 9999965857  โžก๏ธ Delhi ๐Ÿซฆ  Russian Escorts FULL ENJOY
Call Girls ๐Ÿซค Mahipalpur โžก๏ธ 9999965857 โžก๏ธ Delhi ๐Ÿซฆ Russian Escorts FULL ENJOYCall Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
ย 
VIP 7001035870 Find & Meet Hyderabad Call Girls Shamirpet high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls Shamirpet high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls Shamirpet high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls Shamirpet high-profile Call Girladitipandeya
ย 
VIP 7001035870 Find & Meet Hyderabad Call Girls Abids high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls Abids high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls Abids high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls Abids high-profile Call Girladitipandeya
ย 

Recently uploaded (20)

VIP Kolkata Call Girls Bidhannagar 8250192130 Available With Room
VIP Kolkata Call Girls Bidhannagar 8250192130 Available With RoomVIP Kolkata Call Girls Bidhannagar 8250192130 Available With Room
VIP Kolkata Call Girls Bidhannagar 8250192130 Available With Room
ย 
Sustainability Leadership, April 26 2024
Sustainability Leadership, April 26 2024Sustainability Leadership, April 26 2024
Sustainability Leadership, April 26 2024
ย 
slideshare Call girls Noida Escorts 9999965857 henakhan
slideshare Call girls Noida Escorts 9999965857 henakhanslideshare Call girls Noida Escorts 9999965857 henakhan
slideshare Call girls Noida Escorts 9999965857 henakhan
ย 
Rohini Sector 17 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 17 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 17 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 17 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
ย 
Rohini Sector 15 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 15 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 15 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 15 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
ย 
Call Girls ๐Ÿซค East Of Kailash โžก๏ธ 9999965857 โžก๏ธ Delhi ๐Ÿซฆ Russian Escorts FULL ...
Call Girls ๐Ÿซค East Of Kailash โžก๏ธ 9999965857  โžก๏ธ Delhi ๐Ÿซฆ  Russian Escorts FULL ...Call Girls ๐Ÿซค East Of Kailash โžก๏ธ 9999965857  โžก๏ธ Delhi ๐Ÿซฆ  Russian Escorts FULL ...
Call Girls ๐Ÿซค East Of Kailash โžก๏ธ 9999965857 โžก๏ธ Delhi ๐Ÿซฆ Russian Escorts FULL ...
ย 
High Profile Call Girls Kolkata Gayatri ๐ŸคŒ 8250192130 ๐Ÿš€ Vip Call Girls Kolkata
High Profile Call Girls Kolkata Gayatri ๐ŸคŒ  8250192130 ๐Ÿš€ Vip Call Girls KolkataHigh Profile Call Girls Kolkata Gayatri ๐ŸคŒ  8250192130 ๐Ÿš€ Vip Call Girls Kolkata
High Profile Call Girls Kolkata Gayatri ๐ŸคŒ 8250192130 ๐Ÿš€ Vip Call Girls Kolkata
ย 
Teck Investor Presentation, April 24, 2024
Teck Investor Presentation, April 24, 2024Teck Investor Presentation, April 24, 2024
Teck Investor Presentation, April 24, 2024
ย 
Call Girls In South Delhi ๐Ÿ“ฑ 9999965857 ๐Ÿคฉ Delhi ๐Ÿซฆ HOT AND SEXY VVIP ๐ŸŽ SERVICE
Call Girls In South Delhi ๐Ÿ“ฑ  9999965857  ๐Ÿคฉ Delhi ๐Ÿซฆ HOT AND SEXY VVIP ๐ŸŽ SERVICECall Girls In South Delhi ๐Ÿ“ฑ  9999965857  ๐Ÿคฉ Delhi ๐Ÿซฆ HOT AND SEXY VVIP ๐ŸŽ SERVICE
Call Girls In South Delhi ๐Ÿ“ฑ 9999965857 ๐Ÿคฉ Delhi ๐Ÿซฆ HOT AND SEXY VVIP ๐ŸŽ SERVICE
ย 
VIP 7001035870 Find & Meet Hyderabad Call Girls Shamshabad high-profile Call ...
VIP 7001035870 Find & Meet Hyderabad Call Girls Shamshabad high-profile Call ...VIP 7001035870 Find & Meet Hyderabad Call Girls Shamshabad high-profile Call ...
VIP 7001035870 Find & Meet Hyderabad Call Girls Shamshabad high-profile Call ...
ย 
Call Girls ๐Ÿซค Nehru Place โžก๏ธ 9999965857 โžก๏ธ Delhi ๐Ÿซฆ Russian Escorts FULL ENJOY
Call Girls ๐Ÿซค Nehru Place โžก๏ธ 9999965857  โžก๏ธ Delhi ๐Ÿซฆ  Russian Escorts FULL ENJOYCall Girls ๐Ÿซค Nehru Place โžก๏ธ 9999965857  โžก๏ธ Delhi ๐Ÿซฆ  Russian Escorts FULL ENJOY
Call Girls ๐Ÿซค Nehru Place โžก๏ธ 9999965857 โžก๏ธ Delhi ๐Ÿซฆ Russian Escorts FULL ENJOY
ย 
Malad Escorts, (Pooja 09892124323), Malad Call Girls Service
Malad Escorts, (Pooja 09892124323), Malad Call Girls ServiceMalad Escorts, (Pooja 09892124323), Malad Call Girls Service
Malad Escorts, (Pooja 09892124323), Malad Call Girls Service
ย 
โœ‚๏ธ ๐Ÿ‘… Independent Goregaon Escorts With Room Vashi Call Girls ๐Ÿ’ƒ 9004004663
โœ‚๏ธ ๐Ÿ‘… Independent Goregaon Escorts With Room Vashi Call Girls ๐Ÿ’ƒ 9004004663โœ‚๏ธ ๐Ÿ‘… Independent Goregaon Escorts With Room Vashi Call Girls ๐Ÿ’ƒ 9004004663
โœ‚๏ธ ๐Ÿ‘… Independent Goregaon Escorts With Room Vashi Call Girls ๐Ÿ’ƒ 9004004663
ย 
OKC Thunder Reveal Game 2 Playoff T Shirts
OKC Thunder Reveal Game 2 Playoff T ShirtsOKC Thunder Reveal Game 2 Playoff T Shirts
OKC Thunder Reveal Game 2 Playoff T Shirts
ย 
Methanex Investor Presentation (April 2024)
Methanex Investor Presentation (April 2024)Methanex Investor Presentation (April 2024)
Methanex Investor Presentation (April 2024)
ย 
Nicola Mining Inc. Corporate Presentation April 2024
Nicola Mining Inc. Corporate Presentation April 2024Nicola Mining Inc. Corporate Presentation April 2024
Nicola Mining Inc. Corporate Presentation April 2024
ย 
VIP Kolkata Call Girl Entally ๐Ÿ‘‰ 8250192130 Available With Room
VIP Kolkata Call Girl Entally ๐Ÿ‘‰ 8250192130  Available With RoomVIP Kolkata Call Girl Entally ๐Ÿ‘‰ 8250192130  Available With Room
VIP Kolkata Call Girl Entally ๐Ÿ‘‰ 8250192130 Available With Room
ย 
Call Girls ๐Ÿซค Mahipalpur โžก๏ธ 9999965857 โžก๏ธ Delhi ๐Ÿซฆ Russian Escorts FULL ENJOY
Call Girls ๐Ÿซค Mahipalpur โžก๏ธ 9999965857  โžก๏ธ Delhi ๐Ÿซฆ  Russian Escorts FULL ENJOYCall Girls ๐Ÿซค Mahipalpur โžก๏ธ 9999965857  โžก๏ธ Delhi ๐Ÿซฆ  Russian Escorts FULL ENJOY
Call Girls ๐Ÿซค Mahipalpur โžก๏ธ 9999965857 โžก๏ธ Delhi ๐Ÿซฆ Russian Escorts FULL ENJOY
ย 
VIP 7001035870 Find & Meet Hyderabad Call Girls Shamirpet high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls Shamirpet high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls Shamirpet high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls Shamirpet high-profile Call Girl
ย 
VIP 7001035870 Find & Meet Hyderabad Call Girls Abids high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls Abids high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls Abids high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls Abids high-profile Call Girl
ย 

t-z-chi-square tests of sig.pdf

  • 1. Inferential Test Procedures Probability and Statistics (MA202): Unit V Department of Applied Sciences, DIT University Dehradun
  • 2. Contents ๏ต Z-test (Large sample test) For single mean and difference of means ๏ต t-test (Small sample test) For single mean and difference of means ๏ต Chi-Square test For goodness of fit and independence of attributes
  • 3. Z-test (Large sample test nโ‰ฅ30) ๏ต For single mean ๏ต H0: ยต = ยต0 ๏ต H1 : ยต โ‰  ยต0 ๏ต ๐‘ง๐‘๐‘Ž๐‘™ = ๐‘‘๐‘’๐‘“๐‘“๐‘’๐‘Ÿ๐‘’๐‘›๐‘๐‘’ ๐‘ ๐‘ก๐‘Ž๐‘›๐‘‘๐‘Ž๐‘Ÿ๐‘‘ ๐‘’๐‘Ÿ๐‘Ÿ๐‘œ๐‘Ÿ = าง ๐‘ฅโˆ’ ๐œ‡0 ๐œŽ ๐‘› ๏ต If ๐’๐œ๐š๐ฅ < ๐’๐ญ๐š๐› , null hypothesis is accepted ๏ต For difference of means ๏ต H0: ยต1 = ยต2 ๏ต H1: ยต1 โ‰  ยต2 ๏ต ๐‘ง๐‘๐‘Ž๐‘™ = าง ๐‘ฅโˆ’ เดค ๐‘ฆ ๐œŽ1 2 ๐‘›1 + ๐œŽ2 2 ๐‘›2 ๏ต If ๐œŽ1 2 and ๐œŽ2 2 are unknown, sample variances estimates ๐‘ 1 2 and ๐‘ 2 2 are used ๏ต If ๐œŽ1 2 = ๐œŽ2 2 = ๐œŽ2 (say), for unknown ๐œŽ2 estimate เทข ๐œŽ2 is used where เทข ๐œŽ2 = ๐‘›1๐‘ 1 2+๐‘›2๐‘ 2 2 ๐‘›1+๐‘›2 ๏ต If ๐’๐œ๐š๐ฅ < ๐’๐ญ๐š๐› , null hypothesis is accepted
  • 4. Example1. A sample of 900 members has a mean 3.4 and standard deviation 2.61. Is the sample from a large population of mean 3.25 and standard deviation 2.61? ๏ต For single mean ๏ต H0: ยต = 3.25 ( the sample has been drawn from the population with mean 3.25 and standard deviation 2.61) ๏ต H1 : ยต โ‰  3.25 (Two-tailed) ๏ต ๐‘ง๐‘๐‘Ž๐‘™ = าง ๐‘ฅโˆ’ ๐œ‡0 ๐œŽ ๐‘› = 3.4โˆ’3.25 2.61 900 = 1.73 ๏ต ๐’๐ญ๐š๐›=1.96 at 5% level of significance ๏ต Since ๐’๐œ๐š๐ฅ < ๐’๐ญ๐š๐› , null hypothesis is accepted
  • 5. Example2. The average hourly wage of a sample of 150 workers in a plant โ€˜Aโ€™ was Rs. 2.56 with standard deviation of Rs. 1.08. The average hourly wage of a sample of 200 workers in plant โ€˜Bโ€™ was Rs. 2.87 with a standard deviation of Rs. 1.28. Can an applicant safely assume that the hourly wages paid by plant โ€˜Bโ€™ are higher than those paid by plant โ€˜Aโ€™? ๏ต For difference of means ๏ต H0: ยต1 = ยต2 ๏ต H1: ยต1 < ยต2 (Left-tailed test) ๏ต ๐‘ง๐‘๐‘Ž๐‘™ = าง ๐‘ฅโˆ’ เดค ๐‘ฆ ๐œŽ1 2 ๐‘›1 + ๐œŽ2 2 ๐‘›2 = 2.56โˆ’2.87 1.08 2 150 + 1.28 2 200 = 2.46 ๏ต ๐œŽ1 2 and ๐œŽ2 2 are unknown, sample variances estimates ๐‘ 1 2 and ๐‘ 2 2 are used ๏ต ๐’๐ญ๐š๐› = 1.645 at 5% level of significance (one-tailed) ๏ต If ๐’๐œ๐š๐ฅ > ๐’๐ญ๐š๐› , null hypothesis is rejected and we can conclude that the average hourly wages paid by plant โ€˜Bโ€™ are certainly higher than โ€˜Aโ€™.
  • 6. t-test (Small sample test n<30) ๏ต For single mean ๏ต H0: ยต = ยต0 ๏ต H1 : ยต โ‰  ยต0 ๏ต ๐‘ก๐‘๐‘Ž๐‘™ = าง ๐‘ฅโˆ’ ๐œ‡0 ๐‘† ๐‘› ๐‘คโ„Ž๐‘’๐‘Ÿ๐‘’ ๐‘† = ฯƒ ๐‘ฅ๐‘–โˆ’ าง ๐‘ฅ 2 ๐‘›โˆ’1 ๏ต ๐‘ก๐‘ก๐‘Ž๐‘ ๐‘ค๐‘–๐‘กโ„Ž ๐‘› โˆ’ 1 ๐‘‘๐‘’๐‘”๐‘Ÿ๐‘’๐‘’๐‘  ๐‘œ๐‘“ ๐‘“๐‘Ÿ๐‘’๐‘’๐‘‘๐‘œ๐‘š ๏ต If ๐’•๐œ๐š๐ฅ < ๐’•๐ญ๐š๐› , null hypothesis is accepted ๏ต * sample variance ๐‘ 2 = ฯƒ ๐‘ฅ๐‘–โˆ’ าง ๐‘ฅ 2 ๐‘› so, ๐‘›. ๐‘ 2 = (๐‘› โˆ’ 1)๐‘†2 ๏ต For difference of means ๏ต H0: ยต1 = ยต2 ๏ต H1: ยต1 โ‰  ยต2 ๏ต ๐‘ก๐‘๐‘Ž๐‘™ = าง ๐‘ฅโˆ’ เดค ๐‘ฆ ๐‘†. 1 ๐‘›1 + 1 ๐‘›2 ๐‘คโ„Ž๐‘’๐‘Ÿ๐‘’๐‘† = ฯƒ ๐‘ฅ๐‘–โˆ’ าง ๐‘ฅ 2+ฯƒ ๐‘ฆ๐‘–โˆ’ เดค ๐‘ฆ 2 ๐‘›1+๐‘›2โˆ’2 ๏ต ๐‘ก๐‘ก๐‘Ž๐‘ ๐‘ค๐‘–๐‘กโ„Ž (๐‘›1 + ๐‘›2 โˆ’ 2) ๐‘‘๐‘’๐‘”๐‘Ÿ๐‘’๐‘’๐‘  ๐‘œ๐‘“ ๐‘“๐‘Ÿ๐‘’๐‘’๐‘‘๐‘œ๐‘š ๏ต If ๐’•๐œ๐š๐ฅ < ๐’•๐ญ๐š๐› , null hypothesis is accepted
  • 7. Example3.The specimen of copper wires drawn from a large lot have the following breaking strength (in kg. weight): 578, 572, 570, 568, 572, 578, 570, 572, 596, 544. Test whether the mean breaking strength of the lot may be taken to be 578 kg. weight. ๏ต For single mean ๏ต H0: ยต = 578 kg. ๏ต H1 : ยต โ‰  578 kg. ๏ต ๐‘ก๐‘๐‘Ž๐‘™ = าง ๐‘ฅโˆ’ ๐œ‡0 ๐‘† ๐‘› = 1.4917 ๐‘คโ„Ž๐‘’๐‘Ÿ๐‘’ ๐‘† = ฯƒ ๐‘ฅ๐‘–โˆ’ าง ๐‘ฅ 2 ๐‘›โˆ’1 = 12.719 ๏ต ๐‘ก๐‘ก๐‘Ž๐‘ = 2.262 ๐‘ค๐‘–๐‘กโ„Ž 10 โˆ’ 1 = 9 ๐‘‘๐‘’๐‘”๐‘Ÿ๐‘’๐‘’๐‘  ๐‘œ๐‘“ ๐‘“๐‘Ÿ๐‘’๐‘’๐‘‘๐‘œ๐‘š and 5% level of significance ๏ต Since ๐’•๐œ๐š๐ฅ < ๐’•๐ญ๐š๐› , null hypothesis is accepted ๏ต We can conclude that the mean breaking strength of copper wires lot may be taken as 578 kg. ๐’™๐’Š ๐’™๐’Š โˆ’ เดฅ ๐’™ ๐’™๐’Š โˆ’ เดฅ ๐’™ ๐Ÿ 578 6 36 572 0 0 570 -2 4 568 -4 16 572 0 0 578 6 36 570 -2 4 572 0 0 596 24 576 544 -28 784 5720 1456
  • 8. Example4.Sample of sales in similar shops in two towns are taken for a new product with the following results: Is there any evidence of difference in sales in the towns? ๏ต For difference of means ๏ต H0: ยต1 = ยต2 ๏ต H1: ยต1 โ‰  ยต2 ๏ต ๐‘ก๐‘๐‘Ž๐‘™ = าง ๐‘ฅโˆ’ เดค ๐‘ฆ ๐‘†. 1 ๐‘›1 + 1 ๐‘›2 = 57โˆ’61 2.236. 1 5 + 1 7 =3.055 ๏ต ๐‘ก๐‘ก๐‘Ž๐‘ = 2.228 ๐‘ค๐‘–๐‘กโ„Ž (๐‘›1 + ๐‘›2 โˆ’ 2) = 10 ๐‘‘๐‘’๐‘”๐‘Ÿ๐‘’๐‘’๐‘  ๐‘œ๐‘“ ๐‘“๐‘Ÿ๐‘’๐‘’๐‘‘๐‘œ๐‘š and 5% level of significance ๏ต Since ๐’•๐œ๐š๐ฅ > ๐’•๐ญ๐š๐› , null hypothesis is rejected ๏ต We can conclude that the difference in sales in two towns is significant at 5% level of significance. Town Mean Sales Variance size of sample A 57 5.3 5 B 61 4.8 7
  • 9. Chi-Square ( ๐Œ๐Ÿ ) Test For goodness of fit ๏ต H0: Fit is good ๏ต H1: Fit is bad ๏ต Expected value ๐‘ฌ๐’Š is the average value ๏ต Oi is the observed value ๏ต ๐Œ๐’„๐’‚๐’ ๐Ÿ = ฯƒ ๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š ๐Ÿ ๐‘ฌ๐’Š ๏ต ๐œ’๐‘ก๐‘Ž๐‘ 2 ๐‘ค๐‘–๐‘กโ„Ž ๐‘› โˆ’ 1 ๐‘‘๐‘’๐‘”๐‘Ÿ๐‘’๐‘’๐‘  ๐‘œ๐‘“ ๐‘“๐‘Ÿ๐‘’๐‘’๐‘‘๐‘œ๐‘š ๏ต If ๐œ’๐‘๐‘Ž๐‘™ 2 < ๐œ’๐‘ก๐‘Ž๐‘ 2 we accept the null hypothesis For independence of attributes ๏ต H0: Attributes are independent ๏ต H1: Attributes are not independent ๏ต Expected value ๐‘ฌ๐’Š is the average value ๏ต Oi is the observed value ๏ต ๐Œ๐’„๐’‚๐’ ๐Ÿ = ฯƒ ๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š ๐Ÿ ๐‘ฌ๐’Š ๏ต ๐œ’๐‘ก๐‘Ž๐‘ 2 ๐‘ค๐‘–๐‘กโ„Ž ๐’“ โˆ’ ๐Ÿ ๐’„ โˆ’ ๐Ÿ ๐‘‘๐‘’๐‘”๐‘Ÿ๐‘’๐‘’๐‘  ๐‘œ๐‘“ ๐‘“๐‘Ÿ๐‘’๐‘’๐‘‘๐‘œ๐‘š ๏ต If ๐œ’๐‘๐‘Ž๐‘™ 2 < ๐œ’๐‘ก๐‘Ž๐‘ 2 we accept the null hypothesis
  • 10. Example5. A die is thrown 132 times with following results: Is the die unbiased? Solution: It is a case of goodness of fit ๏ต H0: Fit is good or die is unbiased ๏ต H1: Fit is bad or die is biased ๏ต Expected value ๐‘ฌ๐’Š is average = 22 ๏ต ๐Œ๐’„๐’‚๐’ ๐Ÿ = ฯƒ ๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š ๐Ÿ ๐‘ฌ๐’Š = 9 ๏ต ๐œ’๐‘ก๐‘Ž๐‘ 2 = 11.071 ๐‘ค๐‘–๐‘กโ„Ž 6 โˆ’ 1 ๐‘‘๐‘’๐‘”๐‘Ÿ๐‘’๐‘’๐‘  ๐‘œ๐‘“ ๐‘“๐‘Ÿ๐‘’๐‘’๐‘‘๐‘œ๐‘š at 5% level of significance ๏ต Since ๐œ’๐‘๐‘Ž๐‘™ 2 < ๐œ’๐‘ก๐‘Ž๐‘ 2 so we may accept the null hypothesis ๏ต So we can conclude that the die is unbiased. X ๐‘ถ๐’Š ๐‘ฌ๐’Š ๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š ๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š ๐Ÿ ๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š ๐Ÿ ๐‘ฌ๐’Š 1 16 22 -6 36 1.636364 2 20 22 -2 4 0.181818 3 25 22 3 9 0.409091 4 14 22 -8 64 2.909091 5 29 22 7 49 2.227273 6 28 22 6 36 1.636364 132 9 Number turned up 1 2 3 4 5 6 Frequency 16 20 25 14 29 28
  • 11. Example6. The table given below shows the data obtained during outbreak of smallpox: Test the effectiveness of vaccination in preventing the attack from smallpox? Solution: It is a case of independence of attributes ๏ต H0: Vaccination and attack are independent ๏ต H1: Vaccination and attack are not independent ๏ต ๐‘ฌ๐’Š for AB = (500*216)/2000= 54 ๏ต ๐‘ฌ๐’Š for Ab = (500*1784)/2000=446 ๏ต ๐‘ฌ๐’Š for aB = (1500*216)/2000=162 ๏ต ๐‘ฌ๐’Š for ab = (1500*1784)/2000=1338 ๏ต ๐Œ๐’„๐’‚๐’ ๐Ÿ = ฯƒ ๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š ๐Ÿ ๐‘ฌ๐’Š = 14.6431 ๏ต ๐œ’๐‘ก๐‘Ž๐‘ 2 = 3.841 ๐‘ค๐‘–๐‘กโ„Ž 2 โˆ’ 1 โˆ— 2 โˆ’ 1 = 1 ๐‘‘๐‘’๐‘”๐‘Ÿ๐‘’๐‘’๐‘  ๐‘œ๐‘“ ๐‘“๐‘Ÿ๐‘’๐‘’๐‘‘๐‘œ๐‘š at 5% level of significance ๏ต Since ๐œ’๐‘๐‘Ž๐‘™ 2 > ๐œ’๐‘ก๐‘Ž๐‘ 2 so we reject the null hypothesis ๏ต So we can conclude that the vaccination is effective in preventing the attack from smallpox. Groups ๐‘ถ๐’Š ๐‘ฌ๐’Š ๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š ๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š ๐Ÿ ๐‘ถ๐’Š โˆ’๐‘ฌ๐’Š ๐Ÿ ๐‘ฌ๐’Š AB 31 54 -23 529 9.796296 Ab 469 446 23 529 1.186099 aB 185 162 23 529 3.265432 ab 1315 1338 -23 529 0.395366 2000 2000 14.64319 Attacked (B) Not Attacked (b) Total Vaccinated (A) 31 469 500 Not Vaccinated (a) 185 1315 1500 Total 216 1784 2000