SlideShare a Scribd company logo
1 of 31
MBMG-7104/ ITHS-2202/ IMAS-3101/ IMHS-3101
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
What is ANOVA?
 ANOVA (Analysis of Variance) is a statistical
technique used to test the hypothesis that there
are significant differences between two or more
groups of data.
 Many of us have faced the challenge of selecting
the best option when buying a new product or
trying out a new technique. This can be a
challenging task as most options tend to sound
similar to one another, making it difficult to
determine the best choice. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
 In such a situation, to decide the best alternative
we use ANOVA.
 In ANOVA, the goal is to compare the means of
two or more groups and determine whether any
observed differences are statistically significant
or due to chance.
 It compares the variation within groups with the
variation between groups to determine whether
any differences observed are statistically
significant.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
How ANOVA Works ?
Consider a scenario where we have three
medical treatments for patients with similar
diseases. Once we have the test results, one
approach is to assume that the treatment
which took the least time to cure the
patients is the best among them. What if
some of these patients had already been
partially cured, or if any other medication
was already working on them?..
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
 In order to make a confident and reliable decision, we
will need evidence to support our approach. This is
where the concept of ANOVA comes into play.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
 A common approach to figuring out a reliable treatment
method would be to analyze the days the patients took to
be cured.
 The statistical technique can be used to compare could be
– Simple t-test, or ANOVA.
 We use “t-test”, When we have only two samples
 In such case, t-test, and ANOVA give the same results.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
 However, using a t-test would not be reliable in cases with
more than 2 samples.
 If we conduct multiple t-tests for comparing more than
two samples, it will have a compounded effect on the
error rate of the result.
 For more-than 2 samples, we use ANOVA test.
 ANOVA compares the samples based on their means.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Terminologies Related to ANOVA
 Mean :- There are two kinds of means that we use in
ANOVA calculations, which are separate sample means and
Grand mean.
 Simple or group means
 Overall or Grand Mean(𝜇) =
=(Sum of all data points) / (Total number of data points)
= mean of group means
=
𝑋1+𝑋2+𝑋3……..+𝑋𝑘
𝑛1+𝑛2+𝑛3+ …..𝑛𝑘
𝜇1, 𝜇2, 𝜇3 = 𝑋1, 𝑋2, 𝑋3
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
 Null Hypothesis :- the null hypothesis states that there
is no significant difference among the means of two or
more groups.
 Specifically, the null hypothesis for ANOVA is that the
population means of all groups are equal.
 Mathematically, the null hypothesis for ANOVA can be
expressed as:
H0: µ1 = µ2 = µ3 = ... = µk
where µ1, µ2, µ3,..., µk are the population means of k
groups being compared in the ANOVA. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
 Alternative Hypothesis :- The alternative hypothesis
for ANOVA, which is the opposite of the null hypothesis,
is that at least one of the population means is different
from the others.
 Mathematically, the alternative hypothesis for ANOVA
