SlideShare a Scribd company logo
1 of 34
One-Way ANOVA
One-Way Analysis of Variance
One-Way ANOVA
 The one-way analysis of variance is used
to test the claim that three or more
population means are equal
 This is an extension of the two
independent samples t-test
One-Way ANOVA
 The response variable is the variable
you’re comparing
 The factor variable is the categorical
variable being used to define the groups
 We will assume k samples (groups)
 The one-way is because each value is
classified in exactly one way
 Examples include comparisons by gender,
race, political party, color, etc.
One-Way ANOVA
 Conditions or Assumptions
 The data are randomly sampled
 The variances of each population are
assumed equal
One-Way ANOVA
 The null hypothesis is that the means are all
equal
 The alternative hypothesis is that at least one
of the means is different
0 1 2 3
: k
H    
   
One-Way ANOVA
 The statistics classroom is divided into
three rows: front, middle, and back
 The instructor noticed that the further the
students were from him, the more likely
they were to miss class or use an instant
messenger during class
 He wanted to see if the students further
away did worse on the exams
One-Way ANOVA
The ANOVA doesn’t test that one mean is less
than another, only whether they’re all equal
Ha: At least one group mean is different.
0
: F M B
H   
 
One-Way ANOVA
 A random sample of the students in each
row was taken
 The score for those students on the
second exam was recorded
 Front: 82, 83, 97, 93, 55, 67, 53
 Middle: 83, 78, 68, 61, 77, 54, 69, 51, 63
 Back: 38, 59, 55, 66, 45, 52, 52, 61
One-Way ANOVA
The summary statistics for the grades of each row
are shown in the table below
Row Front Middle Back
Sample size 7 9 8
Mean 75.71 67.11 53.50
St. Dev 17.63 10.95 8.96
Variance 310.90 119.86 80.29
One-Way ANOVA
 Variation
 Variation is the sum of the squares of the deviations
between a value and the mean of the value
 There is some variation between the groups, this is
called the between group variation (SSB)
 There is some variation within the groups, this is
called the within group variation (SSW or SSE)
 variation that can’t be explained by the factor so it’s called
the error variation
 There is some variation in the data, this is called the
total variation denoted SS(Total) for the total Sum of
Squares (variation)
 SST = SSB + SSW
One-Way ANOVA
 There are two sources of variation
 the variation between the groups, SS(B), or
the variation due to the factor
 the variation within the groups, SS(W), or the
variation that can’t be explained by the factor
so it’s called the error variation
One-Way ANOVA
 Here is the basic one-way ANOVA table
Source SS df MS F p
Between
Within
Total
One-Way ANOVA
 Grand Mean
 The grand mean is the average of all the values
when the factor is ignored
 It is a weighted average of the individual sample
means
 Or it can simply be a normal mean ignoring the
groupings in data
1 1 2 2
1 2
k k
k
n x n x n x
x
n n n
  

  
1
1
k
i i
i
k
i
i
n x
x
n





One-Way ANOVA
 Grand Mean for our example is 65.08
     
7 75.71 9 67.11 8 53.50
7 9 8
1562
24
65.08
x
x
x
 

 


One-Way ANOVA
 Total Variation
 Total variation is the variation between individual
observations and the grand mean
 TSS= ( 82- 65.08 )2+ (83- 65.08) 2 …. (52- 65.08
) 2 + (61- 65.08) 2
 TSS=5288
One-Way ANOVA
 Between Group Variation, SS(B)
 The between group variation is the variation between
each sample mean and the grand mean
 Each individual variation is weighted by the sample
size
       
2 2 2
1 1 2 2 k k
SS B n x x n x x n x x
      
   
2
1
k
i i
i
SS B n x x

 

One-Way ANOVA
The Between Group Variation for our example is
SS(B)=1900.8376
SS(B)=1900.8376
       
2 2 2
7 75.71 65.08 9 67.11 65.08 8 53.50 65.08
SS B      
One-Way ANOVA
 Within Group Variation, SS(W)
 The Within Group Variation is the weighted total of
the individual variations
 The weighting is done with the degrees of freedom
 The df for each sample is one less than the sample
size for that sample.
One-Way ANOVA
Within Group Variation
OR it can simply be SSW=SST-SSB
since SST=SSB+SSW
  2
