SlideShare une entreprise Scribd logo
1  sur  35
Télécharger pour lire hors ligne
Topic 4:
Inferential Statistics 2
This topic will cover:
◦ Hypothesis testing with a sample
 CI, fixed level, significance testing
◦ Two sample t-test
◦ Significance, errors and power
◦ Frequency data and the c2 test
By the end of this topic students will be able
to:
◦ Perform a single sample t-test of the mean
◦ Perform a two sample t-test
◦ Interpret significance probabilities
◦ Perform a c2 goodness of fit test
◦ A car manufacturer releases a new car and claims that
its urban cycle fuel efficiency is 18.5 km per litre. A car
enthusiast magazine decides to test this claim.
 Null hypothesis
 H0: m = 18.5
 Alternative hypothesis is
 H1: m ≠ 18.5
𝑥 = 17.79 𝑠 = 0.4782
𝜇−, 𝜇+ = 𝑥 − 𝑡 𝛾
𝑠
𝑛
, 𝑥 + 𝑡 𝛾
𝑠
𝑛
= (17.20, 18.38)
a1
5.00% 2.50% 1.00% 0.50%
a2
10.00% 5.00% 2.00% 1.00%
g 90.00% 95.00% 98.00% 99.00%
n = n - 1
1 6.3138 12.7062 31.8205 63.6567
2 2.9200 4.3027 6.9646 9.9248
3 2.3534 3.1824 4.5407 5.8409
4 2.1318 2.7764 3.7469 4.6041
2.5%2.5%
17.20 18.38
95%
◦ Process:
 State null and alternative hypotheses
 Decide test statistic and its distribution given H0 is true
 Set rejection region (the significance level for the test)
 Calculate test statistic from sample
 Does test statistic fall in rejection region?
◦ Under H0 the statistic T
𝑇 =
𝑥 − 𝜇
𝑠
𝑛
◦ is distributed as T ~ t(n- 1)
2.5%2.5%
-2.7764 2.7764
95%
t(4)
H0: m = 18.5 H1: m ≠ 18.5
𝑥 = 17.79 𝑠 = 0.4782
𝑇 =
𝑥 − 𝜇
𝑠
𝑛
=
17.79 − 18.5
0.4782
5
= −3.32
At the 1% significance level the data do not provide
sufficient evidence to reject H0, a mean urban cycle fuel
efficiency of 18.5 km per litre is plausible.
0.5%0.5%
-4.6041 4.6041
99%
t(4)
H0: m = 18.5 H1: m< 18.5
𝑥 = 17.79 𝑠 = 0.4782
𝑇 =
𝑥 − 𝜇
𝑠
𝑛
=
17.79 − 18.5
0.4782
5
= −3.32
H0 is not rejected at the 1% significance level, a mean
urban cycle fuel efficiency of 18.5 km per litre is
plausible.
1.0%
-3.7469
99%
t(4)
H0: m = 18.5 H1: m≠ 18.5
𝑥 = 17.79 𝑠 = 0.4782
𝑇 =
𝑥 − 𝜇
𝑠
𝑛
=
17.79 − 18.5
0.4782
5
= −3.32
𝑃 𝑇 > 3.32 = 𝑝 = 0.0294
1.47%1.47%
-3.32 3.32
t(4)
◦ Motivation
 To test whether the means of two
populations are equal
◦ Assumptions:
 Both populations essentially normally
distributed
 Independence of populations
 Sample variances differ by less than a factor
of 3
Under H0 the statistic T
𝑇 =
𝑥1 − 𝑥2
𝑆 𝑝
1
𝑛1
+
1
𝑛2
is distributed as T ~ t(n1+n2- 2), where
 𝑆 𝑝
2
=
𝑛1−1 𝑠1
2+ 𝑛2−1 𝑠2
2
𝑛1+𝑛2−2


