Multivariate Analysis of Variance (MANOVA) Consider Univariate - - PowerPoint PPT Presentation
Multivariate Analysis of Variance (MANOVA) Consider Univariate - - PowerPoint PPT Presentation
Find a significant difference between groups Multivariate Analysis of Variance (MANOVA) Consider Univariate ANOVA Used when you have 3 or more samples C B A 508 514.25 583.25 727.5
C B A π¦ π΅πΆπ·
πΌπ: ππ΅ = ππΆ = ππ· πΌπ: ππ΅ β ππΆ β ππ·
The alternative could be true because all the means are different or just one
- f them is different than the others
If we reject the null hypothesis we need to perform some further analysis to draw conclusions about which population means differ from the others and by how much π¦ π π¦ πΆ π¦ π΅
508 514.25 727.5 583.25
Consider Univariate ANOVA
Used when you have 3 or more samples
C B A π¦ π΅πΆπ·
Used when you have 3 or more samples
πΊ = π‘πππππ ππππ‘π πΊ = π€ππ πππππ πππ’π₯πππ π€ππ πππππ π₯ππ’βππ π€ππ πππππ πππ’π₯πππ = π¦ π β π¦ π΅ππ 2
π π
π β 1 β π π€ππ πππππ π₯ππ’βππ = π€ππ ππππππ
π π
π
SIGNAL NOISE
A large F-value indicates a significant difference π¦ π π¦ πΆ π¦ π΅
508 514.25 727.5 583.25
Consider Univariate ANOVA
C B A π¦ π π¦ πΆ π¦ π΅
508 514.25 727.5
π¦ π΅πΆπ·
SIGNAL NOISE πΊ = π€ππ πππππ πππ’π₯πππ π€ππ πππππ π₯ππ’βππ = 62463.25 672.1943 = ππ. πππππ
583.25
π€ππ πππππ πππ’π₯πππ = π¦ π β π¦ π΅πΆπ· 2
π΅,πΆ,π· π
3 β 1 β 4 = 727.5 β 583.25 2 + 514.25 β 583.25 2 + 508 β 583.25 2 2 β 4 π€ππ πππππ πππ’π₯πππ = πππππ. ππ π€ππ πππππ π₯ππ’βππ = π€ππ
π΅ + π€ππ πΆ + π€ππ π·
3 = 891.6667 + 819.3333 + 305.5833 3 π€ππ πππππ π₯ππ’βππ = πππ. ππππ
One-way ANOVA in R:
anova(lm(YIELD~VARIETY))
Used when you have 3 or more samples
Consider Univariate ANOVA
πΊ = π‘πππππ ππππ‘π πΊ = π€ππ πππππ πππ’π₯πππ π€ππ πππππ π₯ππ’βππ
π€ππ πππππ πππ’π₯πππ = π¦ π β π¦ π΅ππ 2
π π
π β 1 β πππππ’ π€ππ πππππ π₯ππ’βππ = π€ππ ππππππ
π π
π
Probability of observation
π‘πππππ > ππππ‘π π‘πππππ < ππππ‘π P-value
(percentiles, probabilities) Present 1-p-value
In R: pf(F, ππ1, ππ2) In R: qf(p, ππ1, ππ2)
0.50 0.95
β
β= 0.05
F-Distribution (family of distributions- shape is dependent on degrees of freedom)
The larger the F-value the further into the tail β AND the smaller the probability that the calculated F- value was found by chance, MEANING there is a high probability that something is causing a significant difference between the groups
Using DISCRIM to predict which group
Problem: A new skull is found but we donβt know whether it belongs to homo erectus or homo habilis or if itβs a new group?
Homo erectus Homo habilis Group centroid New find (unknown origin)
Skull measurement
How predictions work:
- 1. Calculate group centroid
- 2. Find out which centroid is the closest position to the unknown data point
New groups are defined when we find a significant difference between new find and predefined groups
Popular method in taxonomy and anthropology
Multivariate Analysis of Variance (MANOVA)
Is there a significant difference among groups based on multiple response variables? (e.g. ANOVA with multiple response variables)
MANOVA in R:
- utput=manova(responseMatrix~predictorMatrix) (stats package)
Skull measurement
When we calculate a centroid of a group you build a probability distribution around the centroid for comparison You can the run repeated t-tests (with adjusted p-values
for multiple comparisons) to compare the new data to
the groups but MANOVA does it all for you in
- ne shot!
Another lab on MANOVA for reference: Lauraβs website, RENR 480, Lab 22
Assumptions of (MANOVA)
MANOVA is VERY sensitive to invalid assumptions and outliers Within groups we need to have: 1. Normality: Residuals have to be normally distributed 2. Homogeneity of variances: residuals need to have equal variances Need to meet the assumption in the univariate context to meet them for multivariate analyses You therefore first have to check each individual measurement (response variable) for normality and homogeneity e.g. By making boxplots or plotting ANOVA residuals for each variable
Median Mean
Left skewed
negatively skewed
Normal
perfectly symmetric
Right skewed
positively skewed
Represented as a boxplot
Bi-Modal
Two different modes Not necessarily symmetric
Frequency Frequency Mode Mode Mean Median
Assumptions of (MANOVA)
Generate boxplots for each response variable and assess shape & whiskers
Boxplots in R (multiple plots):
boxplot(ResponseVariable~Group)
Testing for Normality & Equal Variances β Residual Plots
Residual plots in R (multiple plots):
plot(lm(ResponseVariable~Group))(2nd plot)
Predicted values Observed (original units) Predicted values Observed (original units) Predicted values Observed (original units) Predicted values Observed (original units)
- NORMAL distribution: equal number of points along observed
- EQUAL variances: equal spread on either side of the meanpredicted value=0
- Good to go!
- NON-NORMAL distribution: unequal number of points along observed
- EQUAL variances: equal spread on either side of the meanpredicted value=0
- Optional to fix
- NORMAL/NON NORMAL: look at histogram or test
- UNEQUAL variances: cone shape β away from or towards zero
- This needs to be fixed for MANOVA (transformations)
- OUTLIERS: points that deviate from the majority of data points
- This needs to be fixed for MANOVA (transformations or removal)
Assumptions of (MANOVA)
Assumptions of (MANOVA)
If you violate the assumptions of MANOVA: 1. Transform your data (follow examples we will discuss on the board) 2. Use non-parametric options (e.g. perMANOVA Lab 6)
Multivariate Analysis of Variance (MANOVA) - output
You can see if there is a significant difference across all predictor variables using the Wilkβs MANOVA test statistic Or you can see if there is a significant difference among groups for each predictor variable separately
P-value β the probability the observed difference between groups or larger is due
to random chance Thus if p-value is small this means that something is having an effect on the groups causing the difference