SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Elementary Statistics
Chapter 12:
Analysis of Variance
12.1 One-Way ANOVA
1
Chapter 12: Analysis of Variance
12.1 One-Way ANOVA
12.2 Two-Way ANOVA
2
Objectives:
Use the ANOVA technique to determine if there is a significant
difference among three or more means.
Good lecture Videos to watch: ANOVA
Concept: https://www.youtube.com/watch?v=ITf4vHhyGpc
Hand Calculation: https://www.youtube.com/watch?v=WUjsSB7E-ko
Visual Explanation: https://www.youtube.com/watch?v=JgMFhKi6f6Y
YouTube: https://www.youtube.com/watch?v=YbX-JUqD1so
Tukey Website + ANOVA:
https://astatsa.com/OneWay_Anova_with_TukeyHSD/
One-Way (Single Factor) ANOVA + Tukey
1. Get rid of the check mark
2. Choose the value of K (Number of treatment columns)
3. Proceed to enter your treatment columns
4. Enter Data
5. Calculate ANOVA with Tukey, Scheffe, Bonferroni & Holm
6. All is Ready
3
12.1 One-Way ANOVA
One-way analysis of variance (ANOVA) is used for tests of hypotheses that three or more
populations have means that are all equal, as in H0: µ1 = µ2 = µ3 by analyzing sample variances.
One-way analysis of variance is used with data categorized with one factor (or treatment), so there
is one characteristic used to separate the sample data into the different categories.
• The F test, used to compare two variances, can also be used to compare three or more means.
• This technique is called analysis of variance or ANOVA.
• For three groups, the F test can only show whether or not a difference exists among the three means, not where
the difference lies. (The ANOVA test is right-tailed because only large values of the test statistic cause us to
reject equality of the population means.)
• Other statistical tests, Scheffé test and the Tukey test, are used to find where the difference exists.
• Although the t test is commonly used to compare two means, it should not be used to compare three or more.
There is a different F distribution for each different pair of degrees of freedom for numerator and denominator.
1. The F distribution is not symmetric. It is skewed right (positively skewed).
2. Values of the F distribution cannot be negative.
3. The exact shape of the F distribution depends on the two different degrees of freedom.
4
12.1 One-Way ANOVA
In the F test, two different estimates of the population variance are made.
The first estimate is called the between-group variance, and it involves finding the variance of the means.
The second estimate, the within-group variance, is made by computing the variance using all the data
and is not affected by differences in the means.
If there is no difference in the means, the between-group variance will be approximately equal to the
within-group variance, and the F test value will be close to 1; do not reject null hypothesis.
However, when the means differ significantly, the between-group variance will be much larger than
the within-group variance; the F test will be significantly greater than 1; reject null hypothesis.
The following assumptions apply when using the F test to compare three or more means.
1. The populations from which the samples were obtained must be normally or approximately
normally distributed.
2. The samples must be independent of each other.
3. The populations have the same variance σ² (or standard deviation σ).
4. The samples are simple random samples of quantitative data.
5. The different samples are from populations that are categorized in only one way.
Step 1: H0 , H1, claim & Tails
Step 2: TS Calculate (TS)
Step 3: CV using α
Step 4: Make the decision to
a. Reject or not H0
b. The claim is true or false
c. Restate this decision: There is
/ is not sufficient evidence to
support the claim that…
5
Example 1:
Three different techniques are used to lower the blood pressure of
individuals diagnosed with high blood pressure. The subjects are
randomly assigned to 3 groups; the first group takes medication, the
second group exercises, and the third group follows a special diet. After
two months, the reduction in each person’s blood pressure is recorded.
At α = 0.05, test the claim that there is no difference among the means.
Step 1: State the hypotheses and identify the claim.
H0: μ1 = μ2 = μ3 (claim)
H1: At least one mean is different from the others. (RTT)
Given:
Number of Groups (Factors): k = 3
Number of data in each group: n = 5
Total sample size: N = 3(5) = 15
Sum of Squares: SST = SSW + SSB
The total sum of squares: Find the squared distances
from the Grand Mean. (If we took the average, we
would have a variance.)
The within-group or within-cell sum of squares comes
from the distance of the observations to the cell
means. This indicates error.
The between-cells or between-groups sum of squares
tells of the distance of the cell means from the grand
mean. This indicates treatment (the column) effects.
𝑆𝑆𝑡𝑜𝑡 = 𝑆𝑆𝐵 + 𝑆𝑆𝑊 = (𝑋𝑖 − 𝑋𝐺)2
𝑆𝑆𝑊 = (𝑋𝑖 − 𝑋𝐴)2
= (𝑋1 − 𝑋1)2
+ (𝑋2 − 𝑋2)2
+ (𝑋3 − 𝑋3)2
+. . .
𝑆𝑆𝐵 = 𝑁𝐴(𝑋𝐴 − 𝑋𝐺)2
𝑂𝑅 = 𝑆𝑆𝑡𝑜𝑡 − 𝑆𝑆𝑊
𝑋𝑖: Each piece of Data,
𝑋𝐺: The Grand Mean, taken over all observations.
𝑋𝐴: The mean of any level of a treatment.
6
Example 1: Continued
Step 2: Calculate the test statistic value.
a. Find the mean and variance of each sample (Given Table).
𝑥𝐺𝑀 =
𝑥
𝑁
=
10 + 12 + 9 + 15 + 13 + 6 + ⋯ + 4
15
𝑀𝑆𝐵 𝑂𝑅 𝑠𝐵
2
=
𝑆𝑆𝐵
𝑘 − 1
=
𝑛𝑖 𝑋𝑖 − 𝑋𝐺𝑀
2
𝑘 − 1
=
5 11.8 − 7.73 2
+ 5 3.8 − 7.73 2
+ 5 7.6 − 7.73 2
3 − 1
𝑀𝑆𝑤 𝑂𝑅 𝑠𝑊
2
𝑂𝑅 𝑠𝑝
2
=
𝑆𝑆𝑤
𝑁 − 𝑘
=
𝑛𝑖 − 1 𝑠𝑖
2
𝑛𝑖 − 1
=
4 5.7 + 4 10.2 + 4 10.3
4 + 4 + 4
𝐹 =
MS𝐵
MS𝑊
=
𝑠𝐵
2
𝑠𝑊
2
=
116
15
= 7.73
=
160.13
2
= 80.07
=
104.80
12
= 8.73
Given the means of each group: 11.8, 3.8 & 7.6
Calculate their weighted average and variance:
𝑏. . 𝑥𝐺𝑀 =
𝑥𝑖
𝑘
=
11.8 + 3.8 + 7.6
3
= 7.73
𝑐. 𝑠𝑥
2
=
𝑥𝑖 − 𝑥𝐺𝑀
2
𝑘 − 1
=
11.8 − 7.73 2
+ 3.8 − 7.73 2
+ 7.6 − 7.76 2
3 − 1
≈ 16.018
𝑆𝐵 = 𝜎𝑥 =
𝜎
𝑛
→ 𝐸𝑠𝑡𝑖𝑚𝑎𝑡𝑒: 𝜎2
= 𝑛𝑠𝑥
2
→ 𝑀𝑆𝐵 𝑂𝑅 𝑠𝐵
2
= 𝑛𝑠𝑥
2
= 5(16.018) = 80.09
b. Find the Grand Mean, the mean of all values in the samples.
c. Find the Between-group variance (Mean Square, MSB.)
d. Find the Within-group variance (Error)(Mean
of sample variances, or mean square, MSW)
e. Calculate the F value.
𝑑. 𝑠𝑊
2
𝑂𝑅 𝑠𝑝
2
=
𝑆1
2
+ 𝑆2
2
+ 𝑆3
2
3
=
5.7 + 10.2 + 10.3
3
= 8.733
Source Sum of
Squares
d.f. Mean
Squares
F
Between
Within (error)
SSB =160.13
SSW =104.80
k – 1= 2
N – k=12
MSB = 80.07
MSW = 8.73
9.17
Total 264.93 14
=
80.07
8.73
= 9.17
7
Three different techniques are used to lower the blood pressure of individuals diagnosed
with high blood pressure. The subjects are randomly assigned to 3 groups; the first group
takes medication, the second group exercises, and the third group follows a special diet.
After two months, the reduction in each person’s blood pressure is recorded. At α = 0.05,
test the claim that there is no difference among the means.
Step 3: Find the critical value.
Number of Groups (Factors): k = 3, d.f.N. = k – 1 = 3 – 1 = 2,
Total sample size: N = 15, d.f.D. = N – k = 15 – 3 = 12
α = 0.05 → CV: 𝑭 = 3.8853
Step 4: Decision:
a. Reject H0
b. The claim is False
c. There is NOT sufficient evidence to support the claim that there is no difference among the
means and conclude that at least one mean is different from the others.
Step 1: H0: μ1 = μ2 = μ3 (claim)
H1: At least one mean is different from the others. (RTT)
Step 2: Calculate the test statistic value: 𝐹 = 9.17
Example 1: Continued
CV: F = 3.8853 TS: 𝑭 = 9.17
0.05
Source Sum of
Squares
d.f. Mean
Squares
F
Between
Within (error)
SSB =160.13
SSW =104.80
k – 1= 2
N – k=12
MSB = 80.07
MSW = 8.73
9.17
Total 264.93 14
TI Calculator:
One Way ANOVA
1. ClrList 𝑳𝟏, 𝑳𝟐, …
2. Enter data 𝑳𝟏, 𝑳𝟐, . .
3. Stat
4. Tests
5. 𝑨𝑵𝑶𝑽𝑨 (𝑳𝟏, 𝑳𝟐 , . . )
6. Enter
8
The between-group variance is sometimes
called the mean square, MSB.
• The numerator of the formula to
compute MSB is called the sum of
squares between groups, SSB.
• The within-group variance is sometimes
called the mean square, MSW.
• The numerator of the formula to
compute MSW is called the sum of
squares within groups, SSW.
Source Sum of
Squares
d.f. Mean
Squares = SS /df
𝑭 =
𝑴𝑺𝑩
𝑴𝑺𝒘
Squares = SS /df SSB =160.13
SSW =104.80
k – 1= 2
N – k=12
MSB = SSB / 2 = 80.07
MSW = SSW / 12 = 8.73
𝟖𝟎. 𝟎𝟕
𝟖. 𝟕𝟑
= 𝟗. 𝟏𝟕
Total SST = 264.93 14
12.1 One-Way ANOVA Summary Table
The Grand Mean,
taken over all
observations:
𝑥𝐺𝑀 =
𝑥
𝑁
=
𝑥𝑖
𝑘
Number of Groups (Factors): k
Number of data in each group: 𝒏𝟏, 𝒏𝟐,…
Total sample size: 𝑵 = 𝒏𝟏 + 𝒏𝟐 + ⋯
Each piece of data: 𝑿𝒊
Each Group (treatment) Mean: 𝒙𝒊
Between-group variance (Mean Square, MSB.)
𝑀𝑆𝐵 𝑂𝑅 𝑠𝐵
2
=
𝑆𝑆𝐵
𝑘 − 1
=
𝑛𝑖 𝑋𝑖 − 𝑋𝐺𝑀
2
𝑘 − 1
→ 𝑀𝑆𝐵 𝑂𝑅 𝑠𝐵
2
= 𝑛𝑠𝑥
2
, if same number of data in each
category (n times the variance for sample means)
Within-group variance (Error)(Mean of sample variances, or mean
square, MSW): 𝑀𝑆𝑤 𝑂𝑅 𝑠𝑊
2
𝑂𝑅 𝑠𝑝
2
=
𝑆𝑆𝑤
𝑁−𝑘
=
𝑛𝑖−1 𝑠𝑖
2
𝑛𝑖−1
𝑂𝑅 𝑠𝑝
2
=
𝑆1
2+𝑆2
2+𝑆3
2+⋯
𝑘
, if same number of data in each category
9
Data shown represents the number of employees at the security gate for 3 companies.
At α = 0.05, can it be concluded that there is a significant difference in the average
number of employees at each interchange?
Example 2:
Company A Company B Company C
7 10 1
14 1 12
32 1 1
19 0 9
10 11 1
11 1 11
𝑥1 = 15.5,
𝑠1
2
= 81.9
𝑥2 = 4.0,
𝑠2
2
= 25.6
𝑥3 = 5.8,
𝑠3
2
= 29.0
Step 1: State the hypotheses and identify the claim.
H0: μ1 = μ2 = μ3
H1: At least one mean is different from the others. (RTT, claim)
Step 1: H0 , H1, claim & Tails
Step 2: TS Calculate (TS)
Step 3: CV using α
Step 4: Make the decision to
a. Reject or not H0
b. The claim is true or false
c. Restate this decision: There is
/ is not sufficient evidence to
support the claim that…
Given:
Number of Groups (Factors): k = 3
Number of data in each group: n = 6
Total sample size: N = 3(6) = 18
10
Example 2: Continued
Step 2: Calculate the test statistic value.
a. Find the mean and variance of each sample (Given).
𝑥𝐺𝑀 =
𝑥
𝑁
=
7 + 14 + 32 + ⋯ + 11
18
𝑠𝐵
2
=
𝑛𝑖 𝑋𝑖 − 𝑋𝐺𝑀
2
𝑘 − 1
=
6 15.5 − 8.4333 2 + 6 4 − 8.4333 2 + 6 5.8 − 8.4333 2
3 − 1
𝑠𝑊
2
𝑂𝑅 𝑠𝑝
2 =
𝑛𝑖 − 1 𝑠𝑖
2
𝑛𝑖 − 1
=
5 81.9 + 5 25.6 + 5 29.0
5 + 5 + 5
𝐹 =
𝑠𝐵
2
𝑠𝑊
2
=
152
18
= 8.444
=
459.18
2
= 229.59
=
682.5
15
= 45.5
Given the means of each group: 15.5, 4 & 5.8
Calculate their mean and variance:
𝑏. 𝑥 =
𝑥𝑖
𝑘
=
15.5 + 4 + 5.8
3
= 8.4333
𝑐. 𝑠𝑥
2
=
𝑥𝑖 − 𝑥𝐺𝑀
2
𝑘 − 1
=
15.5 − 8.433 2
+ 4 − 8.433 2
+ 5.8 − 8.433 2
3 − 1
≈ 38.263
𝑆𝐵 = 𝜎𝑥 = 𝜎/ 𝑛 → 𝐸𝑠𝑡𝑖𝑚𝑎𝑡𝑒: 𝜎2
= 𝑛𝑠𝑥
2
→ 𝑀𝑆𝐵 𝑂𝑅 𝑠𝐵
2
= 𝑛𝑠𝑥
2
= 6(38.263) = 229.580
b. Find the grand mean, the mean of all values in the samples.
c. Find the between-group variance
d. Find the within-group variance (Mean of sample variances),
e. Calculate the F value.
𝑑. 𝑠𝑊
2
𝑂𝑅 𝑠𝑝
2
=
𝑆1
2
+ 𝑆2
2
+ 𝑆3
2
3
=
81.9 + 25.6 + 29
3
= 45.5
Company A Company B Company C
7 10 1
14 1 12
32 1 1
19 0 9
10 11 1
11 1 11
𝑥1 = 15.5,
𝑠1
2
= 81.9
𝑥2 = 4.0,
𝑠2
2
= 25.6
𝑥3 = 5.8,
𝑠3
2
= 29.0
=
229.59
45.5
= 5.05
11
Data shown represents the number of employees at the
security gate for 3 companies. At α = 0.05, can it be
concluded that there is a significant difference in the
average number of employees at each interchange?
Step 3: Find the critical value.
Number of Groups (Factors): k = 3, d.f.N. = k – 1 = 3 – 1 = 2,
Total sample size: N = 18, d.f.D. = N – k = 18 – 3 = 15
α = 0.05 → CV: 𝑭 = 3.6823
Step 4: Decision:
a. Reject H0
b. The claim is True
c. There is sufficient evidence to
support the claim that there is a
difference among the means and
conclude that at least one mean is
different from the others.
Step 1: H0: μ1 = μ2 = μ3
H1: At least one mean is different from the others. (RTT, claim)
Step 2: Test statistic: 𝐹 = 5.05
Example 2: Continued
0.05
Company A Company B Company C
7 10 1
14 1 12
32 1 1
19 0 9
10 11 1
11 1 11
𝑥1 = 15.5,
𝑠1
2
= 81.9
𝑥2 = 4.0,
𝑠2
2
= 25.6
𝑥3 = 5.8,
𝑠3
2
= 29.0
Source Sum of
Squares
d.f. Mean
Squares
F
Between
Within
(error)
459.18
682.5
2
15
229.59
45.5
5.05
Total 1141.68 17
TI Calculator:
One Way ANOVA
1. ClrList 𝑳𝟏, 𝑳𝟐, …
2. Enter data 𝑳𝟏, 𝑳𝟐, . .
3. Stat
4. Tests
5. 𝑨𝑵𝑶𝑽𝑨 (𝑳𝟏, 𝑳𝟐 , . . )
6. Enter
CV: F = 3.6823 TS: 𝑭 = 5.05

