Statistics 3 week 3

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

1/23

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:46 AM on 3/13/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

24 Terms

1
New cards

Factorial ANOVA

  • One quantitative Y and two (or more) qualitative X’s (say variable A and B):

    • Factor A has “a” different levels and factor B has “b” different levels.

  • Same assumptions as ANOVA + orthogonality of factors (no confounding effect)

  • With two factors (e.g. A and B), a two-way ANOVA:

  • Test 2 separate main effects:

    • Null hypothesis 1:  H0: μA1 = μA2FA = MSA/MSwithin, with df: (a − 1, Nab)

    • Null hypothesis 2:  H0: μB1 = μB2FB = MSB/MSwithin, with df: (b − 1, Nab)

  • Test for the interaction effect between both factors:

    • Null hypothesis 3: H0: no AxB interaction FAxB = MSAxB/MSwithin, with  df: ( (a -1)(b-1), Nab )

<ul><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>One quantitative Y and two (or more) qualitative X’s (say variable </span><em><span>A</span></em><span> and </span><em><span>B</span></em><span>):</span></span></p><ul><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>Factor A has “</span><em><span>a</span></em><span>” different levels and factor B has “</span><em><span>b</span></em><span>” different levels.</span></span></p></li></ul></li><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>Same assumptions as ANOVA + </span><strong><span>orthogonality of factors </span></strong><span>(no confounding effect)</span></span></p></li><li><p style="text-align: left;"><span style="font-family: &quot;Times New Roman&quot;;"><span>With two factors (e.g. A and B), a two-way ANOVA:</span></span></p></li><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>Test 2 separate main effects:</span></span></p><ul><li><p><span>Null hypothesis 1:&nbsp; </span><em><span>H</span></em><sub><span>0</span></sub><span>: μ</span><em><sub><span>A</span></sub></em><sub><span>1</span></sub><span> = μ</span><em><sub><span>A</span></sub></em><sub><span>2</span></sub> → <em><span>F</span><sub><span>A</span></sub></em><span> = </span><em><span>MS</span><sub><span>A</span></sub></em><span>/</span><em><span>MS</span></em><sub><span>within</span></sub><span>, with&nbsp;df: (</span><em><span>a</span></em><span> − 1, </span><em><span>N</span></em><span> − </span><em><span>ab</span></em><span>)</span></p></li><li><p><span>Null hypothesis 2:&nbsp; </span><em><span>H</span></em><sub><span>0</span></sub><span>: μ</span><em><sub><span>B</span></sub></em><sub><span>1</span></sub><span> = μ</span><em><sub><span>B</span></sub></em><sub><span>2</span></sub> →<em><span>F</span><sub><span>B</span></sub></em><span> = </span><em><span>MS</span><sub><span>B</span></sub></em><span>/</span><em><span>MS</span></em><sub><span>within</span></sub><span>, with&nbsp;df: (</span><em><span>b</span></em><span> − 1, </span><em><span>N</span></em><span> − </span><em><span>ab</span></em><span>)</span></p></li></ul></li><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>Test for the interaction effect between both factors:</span></span></p><ul><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>Null hypothesis 3: </span><em><span>H</span></em><sub><span>0</span></sub><span>: no AxB interaction </span></span><span><span>→</span></span><span style="font-family: &quot;Times New Roman&quot;;"><span> </span><em><span>F</span><sub><span>AxB</span></sub></em><span> = </span><em><span>MS</span><sub><span>AxB</span></sub></em><span>/</span><em><span>MS</span></em><sub><span>within</span></sub><span>, with&nbsp; df: ( (</span><em><span>a</span></em><span> -1)(b-1), </span><em><span>N</span></em><span> − </span><em><span>ab </span></em><span>)</span></span></p></li></ul></li></ul><p></p>
2
New cards

Degrees of freedom

  • In ANOVA

    • dfnumerator = dfbetween

    • dfdenominator = dfwithin

  • In regression

    • dfnumerator = dfregression

    • dfdenominator = dfresidual