can be expressed as:
Ha: At least one µi is different from the others,
where i = 1, 2, 3,..., k.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Classification of ANOVA
There are two main types of
ANOVA:
1. One-Way ANOVA: Used to
compare the means of two or
more groups when there is only
one independent variable.
2. Two-Way ANOVA: Used to
compare the means of two or
more groups when there are
two independent variables.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
STEPS INVOLVED IN One-way ANOVA test :-
1. Set up the null and alternative hypotheses.
2. Calculate the mean and variance for each group.
3. Calculate the total sum of squares (SST), which
measures the total variation in the data:
SST = Σ(xi - x̄)2
4. Calculate the sum of squares between groups (SSB),
which measures the variation between the group
means:
SSB = nΣ(x̄i - x̄)2
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
5. Calculate the sum of squares within groups (SSW),
which measures the variation within each group:
SSW = Σ(xi - x̄i)2
6. Calculate the degrees of freedom (df) for each source
of variation:
• Total df = N - 1
• Between df = k - 1
• Within df = N - k
Where’s N= Total no. of observations, and k= No. of groups
7. 7. Calculate the mean square between (MSB) and mean
square within (MSW):
MSB = SSB / dfbetween
MSW = SSW / dfwithin @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
8. Calculate the F : To calculate the F-statistic, we divide
the mean square between (MSB) by the mean square
within (MSW):
F = MSB / MSW
9. Compare the calculated value of F with the table value
of F (at 5% level of significancy)
10. Decision: Ftable > Fcalculated accept the null hypothesis
If Ftable < Fcalculated reject the null hypothesis
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Reading F-distribution table -
The F-distribution table is a table that shows the critical
values of the F distribution. To use the F distribution
table, you only need three values:
The numerator degrees of freedom
The denominator degrees of freedom
The alpha level (common choices are 0.01, 0.05, and
0.10)
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Reading F-distribution table -
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Illustration 1:
As head of a department of a consumer's research
organization, you have the responsibility for testing and
comparing lifetimes of four brands of electric bulbs.
Suppose you test the lifetime of three electric bulbs of
each of the four brands. The data is shown below, each
entry representing the lifetime of an electric bulb,
measured in hundreds of hours:
A B C D
20 25 24 23
19 23 20 20
21 21 22 20
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Solution :
ANOVA TABLE
Source of
Variation
Sum of
Squares SS
Degree
of
freedom
(d.f.)
Mean Square MS Variance
Ratio F
Between
sample
SSB k-1 MSB = SSB/k-1 F = MSB/MSW
Within
Samples
SSW(= SST-
SSB)
n- k MSW = SSW/ n- k
Total SST n- 1
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Source of
Variation
Sum of
Squares SS
Degree
of
freedom
(d.f.)
Mean Square MS Variance
Ratio F
Between
sample
SSB = 15 k-1=3 MSB = SSB/k-1 =
15 / 4-1 = 5
F = MSB/MSW
= 5/3 =1.67
Within
Samples
SSW(= SST-
SSB) = 24
n- k= 8 MSW = SSW/ n- k =
24/12-4 = 24/8 =3
Total SST = 39 n- 1 = 11
From F-distribution table Ftable(3,8) = 4.0662.
Since Ftable(3,8), > F calculated Null hypothesis is accepted
ANOVA TABLE
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Two-way ANOVA Test
When it is believed that two independent factors might
have an effect on the response variable of interest.
Then ANOVA is used to test for the effects the two factors
simultaneously. Such a test is called two-factor (way)
analysis of variance or Two-way ANOVA.
We test two sets of hypothesis with the same data at the
same time.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Source of
Variation
SS d.f Mean Square MS Variance Ratio F
Between columns SSC c-1 MSC = SSC/(c-1) FClm = Greater Variance / Smaller
variance from MSE & MSC
Between rows SSR r- 1 MSR = SSR/(r-1) Frow = Greater Variance / Smaller
variance from MSE & MSR
Residual SSE (c-1)(r-1) MSE = SSE/ (c-1)(r-1)
Total SST rc - 1
SSC = Sum of squares between columns , SSR = Sum of squares between rows
SSE = Sum of squares for the Error terms (residual) = SST – SSC – SSR
SST = Total sum of squares.
The procedure for analysis of variance is somewhat different from
one-way ANOVA.
In a two-way classification, the analysis of variance table takes the
following form:
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Solution :-
Null hypothesis (H0): There is no significant difference
between the sales of salesmen and that of seasons.
The above data are classified according to criteria (i)
salesman and (ii) season.
Overall mean 𝑋 = 360/12 = 30
Salesman Total
Season A B C D
Summer 36 36 21 35 128
Winter 28 29 31 32 120
Mansoon 26 28 29 29 112
TOTAL 90 93 81 96 360
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Solution :-
Source of
Variation
SS d.f Mean Square MS Variance Ratio F
Between
columns
SSC = 42 c-1= 3 MSC = SSC/(c-1)
= 14
FClm = MSE / MSC
= 1.619
Between
rows
SSR
= 32
r- 1= 2 MSR = SSR/(r-1)
= 16
Frow = MSE/ MSR
= 1.417
Residual SSE = 136 (c-1)(r-1) = 6 MSE = SSE/(c-1)(r-1)
= 22.67
Total SST = 210 rc - 1= 11
Ftable (3,6) = 4.7571, & Ftable (2,6) = 5.1433
From F-distribution table Ftable > Fcalculated
For both column and row groups, hence Null hypothesis is accepted.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
STEPS INVOLVED IN Two-way ANOVA test :-
1. Set up the null and alternative hypotheses.
2. Calculate the mean and variance for column & row
group and Calculate Grand mean.
3. Calculate the total sum of squares (SST), which
measures the total variation in the data:
SST = Σ(xi - x̄)2
4. Calculate the sum of squares between column and row
groups (SSC & SSR), which measures the variation
between the group means:
SSC = nΣ(x̄ic - x̄)2 ; SSR = nΣ(x̄ir - x̄)2
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
5. Calculate the Sum of squares for the Error terms (residual)
(SSE) :
SSE = SST- SSC-SSR
6. Calculate the degrees of freedom (df) for each source of
variation:
• DF(b/wC) = c - 1 = 4 - 1 = 3
• DF(b/wR) = r – 1 = 3-1 = 2
• DF(residual) = (c-1)(r-1) = 2 x 3 = 6
• DF(total) = rc – 1 = 12-1=11
Where’s c = no. of columns, r= no. of rows
7. Calculate the mean square for columns, row, and residuals :
MSC(b/wC) = SSC / DF(b/wC)
MSR(b/wR) = SSR / DF(b/wR)
MSE(residual) = SSE/ (c-1)(r-1) @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
8. Calculate the F-statistic for column and row factor:
•Fclm(a,c) = Greater Variance / Smaller variance from MSE & MSC
•Frow(b,c) = Greater Variance / Smaller variance from MSE & MSR
9. Compare the calculated value of F with the table value of
F (at 5% level of significancy)
10. Decision: Ftable > Fcalculated accept the null hypothesis
If Ftable < Fcalculated reject the null hypothesis
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Exercise:
Q1. The Amit Merchandising Company wishes to test whether its three
salesmen A, B and C tend to make sales of the same size or whether
they differ in their selling ability as measured by the average size of
their sales. During the last week out of 14 sales, A made 5, B made 4
and C made 5 calls. The following are the weekly sales (in Rs.
Thousand) record of the salesmen:
Test, whether the three salesmen's average sales differ in size.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Exercise:
Q2. Four machines A, B, C and D are used to produce a certain kind of cotton
fabrics. Samples of size 4 with each unit as 100 square meters are
selected from the outputs of the machines at random, and the number
of flaws in each 100 square meters are counted, with the following
result.
Do you think that there is a significant difference in the performance of
the four machines?
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Exercise:
Q3. The following data represent the number of units of production per day
turned out by 5 different workers using 4 different types of machines:
Test (a) Whether the mean productivity is the same for 4 different machine
types.
(b) Whether the 5 workers differ with respect to mean productivity.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Anova.pptx