◦ Two machines on a production line are set to produce
the same part. Workers down the line are concerned
that the two machines are not producing parts of the
same size. Test the hypothesis.
◦ H0: m1 – m2 = 0 H1: m1 – m2 ≠ 0
◦ Sample machine 1: 28.54, 28.27, 25.81, 28.41,
29.09, 28.09, 29.72, 23.56
◦ Sample machine 2: 31.85, 29.96, 31.97, 33.68, 23.81,
30.79
2.5%2.5%
-2.1788 2.1788
95%
t(12)
5.0%
-1.7823
95%
t(12)
a1
5.00% 2.50% 1.00% 0.50%
a2
10.00% 5.00% 2.00% 1.00%
g 90.00% 95.00% 98.00% 99.00%
n = n1 + n2 - 2
11 1.7959 2.2010 2.7181 3.1058
12 1.7823 2.1788 2.6810 3.0545
13 1.7709 2.1604 2.6503 3.0123
◦ Sample machine 1: 28.54, 28.27, 25.81, 28.41, 29.09,
28.09, 29.72, 23.56
◦ Sample machine 2: 31.85, 29.96, 31.97, 33.68, 23.81,
30.79
◦ 𝑥1 = 27.68, 𝑠1 = 2.014, 𝑥2 = 30.34, 𝑠2 = 3.44
◦ 𝑆 𝑝
2 =
𝑛1−1 𝑠1
2+ 𝑛2−1 𝑠2
2
𝑛1+𝑛2−2
=
8 − 1 4.1+ 6 − 1 11.8
8+6−2
= 7.3
◦ 𝑇 =
𝑥1−𝑥2
𝑆 𝑝
1
𝑛1
+
1
𝑛2
=
−2.66
7.3
1
8
+
1
6
= −1.82
◦ H0: m1 – m2 = 0 H1: m1 – m2 ≠ 0
◦ H0 cannot be rejected at the 5% significance level
Actual
H0 H1
Decision
H0 ☺ Type 2
H1 Type 1 ☺
a = 5%
b
Actual
H0 H1
Decision
H0 1 - a b
H1 a 1 - b
significance
power
Distribution of Sample Means
z = 1.6449
◦ Motivation
 Decide reasonableness of using particular
probability model to describe empirical data
◦ Example uses
 Does Poisson probability distribution fit
empirical data?
 Are two categorical variables independent?
Number Frequency
0 10
1 17
2 42
3 34
4 12
5 5
>5 0
120
Average number of customers per
hour = 2.3
𝑃 𝑋 = 𝑥 =
e−𝜆
𝜆 𝑥
𝑥!
=
e−2.3
2.3 𝑥
𝑥!
Number Frequency
observed
0 10
1 17
2 42
3 34
4 12
5 5
>5 0
120
𝜒2
=
𝑖=1
𝑘
𝑂𝑖 − 𝐸𝑖
2
𝐸𝑖
≈ 𝜒2
𝑘 − 𝑚 − 1
• k is number of categories
• m is number of estimated
parameters in model
• Only valid if Ei ≥ 5 for all i
Frequency
expected
0.1003 12.0311
0.2306 27.6714
0.2652 31.8222
0.2033 24.3970
0.1169 14.0283
0.0538 6.4530
0.0300 3.5971
1 120
Number Frequency
observed
Frequency
expected
0 10 0.1003 12.0311
1 17 0.2306 27.6714
2 42 0.2652 31.8222
3 34 0.2033 24.3970
4 12 0.1169 14.0283
>4 5 0.0838 10.0501
120 1 120
𝜒2
=
𝑖=1
𝑘
𝑂𝑖 − 𝐸𝑖
2
𝐸𝑖
≈ 𝜒2
𝑘 − 𝑚 − 1
• k = 6
• m = 1
• Valid since Ei ≥ 5 for all i
significance level
p = 0.05 p = 0.01
aR = 5.00%
aR =
1.00%
n = k - m -1
1 3.841 6.635
2 5.991 9.210
3 7.815 11.345
4 9.488 13.277
5 11.070 15.086
etc.
aR
c2
Number Frequency
observed
Frequency
expected
(O – E)2/E
0 10 0.1003 12.0311 0.34
1 17 0.2306 27.6714 4.12
2 42 0.2652 31.8222 3.26
3 34 0.2033 24.3970 3.78
4 12 0.1169 14.0283 0.29
>4 5 0.0838 10.0501 2.54
120 1 120 14.32
𝜒2 =
𝑖=1
𝑘
𝑂𝑖 − 𝐸𝑖
2
𝐸𝑖
= 14.32
H0 is rejected at the 5% significance level.
Motivation
• Is there an association between two
categorical variables?
Method of Follow-up
email phone visit
satisfied 15 22 17 54
neither 6 6 3 15
dissatisfied 9 2 10 21
30 30 30 90
• Is there an association between two
categorical variables?
• What are expected counts with no
association?
Method of Follow-up
email phone visit
90
• Is there an association between two categorical
variables?
• What are expected counts with no association?
Method of Follow-up
satisfied
neither
dissatisfied
90
• Is there an association between two categorical
variables?
• What are expected counts with no association?
Method of Follow-up
email phone visit
satisfied
neither
dissatisfied
90
• Observed and expected counts.
Method of Follow-up
email phone visit
satisfied 15 (18) 22 (18) 17 (18) 54
neither 6 (5) 6 (5) 3 (5) 15
dissatisfied 9 (7) 2 (7) 10 (7) 21
30 30 30 90
𝜒2
=
𝑖=1
𝑘
𝑂𝑖 − 𝐸𝑖
2
𝐸𝑖
= 8.07 𝜒2
≈ 𝜒2
𝑟 − 1 𝑐 − 1
◦ Simple random sampling
◦ Systematic random sampling
◦ Stratified random sampling
◦ Cluster (area) sampling
◦ Quota sampling
◦ Availability / convenience sampling
◦ Purposive sampling
By the end of this topic students will be able
to:
◦ Perform a single sample t-test of the mean
◦ Perform a two sample t-test
◦ Interpret significance probabilities
◦ Perform a c2 goodness of fit test
• Buglear, J. Quantitative Methods for Business.
Elsevier Butterworth Heinemann.
• Hinton, PR. Statistics Explained. Routledge.
• Thomas, AB. Research Skills for Management
Studies. Routledge.
• Thomas, AB. Research Concepts for
Management Studies. Routledge.
• Wisniewski, M. Quantitative Methods for
Decision Makers. FT Prentice Hall.
Any Questions?

