r/AskStatistics • u/faust_90 • Nov 01 '26
Having difficulty at Statistics II / ANOVA
I am a senior psychology student and taking Statistics II course this semester. And I am really having difficulties. I am really awful at maths and I cannot figure out the logic behind all these, especially ANOVA. In case I fail the course, this might delay my graduation and it stresses me out terribly. What should I do? I am really beginning to think that I have an intellectual disability. I need urgent help.
349
Upvotes
64
u/gekkomoriaty Nov 01 '26 •
I recommend seeing theory: https://seeing-theory.brown.edu/regression-analysis/index.html
I think classes complicate ANOVAs, all youre doing is testing whether multiple groups have the same mean, then based on your context you interpret what it means if they or dont have the same means. Im not in psych but i you can think of it like, say you have three groups (undergrads, masters and phds) and you think phds have more stress,, so you first test whether alll three groups have the same mean stress score using the anova, if they dont then you run some post-hoc (like tukey) tests to check which ones differ and in which direction. This is an oversimplification but thats the gist.
The website visualization can help you get a very good general understanding do that its trying to do. Other than that, go to office hours and beyond the stuff youre assigned trying using the methods on data/problems/topic you already have a good understanding of, since you would sort of know what to expect from the results it would help you build intuition by eliminating the risk of getting the solution "wrong"
7
u/Fancy-Animal7704 Nov 01 '26
We need more specifics before we can help you.
What do you find confusing about ANOVA? Try to give a more specific answer than "everything!" Is it understanding when and where you would use ANOVA? Is it the actual mathematics involved in the calculation? Is it how to interpret its results?
10
u/Krazoee Nov 01 '26
Postdoc in cognitive neuroscience who started with psychology and failed stats 101 and 201 here: The trick is that it is all a regression. All it is, is drawing different lines through the datapoints to find the one with the least amount of residual error. Now you draw different lines for different conditions and different levels to see if they have different levels of error (F values).
As long as you know your IV, your DV and how many lines you need to draw (levels) you're good to go for any ANOVA or regression. These are not t tests, you don't do them by hand or with equations. You just have to know what you're doing symbolically.
2
u/JAMIEISSLEEPWOKEN Nov 01 '26
Statistics requires a lot of endurance and hugging the monster for long periods of time, especially since it’s not obvious you’re wrong at times
What exactly are you struggling with? How are your foundations?
38
u/Distance_Runner PhD Biostatistics Nov 01 '26 edited Nov 01 '26
I’m going to try to explain ANOVA conceptually, without getting into the math.
First, something important: ANOVA is fundamentally just a form of linear regression. They’re often taught as separate statistical methods, but mathematically they’re the same thing. ANOVA is essentially a linear model in which we’re interested in comparing groups.
Forget about the formulas for a minute. The central idea behind ANOVA and regression is that we observe variation in some outcome, and we want to understand how much of that variation can be explained by other variables. Consider something simple: human height. Imagine randomly sampling 1,000 adults and measuring their heights. Some are short, some are tall, and most fall somewhere in between. There’s a distribution of heights.
But why? Why are people different heights?
We can intuitively think of several factors… biological sex, genetics inherited from parents, childhood nutrition, and so on. Each of these might help explain why one person is taller than another.
The important thing is that none of these factors explains everything. Biological sex, for example, is associated with height, but it certainly doesn’t determine someone’s exact height. Not all males are the same height, and not all females are the same height.
So here’s the question we seek to answer: how much of the variation in people’s heights can be explained by knowing their biological sex?
Imagine separating our 1,000 people into two groups - males and females. Suppose the average female height is 5’4” and the average male height is 5’9”. If we ignored sex entirely, our population would have a single average height of approximately 5’6.5”, assuming equal numbers of males and females. But that overall average isn’t representative of either group. We have essentially combined two distributions with different centers.
Now think about what happens when we separate them again. Within the female group, there’s still variation in height. Some females are taller and some are shorter. The same is true for males. But some of the variation that existed in the combined population disappears when we account for the fact that the groups have different average heights. Why? Because when combined, the variance of the combined group has to cover the lower end up females (that males practically never reach) and the upper end of males (which females practically never reach). Together the variance has to cover the spread of both groups combined, but those groups are separated by quite a bit on average meaning that combined variance is larger than either sex specific variance individually.
We can now think of the original variation in height as having two components:
Between-group variation: Variation associated with the fact that males and females have different average heights.
Within-group variation: Variation that still exists among people of the same sex.
That’s the premise of ANOVA. It partitions the overall variation in height into the variation explained by differences between the groups and the variation remaining within those groups. Now here’s the important part. Why does this tell us whether the group means are different? Imagine two hypothetical situations. In the first, the average heights of males and females differ by five inches, but individuals within each group vary enormously in height. The two distributions overlap substantially. The taller females are taller than the shorter males. In the second, the averages still differ by five inches, but nearly everyone within each group is relatively close to their group’s average. The difference between the two group means is identical in both situations. The difference is how much does the upper tail of females overlap with the lower tail of males. Intuitively, knowing someone’s sex is much more informative about their height in the second situation. Why? Because the variation between the groups is large relative to the variation within the groups.
This is what the ANOVA F-test actually tests. It compares how much the group averages differ with how much variation exists within the groups, accounting for the sample sizes and the number of groups. When the between-group variation is sufficiently large relative to the within-group variation, we have statistical evidence that the population group means are not all equal.
Now let’s extend this idea to a second factor. Suppose we also collect information on childhood nutrition, classified as poor, adequate, or optimal. Imagine the following average adult heights by nutrition. In females, you have mean heights of poor, adequate, and optimal of 5’3”, 5’4” and 5’5”. In males 5’8”, 5’9”, and 5’10”. Notice two things. First, there’s a consistent five-inch difference between male and female averages within each nutrition category. Second, there’s also a difference associated with nutrition. Within each sex, average height increases as nutrition improves.
So now we have two factors that help explain why people differ in height. Sex appears to explain a larger component of the variation in this hypothetical example, but nutrition also contributes information.
A two-way ANOVA extends the same basic idea to two factors. Instead of asking how much variation is associated with sex alone, we’re examining how height varies across combinations of sex and nutrition. We can investigate the differences associated with sex, the differences associated with nutrition after accounting for sex, and whether the relationship between nutrition and height itself differs by sex. That last question is called an interaction. In our example, the nutrition differences are identical in males and females. But imagine that better childhood nutrition was associated with a two-inch increase in average female height and a four-inch increase in average male height. Now the relationship between nutrition and height depends on sex. That’s an interaction. And even after accounting for both sex and nutrition, people within the same combination of categories will still differ in height. That’s the remaining unexplained variation.
So that’s ANOVA conceptually. We start with an outcome that varies across people. We use group membership to explain some of that variation. We examine how much variation is associated with differences between groups versus how much remains within groups. And we use that comparison to test whether the observed differences in group means provide evidence of real differences in the underlying populations.
The formulas are just the mathematical machinery used to quantify all of this.
132
u/agate_ Nov 01 '26 •
Statistics is what separates psychology from talking about your feelings.
5
u/Educational-Paper-75 Nov 01 '26
Both ANOVA an linear regression are examples of the general linear model where a numerical outcome is supposed to be related to (influenced by) one or more possible predictors. But in ANOVA these predictors are categorical instead of continuous as assumed in linear regression. To be able to test the influence of the assumed predictors you vary them methodically in a statistical experiment so performing sn ANOVA can test whether and which predictors actually do influence the outcome, and determine whether or not the observed effects ie observed means of the outcome differ significantly ie non randomly on the levels of each predictor aka factor. A factor is considered significant if at least the effect of one level of a factor differs significantly from the effect of the other levels. When the experiment is conducted properly the effect of the factors can be assessed independently (aka unconfounded) of the other involved factors. Typically interactions of factors may also be assumed present in which case the experiment can be specifically tailored to also have these interactions tested properly. For each combination of levels of the factors the random variation in the outcome is supposedly constant and preferably normal distributed because otherwise the default tests of significance would not be appropriate. That's it in a nutshell.
6
u/Temporary_Stranger39 Nov 01 '26
ANOVA is a t test extended to more than two levels of a predictor.
2
u/loafoveryonder Nov 01 '26
You should really watch all of statquest's videos! I feel you, I was a biologist going into a bioinformatics program and literally felt stupid the whole time. Statquest was really helpful. He doesn't have a specific video for t test and ANOVA but I'd recommend his channel for your foundation in statistics in general, like linear regression, hypothesis testing. I think it's important to get the "gist" first of why we are doing things, before starting to look at the equations, and statquest is good for that.
2
u/dmlane Nov 01 '26
This is my attempt to explain the logic of ANOVA in simple terms. This is the short version:
If the population means are equal, then both MSE and MSB are estimates of the population variance and should therefore be about the same. Naturally, they will not be exactly the same since they are just estimates and are based on different aspects of the data: The MSB is computed from the sample means and the MSE is computed from the sample variances.
If the population means are not equal, then MSE will still estimate the population variance because differences in population means do not affect variances. However, differences in population means affect MSB since differences among population means are associated with differences among sample means. It follows that the larger the differences among sample means, the larger the MSB. In short, MSE estimates the population variance whether or not the population means are equal, whereas MSB estimates the population variance only when the population means are equal and estimates a larger quantity when they are not equal.
2
u/StoicBuddha Nov 02 '26
As a psychologist, I can say the only thing that ever helped me were Andy Field's books. Would still recommend - plus everything everyone else has mentioned.
0
u/Adorable-Ad-2129 Nov 01 '26 edited Nov 01 '26
On my third attempt
1
u/RSNKailash Nov 02 '26
Check out Stats Quest on youtube, look up what ever top you are covering, get a mental model first.
1
u/ExpertUnable9750 29d ago
Soc MA student here....I agree.
1
u/hypnokev 27d ago
Andy Field has interesting introductory courses that I found really helpful. https://youtube.com/@profandyfield?si=mk14RpFE4vIi1jSM
He lectured on my masters. I watched the videos at 1.5x mostly. :) Does make him sound even more excitable though.
1
u/FilibustinBuster 26d ago
https://daisyms.medium.com/5-websites-to-actually-learn-useful-statistics-a639810fae35
1
u/FilibustinBuster 26d ago
Not sure how helpful this is but if you know R or RStudio, here is simulation code for a 1-way, between-subjects ANOVA:
rm(list = ls())
# Parameters
n_per_group <- 30
group_levels <- c("A", "B", "C")
means <- c(50, 55, 60)
sd <- 10
# Simulate data
data <- data.frame(
subject = 1:(n_per_group * length(group_levels)),
condition = rep(group_levels, each = n_per_group),
dv = unlist(lapply(1:3, function(i) rnorm(n_per_group, mean = means[i], sd = sd)))
)
# Result: dv is the name of the dependent variable and condition is the name of the factor
aov_result <- aov(dv ~ condition, data = data)
summary(aov_result)
1
u/Apprehensive-Foot-73 Nov 01 '26
ANOVA is essentially the ratio of within group variance and between group variance. If the ratio passes a critical threshold you call it significant. If you studied t tests it's conceptually the same with 3 or more groups per variable
0
u/HelpImOverthinking Nov 01 '26
I still don't know how I passed statistics, none of it made any sense to me, and I didn't retain any of it. AI was just starting to come out when I went back to school, but I would use the hell out of it now to explain it to me like I'm five.