SlideShare une entreprise Scribd logo
1  sur  36
Inferential Statistics
Quantitative Data
ANOVA
Dhritiman Chakrabarti
Assistant Professor,
Dept of Neuroanaesthesiology
and Neurocritical Care,
NIMHANS, Bangalore
What is ANOVA
• ANOVA is a statistical test based on comparison of
variances within all groups to variances between groups.
• It is conducted using F-test, based on F-distribution.
• It involves partitioning the total variance into group
variance and error variance and then taking ratio of those
to compute F-statistic, which is then looked up for
appropriate degrees of freedom for comparing with
critical F for rejecting null hypothesis.
• Error variance is calculated by taking a mean of variances
of all groups combined.
• Group variance is calculated by taking a mean of variances
of all group means from the grand mean and multiplying by
number of observations per group.
• F statistic = Group variance/Error variance.
• Df error = N-1, Df groups = No. of groups -1
• Look up probability in F-table for accepting or rejecting
null hypothesis.
• Don’t worry if you don’t understand the above jargon.
You don’t need it for practical analysis.
• Simplistically, it is used to provides inferences for
difference of means of two or more groups with by
analyzing their variance, and with more
conservativeness than t-tests.
Types of ANOVA
• One way ANOVA
• Factorial ANOVA  2-way, 3 way …
• Repeated measures ANOVA
• Mixed Models ANOVA
• ANCOVA
• MANOVA
• For sake of simplicity we will stick to one way,
factorial, RM, MM.
One way ANOVA on SPSS
Assumptions:
1. Dependent variable that is continuous and Independent variable
that is categorical
2. Independent samples/groups (i.e., independence of observations)
3. Random sample of data from the population
4. Normal distribution (approximately) of the dependent variable
for each group (i.e., for each level of the factor)
1. Non-normal population distributions, especially those that are thick-tailed or
heavily skewed, considerably reduce the power of the test
2. Among moderate or large samples, a violation of normality may yield fairly
accurate p values
5. Homogeneity of variances (Levene’s test)
1. When this assumption is violated and the sample sizes differ among groups,
the p value for the overall F test is not trustworthy. These conditions warrant
using alternative statistics that do not assume equal variances among
populations, such as the Browne-Forsythe or Welch statistics.
2. When this assumption is violated, the results may not be trustworthy for post
hoc tests. When variances are unequal, post hoc tests that do not assume
equal variances should be used (e.g., Dunnett’s C).
How to on SPSS
• Data should be set up as two columns  Group column
and variable column. Group should be coded
numerically.
• Ideally residuals should be tested for normality. But
most researchers just test the variable itself for
normality.
• No guidelines on which to do  We’ll go for the
easier approach and test the variables for normality.
• Split by group  test using Shapiro Wilk.
• Most statisticians are of the opinion that ANOVA is
quite robust against departures from normality, thus
alpha level may be kept at 0.01 for normality testing.
• Go to Analyze  Compare means  One way ANOVA.
• Put the test variable in the “Dependent List” and
Grouping variable in “Factor”  Click “Post hoc” tab
 Click either Tukey or Bonferroni (in equal variances
assumed) and Either Games-Howell or Dunnett’s C (in
equal variances not assumed)  Continue.
• Click “Options” tab  Click all as shown below.
• Homogeneity of Variance is just Levene’s test for
equality of variances (an assumption for ANOVA)
• Brown-Forsythe and Welch are just corrections for
when variances are found unequal by Levene’s.
• Click Continue  OK.
Output
P-value for Levene’s test. > 0.05 means variances are equal
P-value for ANOVA. < 0.05 means some group mean
is different from the rest
F-statistic
Group variance
Error variance
Since, Variances of groups were equal,
no need for correction. But if Levene’s
test was significant, then either of
these P-values needs to be used rather
than traditional ANOVA
ANOVA only tells if there is
any difference between all
the groups. Does not tell
which groups are significantly
diff. That’s why Post-hocs
are done
Post hoc for equal variances
Post hoc for unequal
variances
2-way ANOVA on SPSS
• Two way ANOVA is used, when there are two grouping variables
which may influence the variance of dependent variable in each
other. For example SBP being measured between 4 age groups, in
which Sex may be a confounder.
• Factorial Nomenclature: X*Y Factorial  Number of factors =
2; Levels in each factor = X,Y. Our example 2*4 Factorial.
• What it tells you:
1. Does Age influence SBP (independent of Sex) ? (main effect)
2. Does Sex influence SBP (independent of Age) ? (main effect)
3. Age*Sex Interaction  Whether the trend of change of SBP
over the Age groups vary between male and female.
• Assumptions similar to ANOVA.
• Data organized in three columns  Age groups
(numerically coded), Sex (numerically coded), SBP.
• Go to Analyze  General Linear Model  Univariate
• Transfer the variable of interest into “Dependent
Variable”, Grouping variables in “Fixed Factors”.
• “Plots” tab  Put group with more levels as
“horizontal axis” and other as “separate lines”  Add
 Continue.