1
k
i i
i
SS W df s

 
  2 2 2
1 1 2 2 k k
SS W df s df s df s
   
One-Way ANOVA
 The within group variation for our example is
3386
       
6 310.90 8 119.86 7 80.29
SS W   
  3386.31 3386
SS W  
One-Way ANOVA
 After filling in the sum of squares, we have …
Source SS df MS F p
Between 1902
Within 3386
Total 5288
One-Way ANOVA
 Degrees of Freedom, df
 A degree of freedom occurs for each value that can
vary before the rest of the values are predetermined
 For example, if you had six numbers that had an
average of 40, you would know that the total had to
be 240. Five of the six numbers could be anything,
but once the first five are known, the last one is fixed
so the sum is 240. The df would be 6-1=5
 The df is often one less than the number of values
One-Way ANOVA
 The between group df is one less than the
number of groups
 We have three groups, so df(B) = 2
 The within group df is the sum of the individual
df’s of each group
 The sample sizes are 7, 9, and 8
 df(W) =N-t
 =(6 + 8 + 7) - 3= 24 – 3=21
 The total df is one less than the sample size
 df(Total) = 24 – 1 = 23
One-Way ANOVA
 Filling in the degrees of freedom gives this …
Source SS df MS F p
Between 1902 2
Within 3386 21
Total 5288 23
One-Way ANOVA
 Variances
 The variances are also called the Mean of the
Squares and abbreviated by MS, often with an
accompanying variable MS(B) or MS(W)
 They are an average squared deviation from the
mean and are found by dividing the variation by the
degrees of freedom
 MS = SS / df
Variation
Variance
df

One-Way ANOVA
 MS(B) = 1902 / 2 = 951.0
 MS(W) = 3386 / 21 = 161.2
 MS(T) = 5288 / 23 = 229.9
 Notice that the MS(Total) is NOT the sum of
MS(Between) and MS(Within).
 This works for the sum of squares SS(Total),
but not the mean square MS(Total)
 The MS(Total) isn’t usually shown
One-Way ANOVA
 Completing the MS gives …
Source SS df MS F p
Between 1902 2 951.0
Within 3386 21 161.2
Total 5288 23 229.9
One-Way ANOVA
 Special Variances
 The MS(Within) is also known as the pooled
estimate of the variance since it is a weighted
average of the individual variances
 Sometimes abbreviated
 The MS(Total) is the variance of the response
variable.
 Not technically part of ANOVA table, but useful none the
less
2
p
s
One-Way ANOVA
 F test statistic
 An F test statistic is the ratio of two sample
variances
 The MS(B) and MS(W) are two sample
variances and that’s what we divide to find F.
 F = MS(B) / MS(W)
 For our data, F = 951.0 / 161.2 = 5.9
One-Way ANOVA
 Adding F to the table …
Source SS df MS F p
Between 1902 2 951.0 5.9
Within 3386 21 161.2
Total 5288 23 229.9
One-Way ANOVA
 The F test is a right tail test
 The F test statistic has an F distribution
with df(B) numerator df and df(W)
denominator df
 (F0.05,2,21) = 3.4668
One-Way ANOVA
 Since Fcal is greater than Ftab, we reject
the null hypothesis, hence we have
sufficient evidence to conclude that at
least one row has a different mean.
One-Way ANOVA
 There is enough evidence to support the
claim that there is a difference in the mean
scores of the front, middle, and back rows
in class.
 The ANOVA doesn’t tell which row is
different, you would need to look at
confidence intervals or run post hoc tests
to determine that

More Related Content

What's hot (20)

Randomisation techniques
Randomisation techniquesRandomisation techniques
Randomisation techniques
 
Factorial Design
Factorial DesignFactorial Design
Factorial Design
 
Frequency Distributions
Frequency DistributionsFrequency Distributions
Frequency Distributions
 
Analysis of variance (anova)
Analysis of variance (anova)Analysis of variance (anova)
Analysis of variance (anova)
 
Anova and T-Test
Anova and T-TestAnova and T-Test
Anova and T-Test
 
Statistics - ONE WAY ANOVA
Statistics - ONE WAY ANOVAStatistics - ONE WAY ANOVA
Statistics - ONE WAY ANOVA
 
Parametric tests
Parametric testsParametric tests
Parametric tests
 