Contenu connexe

Tendances

Statistics lec2
Statistics lec2Statistics lec2
Statistics lec2Hoss Angel
 
Hypothesis testing examples on z test
Hypothesis testing examples on z testHypothesis testing examples on z test
Hypothesis testing examples on z testJags Jagdish
 
Complements and Conditional Probability, and Bayes' Theorem
 Complements and Conditional Probability, and Bayes' Theorem Complements and Conditional Probability, and Bayes' Theorem
Complements and Conditional Probability, and Bayes' TheoremLong Beach City College
 
Hypergeometric distribution
Hypergeometric distributionHypergeometric distribution
Hypergeometric distributionmohammad nouman
 
Probability distribution
Probability distributionProbability distribution
Probability distributionPunit Raut
 
Binomial,Poisson,Geometric,Normal distribution
Binomial,Poisson,Geometric,Normal distributionBinomial,Poisson,Geometric,Normal distribution
Binomial,Poisson,Geometric,Normal distributionBharath kumar Karanam
 
Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or Variance Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or Variance Long Beach City College
 
Business Statistics Chapter 8
Business Statistics Chapter 8Business Statistics Chapter 8
Business Statistics Chapter 8Lux PP
 
Business Statistics Chapter 6
Business Statistics Chapter 6Business Statistics Chapter 6
Business Statistics Chapter 6Lux PP
 

Tendances (17)

Statistics lec2
Statistics lec2Statistics lec2
Statistics lec2
 
Hypothesis testing examples on z test
Hypothesis testing examples on z testHypothesis testing examples on z test
Hypothesis testing examples on z test
 
Estimating a Population Mean
Estimating a Population MeanEstimating a Population Mean
Estimating a Population Mean
 
Testing a Claim About a Mean
Testing a Claim About a MeanTesting a Claim About a Mean
Testing a Claim About a Mean
 
Complements and Conditional Probability, and Bayes' Theorem
 Complements and Conditional Probability, and Bayes' Theorem Complements and Conditional Probability, and Bayes' Theorem
Complements and Conditional Probability, and Bayes' Theorem
 
Statistics project
Statistics projectStatistics project
Statistics project
 
Estimation
EstimationEstimation
Estimation
 