More Related Content

What's hot

F Distribution
F  DistributionF  Distribution
F Distribution
jravish
 
Data Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVAData Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVA
Dr Ali Yusob Md Zain
 
Chapter 11
Chapter 11Chapter 11
Chapter 11
bmcfad01
 

What's hot (20)

Normal Distribution.pptx
Normal Distribution.pptxNormal Distribution.pptx
Normal Distribution.pptx
 
Hypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-testHypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-test
 
ANOVA TEST by shafeek
ANOVA TEST by shafeekANOVA TEST by shafeek
ANOVA TEST by shafeek
 
Statistics - ONE WAY ANOVA
Statistics - ONE WAY ANOVAStatistics - ONE WAY ANOVA
Statistics - ONE WAY ANOVA
 
T test
T testT test
T test
 
One-Sample Hypothesis Tests
One-Sample Hypothesis TestsOne-Sample Hypothesis Tests
One-Sample Hypothesis Tests
 
Chi square test final
Chi square test finalChi square test final
Chi square test final
 
Regression and corelation (Biostatistics)
Regression and corelation (Biostatistics)Regression and corelation (Biostatistics)
Regression and corelation (Biostatistics)
 
Advance Statistics - Wilcoxon Signed Rank Test
Advance Statistics - Wilcoxon Signed Rank TestAdvance Statistics - Wilcoxon Signed Rank Test
Advance Statistics - Wilcoxon Signed Rank Test
 