• “Post Hoc” tab transfer grouping variables to “Post Hoc tests
for” box  check either Bonferroni, Tukey, SNK or Scheffe 
Continue. (This is post hocs for observed means  same as one
way ANOVA)
• In “Options” tab  Transfer grouping variables and interaction
term to “Display Means for”, check “Compare main effects”, and
put a post hoc as Bonferroni  Check “Display” options as shown
below  Continue  OK. (here post-hoc is for marginal means)
Output
Shows labels
Observed Descriptives
Homogeneity of variances for full factorial model
P-value for main effects of Age/Sex  Interpret same as ANOVA while accounting
for influence of the other grouping variable.
P-value for Age*Sex  Whether the trend/direction of change in SBP over
different age groups was different in males vs females  Look at plot for easier
interpretation.
Partial Eta Squared  How much variance in SBP is being explained by the given
factor.
Adjusted R Squared  How much variance in SBP is being explained by the whole
model.
Effect size
Estimated Marginal Means
These are estimated marginal means  the
descriptives that you report in factorial
ANOVA (debatable; some prefer reporting
raw data – estimated means are more
important for ANCOVA)  these are
adjusted for variances due to Sex variable.
Pairwise comparisons of
marginal means after
Bonferroni correction.
These are estimated
marginal means  the
descriptives that you
report in factorial ANOVA
(debatable; some prefer
reporting raw data –
estimated means are more
important for ANCOVA)
these are adjusted for
variances due to Age
variable.
Pairwise comparisons of
marginal means – Only two
levels  No correction
required.
Post hocs for observed
means
Plot of estimated marginal
means of SBP at various
Age levels vs. the other
grouping variable – Sex.
Repeated Measures ANOVA
• Repeated measure ANOVA is equivalent one way ANOVA when
there is correlations between levels of the grouping variable.
The most common application is variables measured over time in
the same patient. As paired t-test is to independent samples t-
test, RMANOVA is to 1-Way ANOVA.
• Assumptions same as ANOVA (except that the samples are
independent)
• An extra assumption is that of Sphericity  The variances of
difference between successive variable levels should be roughly
equal. Tested by Mauchly’s test of Sphericity – akin to Levene’s
test in one-way ANOVA.
• Just as Brown-Forsythe/Welch corrections are used for
violation of Levene’s, Greenhouse-Geisser or Huyhn-Feldt are
used for Mauchly’s violation.
How to do RMANOVA in SPSS
• Import data into SPSS.
• Time points/Paired data should be in separate columns.
• Analyze  General Linear Model  Repeated measures  Enter
no. of time points 
• Specify time points  Add a plot  Set a contrast – mostly
simple/difference  in “Options” set “Display means for” and post hoc.
• Set “Display” of Descriptives and
Homogeneity tests  Run the test.
Results of RMANOVA
Descriptive Statistics
a
Mean Std. Deviation N
T1 14.80 3.468 15
T2 14.40 2.849 15
T3 14.27 2.890 15
T4 24.93 2.658 15
T5 26.07 3.127 15
T6 42.13 6.589 15
T7 39.73 7.255 15
T8 38.07 6.239 15
T9 77.00 9.150 15
T10 76.07 7.796 15
T11 75.67 7.118 15
T12 105.53 7.140 15
T13 106.53 8.667 15
T14 126.07 9.067 15
T15 127.20 8.073 15
a. Gp = Exp
Mauchly's Test of Sphericity
b,c
Measure:MEASURE_1
Within
Subjects
Effect Mauchly's W
Approx. Chi-
Square df Sig.
Epsilon
a
Greenhouse-
Geisser Huynh-Feldt Lower-bound
Time .000 160.619 104 .002 .406 .717 .071
Tests the null hypothesis that the error covariance matrix of the orthonormalized transformed dependent variables is
proportional to an identity matrix.
a. May be used to adjust the degrees of freedom for the averaged tests of significance. Corrected tests are displayed in the
Tests of Within-Subjects Effects table.
b. Gp = Exp
c. Design: Intercept
Within Subjects Design: Time
Significant Mauchly’s
Contrast is basically comparison without compensating for elevated alpha error
by post hoc corrections. It is akin to multiple paired t-tests.
Variable vs time plot
Mixed models ANOVA with within and
between subjects factors
• This model is used when we have within subjects
factor (correlated grouping variable) and between
subjects factor (uncorrelated grouping variable), for
the same dependent variable.
• Such as comparison of SBP of Sex (male/female)
when measured over time points before and after an
intervention. Sex is between subjects variable and
Time is within subjects variable.
• If we are interested in only changes in SBP over time,
separately in males and females, we can run two
separate RMANOVAs
• But if we want to see whether the change in SBP over
time was different between males and females, we
need a mixed models ANOVA.
How to on SPSS
• Data needs to be arranged in separate columns for
group, variable 1, variable 2 and so on.
• Descriptives and normality can be examined by
splitting the file using grouping variable and
conducting tests as previously taught.
• Assumptions same as RMANOVA.
• Go to Analyze  General Linear Model  Repeated measures.
• Within subject factor entry same as RMANOVA.
• In “Between-Subjects Factor” insert the grouping variable
• “Plots”  Within subjects variable as “Horizontal axis”, grouping
variable as “Separate lines”  Add  Continue.
• “Post Hoc” – Here is for between subjects variable, since here
only 2 level variable, Sex, is there, we wont be using it.
• “Options”  same as factorial or RMANOVA.
Output
Coding of variables
Ignore multivariate tests and Box’s test for covariance matrices
If GGε > 0.75, use Huyhn Feldt,
else use GG correction in within
subjects factor.
If p-value < 0.05, use
correction else sphericity
assumed in W-S factor.
P-value for overall RMANOVA of all
subjects – Unimportant
P-value for Time*Group interaction 
Shows difference of trend of change of
SBP over time.
Shows pair difference without correction
Shows difference overall between groups – This and interaction term p-value are
most important for reporting.
Ignore Levene’s test here.
Skip the Estimated Marginal means for both within and between subjects
variables. Unimportant- And no explanation for how SE for these are calculated.
But results being almost same as RMANOVA for within group variable and One
way ANOVA for between subjects variable.
EMM for Interaction effect
gives means for each level of
dependent variable. Helps to
analyze the interaction effect.
Profile plot of EMM of Dep var
over time in both the groups 
helps to analyze the interaction
effect.
Non Parametric tests
• Factorials and Mixed models don’t have non-
parametric equivalents.
• For One Way ANOVA  Kruskall Wallis test
• For Repeated measures ANOVA  Friedman’s
test.
• For post hocs of Kruskall Wallis  Mann
Whitney U test with manual Bonferroni
correction.
• For post hocs of Friedman’s  Wilcoxon
Signed Rank tests with manual Bonferroni
correction.
How to on SPSS
• For all of these go to Analyze  Nonparametric
tests.
Mann-Whitney U test
Kruskall Wallis test
Wilcoxon Signed rank test
Friedman’s test
• Beyond this, you’ll know what to do. Its quite easy.
Interpretation – just look at the p-value. Nothing else.