Hypergeometric distribution
Hypergeometric distributionHypergeometric distribution
Hypergeometric distribution
 
Applied math sba
Applied math sbaApplied math sba
Applied math sba
 
Probability distribution
Probability distributionProbability distribution
Probability distribution
 
Chapter8
Chapter8Chapter8
Chapter8
 
Binomial,Poisson,Geometric,Normal distribution
Binomial,Poisson,Geometric,Normal distributionBinomial,Poisson,Geometric,Normal distribution
Binomial,Poisson,Geometric,Normal distribution
 
Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or Variance Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or Variance
 
Normal as Approximation to Binomial
Normal as Approximation to Binomial  Normal as Approximation to Binomial
Normal as Approximation to Binomial
 
Business Statistics Chapter 8
Business Statistics Chapter 8Business Statistics Chapter 8
Business Statistics Chapter 8
 
Chi Square & Anova
Chi Square & AnovaChi Square & Anova
Chi Square & Anova
 
Business Statistics Chapter 6
Business Statistics Chapter 6Business Statistics Chapter 6
Business Statistics Chapter 6
 

Similaire à Lecture 04 Inferential Statisitcs 2

t-z-chi-square tests of sig.pdf
t-z-chi-square tests of sig.pdft-z-chi-square tests of sig.pdf
t-z-chi-square tests of sig.pdfAmoghLavania1
 
1192012 155942 f023_=_statistical_inference
1192012 155942 f023_=_statistical_inference1192012 155942 f023_=_statistical_inference
1192012 155942 f023_=_statistical_inferenceDev Pandey
 
Percentage and its applications /COMMERCIAL MATHEMATICS
Percentage and its applications /COMMERCIAL MATHEMATICSPercentage and its applications /COMMERCIAL MATHEMATICS
Percentage and its applications /COMMERCIAL MATHEMATICSindianeducation
 
Simple lin regress_inference
Simple lin regress_inferenceSimple lin regress_inference
Simple lin regress_inferenceKemal İnciroğlu
 
Math 533 ( applied managerial statistics ) final exam answers
Math 533 ( applied managerial statistics ) final exam answersMath 533 ( applied managerial statistics ) final exam answers
Math 533 ( applied managerial statistics ) final exam answersPatrickrasacs
 
1) A sample of 10 observations is selected from a normal populatio.docx
1) A sample of 10 observations is selected from a normal populatio.docx1) A sample of 10 observations is selected from a normal populatio.docx
1) A sample of 10 observations is selected from a normal populatio.docxdorishigh
 
3-measurement-161127184347.pptx
3-measurement-161127184347.pptx3-measurement-161127184347.pptx
3-measurement-161127184347.pptxDinoraSattorzoda
 
Statistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docxStatistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docxdessiechisomjj4
 

Similaire à Lecture 04 Inferential Statisitcs 2 (20)

t-z-chi-square tests of sig.pdf
t-z-chi-square tests of sig.pdft-z-chi-square tests of sig.pdf
t-z-chi-square tests of sig.pdf
 
LECTURE N0 5.pdf
LECTURE N0 5.pdfLECTURE N0 5.pdf
LECTURE N0 5.pdf
 
1192012 155942 f023_=_statistical_inference
1192012 155942 f023_=_statistical_inference1192012 155942 f023_=_statistical_inference
1192012 155942 f023_=_statistical_inference
 
Stats Project PowerPoint
Stats Project PowerPointStats Project PowerPoint
Stats Project PowerPoint
 
Percentage and its applications /COMMERCIAL MATHEMATICS
Percentage and its applications /COMMERCIAL MATHEMATICSPercentage and its applications /COMMERCIAL MATHEMATICS
Percentage and its applications /COMMERCIAL MATHEMATICS
 
3.2 Measures of variation
3.2 Measures of variation3.2 Measures of variation
3.2 Measures of variation
 
Simple lin regress_inference
Simple lin regress_inferenceSimple lin regress_inference
Simple lin regress_inference
 
Inferences about Two Proportions
 Inferences about Two Proportions Inferences about Two Proportions
Inferences about Two Proportions
 
Two Means, Independent Samples
Two Means, Independent SamplesTwo Means, Independent Samples
Two Means, Independent Samples
 