3
New cards

Factorial ANOVA-tests: F-distribution

In a factorial ANOVA, the null hypotheses are also tested based on an F-ratio, with the corresponding degrees of freedom

<p>In a factorial ANOVA, the null hypotheses are also tested based on an F-ratio, with the corresponding degrees of freedom </p>
4
New cards

Factorial ANOVA: prediction

  • Observation from group with an expected value for the response variable

  • Within a group, there is random (unexplained) variation, or residual:

    • Observed response = expected response + error

  • The “k-th” observation from the “i-th” group A and the “j-th” group B

    • Yijk = μ + αi + βj + αβij + εijk

      • μ = overall mean,

      • αi = group effect factor A,

      • βj = group effect factor B,

      • αβij = interaction effect A and B, and

      • εijk ~N(0,σ^2 )  indicates the error variance (unexplained)

  • If there is no interaction effect between A and B, this simplifies to:

    • Yijk = μ + αi + βj + εijk

5
New cards

Relating Factorial ANOVA to One-way ANOVA

  • Intuitively: you can also execute two separate ANOVA-tests, but:

    • .. this does not allow you to (directly) estimate the interaction effect

    • .. less power if main effect other factor is statistically significant,
         because the two factors are regarded separately

6
New cards

F-test for different hypotheses

  • Null hypothesis 1: If H0 holds, then σα^2 = 0 (and F=1)

    • Effect size: ηA^2 = SSA / SStotal

  • Null hypothesis 2: If H0 holds, then σβ^2 = 0 (and F=1)

    • Effect size : ηB^2 = SSB / SStotal

  • Null hypothesis 3: If H0 holds, then σαβ^2 = 0 (and F=1)

    • Effect size : ηAxB^2  = SSAxB / SStotal

7
New cards

Venn-diagrams: orthogonality factor A and B

knowt flashcard image
8
New cards

Venn-diagrams: non-orthogonality factor A and B

  • SS Type III simultaneous method:

    • SS(A | B, AB) for factor A.

    • SS(B | A, AB) for factor B.

    • SS(AB | B, A) for interaction

  • OR:

  • SS Type I stepwise method, first A:

    • SS(A) for factor A.

    • SS(B | A) for factor B.

    • SS(AB | B, A) for interaction AxB.

  • OR:

  • SS Type I stepwise method first B:

    • SS(B) for factor B.

    • SS(A | B) for factor A.

    • SS(AB | B, A) for interaction AxB.

<ul><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>SS Type III </span><em><span>simultaneous</span></em><span> method:</span></span></p><ul><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>SS(A | B, AB) for factor A.</span></span></p></li><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>SS(B | A, AB) for factor B.</span></span></p></li><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>SS(AB | B, A) for interaction </span></span></p></li></ul></li><li><p>OR:</p></li><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>SS Type I </span><em><span>stepwise</span></em></span><span><span> method, </span><strong><em><span>first A</span></em></strong></span><span style="font-family: &quot;Times New Roman&quot;;"><span>:</span></span></p><ul><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>SS(A) for factor A.</span></span></p></li><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>SS(B | A) for factor B.</span></span></p></li><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>SS(AB | B, A) for interaction AxB.</span></span></p></li></ul></li><li><p>OR:</p></li><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>SS Type I </span><em><span>stepwise</span></em></span><span><span> method </span><strong><em><span>first B</span></em></strong></span><span style="font-family: &quot;Times New Roman&quot;;"><span>:</span></span></p><ul><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>SS(B) for factor B.</span></span></p></li><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>SS(A | B) for factor A.</span></span></p></li><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>SS(AB | B, A) for interaction AxB.</span></span></p></li></ul></li></ul><p></p>
9
New cards

Partial Eta Squared provided by JASP

  • Two different effect sizes for Type III Sum of Squares and Type I Sum of Squares

  • Intuitive interpretation of Partial Eta Squared: The proportion of error that a factor (A, B, or A*B) removes by including this factor into the model after the explained variance of the other factors already has been allocated.