Weitere ähnliche Inhalte

Was ist angesagt?

One way anova final ppt.
One way anova final ppt.One way anova final ppt.
One way anova final ppt.Aadab Mushrib
 
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaSolution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaLong Beach City College
 
Friedman test Stat
Friedman test Stat Friedman test Stat
Friedman test Stat Kate Malda
 
Frequency Distributions for Organizing and Summarizing
Frequency Distributions for Organizing and Summarizing Frequency Distributions for Organizing and Summarizing
Frequency Distributions for Organizing and Summarizing Long Beach City College
 
Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or VarianceEstimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or VarianceLong Beach City College
 
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsSolution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsLong Beach City College
 
One sided or one-tailed tests
One sided or one-tailed testsOne sided or one-tailed tests
One sided or one-tailed testsHasnain Baber
 
Binomial distribution
Binomial distributionBinomial distribution
Binomial distributionnumanmunir01
 

Was ist angesagt? (20)

Practice Test 1
Practice Test 1Practice Test 1
Practice Test 1
 
Estimating a Population Mean
Estimating a Population MeanEstimating a Population Mean
Estimating a Population Mean
 
One way anova final ppt.
One way anova final ppt.One way anova final ppt.
One way anova final ppt.
 
Assessing Normality
Assessing NormalityAssessing Normality
Assessing Normality
 
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaSolution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
 
