HSCI190 Mod5

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/49

encourage image

There's no tags or description

Looks like no tags are added yet.

50 Terms

1
New cards

ANOVA is associated with which terms?

  • Analysis of variance

  • F test

  • uses F ratio and F distribution to compare means of multiple groups


2
New cards

Key characteristics of F distribution?

  • are right/positive skewed

  • has only positive values

  • area under curve = 1

  • its shape is defined by df

    • there are 2 values for df, e.g. 5 and 2


<ul><li><p>are right/positive skewed</p></li><li><p>has only positive values</p></li><li><p>area under curve = 1</p></li><li><p>its shape is defined by df</p><ul><li><p>there are 2 values for df, e.g. 5 and 2</p></li></ul></li></ul><p></p>
3
New cards

How many df exists for F distribution? why?

  • one is related to the total number of groups being compared (k) minus 1, another is the total number of observations (n) minus number of groups (k)


4
New cards

How does df impact shape of F distribution?

  • as df increases, F distribution becomes less skewed (approximates normal distribution)


5
New cards

Define F ratio? How is it generally calculated?

  • the standardized value/test statistic of ANOVA

  • calculated by analyzing amount of variation between and within groups


6
New cards

What are 2 types of variation for ANOVA?

  1. between groups

  • spread between sample means

  1. within groups

  • variation inside each group due to sampling variability (random chance)

  • also called vairation due to error

  • the denominator for F ratio


7
New cards

Describe how F ratio is calculated

  • takes 2 sources of variance

  • between group variation/within group variation (error)

  • identifies if groups are actually different from one another or if differences are due to random chance


  • if variation between groups = variation within groups, it gives F = 1. This means that all samples belong to same population

  • if variation between groups > variation within groups, F>1.


8
New cards

the greater the F value…

the more variation exists between groups than within groups

  • likely a meaningful difference exists between the groups we’re comparing, beyond differences due to random chance/sampling variability


9
New cards

How are the 2 types of variation represented?

  • between group variation = mean square (group)

  • within group variation (error) = mean square (Error)


<ul><li><p>between group variation = mean square (group)</p></li><li><p>within group variation (error) = mean square (Error)</p></li></ul><p></p>
10
New cards

describe MS group

  • numerator of F ratio

  • made of 2 terms:

    • sum of squares (group): amount of variation between groups, obtained by multiplying # observations in a sample (n1) by sample mean (Xi) minus grand mean (X) squared

    • first degrees of freedom term: k-1


<ul><li><p>numerator of F ratio</p></li><li><p>made of 2 terms:</p><ul><li><p>sum of squares (group): amount of variation between groups, obtained by multiplying # observations in a sample (n1) by sample mean (Xi) minus grand mean (X) squared</p></li><li><p>first degrees of freedom term: k-1</p></li></ul></li></ul><p></p>
11
New cards

Describe MS error

  • denominator of F ratio

  • made of 2 terms:

    • sum of squares (within): variation within groups, obtained by multiplying the variance of that sample (s2) by the number of observations (n) in a sample minus 1.

    • df2: n-k


12
New cards
<p>Describe ANOVA table</p>

Describe ANOVA table

First column:

  • source of variation

second column:

  • shows the df for each source

third column:

  • sum of squares for group = variation between groups

  • sum of squares error = variation within groups

  • add these 2 together to get total sum of squares

fourth column:

  • mean squares

  • sum of the sum of squares/df

last column:

  • the F ratio

  • equivalent to mean square group/mean square error


13
New cards

Compare small vs. large F ratio

  • small: likely no differences between groups beyond random chance/accounted by sampling variability

  • large: more between group differences than within group differences = groups are likely different


14
New cards

F chart has…

  • 2 df

  • columns = df1

  • rows = df2

  • critical values associated with significance level of 0.05

  • *different F distribution charts exist for different significance levels

*You don’t need to multiply anything by 2 since this chart gives you the critical value, not p value

*if calculated critical value > critical value in table, reject null hypothesis


<ul><li><p>2 df</p></li><li><p>columns = df1</p></li><li><p>rows = df2</p></li><li><p>critical values associated with significance level of 0.05</p></li><li><p>*different F distribution charts exist for different significance levels</p></li></ul><p>*You don’t need to multiply anything by 2 since this chart gives you the critical value, not p value</p><p>*if calculated critical value &gt; critical value in table, reject null hypothesis</p><p></p>
15
New cards

Why not use multiple T tests?

  • with 2 groups, t tests and ANOVA give same results

  • with more than 2 groups:

    • doing too many t tests is complex (increases exponentially)

    • inflates type I error risk


16
New cards

How do ANOVAs control error?

  • You only do the test once, regardless of # groups

  • risk of type I errors remain as 5%


17
New cards

in ANOVAs, independent variables are also called…

grouping factors which are split into levels (number of groups within each factor)

18
New cards

In ANOVAs, the hypotheses are…

called the omnibus hypotheses = overall null hypothesis of no difference, alternative hypothesis of atleast 1 difference


