bio5
bio5
Design
Dr. Intesar N.
El-Saeiti
Associate
MSc PROGRAMS IN STATISTICS Professor
Biostatistics (2626)
University of Bengahzi-Libya
Joune 26,2024
Dr. Intesar N. El-Saeiti Associate Professor (UOB) Experimental Design Joune 26,2024 1 / 18
Analysis of Variance Experimental
Design
Dr. Intesar N.
One-Way ANOVA (”analysis of variance”) compares the El-Saeiti
Associate
means of two or more independent groups in order to Professor
Dr. Intesar N.
Statistical technique specially designed to test whether El-Saeiti
Associate
the means of more than two quantitative populations Professor
are equal.
Developed by Ronald A. Fisher in 1920s. ANOVA
instead of multiple t-tests
If you are comparing means between more than two
groups, why not just do several two sample t-tests to
compare the mean from one group with the mean from
each of the other groups?
The problem with the multiple t-tests approach is that
as the number of groups increases, the number of two
sample t-tests also increases.
As the number of tests increases the probability of
making a Type I error also increases.
Dr. Intesar N. El-Saeiti Associate Professor (UOB) Experimental Design Joune 26,2024 3 / 18
Data Requirements Experimental
Design
Dr. Intesar N.
Your data must meet the following requirements: El-Saeiti
Associate
Professor
1 Dependent variable that is continuous (i.e., interval or
ratio level)
2 Independent variable that is categorical (i.e., two or
more groups) Cases that have values on both the
dependent and independent variables Independent
samples/groups (i.e., independence of observations)
There is no relationship between the subjects in each
sample. This means that: subjects in the first group
cannot also be in the second group no subject in either
group can influence subjects in the other group no
group can influence the other group Random sample of
data from the population
Dr. Intesar N. El-Saeiti Associate Professor (UOB) Experimental Design Joune 26,2024 4 / 18
Assumptions for ANOVA Experimental
Design
Dr. Intesar N.
El-Saeiti
1 The populations from which the samples are obtained Associate
Professor
must be normally or approximately normally distributed
(Normality).
2 The samples must be independent of each other
(Independence).
3 The variances of the populations must be equal
(Homogeneity of variances).
4 The null hypothesis is that the means are all equal
H0 : µ1 = µ2 = ... = µk
Dr. Intesar N.
The test statistic for a One-Way ANOVA is denoted as F. El-Saeiti
Associate
For an independent variable with k groups, the F statistic Professor
Dr. Intesar N.
El-Saeiti
Associate
Professor
Dr. Intesar N. El-Saeiti Associate Professor (UOB) Experimental Design Joune 26,2024 7 / 18
Interpret the results of ANOVA Experimental
Design
Dr. Intesar N.
El-Saeiti
Associate
Professor
To test whether or not there is a significant difference
between the means, the p-value is compared to the
significance level (α).
H0 : µ1 = µ2 = ... = µk
Dr. Intesar N. El-Saeiti Associate Professor (UOB) Experimental Design Joune 26,2024 8 / 18
Post-hoc tests Experimental
Design
Dr. Intesar N.
El-Saeiti
Associate
Professor
Dr. Intesar N. El-Saeiti Associate Professor (UOB) Experimental Design Joune 26,2024 9 / 18
Analyze > Compare Means > One-Way ANOVA Experimental
Design
Dr. Intesar N.
El-Saeiti
Associate
Professor
Dr. Intesar N. El-Saeiti Associate Professor (UOB) Experimental Design Joune 26,2024 10 / 18
Experimental
Design
Dr. Intesar N.
El-Saeiti
Associate
Professor
Dr. Intesar N. El-Saeiti Associate Professor (UOB) Experimental Design Joune 26,2024 11 / 18
Experimental
Design
Dr. Intesar N.
El-Saeiti
Associate
Professor
Dr. Intesar N. El-Saeiti Associate Professor (UOB) Experimental Design Joune 26,2024 12 / 18
Spss steps Experimental
Design
Dr. Intesar N.
El-Saeiti
Associate
Professor
Dr. Intesar N. El-Saeiti Associate Professor (UOB) Experimental Design Joune 26,2024 13 / 18
Example Experimental
Design
Dr. Intesar N.
El-Saeiti
In the sample dataset, the variable Sprint is the respondent’s Associate
Professor
time (in seconds) to sprint a given distance, and Smoking is
an indicator about whether or not the respondent smokes (0
= Nonsmoker, 1 = Past smoker, 2 = Current smoker). Let’s
use ANOVA to test if there is a statistically significant
difference in sprint time with respect to smoking status.
Sprint time will serve as the dependent variable, and
smoking status will act as the independent variable.
Before the Test
Just like we did with the paired t test and the independent
samples t test, we’ll want to look at descriptive statistics and
graphs to get picture of the data before we run any
inferential statistics.
Dr. Intesar N. El-Saeiti Associate Professor (UOB) Experimental Design Joune 26,2024 14 / 18
Example Experimental
Design
Dr. Intesar N.
El-Saeiti
The sprint times are a continuous measure of time to sprint Associate
Professor
a given distance in seconds. From the Descriptives procedure
(Analyze> Descriptive Statistics > Descriptives), we see
that the times exhibit a range of 4.5 to 9.6 seconds, with a
mean of 6.6 seconds (based on n=374 valid cases). From
the Compare Means procedure (Analyze > Compare
Means > Means), we see these statistics with respect to
the groups of interest:
N Mean Std.Deviation
Nonsmoker 261 6.411 1.252
Past smoker 33 6.835 1.024
Current smoker 59 7.121 1.084
Total 353 6.569 1.234
Dr. Intesar N. El-Saeiti Associate Professor (UOB) Experimental Design Joune 26,2024 15 / 18
Running the Procedure Experimental
Design
Dr. Intesar N.
El-Saeiti
Associate
Professor
Dr. Intesar N. El-Saeiti Associate Professor (UOB) Experimental Design Joune 26,2024 16 / 18
Spss output Experimental
Design
Dr. Intesar N.
El-Saeiti
Associate
Professor
Dr. Intesar N. El-Saeiti Associate Professor (UOB) Experimental Design Joune 26,2024 17 / 18
Discussion and Conclusions Experimental
Design
Dr. Intesar N.
El-Saeiti
Associate
Professor
Conclusions
Dr. Intesar N. El-Saeiti Associate Professor (UOB) Experimental Design Joune 26,2024 18 / 18