Friedman test Stat
Friedman test Stat Friedman test Stat
Friedman test Stat
 
Inferences about Two Proportions
 Inferences about Two Proportions Inferences about Two Proportions
Inferences about Two Proportions
 
The Standard Normal Distribution
The Standard Normal DistributionThe Standard Normal Distribution
The Standard Normal Distribution
 
Basic Concepts of Probability
Basic Concepts of ProbabilityBasic Concepts of Probability
Basic Concepts of Probability
 
Testing Hypothesis
Testing HypothesisTesting Hypothesis
Testing Hypothesis
 
Frequency Distributions for Organizing and Summarizing
Frequency Distributions for Organizing and Summarizing Frequency Distributions for Organizing and Summarizing
Frequency Distributions for Organizing and Summarizing
 
Basics of Hypothesis Testing
Basics of Hypothesis TestingBasics of Hypothesis Testing
Basics of Hypothesis Testing
 
Probability Distribution
Probability DistributionProbability Distribution
Probability Distribution
 
Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or VarianceEstimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or Variance
 
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsSolution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
 
Sampling Distributions and Estimators
Sampling Distributions and EstimatorsSampling Distributions and Estimators
Sampling Distributions and Estimators
 
Sec 1.3 collecting sample data
Sec 1.3 collecting sample data  Sec 1.3 collecting sample data
Sec 1.3 collecting sample data
 