<ul><li><p>Two different effect sizes for Type III Sum of Squares and Type I Sum of Squares</p></li><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>Intuitive interpretation of Partial Eta Squared: </span><em><span>The proportion of error that a factor (A, B, or A*B) removes by including this factor into the model after the explained variance of the other factors already has been allocated.</span></em></span></p></li></ul><p></p>
10
New cards

When group sizes are unequal (unbalanced)

  • Calculate means in two ways:

    • Weighted means

    • Unweighted means

11
New cards

Weighted means

  • Groups with more people count more

  • Each cell mean is weighted by its sample size

  • Reflects real-world prevalence

  • The larger group has more influence

  • Use when unequal group sizes are meaningful (caused by confounding between factors A & B)

12
New cards

Unweighted means

  • All groups count equally

  • Each cell mean gets the same weight

  • Answers: “What would the mean be if all groups were the same size?”

  • Assumes unequal sizes happened by chance

  • Use when unequal group sizes are accidental

13
New cards

Which mean to choose?

  • No uniform answer. Warner (2013) provides the following suggestions:

  • Is the difference in numbers a consequence of a confounding effect between A & B? → weighted mean

  • Is the difference in numbers attributable to coincidence? → unweighted mean

14
New cards

Factorial ANOVA: Multiple testing and Type 1 error

  • When executing a factorial ANOVA, multiple (3) hypotheses are tested

  • → The probability to incorrectly reject at least one of these hypotheses is larger than 5%, namely 14%:

    • 1 - (1 – 0.05 )3 = 0.141 > 0.05

  • Solutions:

    • Omnibus F-test

    • Controlling family-wise Type I error rate

    • Controlling false discovery rate

    • Preregistration of hypotheses

15
New cards

Outliers, Laverage and Influential Points

  • An outlier is a data point whose response y does not follow the (general trend of the) rest of the data.

  • A data point has high leverage if it has "extreme" predictor x values.

  • A data point is influential if it strongly influences any part of a (regression) analysis, such as the predicted responses, the estimated slope coefficients, or the hypothesis test results.

16
New cards

Causes of outliers

  • Data entry errors

  • Measurement erros

  • Genuinely unusual values

  • How to identify outliers:

    • 2 SD rule

    • Boxplot

    • Mahalanobis distance

17
New cards

Data entry error: Action

  • Replace: if it is clear what the correct entry would hae been

  • Remove: if this is not the case

18
New cards

Measurement error: Action

  • Replace: with maximum/minimum value if the direction of the deviation is “correct”

  • Remove: if entirely unclear what the “correct” value would have been

19
New cards

Genuinely unusual values: Action

  • Depends on objective

  • Keep: and if possible execute robust two-way ANOVA

  • Adjust: to less extreme value and compare outcomes

  • Transform: variable (e.g. log-transformation)

  • Remove: and compare outcomes

20
New cards

Check assumption: Normal distribution of Y (outcome variable)

  • Shapiro-Wilk test

    • Null hypothesis: data are normally distributed

    • If p > .05 → looks normal (OK)

    • If p < .05 → not normal (problem)

  • Visually

<ul><li><p>Shapiro-Wilk test</p><ul><li><p><strong>Null hypothesis:</strong> data are normally distributed</p></li><li><p>If <strong>p &gt; .05</strong> → looks normal (OK)</p></li><li><p>If <strong>p &lt; .05</strong> → not normal (problem)</p></li></ul></li><li><p>Visually </p></li></ul><p></p>
21
New cards

Check assumption: Eqal variances

  • Assumes all groups have the same variance/spread

  • Lavene’s test

    • Null hypothesis: variances are equal

    • If p > .05 → assumption is met

    • If p < .05 → assumption is violated

  • When assumption is violated/not met: Heteroscedasticity larger Type I / Type II error due to under-/overestimating standard error (se)

  • What can we do if variances are unequal?

    1. Transform the data (e.g., log transformation)

    2. Continue anyway (ANOVA is often robust)

    3. Use a robust version of ANOVA

    4. Use weighted linear regression