S2 pn
S2 pnS2 pn
S2 pn
 
Math 533 ( applied managerial statistics ) final exam answers
Math 533 ( applied managerial statistics ) final exam answersMath 533 ( applied managerial statistics ) final exam answers
Math 533 ( applied managerial statistics ) final exam answers
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Measures of Variation
Measures of Variation Measures of Variation
Measures of Variation
 
1) A sample of 10 observations is selected from a normal populatio.docx
1) A sample of 10 observations is selected from a normal populatio.docx1) A sample of 10 observations is selected from a normal populatio.docx
1) A sample of 10 observations is selected from a normal populatio.docx
 
Multiple Regression
Multiple RegressionMultiple Regression
Multiple Regression
 
Estimating a Population Mean
Estimating a Population MeanEstimating a Population Mean
Estimating a Population Mean
 
3-measurement-161127184347.pptx
3-measurement-161127184347.pptx3-measurement-161127184347.pptx
3-measurement-161127184347.pptx
 
STATISTIC ESTIMATION
STATISTIC ESTIMATIONSTATISTIC ESTIMATION
STATISTIC ESTIMATION
 
Statistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docxStatistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docx
 
Sampling theory
Sampling theorySampling theory
Sampling theory
 

Plus de Riri Ariyanty

Income & Asset Value Measurement in Financial Accounting
Income & Asset Value Measurement in Financial AccountingIncome & Asset Value Measurement in Financial Accounting
Income & Asset Value Measurement in Financial AccountingRiri Ariyanty
 
PPE Depreciation in Financial Accounting
PPE Depreciation in Financial AccountingPPE Depreciation in Financial Accounting
PPE Depreciation in Financial AccountingRiri Ariyanty
 
Lecture 08 Regression Analysis Part 2
Lecture 08 Regression Analysis Part 2Lecture 08 Regression Analysis Part 2
Lecture 08 Regression Analysis Part 2Riri Ariyanty
 
Lecture 07 Regression Analysis Part 1
Lecture 07 Regression Analysis Part 1Lecture 07 Regression Analysis Part 1
Lecture 07 Regression Analysis Part 1Riri Ariyanty
 
Lecture 10 Linear Programming
Lecture 10 Linear ProgrammingLecture 10 Linear Programming
Lecture 10 Linear ProgrammingRiri Ariyanty
 
Lecture 06 Differentiation 2
Lecture 06 Differentiation 2Lecture 06 Differentiation 2
Lecture 06 Differentiation 2Riri Ariyanty
 
Lecture 05 Differentiation 1
Lecture 05 Differentiation 1Lecture 05 Differentiation 1
Lecture 05 Differentiation 1Riri Ariyanty
 
Lecture 02 Probability Distributions
Lecture 02 Probability DistributionsLecture 02 Probability Distributions
Lecture 02 Probability DistributionsRiri Ariyanty
 
Lecture 01 Introductory Management Statistics
Lecture 01 Introductory Management StatisticsLecture 01 Introductory Management Statistics
Lecture 01 Introductory Management StatisticsRiri Ariyanty
 
Lecture 6 Cost Profit Volume Analysis
Lecture 6 Cost Profit Volume AnalysisLecture 6 Cost Profit Volume Analysis
Lecture 6 Cost Profit Volume AnalysisRiri Ariyanty
 
Lecture 3 Determining How Costs Behave
Lecture 3 Determining How Costs BehaveLecture 3 Determining How Costs Behave
Lecture 3 Determining How Costs BehaveRiri Ariyanty
 
Lecture 2 Cost Terminology and Classification
Lecture 2 Cost Terminology and ClassificationLecture 2 Cost Terminology and Classification
Lecture 2 Cost Terminology and ClassificationRiri Ariyanty
 
Lecture 1 Cost and Management Accounting
Lecture 1 Cost and Management AccountingLecture 1 Cost and Management Accounting
Lecture 1 Cost and Management AccountingRiri Ariyanty
 

Plus de Riri Ariyanty (13)

Income & Asset Value Measurement in Financial Accounting
Income & Asset Value Measurement in Financial AccountingIncome & Asset Value Measurement in Financial Accounting
Income & Asset Value Measurement in Financial Accounting
 