One sided or one-tailed tests
One sided or one-tailed testsOne sided or one-tailed tests
One sided or one-tailed tests
 
Binomial distribution
Binomial distributionBinomial distribution
Binomial distribution
 
Sec 3.1 measures of center
Sec 3.1 measures of center  Sec 3.1 measures of center
Sec 3.1 measures of center
 

Ähnlich wie One-Way 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.pptxRaquelMaacap
 
Tugasan kumpulan anova
Tugasan kumpulan anovaTugasan kumpulan anova
Tugasan kumpulan anovapraba karan
 
Anova by Hazilah Mohd Amin
Anova by Hazilah Mohd AminAnova by Hazilah Mohd Amin
Anova by Hazilah Mohd AminHazilahMohd
 
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.pptMohammedAbdela7
 
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.ppthabtamu biazin
 
Anova stat 512
Anova stat 512Anova stat 512
Anova stat 512gargnisha
 
Analyzing experimental research data
Analyzing experimental research dataAnalyzing experimental research data
Analyzing experimental research dataAtula Ahuja
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Sneh Kumari
 
In the t test for independent groups, ____.we estimate µ1 µ2.docx
In the t test for independent groups, ____.we estimate µ1 µ2.docxIn the t test for independent groups, ____.we estimate µ1 µ2.docx
In the t test for independent groups, ____.we estimate µ1 µ2.docxbradburgess22840
 
One-Way ANOVA: Conceptual Foundations
One-Way ANOVA: Conceptual FoundationsOne-Way ANOVA: Conceptual Foundations
One-Way ANOVA: Conceptual Foundationssmackinnon
 
Quality Engineering material
Quality Engineering materialQuality Engineering material
Quality Engineering materialTeluguSudhakar3
 
MPhil clinical psy Non-parametric statistics.pptx
MPhil clinical psy Non-parametric statistics.pptxMPhil clinical psy Non-parametric statistics.pptx
MPhil clinical psy Non-parametric statistics.pptxrodrickrajamanickam
 

Ähnlich wie One-Way ANOVA (20)

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
 
Anova.ppt
Anova.pptAnova.ppt
Anova.ppt
 
Tugasan kumpulan anova
Tugasan kumpulan anovaTugasan kumpulan anova
Tugasan kumpulan anova
 
ANOVA.pptx
ANOVA.pptxANOVA.pptx
ANOVA.pptx
 
Anova by Hazilah Mohd Amin
Anova by Hazilah Mohd AminAnova by Hazilah Mohd Amin
Anova by Hazilah Mohd Amin
 