22
New cards

Two-WayANOVA: results

  • Firstly look at the coefficient of the interaction term. Why?

    • Significant? It is not possible to clearly interpret the coefficients for the main effects.

    • Not-significant? Interpret the main effects and e.g. post-hoc pair wise comparisons.

23
New cards

Comparing with multiple regression

  • The interaction effect can also be performed with a regression analysis:

    • Problem: 2 categorical independent variables quantitative coding

    • Next: create interaction term genxedu

    • Multiple regression equation: Yi = b0 + b1∗geni + b2∗edui + b3∗genxedui + εi

  • Is undesirable method here due to type of independent variable ”level of education” (qualitative)!

    • Regression assumes that independent variable is dichotomous or has interval/ratio scale

24
New cards

Extra: estimating “simple” effects

  • If there is a statistically significant interaction, you can decide to estimate simple effects: ”the effect of factor A per level of factor B” and “the effect of factor B per level of factor A”

  • Alternative: estimating simple effects via separate one-way ANOVAs. Disadvantage is lower power.

  • In JASP, these simple effects can be estimated directly (with Bonferroni-correction for multiple tests)

<ul><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>If there is a statistically significant interaction, you can decide to estimate </span><em><span>simple effects</span></em><span>: </span><em><span>”the effect of factor A per level of factor B” </span></em><span>and </span><em><span>“the effect of factor B per level of factor A”</span></em></span></p></li></ul><ul><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>Alternative: estimating simple effects via separate one-way ANOVAs. Disadvantage is lower power. </span></span></p></li><li><p><span style="font-family: &quot;Times New Roman&quot;;"><span>In JASP, these simple effects can be estimated directly (with Bonferroni-correction for multiple tests)</span></span></p></li></ul><p></p>

Explore top notes

note
Spanish 1 Body Parts
Updated 1275d ago
0.0(0)
note
Tornadoes and Formation
Updated 1229d ago
0.0(0)
note
Español 3H Repaso vocabulario
Updated 1058d ago
0.0(0)
note
Hinduism and Buddhism
Updated 1056d ago
0.0(0)
note
The Pearl - Summary Notes
Updated 1142d ago
0.0(0)
note
APES 6.2 Global Energy Consumption
Updated 1123d ago
0.0(0)
note
Spanish 1 Body Parts
Updated 1275d ago
0.0(0)
note
Tornadoes and Formation
Updated 1229d ago
0.0(0)
note
Español 3H Repaso vocabulario
Updated 1058d ago
0.0(0)
note
Hinduism and Buddhism
Updated 1056d ago
0.0(0)
note
The Pearl - Summary Notes
Updated 1142d ago
0.0(0)
note
APES 6.2 Global Energy Consumption
Updated 1123d ago
0.0(0)

Explore top flashcards

flashcards
Anatomy Quiz #1
54
Updated 177d ago
0.0(0)
flashcards
Final
223
Updated 97d ago
0.0(0)
flashcards
Unidad 2 Vocabulario 1
27
Updated 65d ago
0.0(0)
flashcards
Unit 10: Glaciers
66
Updated 1012d ago
0.0(0)
flashcards
Adjectifs en Français
137
Updated 738d ago
0.0(0)
flashcards
VSEPR Theory
38
Updated 1145d ago
0.0(0)
flashcards
Anatomy Quiz #1
54
Updated 177d ago
0.0(0)
flashcards
Final
223
Updated 97d ago
0.0(0)
flashcards
Unidad 2 Vocabulario 1
27
Updated 65d ago
0.0(0)
flashcards
Unit 10: Glaciers
66
Updated 1012d ago
0.0(0)
flashcards
Adjectifs en Français
137
Updated 738d ago
0.0(0)
flashcards
VSEPR Theory
38
Updated 1145d ago
0.0(0)