Analysis of variance ppt @ bec doms
Analysis of variance ppt @ bec domsAnalysis of variance ppt @ bec doms
Analysis of variance ppt @ bec doms
 
Non-Parametric Tests
Non-Parametric TestsNon-Parametric Tests
Non-Parametric Tests
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
 
Anova single factor
Anova single factorAnova single factor
Anova single factor
 
What's Significant? Hypothesis Testing, Effect Size, Confidence Intervals, & ...
What's Significant? Hypothesis Testing, Effect Size, Confidence Intervals, & ...What's Significant? Hypothesis Testing, Effect Size, Confidence Intervals, & ...
What's Significant? Hypothesis Testing, Effect Size, Confidence Intervals, & ...
 
The two sample t-test
The two sample t-testThe two sample t-test
The two sample t-test
 
F Distribution
F  DistributionF  Distribution
F Distribution
 
Data Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVAData Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVA
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Chapter 11
Chapter 11Chapter 11
Chapter 11
 
What is a paired samples t test
What is a paired samples t testWhat is a paired samples t test
What is a paired samples t test
 

Similar to Anova.pptx

Similar to Anova.pptx (20)

Tugasan kumpulan anova
Tugasan kumpulan anovaTugasan kumpulan anova
Tugasan kumpulan anova
 
Anova; analysis of variance
Anova; analysis of varianceAnova; analysis of variance
Anova; analysis of variance
 
Analysis of variance anova
Analysis of variance anovaAnalysis of variance anova
Analysis of variance anova
 
test_using_one-way_analysis_of_varianceANOVA_063847.pptx
test_using_one-way_analysis_of_varianceANOVA_063847.pptxtest_using_one-way_analysis_of_varianceANOVA_063847.pptx
test_using_one-way_analysis_of_varianceANOVA_063847.pptx
 
Shovan anova main
Shovan anova mainShovan anova main
Shovan anova main
 
ANOVA.pptx
ANOVA.pptxANOVA.pptx
ANOVA.pptx
 
Ch7 Analysis of Variance (ANOVA)
Ch7 Analysis of Variance (ANOVA)Ch7 Analysis of Variance (ANOVA)
Ch7 Analysis of Variance (ANOVA)
 
Anova stat 512
Anova stat 512Anova stat 512
Anova stat 512
 
A study on the ANOVA ANALYSIS OF VARIANCE.pptx
A study on the ANOVA ANALYSIS OF VARIANCE.pptxA study on the ANOVA ANALYSIS OF VARIANCE.pptx
A study on the ANOVA ANALYSIS OF VARIANCE.pptx
 
ANOVA.ppt
ANOVA.pptANOVA.ppt
ANOVA.ppt
 
One-Way ANOVA
One-Way ANOVAOne-Way ANOVA
One-Way ANOVA
 
mean comparison.pptx
mean comparison.pptxmean comparison.pptx
mean comparison.pptx
 
mean comparison.pptx
mean comparison.pptxmean comparison.pptx
mean comparison.pptx
 
Survival.pptx
Survival.pptxSurvival.pptx
Survival.pptx
 
Anova ppt
Anova pptAnova ppt
Anova ppt
 
Analysis of data in research
Analysis of data in researchAnalysis of data in research
Analysis of data in research
 
Lecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.pptLecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.ppt
 
Testing of hypothesis anova copy
Testing of hypothesis anova   copyTesting of hypothesis anova   copy
Testing of hypothesis anova copy
 
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
 

More from Ravindra Nath Shukla (9)