ANOVA.ppt
ANOVA.pptANOVA.ppt
ANOVA.ppt
 
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
 
Statistical analysis by iswar
Statistical analysis by iswarStatistical analysis by iswar
Statistical analysis by iswar
 
Survival.pptx
Survival.pptxSurvival.pptx
Survival.pptx
 
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
 
Contingency Tables
Contingency TablesContingency Tables
Contingency Tables
 
Factorial Experiments
Factorial ExperimentsFactorial Experiments
Factorial Experiments
 
Anova stat 512
Anova stat 512Anova stat 512
Anova stat 512
 
Analyzing experimental research data
Analyzing experimental research dataAnalyzing experimental research data
Analyzing experimental research data
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
 
In the t test for independent groups, ____.we estimate µ1 µ2.docx
In the t test for independent groups, ____.we estimate µ1 µ2.docxIn the t test for independent groups, ____.we estimate µ1 µ2.docx
In the t test for independent groups, ____.we estimate µ1 µ2.docx
 
One-Way ANOVA: Conceptual Foundations
One-Way ANOVA: Conceptual FoundationsOne-Way ANOVA: Conceptual Foundations
One-Way ANOVA: Conceptual Foundations
 
Quality Engineering material
Quality Engineering materialQuality Engineering material
Quality Engineering material
 
MPhil clinical psy Non-parametric statistics.pptx
MPhil clinical psy Non-parametric statistics.pptxMPhil clinical psy Non-parametric statistics.pptx
MPhil clinical psy Non-parametric statistics.pptx
 
Anova.pptx
Anova.pptxAnova.pptx
Anova.pptx
 

Mehr von Long Beach City College

Practice test ch 9 inferences from two samples
Practice test ch 9 inferences from two samplesPractice test ch 9 inferences from two samples
Practice test ch 9 inferences from two samplesLong Beach City College
 
Practice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaPractice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaLong Beach City College
 
Solution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
Solution to the Practice Test 3A, Chapter 6 Normal Probability DistributionSolution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
Solution to the Practice Test 3A, Chapter 6 Normal Probability DistributionLong Beach City College
 
Practice Test Chapter 6 (Normal Probability Distributions)
Practice Test Chapter 6 (Normal Probability Distributions)Practice Test Chapter 6 (Normal Probability Distributions)
Practice Test Chapter 6 (Normal Probability Distributions)Long Beach City College
 
Two Means, Two Dependent Samples, Matched Pairs
Two Means, Two Dependent Samples, Matched PairsTwo Means, Two Dependent Samples, Matched Pairs
Two Means, Two Dependent Samples, Matched PairsLong Beach City College
 
Testing a Claim About a Standard Deviation or Variance
Testing a Claim About a Standard Deviation or VarianceTesting a Claim About a Standard Deviation or Variance
Testing a Claim About a Standard Deviation or VarianceLong Beach City College
 
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
 

Mehr von Long Beach City College (17)

Practice test ch 9 inferences from two samples
Practice test ch 9 inferences from two samplesPractice test ch 9 inferences from two samples
Practice test ch 9 inferences from two samples
 
Practice Test Ch 8 Hypothesis Testing
Practice Test Ch 8 Hypothesis TestingPractice Test Ch 8 Hypothesis Testing
Practice Test Ch 8 Hypothesis Testing
 
Practice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaPractice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anova
 
Solution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
Solution to the Practice Test 3A, Chapter 6 Normal Probability DistributionSolution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
Solution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
 
Practice Test Chapter 6 (Normal Probability Distributions)
Practice Test Chapter 6 (Normal Probability Distributions)Practice Test Chapter 6 (Normal Probability Distributions)
Practice Test Chapter 6 (Normal Probability Distributions)
 
Practice Test 2 Solutions
Practice Test 2  SolutionsPractice Test 2  Solutions
Practice Test 2 Solutions
 
Practice Test 2 Probability
Practice Test 2 ProbabilityPractice Test 2 Probability
Practice Test 2 Probability
 
Practice Test 1 solutions
Practice Test 1 solutions  Practice Test 1 solutions
Practice Test 1 solutions
 
Stat sample test ch 12 solution
Stat sample test ch 12 solutionStat sample test ch 12 solution
Stat sample test ch 12 solution
 
Stat sample test ch 12
Stat sample test ch 12Stat sample test ch 12
Stat sample test ch 12
 
Stat sample test ch 11
Stat sample test ch 11Stat sample test ch 11
Stat sample test ch 11
 
Stat sample test ch 10
Stat sample test ch 10Stat sample test ch 10
Stat sample test ch 10
 
Two Variances or Standard Deviations
Two Variances or Standard DeviationsTwo Variances or Standard Deviations
Two Variances or Standard Deviations
 
Two Means, Two Dependent Samples, Matched Pairs
Two Means, Two Dependent Samples, Matched PairsTwo Means, Two Dependent Samples, Matched Pairs
Two Means, Two Dependent Samples, Matched Pairs
 
Testing a Claim About a Standard Deviation or Variance
Testing a Claim About a Standard Deviation or VarianceTesting a Claim About a Standard Deviation or Variance
Testing a Claim About a Standard Deviation or Variance
 
Testing a Claim About a Mean
Testing a Claim About a MeanTesting a Claim About a Mean
Testing a Claim About a Mean
 
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
 

Kürzlich hochgeladen

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 