PPE Depreciation in Financial Accounting
PPE Depreciation in Financial AccountingPPE Depreciation in Financial Accounting
PPE Depreciation in Financial Accounting
 
Lecture 08 Regression Analysis Part 2
Lecture 08 Regression Analysis Part 2Lecture 08 Regression Analysis Part 2
Lecture 08 Regression Analysis Part 2
 
Lecture 07 Regression Analysis Part 1
Lecture 07 Regression Analysis Part 1Lecture 07 Regression Analysis Part 1
Lecture 07 Regression Analysis Part 1
 
Lecture 10 Linear Programming
Lecture 10 Linear ProgrammingLecture 10 Linear Programming
Lecture 10 Linear Programming
 
Lecture 06 Differentiation 2
Lecture 06 Differentiation 2Lecture 06 Differentiation 2
Lecture 06 Differentiation 2
 
Lecture 05 Differentiation 1
Lecture 05 Differentiation 1Lecture 05 Differentiation 1
Lecture 05 Differentiation 1
 
Lecture 02 Probability Distributions
Lecture 02 Probability DistributionsLecture 02 Probability Distributions
Lecture 02 Probability Distributions
 
Lecture 01 Introductory Management Statistics
Lecture 01 Introductory Management StatisticsLecture 01 Introductory Management Statistics
Lecture 01 Introductory Management Statistics
 
Lecture 6 Cost Profit Volume Analysis
Lecture 6 Cost Profit Volume AnalysisLecture 6 Cost Profit Volume Analysis
Lecture 6 Cost Profit Volume Analysis
 
Lecture 3 Determining How Costs Behave
Lecture 3 Determining How Costs BehaveLecture 3 Determining How Costs Behave
Lecture 3 Determining How Costs Behave
 
Lecture 2 Cost Terminology and Classification
Lecture 2 Cost Terminology and ClassificationLecture 2 Cost Terminology and Classification
Lecture 2 Cost Terminology and Classification
 
Lecture 1 Cost and Management Accounting
Lecture 1 Cost and Management AccountingLecture 1 Cost and Management Accounting
Lecture 1 Cost and Management Accounting
 

Dernier

BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWQuiz Club NITW
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptxmary850239
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvRicaMaeCastro1
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxMichelleTuguinay1
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 

Dernier (20)

BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx
 
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of EngineeringFaculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 