Capital Budgeting : capital budgeting decision
Capital Budgeting : capital budgeting decisionCapital Budgeting : capital budgeting decision
Capital Budgeting : capital budgeting decision
 
Market Efficiency.pptx
Market Efficiency.pptxMarket Efficiency.pptx
Market Efficiency.pptx
 
Communication Extra classes.pptx
Communication  Extra classes.pptxCommunication  Extra classes.pptx
Communication Extra classes.pptx
 
PPT BC class.pptx
PPT BC class.pptxPPT BC class.pptx
PPT BC class.pptx
 
Flexible Budget.pptx
Flexible Budget.pptxFlexible Budget.pptx
Flexible Budget.pptx
 
Buerocratic model
Buerocratic modelBuerocratic model
Buerocratic model
 
Discharge of contract
Discharge of contractDischarge of contract
Discharge of contract
 
Market Potential of Organic food Product
Market Potential  of Organic food ProductMarket Potential  of Organic food Product
Market Potential of Organic food Product
 
Marketing : Concept, Tools and Retention
Marketing : Concept, Tools and RetentionMarketing : Concept, Tools and Retention
Marketing : Concept, Tools and Retention
 

Recently uploaded

Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
amitlee9823
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
amitlee9823
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
AroojKhan71
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
JoseMangaJr1
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
amitlee9823
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
amitlee9823
 

Recently uploaded (20)

Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 