null: all group means are equal

  • e.g mean hours of sleep each student gets in each year of study is equal

alternative: atleast 1 group mean is different from the others

  • e.g. the amount of sleep students in 1st year get is different from 2nd year


19
New cards

What are assumptions of one-way ANOVA?

  1. dependent variable is scale data

  2. data is from independent random samples

  • e.g. amount of sleep first year students get doesn’t impact sleep of second year students

  1. all groups are approximately normally distributed (use Shapiro-Wilk, or visualization)

  2. must be equal variance in each group (use Levene’s test)


20
New cards
<p>How to interpret this</p>

How to interpret this

Shapiro wilk

  • all p>0.05, fail to reject null/accept null = assumptions were met = normality exists

Leven'e’s

  • p>0.05 = is equal variance


21
New cards

The null hypothesis for Levene’s and Shapiro-wilk is…

  • that assumptions (for normality/variance) has been met

  • thus, if p>0.05, you fail to reject null (retain null) = it is normal/equal variance


22
New cards

Unlike t tests, ANOVAs are…

  • robust with violations to normality and equal variance

  • if data is approximately normal, can still proceed with one-way ANOVA


23
New cards

which assumptions can never be broken with one-way ANOVA?

  • assumption of independence

  • since the probabilities for independent/dependent events are calculated differently

  • assumption of scale data


24
New cards

How would you normally calculate one-way ANOVA by hand?

  1. find F ratio

  2. Look up degrees of freedom using F distribution chart

  3. compare if F value in chart to the F value you calculated

  4. if F ratio > chart value, you reject the null and claim there are likely differences between groups. If F ratio < chart value, you fail to reject null and claim likely no differences.


25
New cards

What does a one-way ANOVA table not tell you?

  • where differences are


26
New cards

When to use post-hoc comparisons?

  • when F value calculated>F value in distribution chart, or if p<0.05

  • conclude there are likely differences between groups

  • must do post-hoc comparisons to find where

    • e.g. is it between all groups, group 1 vs 2. group 2 vs. 3


27
New cards

How do post-hoc comparisons work?

  • compare each group with every other group in ANOVA to identify where differences are

  • also called pairwise comparisons

  • similar to t tests, but control for type I error

  • examples: Bonferroni’s correction, Tukey’s HSD


28
New cards

What is most common post-hoc comparisons for one-way ANOVAs? how does it work?

Tukey’s HSD

  • merges t test and F test

  • compares 2 means while controlling for multiple comparisons

  • calculated by absolute difference between 2 group means divided by square root of mean square error, divided by number of observations


<p>Tukey’s HSD</p><ul><li><p>merges t test and F test</p></li><li><p>compares 2 means while controlling for multiple comparisons</p></li><li><p>calculated by absolute difference between 2 group means divided by square root of mean square error, divided by number of observations</p></li></ul><p></p>
29
New cards
<p>Describe the different parts of the multiple comparisons table</p>

Describe the different parts of the multiple comparisons table

  • pairs

  • rows

  • p values are compared to a = 0.05 to determine if there’s a significant difference between each pair

  • in this case, a significant difference exists between years 3 and 1

  • 95% CI may or may not contain 0

    • if doesn’t have 0, suggests groups are different


30
New cards

What is the non-parametric equivalent of one-way ANOVA?

  • Kruskal Wallis, repeated measures ANOVA, 2 way ANOVA


31
New cards

Describe Kruskal Wallis (H test)

  • non-parametric test

  • uses medians or mean ranks to compare data

  • distribution can be determined by median/mean rank

    • the type it uses depends on shape of distributions of groups being compared —> use visualization

    • if groups are same shape = use medians

    • if groups are different shapes = use mean ranks

    • *this doesn’t impact your results but interpretation

  • *always check histograms first


32
New cards

What are assumptions of Kruskal Wallis?

  • independent variable with 2+ independent groups

  • dependent variable can be scale/ordinal

  • data can be normal or skewed


33
New cards

How is Kruskal Wallis calculated?

  • 2 key points:

    • median/mean rank

    • H statistic

      • since its similar to X2, sometimes it reports it as this

  • when p<0.05, you reject null

  • also tests the omnibus null hypothesis —> similarly, doesn’t tell you where differences are located (use Mann-Whitney U)


34
New cards

When to use RM ANOVA?

  • when you want to measure the same group multiple times or multiple dependent groups

  • the independent variable (e.g. student year) is comprised of dependent groups (e.g. measuring ssame students in year 1, 2, 3)

  • its nonparametric equivalent is Friedman

  • example: you measure the sleep of subjects in year 1, year 2, year 3 (same group of people)


35
New cards

what are 2 types of grouping factors?

  1. between subjects

  • for one-way ANOVA, when there are independent groups

  • Example: looking at students in 1st, 2nd, 3rd year

  1. within subjects

  • for one way RM ANOVA, there are dependent groups

  • Example: looking at same subjects in 1st, 2nd, 3rd year


36
New cards

How to arrange RM ANOVA data?