Student t test
Student t testStudent t test
Student t test
 
Parametric tests
Parametric  testsParametric  tests
Parametric tests
 
Student's t test
Student's t testStudent's t test
Student's t test
 
Analysis of variance anova
Analysis of variance anovaAnalysis of variance anova
Analysis of variance anova
 
Test of significance
Test of significanceTest of significance
Test of significance
 
# 6th lect structure of the trials
# 6th lect structure of the trials# 6th lect structure of the trials
# 6th lect structure of the trials
 
Factor analysis ppt
Factor analysis pptFactor analysis ppt
Factor analysis ppt
 
oneway ANOVA.ppt
oneway ANOVA.pptoneway ANOVA.ppt
oneway ANOVA.ppt
 
Parametric and non parametric test in biostatistics
Parametric and non parametric test in biostatistics Parametric and non parametric test in biostatistics
Parametric and non parametric test in biostatistics
 
Factorial design
Factorial designFactorial design
Factorial design
 
Optimization
OptimizationOptimization
Optimization
 
Student's T-test, Paired T-Test, ANOVA & Proportionate Test
Student's T-test, Paired T-Test, ANOVA & Proportionate TestStudent's T-test, Paired T-Test, ANOVA & Proportionate Test
Student's T-test, Paired T-Test, ANOVA & Proportionate Test
 
Frequency distribution
Frequency distributionFrequency distribution
Frequency distribution
 

Similar to ANOVA.ppt

Similar to ANOVA.ppt (20)

oneway.ppt
oneway.pptoneway.ppt
oneway.ppt
 
Anova test
Anova testAnova test
Anova test
 
Anova n metaanalysis
Anova n metaanalysisAnova n metaanalysis
Anova n metaanalysis
 
Anova (f test) and mean differentiation
Anova (f test) and mean differentiationAnova (f test) and mean differentiation
Anova (f test) and mean differentiation
 
ANOVA.ppt
ANOVA.pptANOVA.ppt
ANOVA.ppt
 
ANOVA One way ppt statistics.pptx
ANOVA One way ppt statistics.pptxANOVA One way ppt statistics.pptx
ANOVA One way ppt statistics.pptx
 
Tugasan kumpulan anova
Tugasan kumpulan anovaTugasan kumpulan anova
Tugasan kumpulan anova
 
Full Lecture Presentation on ANOVA
Full Lecture Presentation on ANOVAFull Lecture Presentation on ANOVA
Full Lecture Presentation on ANOVA
 
Ashish Dadheech PRESENT TOPIC NURSING RESEARCH
Ashish Dadheech PRESENT TOPIC NURSING RESEARCHAshish Dadheech PRESENT TOPIC NURSING RESEARCH
Ashish Dadheech PRESENT TOPIC NURSING RESEARCH
 
ayANOVA.ppt
ayANOVA.pptayANOVA.ppt
ayANOVA.ppt
 
Shovan anova main
Shovan anova mainShovan anova main
Shovan anova main
 
Analysis of variance ppt @ bec doms
Analysis of variance ppt @ bec domsAnalysis of variance ppt @ bec doms
Analysis of variance ppt @ bec doms
 
ANOVAs01.ppt
ANOVAs01.pptANOVAs01.ppt
ANOVAs01.ppt
 
ANOVAs01.ppt
ANOVAs01.pptANOVAs01.ppt
ANOVAs01.ppt
 
ANOVAs01.ppt KHLUGYIFTFYLYUGUH;OUYYUHJLNOI
ANOVAs01.ppt KHLUGYIFTFYLYUGUH;OUYYUHJLNOIANOVAs01.ppt KHLUGYIFTFYLYUGUH;OUYYUHJLNOI
ANOVAs01.ppt KHLUGYIFTFYLYUGUH;OUYYUHJLNOI
 
ANOVAs01.ppt
ANOVAs01.pptANOVAs01.ppt
ANOVAs01.ppt
 
ANOVAs01.ppt
ANOVAs01.pptANOVAs01.ppt
ANOVAs01.ppt
 
ANOVAs01.ppt
ANOVAs01.pptANOVAs01.ppt
ANOVAs01.ppt
 
analysisofvariance-210906094053.pdf
analysisofvariance-210906094053.pdfanalysisofvariance-210906094053.pdf
analysisofvariance-210906094053.pdf
 
