Professional Documents
Culture Documents
CHARACTERISTICS OF AN EXPERIMENT
An experiment is a controlled study conducted to determine the effect varying one or more
explanatory variables or factors has on a response variable. Any combination of the values of the factors
is called a treatment.
A factor is a
characteristic that The response is
differentiates each The treatment is Treatment
the measured
a combination of combinations are
group or outcome taken
factors and/or applied to the
population. A from the
factor can have levels of factors. experimental
experimental
two or more units.
units.
levels.
A control group serves as a baseline treatment that can be used to compare it to other treatments.
Blinding - Blinding is a technique in which the subject doesn’t know whether he or she is receiving a
treatment or a placebo to avoid bias.
Double-blinding – both researcher and subject does not know which one gets the placebo
Introduction to Data Analysis 6
QUESTION?
ONE-WAY ANOVA
Requirements:
1. There must be k simple random samples, one from each of k
populations or a randomized experiment with k treatments.
2. The k samples must be independent of each other; that is, the
subjects in one group cannot be related in any way to subjects
in a second group.
3. The populations must be normally distributed.
4. The populations must have the same variance; that is, each
treatment group has population variance 𝜎 2
Estimation of a Population Proportion 9
ONE-WAY ANOVA
Source of Sum of Squares Df Mean Squares F
Variation
Treatment 𝑆𝑆𝑇𝑟 k-1 𝑆𝑆𝑇𝑟 𝑀𝑆𝑇𝑟
𝑘−1 𝑀𝑆𝐸
Error 𝑆𝑆𝐸 n-k 𝑆𝑆𝐸
𝑛−𝑘
Total 𝑆𝑆𝑇 = 𝑆𝑆𝑇𝑟 + 𝑆𝑆𝐸 n-1
Estimation of a Population Proportion 10
ONE-WAY ANOVA
Definition of Terms
• SST (Total Sum of Squares) – total variability in the data. This
is defined as the squared differences between the grand mean
and the dependent variable.
2
𝑆𝑆𝑇 = 𝑦𝑖 − 𝑦ത
ONE-WAY ANOVA
Definition of Terms
• 𝑆𝑆𝑇𝑟 (treatment sum of squares) – sum of squares of
differences between treatment means and the grand mean
2
𝑆𝑆𝑇𝑟 = 𝑛𝑘 𝑦𝑘 − 𝑦ധ
ONE-WAY ANOVA
Definition of Terms
• 𝑆𝑆𝐸 (error sum of squares) – sum of squares of differences of
observations within a treatment from the treatment mean
𝑘
𝑆𝑆𝐸 = 𝑦𝑘 − 𝑦 2
𝑖=0
Where
𝑦𝑘 = 𝑔𝑟𝑜𝑢𝑝 𝑚𝑒𝑎𝑛
y = 𝑖𝑛𝑑𝑖𝑣𝑖𝑑𝑢𝑎𝑙 𝑣𝑎𝑙𝑢𝑒 𝑤𝑖𝑡ℎ𝑖𝑛 𝑡ℎ𝑒 𝑔𝑟𝑜𝑢𝑝
Estimation of a Population Proportion 13
ONE-WAY ANOVA
Definition of Terms
• M𝑆𝑇𝑟 (Mean square for treatment) – average variability
between groups
𝑆𝑆𝑇𝑟
𝑀𝑆𝑇𝑟 =
𝑘
• 𝑀𝑆𝐸 (Mean square for error) – average variability within
groups
𝑆𝑆𝐸
𝑀𝑆𝐸 =
𝑛−𝑘
Estimation of a Population Proportion 14
ONE-WAY ANOVA
Hypothesis Testing
𝐻0 : 𝜇1 = 𝜇2 = ⋯ = 𝜇𝑘
𝐻𝐴 : 𝐴𝑡 𝑙𝑒𝑎𝑠𝑡 𝑜𝑛𝑒 𝑜𝑓 𝑡ℎ𝑒 𝑚𝑒𝑎𝑛𝑠 𝑖𝑠 𝑑𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑡
Test Statistic:
𝑀𝑆𝑇𝑟
𝐹=
𝑀𝑆𝐸
Where dfnum=k-1, dfden=n-k
Estimation of a Population Proportion 15
ONE-WAY ANOVA
Anova: Single Factor
SUMMARY
Groups Count Sum Average Variance
0.05 6 60 10 8
0.1 6 94 15.66667 7.866667
0.15 6 102 17 3.2
0.2 6 127 21.16667 6.966667
ANOVA
Source of Variation SS df MS F P-value F crit
Between Groups 382.7917 3 127.5972 19.60521 3.59E-06 3.098391212
Within Groups 130.1667 20 6.508333
Total 512.9583 23
Presentation title 16
Estimation of a Population Proportion 17
QUESTION?
CRBD
Definition of Terms
• SST (Total Sum of Squares) – total variability in the data. This
is defined as the squared differences between the grand mean
and the dependent variable.
2
𝑆𝑆𝑇 = 𝑦𝑖 − 𝑦ധ
CRBD
Definition of Terms
• 𝑆𝑆𝑇𝑟 (treatment sum of squares) – sum of squares of
differences between treatment means and the grand mean
2
𝑆𝑆𝑇𝑟 = 𝑛𝑘 𝑦𝑘 − 𝑦ധ
CRBD
Definition of Terms
• 𝑆𝑆𝐵 (block sum of squares) – sum of squares of differences of
observations within a block from the grand mean
𝑘
𝑆𝑆𝐵 = 𝑛𝑏 𝑦𝑏 − 𝑦 2
𝑖=0
Where
𝑦𝑏 = 𝑔𝑟𝑜𝑢𝑝 𝑚𝑒𝑎𝑛
y = 𝑖𝑛𝑑𝑖𝑣𝑖𝑑𝑢𝑎𝑙 𝑣𝑎𝑙𝑢𝑒 𝑤𝑖𝑡ℎ𝑖𝑛 𝑡ℎ𝑒 𝑔𝑟𝑜𝑢𝑝
Estimation of a Population Proportion 24
CRBD
Definition of Terms
• 𝑆𝑆𝐸 (error sum of squares) – can be usually referred to as
unexplained error
𝑆𝑆𝐸 = 𝑆𝑆𝑇 − 𝑆𝑆𝐵 − 𝑆𝑆𝑇𝑟
Estimation of a Population Proportion 25
CRBD
Definition of Terms
• M𝑆𝑇𝑟 (Mean square for treatment) – average variability
between groups
𝑆𝑆𝑇𝑟
𝑀𝑆𝑇𝑟 =
𝑘
• 𝑀𝑆𝐸 (Mean square for error) – average variability within
groups
𝑆𝑆𝐸
𝑀𝑆𝐸 =
𝑛−𝑘
Estimation of a Population Proportion 26
CRBD
Definition of Terms
• M𝑆𝐵(Mean square for blocks) – average variability between
blocks
𝑆𝑆𝐵
𝑀𝑆𝐵 =
(𝑏 − 1)
Estimation of a Population Proportion 27
CRBD ANOVA
Hypothesis Testing for Treatments
𝐻0 : 𝜇1 = 𝜇2 = ⋯ = 𝜇𝑘
𝐻𝐴 : 𝐴𝑡 𝑙𝑒𝑎𝑠𝑡 𝑜𝑛𝑒 𝑜𝑓 𝑡ℎ𝑒 𝑚𝑒𝑎𝑛𝑠 𝑖𝑠 𝑑𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑡
Test Statistic:
𝑀𝑆𝑇𝑟
𝐹=
𝑀𝑆𝐸
CRBD ANOVA
Hypothesis Testing for Blocks
𝐻0 : 𝜇𝑏1 = 𝜇𝑏2 = ⋯ = 𝜇𝑏 (𝑛𝑜 𝑑𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑐𝑒 𝑎𝑚𝑜𝑛𝑔 𝑏𝑙𝑜𝑐𝑘 𝑚𝑒𝑎𝑛𝑠)
𝐻𝐴 : 𝐴𝑡 𝑙𝑒𝑎𝑠𝑡 𝑜𝑛𝑒 𝑜𝑓 𝑡ℎ𝑒 𝑏𝑙𝑜𝑐𝑘𝑠 𝑚𝑒𝑎𝑛𝑠 𝑖𝑠 𝑑𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑡
(𝑏𝑙𝑜𝑐𝑘𝑖𝑛𝑔 𝑖𝑠 𝑒𝑓𝑓𝑒𝑐𝑡𝑖𝑣𝑒)
Test Statistic:
𝑀𝑆𝐵
𝐹=
𝑀𝑆𝐸
TWO-WAY ANOVA
Two-way ANOVA is an analysis used when two factors can explain
variability in the response variable. We deal with the two factors by
fixing them at different levels. Remember that we can deal with factors
through control by fixing them at one level or at different levels, and
randomizing so that the effect of uncontrolled variables on the
response variable is minimized.
TWO-WAY ANOVA
The two-way Analysis of Variance is used when one suspects that there
may be some kind of interaction between the levels of two
experimental factors.
For example, one kind of chemotherapy was better for lung cancer, or
another is better for stomach cancer.
Estimation of a Population Proportion 33
TWO-WAY ANOVA
Aircraft primer paints are applied to aluminum surfaces by two
methods: dipping and spraying. The purpose of using the primer is to
improve paint adhesion, and some parts can be primed using either
application method. The process engineering group responsible for
this operation is interested in learning whether three different primers
differ in their adhesion properties. A factorial experiment was
performed to investigate the effect of paint primer type and
application method on paint adhesion. For each combination
of primer type and application method, three specimens were painted,
then a finish paint was applied, and the adhesion force was measured.
Introduction to Data Analysis 34
QUESTION?
Where r=replicates
Estimation of a Population Proportion 36
TWO-WAY ANOVA
Definition of Terms
• SST (Total Sum of Squares) – total variability in the data. This
is defined as the squared differences between the grand mean
and the dependent variable.
2
𝑆𝑆𝑇 = 𝑦𝑖 − 𝑦ധ
TWO-WAY ANOVA
Definition of Terms
• 𝑆𝑆𝐴 (treatment A sum of squares) – sum of squares of
differences between treatment A means and the grand mean
2
𝑆𝑆𝐴 = 𝑛𝐴 𝑦𝐴 − 𝑦ധ
RCBD
Definition of Terms
• 𝑆𝑆𝐵 (treatment B sum of squares) – sum of squares of
differences between treatment B means and the grand mean
2
𝑆𝑆𝐴 = 𝑛𝑏 𝑦𝑏 − 𝑦ധ
RCBD
Definition of Terms
• 𝑆𝑆𝐴𝐵 (interaction sum of squares) – sum of squares of
differences of each specimen in the treatment condition and
the treatment condition mean
Estimation of a Population Proportion 40
RCBD
Definition of Terms
• 𝑆𝑆𝐸 (error sum of squares) – can be usually referred to as
unexplained error
𝑆𝑆𝐸 = 𝑆𝑆𝑇 − 𝑆𝑆𝐴𝐵 − 𝑆𝑆𝐴 − 𝑆𝑆𝐵
Estimation of a Population Proportion 41
TWO-WAY ANOVA
Hypothesis Testing for Factor A
𝐻0 : 𝜇𝑎1 = 𝜇𝑎2 = ⋯ = 𝜇𝑎
(The means of all levels of Factor A are equal)
𝐻𝐴 : 𝐴𝑡 𝑙𝑒𝑎𝑠𝑡 𝑜𝑛𝑒 𝑜𝑓 𝑡ℎ𝑒 𝑙𝑒𝑣𝑒𝑙 𝐴 𝑚𝑒𝑎𝑛𝑠 𝑖𝑠 𝑑𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑡
Test Statistic:
𝑀𝑆𝐴
𝐹=
𝑀𝑆𝐸
TWO-WAY ANOVA
Hypothesis Testing for Factor B
𝐻0 : 𝜇𝑏1 = 𝜇𝑏2 = ⋯ = 𝜇𝑏
(The means of all levels of Factor B are equal)
𝐻𝐴 : 𝐴𝑡 𝑙𝑒𝑎𝑠𝑡 𝑜𝑛𝑒 𝑜𝑓 𝑡ℎ𝑒 𝑙𝑒𝑣𝑒𝑙 𝐵 𝑚𝑒𝑎𝑛𝑠 𝑖𝑠 𝑑𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑡
Test Statistic:
𝑀𝑆𝐵
𝐹=
𝑀𝑆𝐸
TWO-WAY ANOVA
Hypothesis Testing for Interaction AB
𝐻0 : 𝑇ℎ𝑒 𝑖𝑛𝑡𝑒𝑟𝑎𝑐𝑡𝑖𝑜𝑛 𝑒𝑓𝑓𝑒𝑐𝑡𝑠 𝑎𝑟𝑒 𝑎𝑙𝑙 𝑧𝑒𝑟𝑜.
𝐻𝐴 : 𝐴𝑡 𝑙𝑒𝑎𝑠𝑡 𝑜𝑛𝑒 𝑜𝑓 𝑡ℎ𝑒 𝑖𝑛𝑡𝑒𝑟𝑎𝑐𝑡𝑖𝑜𝑛𝑠 𝑖𝑠 𝑛𝑜𝑛 − 𝑧𝑒𝑟𝑜.
Test Statistic:
𝑀𝑆𝐴𝐵
𝐹=
𝑀𝑆𝐸
QUESTION?