Kürzlich hochgeladen (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 

One-Way ANOVA

  • 1. Elementary Statistics Chapter 12: Analysis of Variance 12.1 One-Way ANOVA 1
  • 2. Chapter 12: Analysis of Variance 12.1 One-Way ANOVA 12.2 Two-Way ANOVA 2 Objectives: Use the ANOVA technique to determine if there is a significant difference among three or more means. Good lecture Videos to watch: ANOVA Concept: https://www.youtube.com/watch?v=ITf4vHhyGpc Hand Calculation: https://www.youtube.com/watch?v=WUjsSB7E-ko Visual Explanation: https://www.youtube.com/watch?v=JgMFhKi6f6Y YouTube: https://www.youtube.com/watch?v=YbX-JUqD1so Tukey Website + ANOVA: https://astatsa.com/OneWay_Anova_with_TukeyHSD/ One-Way (Single Factor) ANOVA + Tukey 1. Get rid of the check mark 2. Choose the value of K (Number of treatment columns) 3. Proceed to enter your treatment columns 4. Enter Data 5. Calculate ANOVA with Tukey, Scheffe, Bonferroni & Holm 6. All is Ready
  • 3. 3 12.1 One-Way ANOVA One-way analysis of variance (ANOVA) is used for tests of hypotheses that three or more populations have means that are all equal, as in H0: µ1 = µ2 = µ3 by analyzing sample variances. One-way analysis of variance is used with data categorized with one factor (or treatment), so there is one characteristic used to separate the sample data into the different categories. • The F test, used to compare two variances, can also be used to compare three or more means. • This technique is called analysis of variance or ANOVA. • For three groups, the F test can only show whether or not a difference exists among the three means, not where the difference lies. (The ANOVA test is right-tailed because only large values of the test statistic cause us to reject equality of the population means.) • Other statistical tests, Scheffé test and the Tukey test, are used to find where the difference exists. • Although the t test is commonly used to compare two means, it should not be used to compare three or more. There is a different F distribution for each different pair of degrees of freedom for numerator and denominator. 1. The F distribution is not symmetric. It is skewed right (positively skewed). 2. Values of the F distribution cannot be negative. 3. The exact shape of the F distribution depends on the two different degrees of freedom.
  • 4. 4 12.1 One-Way ANOVA In the F test, two different estimates of the population variance are made. The first estimate is called the between-group variance, and it involves finding the variance of the means. The second estimate, the within-group variance, is made by computing the variance using all the data and is not affected by differences in the means. If there is no difference in the means, the between-group variance will be approximately equal to the within-group variance, and the F test value will be close to 1; do not reject null hypothesis. However, when the means differ significantly, the between-group variance will be much larger than the within-group variance; the F test will be significantly greater than 1; reject null hypothesis. The following assumptions apply when using the F test to compare three or more means. 1. The populations from which the samples were obtained must be normally or approximately normally distributed. 2. The samples must be independent of each other. 3. The populations have the same variance σ² (or standard deviation σ). 4. The samples are simple random samples of quantitative data. 5. The different samples are from populations that are categorized in only one way. Step 1: H0 , H1, claim & Tails Step 2: TS Calculate (TS) Step 3: CV using α Step 4: Make the decision to a. Reject or not H0 b. The claim is true or false c. Restate this decision: There is / is not sufficient evidence to support the claim that…
  • 5. 5 Example 1: Three different techniques are used to lower the blood pressure of individuals diagnosed with high blood pressure. The subjects are randomly assigned to 3 groups; the first group takes medication, the second group exercises, and the third group follows a special diet. After two months, the reduction in each person’s blood pressure is recorded. At α = 0.05, test the claim that there is no difference among the means. Step 1: State the hypotheses and identify the claim. H0: μ1 = μ2 = μ3 (claim) H1: At least one mean is different from the others. (RTT) Given: Number of Groups (Factors): k = 3 Number of data in each group: n = 5 Total sample size: N = 3(5) = 15 Sum of Squares: SST = SSW + SSB The total sum of squares: Find the squared distances from the Grand Mean. (If we took the average, we would have a variance.) The within-group or within-cell sum of squares comes from the distance of the observations to the cell means. This indicates error. The between-cells or between-groups sum of squares tells of the distance of the cell means from the grand mean. This indicates treatment (the column) effects. 𝑆𝑆𝑡𝑜𝑡 = 𝑆𝑆𝐵 + 𝑆𝑆𝑊 = (𝑋𝑖 − 𝑋𝐺)2 𝑆𝑆𝑊 = (𝑋𝑖 − 𝑋𝐴)2 = (𝑋1 − 𝑋1)2 + (𝑋2 − 𝑋2)2 + (𝑋3 − 𝑋3)2 +. . . 𝑆𝑆𝐵 = 𝑁𝐴(𝑋𝐴 − 𝑋𝐺)2 𝑂𝑅 = 𝑆𝑆𝑡𝑜𝑡 − 𝑆𝑆𝑊 𝑋𝑖: Each piece of Data, 𝑋𝐺: The Grand Mean, taken over all observations. 𝑋𝐴: The mean of any level of a treatment.
  • 6. 6 Example 1: Continued Step 2: Calculate the test statistic value. a. Find the mean and variance of each sample (Given Table). 𝑥𝐺𝑀 = 𝑥 𝑁 = 10 + 12 + 9 + 15 + 13 + 6 + ⋯ + 4 15 𝑀𝑆𝐵 𝑂𝑅 𝑠𝐵 2 = 𝑆𝑆𝐵 𝑘 − 1 = 𝑛𝑖 𝑋𝑖 − 𝑋𝐺𝑀 2 𝑘 − 1 = 5 11.8 − 7.73 2 + 5 3.8 − 7.73 2 + 5 7.6 − 7.73 2 3 − 1 𝑀𝑆𝑤 𝑂𝑅 𝑠𝑊 2 𝑂𝑅 𝑠𝑝 2 = 𝑆𝑆𝑤 𝑁 − 𝑘 = 𝑛𝑖 − 1 𝑠𝑖 2 𝑛𝑖 − 1 = 4 5.7 + 4 10.2 + 4 10.3 4 + 4 + 4 𝐹 = MS𝐵 MS𝑊 = 𝑠𝐵 2 𝑠𝑊 2 = 116 15 = 7.73 = 160.13 2 = 80.07 = 104.80 12 = 8.73 Given the means of each group: 11.8, 3.8 & 7.6 Calculate their weighted average and variance: 𝑏. . 𝑥𝐺𝑀 = 𝑥𝑖 𝑘 = 11.8 + 3.8 + 7.6 3 = 7.73 𝑐. 𝑠𝑥 2 = 𝑥𝑖 − 𝑥𝐺𝑀 2 𝑘 − 1 = 11.8 − 7.73 2 + 3.8 − 7.73 2 + 7.6 − 7.76 2 3 − 1 ≈ 16.018 𝑆𝐵 = 𝜎𝑥 = 𝜎 𝑛 → 𝐸𝑠𝑡𝑖𝑚𝑎𝑡𝑒: 𝜎2 = 𝑛𝑠𝑥 2 → 𝑀𝑆𝐵 𝑂𝑅 𝑠𝐵 2 = 𝑛𝑠𝑥 2 = 5(16.018) = 80.09 b. Find the Grand Mean, the mean of all values in the samples. c. Find the Between-group variance (Mean Square, MSB.) d. Find the Within-group variance (Error)(Mean of sample variances, or mean square, MSW) e. Calculate the F value. 𝑑. 𝑠𝑊 2 𝑂𝑅 𝑠𝑝 2 = 𝑆1 2 + 𝑆2 2 + 𝑆3 2 3 = 5.7 + 10.2 + 10.3 3 = 8.733 Source Sum of Squares d.f. Mean Squares F Between Within (error) SSB =160.13 SSW =104.80 k – 1= 2 N – k=12 MSB = 80.07 MSW = 8.73 9.17 Total 264.93 14 = 80.07 8.73 = 9.17
  • 7. 7 Three different techniques are used to lower the blood pressure of individuals diagnosed with high blood pressure. The subjects are randomly assigned to 3 groups; the first group takes medication, the second group exercises, and the third group follows a special diet. After two months, the reduction in each person’s blood pressure is recorded. At α = 0.05, test the claim that there is no difference among the means. Step 3: Find the critical value. Number of Groups (Factors): k = 3, d.f.N. = k – 1 = 3 – 1 = 2, Total sample size: N = 15, d.f.D. = N – k = 15 – 3 = 12 α = 0.05 → CV: 𝑭 = 3.8853 Step 4: Decision: a. Reject H0 b. The claim is False c. There is NOT sufficient evidence to support the claim that there is no difference among the means and conclude that at least one mean is different from the others. Step 1: H0: μ1 = μ2 = μ3 (claim) H1: At least one mean is different from the others. (RTT) Step 2: Calculate the test statistic value: 𝐹 = 9.17 Example 1: Continued CV: F = 3.8853 TS: 𝑭 = 9.17 0.05 Source Sum of Squares d.f. Mean Squares F Between Within (error) SSB =160.13 SSW =104.80 k – 1= 2 N – k=12 MSB = 80.07 MSW = 8.73 9.17 Total 264.93 14 TI Calculator: One Way ANOVA 1. ClrList 𝑳𝟏, 𝑳𝟐, … 2. Enter data 𝑳𝟏, 𝑳𝟐, . . 3. Stat 4. Tests 5. 𝑨𝑵𝑶𝑽𝑨 (𝑳𝟏, 𝑳𝟐 , . . ) 6. Enter
  • 8. 8 The between-group variance is sometimes called the mean square, MSB. • The numerator of the formula to compute MSB is called the sum of squares between groups, SSB. • The within-group variance is sometimes called the mean square, MSW. • The numerator of the formula to compute MSW is called the sum of squares within groups, SSW. Source Sum of Squares d.f. Mean Squares = SS /df 𝑭 = 𝑴𝑺𝑩 𝑴𝑺𝒘 Squares = SS /df SSB =160.13 SSW =104.80 k – 1= 2 N – k=12 MSB = SSB / 2 = 80.07 MSW = SSW / 12 = 8.73 𝟖𝟎. 𝟎𝟕 𝟖. 𝟕𝟑 = 𝟗. 𝟏𝟕 Total SST = 264.93 14 12.1 One-Way ANOVA Summary Table The Grand Mean, taken over all observations: 𝑥𝐺𝑀 = 𝑥 𝑁 = 𝑥𝑖 𝑘 Number of Groups (Factors): k Number of data in each group: 𝒏𝟏, 𝒏𝟐,… Total sample size: 𝑵 = 𝒏𝟏 + 𝒏𝟐 + ⋯ Each piece of data: 𝑿𝒊 Each Group (treatment) Mean: 𝒙𝒊 Between-group variance (Mean Square, MSB.) 𝑀𝑆𝐵 𝑂𝑅 𝑠𝐵 2 = 𝑆𝑆𝐵 𝑘 − 1 = 𝑛𝑖 𝑋𝑖 − 𝑋𝐺𝑀 2 𝑘 − 1 → 𝑀𝑆𝐵 𝑂𝑅 𝑠𝐵 2 = 𝑛𝑠𝑥 2 , if same number of data in each category (n times the variance for sample means) Within-group variance (Error)(Mean of sample variances, or mean square, MSW): 𝑀𝑆𝑤 𝑂𝑅 𝑠𝑊 2 𝑂𝑅 𝑠𝑝 2 = 𝑆𝑆𝑤 𝑁−𝑘 = 𝑛𝑖−1 𝑠𝑖 2 𝑛𝑖−1 𝑂𝑅 𝑠𝑝 2 = 𝑆1 2+𝑆2 2+𝑆3 2+⋯ 𝑘 , if same number of data in each category
  • 9. 9 Data shown represents the number of employees at the security gate for 3 companies. At α = 0.05, can it be concluded that there is a significant difference in the average number of employees at each interchange? Example 2: Company A Company B Company C 7 10 1 14 1 12 32 1 1 19 0 9 10 11 1 11 1 11 𝑥1 = 15.5, 𝑠1 2 = 81.9 𝑥2 = 4.0, 𝑠2 2 = 25.6 𝑥3 = 5.8, 𝑠3 2 = 29.0 Step 1: State the hypotheses and identify the claim. H0: μ1 = μ2 = μ3 H1: At least one mean is different from the others. (RTT, claim) Step 1: H0 , H1, claim & Tails Step 2: TS Calculate (TS) Step 3: CV using α Step 4: Make the decision to a. Reject or not H0 b. The claim is true or false c. Restate this decision: There is / is not sufficient evidence to support the claim that… Given: Number of Groups (Factors): k = 3 Number of data in each group: n = 6 Total sample size: N = 3(6) = 18
  • 10. 10 Example 2: Continued Step 2: Calculate the test statistic value. a. Find the mean and variance of each sample (Given). 𝑥𝐺𝑀 = 𝑥 𝑁 = 7 + 14 + 32 + ⋯ + 11 18 𝑠𝐵 2 = 𝑛𝑖 𝑋𝑖 − 𝑋𝐺𝑀 2 𝑘 − 1 = 6 15.5 − 8.4333 2 + 6 4 − 8.4333 2 + 6 5.8 − 8.4333 2 3 − 1 𝑠𝑊 2 𝑂𝑅 𝑠𝑝 2 = 𝑛𝑖 − 1 𝑠𝑖 2 𝑛𝑖 − 1 = 5 81.9 + 5 25.6 + 5 29.0 5 + 5 + 5 𝐹 = 𝑠𝐵 2 𝑠𝑊 2 = 152 18 = 8.444 = 459.18 2 = 229.59 = 682.5 15 = 45.5 Given the means of each group: 15.5, 4 & 5.8 Calculate their mean and variance: 𝑏. 𝑥 = 𝑥𝑖 𝑘 = 15.5 + 4 + 5.8 3 = 8.4333 𝑐. 𝑠𝑥 2 = 𝑥𝑖 − 𝑥𝐺𝑀 2 𝑘 − 1 = 15.5 − 8.433 2 + 4 − 8.433 2 + 5.8 − 8.433 2 3 − 1 ≈ 38.263 𝑆𝐵 = 𝜎𝑥 = 𝜎/ 𝑛 → 𝐸𝑠𝑡𝑖𝑚𝑎𝑡𝑒: 𝜎2 = 𝑛𝑠𝑥 2 → 𝑀𝑆𝐵 𝑂𝑅 𝑠𝐵 2 = 𝑛𝑠𝑥 2 = 6(38.263) = 229.580 b. Find the grand mean, the mean of all values in the samples. c. Find the between-group variance d. Find the within-group variance (Mean of sample variances), e. Calculate the F value. 𝑑. 𝑠𝑊 2 𝑂𝑅 𝑠𝑝 2 = 𝑆1 2 + 𝑆2 2 + 𝑆3 2 3 = 81.9 + 25.6 + 29 3 = 45.5 Company A Company B Company C 7 10 1 14 1 12 32 1 1 19 0 9 10 11 1 11 1 11 𝑥1 = 15.5, 𝑠1 2 = 81.9 𝑥2 = 4.0, 𝑠2 2 = 25.6 𝑥3 = 5.8, 𝑠3 2 = 29.0 = 229.59 45.5 = 5.05
  • 11. 11 Data shown represents the number of employees at the security gate for 3 companies. At α = 0.05, can it be concluded that there is a significant difference in the average number of employees at each interchange? Step 3: Find the critical value. Number of Groups (Factors): k = 3, d.f.N. = k – 1 = 3 – 1 = 2, Total sample size: N = 18, d.f.D. = N – k = 18 – 3 = 15 α = 0.05 → CV: 𝑭 = 3.6823 Step 4: Decision: a. Reject H0 b. The claim is True c. There is sufficient evidence to support the claim that there is a difference among the means and conclude that at least one mean is different from the others. Step 1: H0: μ1 = μ2 = μ3 H1: At least one mean is different from the others. (RTT, claim) Step 2: Test statistic: 𝐹 = 5.05 Example 2: Continued 0.05 Company A Company B Company C 7 10 1 14 1 12 32 1 1 19 0 9 10 11 1 11 1 11 𝑥1 = 15.5, 𝑠1 2 = 81.9 𝑥2 = 4.0, 𝑠2 2 = 25.6 𝑥3 = 5.8, 𝑠3 2 = 29.0 Source Sum of Squares d.f. Mean Squares F Between Within (error) 459.18 682.5 2 15 229.59 45.5 5.05 Total 1141.68 17 TI Calculator: One Way ANOVA 1. ClrList 𝑳𝟏, 𝑳𝟐, … 2. Enter data 𝑳𝟏, 𝑳𝟐, . . 3. Stat 4. Tests 5. 𝑨𝑵𝑶𝑽𝑨 (𝑳𝟏, 𝑳𝟐 , . . ) 6. Enter CV: F = 3.6823 TS: 𝑭 = 5.05