Anova.pptx

  • 1. MBMG-7104/ ITHS-2202/ IMAS-3101/ IMHS-3101 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 2. What is ANOVA?  ANOVA (Analysis of Variance) is a statistical technique used to test the hypothesis that there are significant differences between two or more groups of data.  Many of us have faced the challenge of selecting the best option when buying a new product or trying out a new technique. This can be a challenging task as most options tend to sound similar to one another, making it difficult to determine the best choice. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 3.  In such a situation, to decide the best alternative we use ANOVA.  In ANOVA, the goal is to compare the means of two or more groups and determine whether any observed differences are statistically significant or due to chance.  It compares the variation within groups with the variation between groups to determine whether any differences observed are statistically significant. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 4. How ANOVA Works ? Consider a scenario where we have three medical treatments for patients with similar diseases. Once we have the test results, one approach is to assume that the treatment which took the least time to cure the patients is the best among them. What if some of these patients had already been partially cured, or if any other medication was already working on them?.. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 5.  In order to make a confident and reliable decision, we will need evidence to support our approach. This is where the concept of ANOVA comes into play. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 6.  A common approach to figuring out a reliable treatment method would be to analyze the days the patients took to be cured.  The statistical technique can be used to compare could be – Simple t-test, or ANOVA.  We use “t-test”, When we have only two samples  In such case, t-test, and ANOVA give the same results. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 7.  However, using a t-test would not be reliable in cases with more than 2 samples.  If we conduct multiple t-tests for comparing more than two samples, it will have a compounded effect on the error rate of the result.  For more-than 2 samples, we use ANOVA test.  ANOVA compares the samples based on their means. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 8. Terminologies Related to ANOVA  Mean :- There are two kinds of means that we use in ANOVA calculations, which are separate sample means and Grand mean.  Simple or group means  Overall or Grand Mean(𝜇) = =(Sum of all data points) / (Total number of data points) = mean of group means = 𝑋1+𝑋2+𝑋3……..+𝑋𝑘 𝑛1+𝑛2+𝑛3+ …..𝑛𝑘 𝜇1, 𝜇2, 𝜇3 = 𝑋1, 𝑋2, 𝑋3 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 9.  Null Hypothesis :- the null hypothesis states that there is no significant difference among the means of two or more groups.  Specifically, the null hypothesis for ANOVA is that the population means of all groups are equal.  Mathematically, the null hypothesis for ANOVA can be expressed as: H0: µ1 = µ2 = µ3 = ... = µk where µ1, µ2, µ3,..., µk are the population means of k groups being compared in the ANOVA. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 10.  Alternative Hypothesis :- The alternative hypothesis for ANOVA, which is the opposite of the null hypothesis, is that at least one of the population means is different from the others.  Mathematically, the alternative hypothesis for ANOVA can be expressed as: Ha: At least one µi is different from the others, where i = 1, 2, 3,..., k. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 11. Classification of ANOVA There are two main types of ANOVA: 1. One-Way ANOVA: Used to compare the means of two or more groups when there is only one independent variable. 2. Two-Way ANOVA: Used to compare the means of two or more groups when there are two independent variables. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 12. STEPS INVOLVED IN One-way ANOVA test :- 1. Set up the null and alternative hypotheses. 2. Calculate the mean and variance for each group. 3. Calculate the total sum of squares (SST), which measures the total variation in the data: SST = Σ(xi - x̄)2 4. Calculate the sum of squares between groups (SSB), which measures the variation between the group means: SSB = nΣ(x̄i - x̄)2 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 13. 5. Calculate the sum of squares within groups (SSW), which measures the variation within each group: SSW = Σ(xi - x̄i)2 6. Calculate the degrees of freedom (df) for each source of variation: • Total df = N - 1 • Between df = k - 1 • Within df = N - k Where’s N= Total no. of observations, and k= No. of groups 7. 7. Calculate the mean square between (MSB) and mean square within (MSW): MSB = SSB / dfbetween MSW = SSW / dfwithin @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 14. 8. Calculate the F : To calculate the F-statistic, we divide the mean square between (MSB) by the mean square within (MSW): F = MSB / MSW 9. Compare the calculated value of F with the table value of F (at 5% level of significancy) 10. Decision: Ftable > Fcalculated accept the null hypothesis If Ftable < Fcalculated reject the null hypothesis @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 15. Reading F-distribution table - The F-distribution table is a table that shows the critical values of the F distribution. To use the F distribution table, you only need three values: The numerator degrees of freedom The denominator degrees of freedom The alpha level (common choices are 0.01, 0.05, and 0.10) @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 16. Reading F-distribution table - @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 17. Illustration 1: As head of a department of a consumer's research organization, you have the responsibility for testing and comparing lifetimes of four brands of electric bulbs. Suppose you test the lifetime of three electric bulbs of each of the four brands. The data is shown below, each entry representing the lifetime of an electric bulb, measured in hundreds of hours: A B C D 20 25 24 23 19 23 20 20 21 21 22 20 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 18. Solution : ANOVA TABLE Source of Variation Sum of Squares SS Degree of freedom (d.f.) Mean Square MS Variance Ratio F Between sample SSB k-1 MSB = SSB/k-1 F = MSB/MSW Within Samples SSW(= SST- SSB) n- k MSW = SSW/ n- k Total SST n- 1 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 19. Source of Variation Sum of Squares SS Degree of freedom (d.f.) Mean Square MS Variance Ratio F Between sample SSB = 15 k-1=3 MSB = SSB/k-1 = 15 / 4-1 = 5 F = MSB/MSW = 5/3 =1.67 Within Samples SSW(= SST- SSB) = 24 n- k= 8 MSW = SSW/ n- k = 24/12-4 = 24/8 =3 Total SST = 39 n- 1 = 11 From F-distribution table Ftable(3,8) = 4.0662. Since Ftable(3,8), > F calculated Null hypothesis is accepted ANOVA TABLE @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 20. Two-way ANOVA Test When it is believed that two independent factors might have an effect on the response variable of interest. Then ANOVA is used to test for the effects the two factors simultaneously. Such a test is called two-factor (way) analysis of variance or Two-way ANOVA. We test two sets of hypothesis with the same data at the same time. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 21. Source of Variation SS d.f Mean Square MS Variance Ratio F Between columns SSC c-1 MSC = SSC/(c-1) FClm = Greater Variance / Smaller variance from MSE & MSC Between rows SSR r- 1 MSR = SSR/(r-1) Frow = Greater Variance / Smaller variance from MSE & MSR Residual SSE (c-1)(r-1) MSE = SSE/ (c-1)(r-1) Total SST rc - 1 SSC = Sum of squares between columns , SSR = Sum of squares between rows SSE = Sum of squares for the Error terms (residual) = SST – SSC – SSR SST = Total sum of squares. The procedure for analysis of variance is somewhat different from one-way ANOVA. In a two-way classification, the analysis of variance table takes the following form: @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 22. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 23. Solution :- Null hypothesis (H0): There is no significant difference between the sales of salesmen and that of seasons. The above data are classified according to criteria (i) salesman and (ii) season. Overall mean 𝑋 = 360/12 = 30 Salesman Total Season A B C D Summer 36 36 21 35 128 Winter 28 29 31 32 120 Mansoon 26 28 29 29 112 TOTAL 90 93 81 96 360 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 24. Solution :- Source of Variation SS d.f Mean Square MS Variance Ratio F Between columns SSC = 42 c-1= 3 MSC = SSC/(c-1) = 14 FClm = MSE / MSC = 1.619 Between rows SSR = 32 r- 1= 2 MSR = SSR/(r-1) = 16 Frow = MSE/ MSR = 1.417 Residual SSE = 136 (c-1)(r-1) = 6 MSE = SSE/(c-1)(r-1) = 22.67 Total SST = 210 rc - 1= 11 Ftable (3,6) = 4.7571, & Ftable (2,6) = 5.1433 From F-distribution table Ftable > Fcalculated For both column and row groups, hence Null hypothesis is accepted. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 25. STEPS INVOLVED IN Two-way ANOVA test :- 1. Set up the null and alternative hypotheses. 2. Calculate the mean and variance for column & row group and Calculate Grand mean. 3. Calculate the total sum of squares (SST), which measures the total variation in the data: SST = Σ(xi - x̄)2 4. Calculate the sum of squares between column and row groups (SSC & SSR), which measures the variation between the group means: SSC = nΣ(x̄ic - x̄)2 ; SSR = nΣ(x̄ir - x̄)2 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 26. 5. Calculate the Sum of squares for the Error terms (residual) (SSE) : SSE = SST- SSC-SSR 6. Calculate the degrees of freedom (df) for each source of variation: • DF(b/wC) = c - 1 = 4 - 1 = 3 • DF(b/wR) = r – 1 = 3-1 = 2 • DF(residual) = (c-1)(r-1) = 2 x 3 = 6 • DF(total) = rc – 1 = 12-1=11 Where’s c = no. of columns, r= no. of rows 7. Calculate the mean square for columns, row, and residuals : MSC(b/wC) = SSC / DF(b/wC) MSR(b/wR) = SSR / DF(b/wR) MSE(residual) = SSE/ (c-1)(r-1) @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 27. 8. Calculate the F-statistic for column and row factor: •Fclm(a,c) = Greater Variance / Smaller variance from MSE & MSC •Frow(b,c) = Greater Variance / Smaller variance from MSE & MSR 9. Compare the calculated value of F with the table value of F (at 5% level of significancy) 10. Decision: Ftable > Fcalculated accept the null hypothesis If Ftable < Fcalculated reject the null hypothesis @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 28. Exercise: Q1. The Amit Merchandising Company wishes to test whether its three salesmen A, B and C tend to make sales of the same size or whether they differ in their selling ability as measured by the average size of their sales. During the last week out of 14 sales, A made 5, B made 4 and C made 5 calls. The following are the weekly sales (in Rs. Thousand) record of the salesmen: Test, whether the three salesmen's average sales differ in size. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 29. Exercise: Q2. Four machines A, B, C and D are used to produce a certain kind of cotton fabrics. Samples of size 4 with each unit as 100 square meters are selected from the outputs of the machines at random, and the number of flaws in each 100 square meters are counted, with the following result. Do you think that there is a significant difference in the performance of the four machines? @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 30. Exercise: Q3. The following data represent the number of units of production per day turned out by 5 different workers using 4 different types of machines: Test (a) Whether the mean productivity is the same for 4 different machine types. (b) Whether the 5 workers differ with respect to mean productivity. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM