Characteristic | Coffee N = 101 |
Control N = 101 |
Placebo N = 101 |
---|---|---|---|
score | 7.83(0.86) | 4.89(2.12) | 5.83(1.22) |
1 Mean(SD) |
Lecture 15
Farmingdale State College
IV must be what two things?
DV must be what one thing?
IV must be nominal and have only 2 categories
DV must be continuous
ANOVA, like t-tests, compares the means of different groups to determine if they differ significantly from one another.
ANOVA can examine independent variables with more than 2 groups.
ANOVA can also be used for just 2 groups.
It’s more robust than t-tests.
We set the critical value so that 5% of the null distribution’s area is to the right of it.
There are 3 types of ANOVA:
Between subjects
Within subjects (repeated measures ANOVA)
Mixed designs (between and within together)
The experimental group drinks caffeinated coffee. The placebo group drinks decaf. The control group drinks water. I ask all
3
groups to complete a survey to measure their happiness on a scale of1
to10
.
The experimental group has a mean happiness score = 8
The placebo group mean happiness score = 6
The control group mean happiness score = 5
Is the group that drank coffee significantly happier than the other groups?
To compare the means, we are analyzing two types of variance:
Variance among all of the scores (within group variance)
Variance between the groups (between group variance).
Is the variance between the green, red, and blue dots greater than the variance across all of the dots?
ANOVA produces what we call the F statistic.
Why do we call it F?
Between subjects anova
Between subjects anova
Between subjects anova
Between subjects anova
Calculating the variance
ANOVA looks at variance. How do we calculate the Variance?
ANOVA looks at variance. To calculate the Variance:
Calculate the mean.
Subtract the mean from each x-value - what is this called?
ANOVA looks at variance. To calculate the Variance:
Calculate the mean.
Subtract the mean from each x-value (deviation score).
Subtract the mean from each x-value (deviation score).
Square the deviation scores.
Take the sum of the squared deviations - what is this called?
ANOVA looks at variance. To calculate the Variance:
Calculate the mean.
Subtract the mean from each x-value (deviation score).
Square the deviation scores.
Take the sum of the squared deviations (Sum of Squared Deviations).
ANOVA looks at variance. To calculate the Variance:
Calculate the mean.
Subtract the mean from each x-value (deviation score).
Square the deviation scores.
Take the sum of the squared deviations (Sum of Squared Deviations).
Divide by (n-1) - what is this called?
To calculate the Variance in ANOVA:
Calculate the mean.
Subtract the mean from each x-value (deviation score).
Square the deviation scores.
Take the sum of the squared deviations (Sum of Squared Deviations).
Divide by (degrees of freedom).
This is the variance, but in ANOVA we also call it a Mean Squared (MS).
Calculate the SS.
Divide the SS by the degrees of freedom.
We will calculate a SS for the between group variance.
How much variance in the data is from group differences?
We will calculate a SS for all the data.
How much variance in the data is from random error?
SSBG = How much variance comes comes from the group differences?
SSError = How much variance is there in total among all the data points?
Calculate the SSBG.
Calculate the SSError.
Divide the SS by their degrees of freedom.
The number of observations (data points) in the data that are free to vary when estimating a statistic.
I own 7 hats. I want to wear a different hat every day of the week.
On Monday, I have 7 hats to choose from.
On Tuesday, I have 6 hats to choose from.
On Wednesday, I have 5 hats to choose from.
On Thursday, I have 4 hats to choose from.
On Friday, I have 3 hats to choose from.
On Saturday, I have 2 hats to choose from.
On Sunday, I don’t get a choice. On Sunday, I have to wear the Santa hat.
The degrees of freedom is how many times I get a choice before I’m stuck with what’s left over.
Between Groups (MSBG ) = k - 1
Within Groups (MSWG) = n - k
Total = n - 1
Calculate the SSBG.
Calculate the SSError.
Divide the SS by their degrees of freedom.
Between Group Mean Squared: MSBG = SSBG / (k – 1)
Error Mean Squared: MSError = SSError / (n – k)
F = MSBG / MSError
F = MSBG / MSError
Prof Brocker gives one group of 100 participants the Super Secret Limitless Drug. He gives another group of 100 participants a placebo. He gives the third group of 100 participants nothing. All participants then complete an IQ test. She wants to know if those who took the SSLD has significantly higher IQ than the placebo and the control groups.
Prof Brocker recruits 500 participants. He shows half of them the Netflix Original, Dark and the other half Jeopardy. HHe then measures their happiness on a scale of 1 to 10. He wants to know if Dark participants are significantly happier than the Jeopardy participants.
The MSBG is made up of the MSError + the theoretical difference between groups:
MSBG = group difference + MSError
MSBG = 0 + MSError
MSBG = MSError
F = MSBG / MSError
F = 1
The MSBG is made up of the MSError + the theoretical difference between groups:
MSBG = group difference + MSError
MSBG = NUMBER GREATER THAN 0 + MSError
F = DIFFERENCE + MSError / MSError
F = DIFFERENCE
F < = 1 —> Fail to reject the Null Hypothesis
F > 1 —> Refer to p-value —> Reject the Null Hypothesis
should report findings as:
Reject H0, or
Fail to Reject H0
If asked to report findings in general or for publication, you need to report 5 things:
F(df for the between group MS, df for the error MS)
F-value
p-value
Mean and standard deviation of each group
The group that watched Dark (M=8.43, s=1.02) reported significantly more happiness compared to their peers in the control group who watched Jeopardy (M=6.12, s=0.98), F(1,498) = 7.12, p < 0.05.
There was not a significant difference in happiness between the groups, F (1, 498) = 1.02, p = 0.07.
⬡⬢⬡⬢⬡⬢⬡⬢⬡⬢⬡⬢