Contenu connexe

Tendances

Tendances (20)

Regression
Regression Regression
Regression
 
Analysis of variance (anova)
Analysis of variance (anova)Analysis of variance (anova)
Analysis of variance (anova)
 
Experimental design techniques
Experimental design techniquesExperimental design techniques
Experimental design techniques
 
ANOVA TEST by shafeek
ANOVA TEST by shafeekANOVA TEST by shafeek
ANOVA TEST by shafeek
 
factorial design
factorial designfactorial design
factorial design
 
Measures of Central Tendency - Biostatstics
Measures of Central Tendency - BiostatsticsMeasures of Central Tendency - Biostatstics
Measures of Central Tendency - Biostatstics
 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statistics
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
T test statistics
T test statisticsT test statistics
T test statistics
 
Probability Distributions
Probability DistributionsProbability Distributions
Probability Distributions
 
Experimental Design | Statistics
Experimental Design | StatisticsExperimental Design | Statistics
Experimental Design | Statistics
 
Regression
RegressionRegression
Regression
 
Statistical Package for Social Science (SPSS)
Statistical Package for Social Science (SPSS)Statistical Package for Social Science (SPSS)
Statistical Package for Social Science (SPSS)
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
Parametric test  - t Test, ANOVA, ANCOVA, MANOVAParametric test  - t Test, ANOVA, ANCOVA, MANOVA
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
 
One way anova final ppt.
One way anova final ppt.One way anova final ppt.
One way anova final ppt.
 
Non-Parametric Tests
Non-Parametric TestsNon-Parametric Tests
Non-Parametric Tests
 
T test
T testT test
T test
 
Anova - One way and two way
Anova - One way and two wayAnova - One way and two way
Anova - One way and two way
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 

Similaire à Inferential statistics quantitative data - anova

Analysis of Variance
Analysis of VarianceAnalysis of Variance
Analysis of VarianceMichael770443
 
Statistics for Anaesthesiologists
Statistics for AnaesthesiologistsStatistics for Anaesthesiologists
Statistics for Anaesthesiologistsxeonfusion
 
(Individuals With Disabilities Act Transformation Over the Years)D
(Individuals With Disabilities Act Transformation Over the Years)D(Individuals With Disabilities Act Transformation Over the Years)D
(Individuals With Disabilities Act Transformation Over the Years)DSilvaGraf83
 
(Individuals With Disabilities Act Transformation Over the Years)D
(Individuals With Disabilities Act Transformation Over the Years)D(Individuals With Disabilities Act Transformation Over the Years)D
(Individuals With Disabilities Act Transformation Over the Years)DMoseStaton39
 
Anova (f test) and mean differentiation
Anova (f test) and mean differentiationAnova (f test) and mean differentiation
Anova (f test) and mean differentiationSubramani Parasuraman
 
Analysis of variance (ANOVA) everything you need to know
Analysis of variance (ANOVA) everything you need to knowAnalysis of variance (ANOVA) everything you need to know
Analysis of variance (ANOVA) everything you need to knowStat Analytica
 
Assessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docxAssessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docxgalerussel59292
 
Assessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docxAssessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docxfestockton
 
Applied statistics lecture_8
Applied statistics lecture_8Applied statistics lecture_8
Applied statistics lecture_8Daria Bogdanova
 
5ANOVA Analyzing Differences in Multiple GroupsLea.docx
5ANOVA Analyzing Differences  in Multiple GroupsLea.docx5ANOVA Analyzing Differences  in Multiple GroupsLea.docx
5ANOVA Analyzing Differences in Multiple GroupsLea.docxevonnehoggarth79783
 
Introduction to ANOVA
Introduction to ANOVAIntroduction to ANOVA
Introduction to ANOVAAKASH GHANATE
 
Statistical inference: Statistical Power, ANOVA, and Post Hoc tests
Statistical inference: Statistical Power, ANOVA, and Post Hoc testsStatistical inference: Statistical Power, ANOVA, and Post Hoc tests
Statistical inference: Statistical Power, ANOVA, and Post Hoc testsEugene Yan Ziyou
 
Parametric & non-parametric
Parametric & non-parametricParametric & non-parametric
Parametric & non-parametricSoniaBabaee
 

Similaire à Inferential statistics quantitative data - anova (20)

Analysis of Variance
Analysis of VarianceAnalysis of Variance
Analysis of Variance
 
Statistics for Anaesthesiologists
Statistics for AnaesthesiologistsStatistics for Anaesthesiologists
Statistics for Anaesthesiologists
 
(Individuals With Disabilities Act Transformation Over the Years)D
(Individuals With Disabilities Act Transformation Over the Years)D(Individuals With Disabilities Act Transformation Over the Years)D
(Individuals With Disabilities Act Transformation Over the Years)D
 
(Individuals With Disabilities Act Transformation Over the Years)D
(Individuals With Disabilities Act Transformation Over the Years)D(Individuals With Disabilities Act Transformation Over the Years)D
(Individuals With Disabilities Act Transformation Over the Years)D
 
Anova (f test) and mean differentiation
Anova (f test) and mean differentiationAnova (f test) and mean differentiation
Anova (f test) and mean differentiation
 
Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)
 
Analysis of variance (ANOVA) everything you need to know
Analysis of variance (ANOVA) everything you need to knowAnalysis of variance (ANOVA) everything you need to know
Analysis of variance (ANOVA) everything you need to know
 
mean comparison.pptx
mean comparison.pptxmean comparison.pptx
mean comparison.pptx
 
mean comparison.pptx
mean comparison.pptxmean comparison.pptx
mean comparison.pptx
 
Assessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docxAssessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docx
 
Assessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docxAssessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docx
 
Applied statistics lecture_8
Applied statistics lecture_8Applied statistics lecture_8
Applied statistics lecture_8
 
Bus 173_4.pptx
Bus 173_4.pptxBus 173_4.pptx
Bus 173_4.pptx
 
ANOVA II
ANOVA IIANOVA II
ANOVA II
 
5ANOVA Analyzing Differences in Multiple GroupsLea.docx
5ANOVA Analyzing Differences  in Multiple GroupsLea.docx5ANOVA Analyzing Differences  in Multiple GroupsLea.docx
5ANOVA Analyzing Differences in Multiple GroupsLea.docx
 
Introduction to ANOVA
Introduction to ANOVAIntroduction to ANOVA
Introduction to ANOVA
 
Statistical inference: Statistical Power, ANOVA, and Post Hoc tests
Statistical inference: Statistical Power, ANOVA, and Post Hoc testsStatistical inference: Statistical Power, ANOVA, and Post Hoc tests
Statistical inference: Statistical Power, ANOVA, and Post Hoc tests
 
Parametric & non-parametric
Parametric & non-parametricParametric & non-parametric
Parametric & non-parametric
 
Anova test
Anova testAnova test
Anova test
 
1 ANOVA.ppt
1 ANOVA.ppt1 ANOVA.ppt
1 ANOVA.ppt
 

Plus de Dhritiman Chakrabarti

Inferential statistics quantitative data - single sample and 2 groups
Inferential statistics   quantitative data - single sample and 2 groupsInferential statistics   quantitative data - single sample and 2 groups
Inferential statistics quantitative data - single sample and 2 groupsDhritiman Chakrabarti
 
Types of variables and descriptive statistics
Types of variables and descriptive statisticsTypes of variables and descriptive statistics
Types of variables and descriptive statisticsDhritiman Chakrabarti
 
Study designs, randomization, bias errors, power, p-value, sample size
Study designs, randomization, bias errors, power, p-value, sample sizeStudy designs, randomization, bias errors, power, p-value, sample size
Study designs, randomization, bias errors, power, p-value, sample sizeDhritiman Chakrabarti
 
Anaesthesia for functional neurosurgery
Anaesthesia for functional neurosurgeryAnaesthesia for functional neurosurgery
Anaesthesia for functional neurosurgeryDhritiman Chakrabarti
 
Caeserean section complicated by mitral stenosis
Caeserean section complicated by mitral stenosisCaeserean section complicated by mitral stenosis
Caeserean section complicated by mitral stenosisDhritiman Chakrabarti
 
Bronchial blockers & endobronchial tubes
Bronchial blockers & endobronchial tubesBronchial blockers & endobronchial tubes
Bronchial blockers & endobronchial tubesDhritiman Chakrabarti
 
Bougie, trachlite , laryngeal tube , combitube , i gel ,truview
Bougie, trachlite , laryngeal tube , combitube , i gel ,truviewBougie, trachlite , laryngeal tube , combitube , i gel ,truview
Bougie, trachlite , laryngeal tube , combitube , i gel ,truviewDhritiman Chakrabarti
 

Plus de Dhritiman Chakrabarti (20)

For crossover designs
For crossover designsFor crossover designs
For crossover designs
 
Logistic regression analysis
Logistic regression analysisLogistic regression analysis
Logistic regression analysis
 
Agreement analysis
Agreement analysisAgreement analysis
Agreement analysis
 
Linear regression analysis
Linear regression analysisLinear regression analysis
Linear regression analysis
 
Inferential statistics correlations
Inferential statistics correlationsInferential statistics correlations
Inferential statistics correlations
 
Inferential statistics quantitative data - single sample and 2 groups
Inferential statistics   quantitative data - single sample and 2 groupsInferential statistics   quantitative data - single sample and 2 groups
Inferential statistics quantitative data - single sample and 2 groups
 
Inferential statistics nominal data
Inferential statistics   nominal dataInferential statistics   nominal data
Inferential statistics nominal data
 
Types of variables and descriptive statistics
Types of variables and descriptive statisticsTypes of variables and descriptive statistics
Types of variables and descriptive statistics
 
Data entry in Excel and SPSS
Data entry in Excel and SPSS Data entry in Excel and SPSS
Data entry in Excel and SPSS
 
Study designs, randomization, bias errors, power, p-value, sample size
Study designs, randomization, bias errors, power, p-value, sample sizeStudy designs, randomization, bias errors, power, p-value, sample size
Study designs, randomization, bias errors, power, p-value, sample size
 
Anaesthesia for functional neurosurgery
Anaesthesia for functional neurosurgeryAnaesthesia for functional neurosurgery
Anaesthesia for functional neurosurgery
 
Epilepsy and anaesthesia
Epilepsy and anaesthesiaEpilepsy and anaesthesia
Epilepsy and anaesthesia
 
Icp monitoring seminar
Icp monitoring seminarIcp monitoring seminar
Icp monitoring seminar
 
Caeserean section complicated by mitral stenosis
Caeserean section complicated by mitral stenosisCaeserean section complicated by mitral stenosis
Caeserean section complicated by mitral stenosis
 
Bronchospasm during induction
Bronchospasm during inductionBronchospasm during induction
Bronchospasm during induction
 
Bronchial blockers & endobronchial tubes
Bronchial blockers & endobronchial tubesBronchial blockers & endobronchial tubes
Bronchial blockers & endobronchial tubes
 
Breathing systems
Breathing systemsBreathing systems
Breathing systems
 
Brachial plexus block
Brachial plexus blockBrachial plexus block
Brachial plexus block
 
Bph
BphBph
Bph
 
Bougie, trachlite , laryngeal tube , combitube , i gel ,truview
Bougie, trachlite , laryngeal tube , combitube , i gel ,truviewBougie, trachlite , laryngeal tube , combitube , i gel ,truview
Bougie, trachlite , laryngeal tube , combitube , i gel ,truview
 

Dernier

Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...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 BarshaAroojKhan71
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfadriantubila
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Onlineanilsa9823
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
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% SecurePooja Nehwal
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxolyaivanovalion
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxMohammedJunaid861692
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Delhi Call girls
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023ymrp368
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
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
 

Dernier (20)

Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
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
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
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
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptx
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
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 ...
 

Inferential statistics quantitative data - anova

  • 1. Inferential Statistics Quantitative Data ANOVA Dhritiman Chakrabarti Assistant Professor, Dept of Neuroanaesthesiology and Neurocritical Care, NIMHANS, Bangalore
  • 2. What is ANOVA • ANOVA is a statistical test based on comparison of variances within all groups to variances between groups. • It is conducted using F-test, based on F-distribution. • It involves partitioning the total variance into group variance and error variance and then taking ratio of those to compute F-statistic, which is then looked up for appropriate degrees of freedom for comparing with critical F for rejecting null hypothesis. • Error variance is calculated by taking a mean of variances of all groups combined. • Group variance is calculated by taking a mean of variances of all group means from the grand mean and multiplying by number of observations per group. • F statistic = Group variance/Error variance. • Df error = N-1, Df groups = No. of groups -1 • Look up probability in F-table for accepting or rejecting null hypothesis.
  • 3. • Don’t worry if you don’t understand the above jargon. You don’t need it for practical analysis. • Simplistically, it is used to provides inferences for difference of means of two or more groups with by analyzing their variance, and with more conservativeness than t-tests.
  • 4. Types of ANOVA • One way ANOVA • Factorial ANOVA  2-way, 3 way … • Repeated measures ANOVA • Mixed Models ANOVA • ANCOVA • MANOVA • For sake of simplicity we will stick to one way, factorial, RM, MM.
  • 5. One way ANOVA on SPSS Assumptions: 1. Dependent variable that is continuous and Independent variable that is categorical 2. Independent samples/groups (i.e., independence of observations) 3. Random sample of data from the population 4. Normal distribution (approximately) of the dependent variable for each group (i.e., for each level of the factor) 1. Non-normal population distributions, especially those that are thick-tailed or heavily skewed, considerably reduce the power of the test 2. Among moderate or large samples, a violation of normality may yield fairly accurate p values 5. Homogeneity of variances (Levene’s test) 1. When this assumption is violated and the sample sizes differ among groups, the p value for the overall F test is not trustworthy. These conditions warrant using alternative statistics that do not assume equal variances among populations, such as the Browne-Forsythe or Welch statistics. 2. When this assumption is violated, the results may not be trustworthy for post hoc tests. When variances are unequal, post hoc tests that do not assume equal variances should be used (e.g., Dunnett’s C).
  • 6. How to on SPSS • Data should be set up as two columns  Group column and variable column. Group should be coded numerically. • Ideally residuals should be tested for normality. But most researchers just test the variable itself for normality. • No guidelines on which to do  We’ll go for the easier approach and test the variables for normality. • Split by group  test using Shapiro Wilk. • Most statisticians are of the opinion that ANOVA is quite robust against departures from normality, thus alpha level may be kept at 0.01 for normality testing.
  • 7. • Go to Analyze  Compare means  One way ANOVA. • Put the test variable in the “Dependent List” and Grouping variable in “Factor”  Click “Post hoc” tab  Click either Tukey or Bonferroni (in equal variances assumed) and Either Games-Howell or Dunnett’s C (in equal variances not assumed)  Continue.
  • 8. • Click “Options” tab  Click all as shown below. • Homogeneity of Variance is just Levene’s test for equality of variances (an assumption for ANOVA) • Brown-Forsythe and Welch are just corrections for when variances are found unequal by Levene’s. • Click Continue  OK.
  • 9. Output P-value for Levene’s test. > 0.05 means variances are equal P-value for ANOVA. < 0.05 means some group mean is different from the rest F-statistic Group variance Error variance
  • 10. Since, Variances of groups were equal, no need for correction. But if Levene’s test was significant, then either of these P-values needs to be used rather than traditional ANOVA ANOVA only tells if there is any difference between all the groups. Does not tell which groups are significantly diff. That’s why Post-hocs are done Post hoc for equal variances Post hoc for unequal variances
  • 11. 2-way ANOVA on SPSS • Two way ANOVA is used, when there are two grouping variables which may influence the variance of dependent variable in each other. For example SBP being measured between 4 age groups, in which Sex may be a confounder. • Factorial Nomenclature: X*Y Factorial  Number of factors = 2; Levels in each factor = X,Y. Our example 2*4 Factorial. • What it tells you: 1. Does Age influence SBP (independent of Sex) ? (main effect) 2. Does Sex influence SBP (independent of Age) ? (main effect) 3. Age*Sex Interaction  Whether the trend of change of SBP over the Age groups vary between male and female.
  • 12. • Assumptions similar to ANOVA. • Data organized in three columns  Age groups (numerically coded), Sex (numerically coded), SBP.
  • 13. • Go to Analyze  General Linear Model  Univariate • Transfer the variable of interest into “Dependent Variable”, Grouping variables in “Fixed Factors”. • “Plots” tab  Put group with more levels as “horizontal axis” and other as “separate lines”  Add  Continue.
  • 14. • “Post Hoc” tab transfer grouping variables to “Post Hoc tests for” box  check either Bonferroni, Tukey, SNK or Scheffe  Continue. (This is post hocs for observed means  same as one way ANOVA) • In “Options” tab  Transfer grouping variables and interaction term to “Display Means for”, check “Compare main effects”, and put a post hoc as Bonferroni  Check “Display” options as shown below  Continue  OK. (here post-hoc is for marginal means)
  • 15. Output Shows labels Observed Descriptives Homogeneity of variances for full factorial model
  • 16. P-value for main effects of Age/Sex  Interpret same as ANOVA while accounting for influence of the other grouping variable. P-value for Age*Sex  Whether the trend/direction of change in SBP over different age groups was different in males vs females  Look at plot for easier interpretation. Partial Eta Squared  How much variance in SBP is being explained by the given factor. Adjusted R Squared  How much variance in SBP is being explained by the whole model. Effect size
  • 17. Estimated Marginal Means These are estimated marginal means  the descriptives that you report in factorial ANOVA (debatable; some prefer reporting raw data – estimated means are more important for ANCOVA)  these are adjusted for variances due to Sex variable. Pairwise comparisons of marginal means after Bonferroni correction.
  • 18. These are estimated marginal means  the descriptives that you report in factorial ANOVA (debatable; some prefer reporting raw data – estimated means are more important for ANCOVA) these are adjusted for variances due to Age variable. Pairwise comparisons of marginal means – Only two levels  No correction required.
  • 19. Post hocs for observed means Plot of estimated marginal means of SBP at various Age levels vs. the other grouping variable – Sex.
  • 20. Repeated Measures ANOVA • Repeated measure ANOVA is equivalent one way ANOVA when there is correlations between levels of the grouping variable. The most common application is variables measured over time in the same patient. As paired t-test is to independent samples t- test, RMANOVA is to 1-Way ANOVA. • Assumptions same as ANOVA (except that the samples are independent) • An extra assumption is that of Sphericity  The variances of difference between successive variable levels should be roughly equal. Tested by Mauchly’s test of Sphericity – akin to Levene’s test in one-way ANOVA. • Just as Brown-Forsythe/Welch corrections are used for violation of Levene’s, Greenhouse-Geisser or Huyhn-Feldt are used for Mauchly’s violation.
  • 21. How to do RMANOVA in SPSS • Import data into SPSS. • Time points/Paired data should be in separate columns. • Analyze  General Linear Model  Repeated measures  Enter no. of time points 
  • 22. • Specify time points  Add a plot  Set a contrast – mostly simple/difference  in “Options” set “Display means for” and post hoc.
  • 23. • Set “Display” of Descriptives and Homogeneity tests  Run the test.
  • 24. Results of RMANOVA Descriptive Statistics a Mean Std. Deviation N T1 14.80 3.468 15 T2 14.40 2.849 15 T3 14.27 2.890 15 T4 24.93 2.658 15 T5 26.07 3.127 15 T6 42.13 6.589 15 T7 39.73 7.255 15 T8 38.07 6.239 15 T9 77.00 9.150 15 T10 76.07 7.796 15 T11 75.67 7.118 15 T12 105.53 7.140 15 T13 106.53 8.667 15 T14 126.07 9.067 15 T15 127.20 8.073 15 a. Gp = Exp Mauchly's Test of Sphericity b,c Measure:MEASURE_1 Within Subjects Effect Mauchly's W Approx. Chi- Square df Sig. Epsilon a Greenhouse- Geisser Huynh-Feldt Lower-bound Time .000 160.619 104 .002 .406 .717 .071 Tests the null hypothesis that the error covariance matrix of the orthonormalized transformed dependent variables is proportional to an identity matrix. a. May be used to adjust the degrees of freedom for the averaged tests of significance. Corrected tests are displayed in the Tests of Within-Subjects Effects table. b. Gp = Exp c. Design: Intercept Within Subjects Design: Time Significant Mauchly’s
  • 25. Contrast is basically comparison without compensating for elevated alpha error by post hoc corrections. It is akin to multiple paired t-tests.
  • 27. Mixed models ANOVA with within and between subjects factors • This model is used when we have within subjects factor (correlated grouping variable) and between subjects factor (uncorrelated grouping variable), for the same dependent variable. • Such as comparison of SBP of Sex (male/female) when measured over time points before and after an intervention. Sex is between subjects variable and Time is within subjects variable. • If we are interested in only changes in SBP over time, separately in males and females, we can run two separate RMANOVAs • But if we want to see whether the change in SBP over time was different between males and females, we need a mixed models ANOVA.
  • 28. How to on SPSS • Data needs to be arranged in separate columns for group, variable 1, variable 2 and so on. • Descriptives and normality can be examined by splitting the file using grouping variable and conducting tests as previously taught. • Assumptions same as RMANOVA.
  • 29. • Go to Analyze  General Linear Model  Repeated measures. • Within subject factor entry same as RMANOVA. • In “Between-Subjects Factor” insert the grouping variable • “Plots”  Within subjects variable as “Horizontal axis”, grouping variable as “Separate lines”  Add  Continue. • “Post Hoc” – Here is for between subjects variable, since here only 2 level variable, Sex, is there, we wont be using it.
  • 30. • “Options”  same as factorial or RMANOVA.
  • 31. Output Coding of variables Ignore multivariate tests and Box’s test for covariance matrices
  • 32. If GGε > 0.75, use Huyhn Feldt, else use GG correction in within subjects factor. If p-value < 0.05, use correction else sphericity assumed in W-S factor. P-value for overall RMANOVA of all subjects – Unimportant P-value for Time*Group interaction  Shows difference of trend of change of SBP over time.
  • 33. Shows pair difference without correction Shows difference overall between groups – This and interaction term p-value are most important for reporting. Ignore Levene’s test here.
  • 34. Skip the Estimated Marginal means for both within and between subjects variables. Unimportant- And no explanation for how SE for these are calculated. But results being almost same as RMANOVA for within group variable and One way ANOVA for between subjects variable. EMM for Interaction effect gives means for each level of dependent variable. Helps to analyze the interaction effect. Profile plot of EMM of Dep var over time in both the groups  helps to analyze the interaction effect.
  • 35. Non Parametric tests • Factorials and Mixed models don’t have non- parametric equivalents. • For One Way ANOVA  Kruskall Wallis test • For Repeated measures ANOVA  Friedman’s test. • For post hocs of Kruskall Wallis  Mann Whitney U test with manual Bonferroni correction. • For post hocs of Friedman’s  Wilcoxon Signed Rank tests with manual Bonferroni correction.
  • 36. How to on SPSS • For all of these go to Analyze  Nonparametric tests. Mann-Whitney U test Kruskall Wallis test Wilcoxon Signed rank test Friedman’s test • Beyond this, you’ll know what to do. Its quite easy. Interpretation – just look at the p-value. Nothing else.

Notes de l'éditeur

  1. The mean will be the same as descriptive, but the standard error will be pooled standard error of both groups combined  Dunno why SPSS does this..