Analysis of variance
Analysis of varianceAnalysis of variance
Analysis of variance
 

More from GoharSaeed6

Strategic planning and management Lecture.ppt
Strategic planning and management Lecture.pptStrategic planning and management Lecture.ppt
Strategic planning and management Lecture.pptGoharSaeed6
 
3&4. project scope management at project.ppt
3&4. project scope management at project.ppt3&4. project scope management at project.ppt
3&4. project scope management at project.pptGoharSaeed6
 
GRP-Change_Management presentation a research work
GRP-Change_Management presentation a research workGRP-Change_Management presentation a research work
GRP-Change_Management presentation a research workGoharSaeed6
 
SUPPLY CHAIN Chain Management LECTURE.ppt
SUPPLY CHAIN Chain Management LECTURE.pptSUPPLY CHAIN Chain Management LECTURE.ppt
SUPPLY CHAIN Chain Management LECTURE.pptGoharSaeed6
 
Public Servant & Change Management by Lt. General Javed Hassan (07-09-2018).pptx
Public Servant & Change Management by Lt. General Javed Hassan (07-09-2018).pptxPublic Servant & Change Management by Lt. General Javed Hassan (07-09-2018).pptx
Public Servant & Change Management by Lt. General Javed Hassan (07-09-2018).pptxGoharSaeed6
 
Managing Change in organization and business
Managing Change in organization and businessManaging Change in organization and business
Managing Change in organization and businessGoharSaeed6
 
Organization Change Management for the handling change in organizations
Organization Change Management for the handling change in organizationsOrganization Change Management for the handling change in organizations
Organization Change Management for the handling change in organizationsGoharSaeed6
 
Approaches To Planning by Hassan Raza.ppt
Approaches To Planning by Hassan Raza.pptApproaches To Planning by Hassan Raza.ppt
Approaches To Planning by Hassan Raza.pptGoharSaeed6
 
MNC & GLOBALIZATION.ppt
MNC &  GLOBALIZATION.pptMNC &  GLOBALIZATION.ppt
MNC & GLOBALIZATION.pptGoharSaeed6
 
Nexus of Agriculture & rural development.GOHAR.ppt
Nexus of Agriculture & rural development.GOHAR.pptNexus of Agriculture & rural development.GOHAR.ppt
Nexus of Agriculture & rural development.GOHAR.pptGoharSaeed6
 
INTERNAL CONTROLS & INTERNAL AUDIT.ppt
INTERNAL CONTROLS & INTERNAL AUDIT.pptINTERNAL CONTROLS & INTERNAL AUDIT.ppt
INTERNAL CONTROLS & INTERNAL AUDIT.pptGoharSaeed6
 

More from GoharSaeed6 (12)

Strategic planning and management Lecture.ppt
Strategic planning and management Lecture.pptStrategic planning and management Lecture.ppt
Strategic planning and management Lecture.ppt
 
3&4. project scope management at project.ppt
3&4. project scope management at project.ppt3&4. project scope management at project.ppt
3&4. project scope management at project.ppt
 
GRP-Change_Management presentation a research work
GRP-Change_Management presentation a research workGRP-Change_Management presentation a research work
GRP-Change_Management presentation a research work
 
SUPPLY CHAIN Chain Management LECTURE.ppt
SUPPLY CHAIN Chain Management LECTURE.pptSUPPLY CHAIN Chain Management LECTURE.ppt
SUPPLY CHAIN Chain Management LECTURE.ppt
 
Public Servant & Change Management by Lt. General Javed Hassan (07-09-2018).pptx
Public Servant & Change Management by Lt. General Javed Hassan (07-09-2018).pptxPublic Servant & Change Management by Lt. General Javed Hassan (07-09-2018).pptx
Public Servant & Change Management by Lt. General Javed Hassan (07-09-2018).pptx
 
Managing Change in organization and business
Managing Change in organization and businessManaging Change in organization and business
Managing Change in organization and business
 
Organization Change Management for the handling change in organizations
Organization Change Management for the handling change in organizationsOrganization Change Management for the handling change in organizations
Organization Change Management for the handling change in organizations
 
Approaches To Planning by Hassan Raza.ppt
Approaches To Planning by Hassan Raza.pptApproaches To Planning by Hassan Raza.ppt
Approaches To Planning by Hassan Raza.ppt
 
OB intro.pptx
OB intro.pptxOB intro.pptx
OB intro.pptx
 
MNC & GLOBALIZATION.ppt
MNC &  GLOBALIZATION.pptMNC &  GLOBALIZATION.ppt
MNC & GLOBALIZATION.ppt
 
Nexus of Agriculture & rural development.GOHAR.ppt
Nexus of Agriculture & rural development.GOHAR.pptNexus of Agriculture & rural development.GOHAR.ppt
Nexus of Agriculture & rural development.GOHAR.ppt
 
INTERNAL CONTROLS & INTERNAL AUDIT.ppt
INTERNAL CONTROLS & INTERNAL AUDIT.pptINTERNAL CONTROLS & INTERNAL AUDIT.ppt
INTERNAL CONTROLS & INTERNAL AUDIT.ppt
 

Recently uploaded

04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 

Recently uploaded (20)

꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
Decoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in ActionDecoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in Action
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 

ANOVA.ppt

  • 2. One-Way ANOVA  The one-way analysis of variance is used to test the claim that three or more population means are equal  This is an extension of the two independent samples t-test
  • 3. One-Way ANOVA  The response variable is the variable you’re comparing  The factor variable is the categorical variable being used to define the groups  We will assume k samples (groups)  The one-way is because each value is classified in exactly one way  Examples include comparisons by gender, race, political party, color, etc.
  • 4. One-Way ANOVA  Conditions or Assumptions  The data are randomly sampled  The variances of each population are assumed equal
  • 5. One-Way ANOVA  The null hypothesis is that the means are all equal  The alternative hypothesis is that at least one of the means is different 0 1 2 3 : k H        
  • 6. One-Way ANOVA  The statistics classroom is divided into three rows: front, middle, and back  The instructor noticed that the further the students were from him, the more likely they were to miss class or use an instant messenger during class  He wanted to see if the students further away did worse on the exams
  • 7. One-Way ANOVA The ANOVA doesn’t test that one mean is less than another, only whether they’re all equal Ha: At least one group mean is different. 0 : F M B H     
  • 8. One-Way ANOVA  A random sample of the students in each row was taken  The score for those students on the second exam was recorded  Front: 82, 83, 97, 93, 55, 67, 53  Middle: 83, 78, 68, 61, 77, 54, 69, 51, 63  Back: 38, 59, 55, 66, 45, 52, 52, 61
  • 9. One-Way ANOVA The summary statistics for the grades of each row are shown in the table below Row Front Middle Back Sample size 7 9 8 Mean 75.71 67.11 53.50 St. Dev 17.63 10.95 8.96 Variance 310.90 119.86 80.29
  • 10. One-Way ANOVA  Variation  Variation is the sum of the squares of the deviations between a value and the mean of the value  There is some variation between the groups, this is called the between group variation (SSB)  There is some variation within the groups, this is called the within group variation (SSW or SSE)  variation that can’t be explained by the factor so it’s called the error variation  There is some variation in the data, this is called the total variation denoted SS(Total) for the total Sum of Squares (variation)  SST = SSB + SSW
  • 11. One-Way ANOVA  There are two sources of variation  the variation between the groups, SS(B), or the variation due to the factor  the variation within the groups, SS(W), or the variation that can’t be explained by the factor so it’s called the error variation
  • 12. One-Way ANOVA  Here is the basic one-way ANOVA table Source SS df MS F p Between Within Total
  • 13. One-Way ANOVA  Grand Mean  The grand mean is the average of all the values when the factor is ignored  It is a weighted average of the individual sample means  Or it can simply be a normal mean ignoring the groupings in data 1 1 2 2 1 2 k k k n x n x n x x n n n        1 1 k i i i k i i n x x n     
  • 14. One-Way ANOVA  Grand Mean for our example is 65.08       7 75.71 9 67.11 8 53.50 7 9 8 1562 24 65.08 x x x       
  • 15. One-Way ANOVA  Total Variation  Total variation is the variation between individual observations and the grand mean  TSS= ( 82- 65.08 )2+ (83- 65.08) 2 …. (52- 65.08 ) 2 + (61- 65.08) 2  TSS=5288
  • 16. One-Way ANOVA  Between Group Variation, SS(B)  The between group variation is the variation between each sample mean and the grand mean  Each individual variation is weighted by the sample size         2 2 2 1 1 2 2 k k SS B n x x n x x n x x            2 1 k i i i SS B n x x    
  • 17. One-Way ANOVA The Between Group Variation for our example is SS(B)=1900.8376 SS(B)=1900.8376         2 2 2 7 75.71 65.08 9 67.11 65.08 8 53.50 65.08 SS B      
  • 18. One-Way ANOVA  Within Group Variation, SS(W)  The Within Group Variation is the weighted total of the individual variations  The weighting is done with the degrees of freedom  The df for each sample is one less than the sample size for that sample.
  • 19. One-Way ANOVA Within Group Variation OR it can simply be SSW=SST-SSB since SST=SSB+SSW   2 1 k i i i SS W df s      2 2 2 1 1 2 2 k k SS W df s df s df s    
  • 20. One-Way ANOVA  The within group variation for our example is 3386         6 310.90 8 119.86 7 80.29 SS W      3386.31 3386 SS W  
  • 21. One-Way ANOVA  After filling in the sum of squares, we have … Source SS df MS F p Between 1902 Within 3386 Total 5288
  • 22. One-Way ANOVA  Degrees of Freedom, df  A degree of freedom occurs for each value that can vary before the rest of the values are predetermined  For example, if you had six numbers that had an average of 40, you would know that the total had to be 240. Five of the six numbers could be anything, but once the first five are known, the last one is fixed so the sum is 240. The df would be 6-1=5  The df is often one less than the number of values
  • 23. One-Way ANOVA  The between group df is one less than the number of groups  We have three groups, so df(B) = 2  The within group df is the sum of the individual df’s of each group  The sample sizes are 7, 9, and 8  df(W) =N-t  =(6 + 8 + 7) - 3= 24 – 3=21  The total df is one less than the sample size  df(Total) = 24 – 1 = 23
  • 24. One-Way ANOVA  Filling in the degrees of freedom gives this … Source SS df MS F p Between 1902 2 Within 3386 21 Total 5288 23
  • 25. One-Way ANOVA  Variances  The variances are also called the Mean of the Squares and abbreviated by MS, often with an accompanying variable MS(B) or MS(W)  They are an average squared deviation from the mean and are found by dividing the variation by the degrees of freedom  MS = SS / df Variation Variance df 
  • 26. One-Way ANOVA  MS(B) = 1902 / 2 = 951.0  MS(W) = 3386 / 21 = 161.2  MS(T) = 5288 / 23 = 229.9  Notice that the MS(Total) is NOT the sum of MS(Between) and MS(Within).  This works for the sum of squares SS(Total), but not the mean square MS(Total)  The MS(Total) isn’t usually shown
  • 27. One-Way ANOVA  Completing the MS gives … Source SS df MS F p Between 1902 2 951.0 Within 3386 21 161.2 Total 5288 23 229.9
  • 28. One-Way ANOVA  Special Variances  The MS(Within) is also known as the pooled estimate of the variance since it is a weighted average of the individual variances  Sometimes abbreviated  The MS(Total) is the variance of the response variable.  Not technically part of ANOVA table, but useful none the less 2 p s
  • 29. One-Way ANOVA  F test statistic  An F test statistic is the ratio of two sample variances  The MS(B) and MS(W) are two sample variances and that’s what we divide to find F.  F = MS(B) / MS(W)  For our data, F = 951.0 / 161.2 = 5.9
  • 30. One-Way ANOVA  Adding F to the table … Source SS df MS F p Between 1902 2 951.0 5.9 Within 3386 21 161.2 Total 5288 23 229.9
  • 31. One-Way ANOVA  The F test is a right tail test  The F test statistic has an F distribution with df(B) numerator df and df(W) denominator df  (F0.05,2,21) = 3.4668
  • 32.
  • 33. One-Way ANOVA  Since Fcal is greater than Ftab, we reject the null hypothesis, hence we have sufficient evidence to conclude that at least one row has a different mean.
  • 34. One-Way ANOVA  There is enough evidence to support the claim that there is a difference in the mean scores of the front, middle, and back rows in class.  The ANOVA doesn’t tell which row is different, you would need to look at confidence intervals or run post hoc tests to determine that