knowt flashcard image
37
New cards

assumptions for one way RM ANOVA?

  • dependent variable is scale

  • observations between individuals must be independent (the amount of sleep one participant gets can have no impact on the amount of sleep of another participant)

  • normality must exist

  • sphericity: variances of differences between all combos of related groups must be equal


38
New cards

what is sphericity?

  • looks at variances of differences between groups in one way RM ANOVA

    • means that these are equal

  • use Mauchly’s test of sphericity: tests the null hypothesis that the assumption was met

    • p>0.05, fail to reject null = assume sphericity


39
New cards

For a one-way RM ANOVA, how to interpret?

  • you interpret F ratio in the same way


  1. test normality

  2. check within-subjects factors

  3. do Mauchly’s test

  4. look at the within-subjects effects table


40
New cards

what happens if sphericity is broken?

  • still use within-subjects effecst table

  • however, you present values in “greenhouse geisser” row instead


41
New cards

How to find where the differences are in RM ANOVA?

  • use Tukey’s HSD

  • interpreted for same way in one-way ANOVA and one-way RM ANOVA


42
New cards

What is Friedman test?

  • nonparametric equivalent for one-way RM ANOVA

  • also rank based

  • does not have assumptions on levels of measurement, normality, sphericity


43
New cards

What is a 2 way ANOVA?

  • has 2 independent variables (grouping factors) which each may have multiple levels

  • example: the difficulty of decisions and glucose intake

  • a 2 × 2 design

  • benefits: can look at impact of several different factors in 1 dataset without increasing error


44
New cards

What are effects in relation to 2 way ANOVAs?

  • 2 way ANOVAs allow you to look at the effects of multiple factors on the same dataset

  • categorized as main or interaction effects

    • Main: a significant difference between groups on one factor, irrespective of other factor

    • Interaction effects: when 1 factor is different across the levels of another factor. the combination of factors impacts the outcome

  • calculated using 2 × 2 table


45
New cards

what does the ANOVA table show?

  • means, not proportions


46
New cards

How are main effects calculated?

  • look at averages across rows and columns

  • 1. row effects

    • for calculating impact of first independent variable

    • look at differences between 2 groups on average (ignore other independent variable)

    • find the marginal means for the rows

      • no difference = likely no main effect of glucose intake

  • 2. column effects

    • to calculate impact of 2nd independent variable

    • look at difference between 2 groups on average (ignore other independent variable)

    • find marginal means for columns

    • a difference = main effect


<ul><li><p>look at averages across rows and columns</p></li><li><p>1. row effects</p><ul><li><p>for calculating impact of first independent variable</p></li><li><p>look at differences between 2 groups on average (ignore other independent variable)</p></li><li><p>find the marginal means for the rows</p><ul><li><p>no difference = likely no main effect of glucose intake</p></li></ul></li></ul></li><li><p>2. column effects</p><ul><li><p>to calculate impact of 2nd independent variable </p></li><li><p>look at difference between 2 groups on average (ignore other independent variable)</p></li><li><p>find marginal means for columns</p></li><li><p>a difference = main effect</p></li></ul></li></ul><p></p>
47
New cards

describe interaction effects

  • identified by looking at all combinations of variables and levels

  • if patterns of differences are equal = likely no interaction effect


no interaction effect

  • differences between decision groups is 50 for both snack conditions = no interactions

interaction effect

  • the hard, no snack combo has a different result than the rest of the combinations, suspecting an interaction effect


<ul><li><p>identified by looking at all combinations of variables and levels</p></li><li><p>if patterns of differences are equal = likely no interaction effect</p></li></ul><p></p><p>no interaction effect</p><ul><li><p>differences between decision groups is 50 for both snack conditions = no interactions</p></li></ul><p>interaction effect</p><ul><li><p>the hard, no snack combo has a different result than the rest of the combinations, suspecting an interaction effect</p></li></ul><p></p>
48
New cards
<p>what effects does this show?</p>

what effects does this show?

  • there is a main effect of decision difficulty and snack

  • no interaction effect, parallel


49
New cards

when is 1 way ANOVA used?

  • when there is an independent variable (with 3+ groups/levels) and a dependent variable (outcome measurement)


50
New cards

summarize when one way ANOVA, one way RM ANOVA, 2 way ANOVA, 2 way RM ANOVA, 2 way mixed ANOVA

  • 1 way anova:

    • compare multiple independent groups across one grouping factor

  • 1 way RM anova:

    • compare multiple dependent groups across one grouping factor

  • 2 way anova:

    • compare independent groups across 2 grouping factors

    • there are 4 total groups (snack/easy, snack/hard, no snack/easy, no snack/hard)

  • 2 way RM anova:

    • 2 independent variables, both are within subject grouping factors

    • 1 group of participants undergo 4 conditions

    • no nonparametric equivalent

  • 2 way mixed anova:

    • 1 independent variable is a between subjects grouping factor (placebo vs drug) and other independent variable is a within subjects grouping factor (prepost)