Lecture 04 Inferential Statisitcs 2

  • 2. This topic will cover: ◦ Hypothesis testing with a sample  CI, fixed level, significance testing ◦ Two sample t-test ◦ Significance, errors and power ◦ Frequency data and the c2 test
  • 3. By the end of this topic students will be able to: ◦ Perform a single sample t-test of the mean ◦ Perform a two sample t-test ◦ Interpret significance probabilities ◦ Perform a c2 goodness of fit test
  • 4. ◦ A car manufacturer releases a new car and claims that its urban cycle fuel efficiency is 18.5 km per litre. A car enthusiast magazine decides to test this claim.  Null hypothesis  H0: m = 18.5  Alternative hypothesis is  H1: m ≠ 18.5
  • 5.
  • 6. 𝑥 = 17.79 𝑠 = 0.4782 𝜇−, 𝜇+ = 𝑥 − 𝑡 𝛾 𝑠 𝑛 , 𝑥 + 𝑡 𝛾 𝑠 𝑛 = (17.20, 18.38) a1 5.00% 2.50% 1.00% 0.50% a2 10.00% 5.00% 2.00% 1.00% g 90.00% 95.00% 98.00% 99.00% n = n - 1 1 6.3138 12.7062 31.8205 63.6567 2 2.9200 4.3027 6.9646 9.9248 3 2.3534 3.1824 4.5407 5.8409 4 2.1318 2.7764 3.7469 4.6041
  • 8. ◦ Process:  State null and alternative hypotheses  Decide test statistic and its distribution given H0 is true  Set rejection region (the significance level for the test)  Calculate test statistic from sample  Does test statistic fall in rejection region? ◦ Under H0 the statistic T 𝑇 = 𝑥 − 𝜇 𝑠 𝑛 ◦ is distributed as T ~ t(n- 1)
  • 10. H0: m = 18.5 H1: m ≠ 18.5 𝑥 = 17.79 𝑠 = 0.4782 𝑇 = 𝑥 − 𝜇 𝑠 𝑛 = 17.79 − 18.5 0.4782 5 = −3.32 At the 1% significance level the data do not provide sufficient evidence to reject H0, a mean urban cycle fuel efficiency of 18.5 km per litre is plausible. 0.5%0.5% -4.6041 4.6041 99% t(4)
  • 11. H0: m = 18.5 H1: m< 18.5 𝑥 = 17.79 𝑠 = 0.4782 𝑇 = 𝑥 − 𝜇 𝑠 𝑛 = 17.79 − 18.5 0.4782 5 = −3.32 H0 is not rejected at the 1% significance level, a mean urban cycle fuel efficiency of 18.5 km per litre is plausible. 1.0% -3.7469 99% t(4)
  • 12. H0: m = 18.5 H1: m≠ 18.5 𝑥 = 17.79 𝑠 = 0.4782 𝑇 = 𝑥 − 𝜇 𝑠 𝑛 = 17.79 − 18.5 0.4782 5 = −3.32 𝑃 𝑇 > 3.32 = 𝑝 = 0.0294 1.47%1.47% -3.32 3.32 t(4)
  • 13. ◦ Motivation  To test whether the means of two populations are equal ◦ Assumptions:  Both populations essentially normally distributed  Independence of populations  Sample variances differ by less than a factor of 3
  • 14.
  • 15. Under H0 the statistic T 𝑇 = 𝑥1 − 𝑥2 𝑆 𝑝 1 𝑛1 + 1 𝑛2 is distributed as T ~ t(n1+n2- 2), where  𝑆 𝑝 2 = 𝑛1−1 𝑠1 2+ 𝑛2−1 𝑠2 2 𝑛1+𝑛2−2  
  • 16. ◦ Two machines on a production line are set to produce the same part. Workers down the line are concerned that the two machines are not producing parts of the same size. Test the hypothesis. ◦ H0: m1 – m2 = 0 H1: m1 – m2 ≠ 0 ◦ Sample machine 1: 28.54, 28.27, 25.81, 28.41, 29.09, 28.09, 29.72, 23.56 ◦ Sample machine 2: 31.85, 29.96, 31.97, 33.68, 23.81, 30.79
  • 17. 2.5%2.5% -2.1788 2.1788 95% t(12) 5.0% -1.7823 95% t(12) a1 5.00% 2.50% 1.00% 0.50% a2 10.00% 5.00% 2.00% 1.00% g 90.00% 95.00% 98.00% 99.00% n = n1 + n2 - 2 11 1.7959 2.2010 2.7181 3.1058 12 1.7823 2.1788 2.6810 3.0545 13 1.7709 2.1604 2.6503 3.0123
  • 18. ◦ Sample machine 1: 28.54, 28.27, 25.81, 28.41, 29.09, 28.09, 29.72, 23.56 ◦ Sample machine 2: 31.85, 29.96, 31.97, 33.68, 23.81, 30.79 ◦ 𝑥1 = 27.68, 𝑠1 = 2.014, 𝑥2 = 30.34, 𝑠2 = 3.44 ◦ 𝑆 𝑝 2 = 𝑛1−1 𝑠1 2+ 𝑛2−1 𝑠2 2 𝑛1+𝑛2−2 = 8 − 1 4.1+ 6 − 1 11.8 8+6−2 = 7.3 ◦ 𝑇 = 𝑥1−𝑥2 𝑆 𝑝 1 𝑛1 + 1 𝑛2 = −2.66 7.3 1 8 + 1 6 = −1.82 ◦ H0: m1 – m2 = 0 H1: m1 – m2 ≠ 0 ◦ H0 cannot be rejected at the 5% significance level
  • 19. Actual H0 H1 Decision H0 ☺ Type 2 H1 Type 1 ☺ a = 5% b Actual H0 H1 Decision H0 1 - a b H1 a 1 - b significance power Distribution of Sample Means z = 1.6449
  • 20. ◦ Motivation  Decide reasonableness of using particular probability model to describe empirical data ◦ Example uses  Does Poisson probability distribution fit empirical data?  Are two categorical variables independent?
  • 21. Number Frequency 0 10 1 17 2 42 3 34 4 12 5 5 >5 0 120 Average number of customers per hour = 2.3 𝑃 𝑋 = 𝑥 = e−𝜆 𝜆 𝑥 𝑥! = e−2.3 2.3 𝑥 𝑥!
  • 22. Number Frequency observed 0 10 1 17 2 42 3 34 4 12 5 5 >5 0 120 𝜒2 = 𝑖=1 𝑘 𝑂𝑖 − 𝐸𝑖 2 𝐸𝑖 ≈ 𝜒2 𝑘 − 𝑚 − 1 • k is number of categories • m is number of estimated parameters in model • Only valid if Ei ≥ 5 for all i Frequency expected 0.1003 12.0311 0.2306 27.6714 0.2652 31.8222 0.2033 24.3970 0.1169 14.0283 0.0538 6.4530 0.0300 3.5971 1 120
  • 23. Number Frequency observed Frequency expected 0 10 0.1003 12.0311 1 17 0.2306 27.6714 2 42 0.2652 31.8222 3 34 0.2033 24.3970 4 12 0.1169 14.0283 >4 5 0.0838 10.0501 120 1 120 𝜒2 = 𝑖=1 𝑘 𝑂𝑖 − 𝐸𝑖 2 𝐸𝑖 ≈ 𝜒2 𝑘 − 𝑚 − 1 • k = 6 • m = 1 • Valid since Ei ≥ 5 for all i
  • 24. significance level p = 0.05 p = 0.01 aR = 5.00% aR = 1.00% n = k - m -1 1 3.841 6.635 2 5.991 9.210 3 7.815 11.345 4 9.488 13.277 5 11.070 15.086 etc. aR c2
  • 25. Number Frequency observed Frequency expected (O – E)2/E 0 10 0.1003 12.0311 0.34 1 17 0.2306 27.6714 4.12 2 42 0.2652 31.8222 3.26 3 34 0.2033 24.3970 3.78 4 12 0.1169 14.0283 0.29 >4 5 0.0838 10.0501 2.54 120 1 120 14.32 𝜒2 = 𝑖=1 𝑘 𝑂𝑖 − 𝐸𝑖 2 𝐸𝑖 = 14.32 H0 is rejected at the 5% significance level.
  • 26. Motivation • Is there an association between two categorical variables? Method of Follow-up email phone visit satisfied 15 22 17 54 neither 6 6 3 15 dissatisfied 9 2 10 21 30 30 30 90
  • 27. • Is there an association between two categorical variables? • What are expected counts with no association? Method of Follow-up email phone visit 90
  • 28. • Is there an association between two categorical variables? • What are expected counts with no association? Method of Follow-up satisfied neither dissatisfied 90
  • 29. • Is there an association between two categorical variables? • What are expected counts with no association? Method of Follow-up email phone visit satisfied neither dissatisfied 90
  • 30. • Observed and expected counts. Method of Follow-up email phone visit satisfied 15 (18) 22 (18) 17 (18) 54 neither 6 (5) 6 (5) 3 (5) 15 dissatisfied 9 (7) 2 (7) 10 (7) 21 30 30 30 90 𝜒2 = 𝑖=1 𝑘 𝑂𝑖 − 𝐸𝑖 2 𝐸𝑖 = 8.07 𝜒2 ≈ 𝜒2 𝑟 − 1 𝑐 − 1
  • 31. ◦ Simple random sampling ◦ Systematic random sampling ◦ Stratified random sampling ◦ Cluster (area) sampling
  • 32. ◦ Quota sampling ◦ Availability / convenience sampling ◦ Purposive sampling
  • 33. By the end of this topic students will be able to: ◦ Perform a single sample t-test of the mean ◦ Perform a two sample t-test ◦ Interpret significance probabilities ◦ Perform a c2 goodness of fit test
  • 34. • Buglear, J. Quantitative Methods for Business. Elsevier Butterworth Heinemann. • Hinton, PR. Statistics Explained. Routledge. • Thomas, AB. Research Skills for Management Studies. Routledge. • Thomas, AB. Research Concepts for Management Studies. Routledge. • Wisniewski, M. Quantitative Methods for Decision Makers. FT Prentice Hall.