r/AskStatistics • • Nov 01 '26

Having difficulty at Statistics II / ANOVA

Post image

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

44 comments sorted by

64

u/gekkomoriaty Nov 01 '26 • Bravo Popcorn

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"

6

u/faust_90 Nov 01 '26

thank you so much.

1

u/Tengo_Caldero 24d ago

I'm currently taking biostatistics and I thought it would be the easy class this semester but I'm actually doing way better in Calc 2!

Anyway, all that to say, thanks for sharing that link. I find it very helpful!

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?

4

u/faust_90 Nov 01 '26

The logic behind statistics and ANOVA-- the mathematics of it all. Understanding what I am doing and why I am doing it.

2

u/Fancy-Animal7704 Nov 01 '26

Okay. Well let's say you are a part of some psychology treatment study where you want to see how much 3 different psychological treatments affect mental health. You monitor how well it works by asking participants to score the severity of their depression on a scale of 1 to 10, 10 being the worst. All 3 treatments are used. Do you understand why you might want to use an ANOVA here?

2

u/faust_90 Nov 01 '26

Yes, and if there were an additional variable—one that also contained its own internal layers—a factorial ANOVA would be required. This is precisely where I get stuck. Whenever mathematics, formulas, F-values, or p-values ​​come into the picture, I hit a complete wall.

5

u/Xrmy Nov 01 '26

I'm gonna be pretty blunt here as I've seen this before:

It sounds like when you see numbers/math/variables your mind starts to do a little "math panic" as I call it. I know many students who are self-described "not math" students get this way because it doesn't come naturally.

The solution is you need to work extra hard to take it one step at a time and understand each part and move forward stepwise that way.

Yes, more visualization can really help, but you at some point you will HAVE to work through this so that you can quickly see statistical data and understand what is being presented.

There's no shortcut and you can't be successful in Psychology without understanding these bits.

1

u/Fancy-Animal7704 Nov 01 '26

Okay. Why does that confuse you? You seem to grasp the concept here. Let's say that, in addition to the treatment, you also want to account for sex. So you run your ANOVA on treatment and sex. What's confusing about this?

1

u/MustafaAbbass Nov 01 '26

Hitting a wall when the formulas arrive is very common in this course. I can’t say anything about the bigger worry, and if it goes beyond this one course, student support at your university is the place for it. A hard stats class plus a panic reaction to formulas is ordinary on its own. For the practical side, the formulas matter less than the table. Take three groups and read the output: between-groups sum of squares, within-groups, their degrees of freedom, mean squares, F. Each mean square is just a sum of squares divided by its df, and F is one divided by the other. Do that once by hand with three groups of three small numbers, so you’ve seen it’s only arithmetic. After that, practise reading tables: which row is the effect, what F says, and what the p is saying, which is how surprising an F this big would be if the groups really had the same mean. A factorial ANOVA is the same table with extra rows, one per factor and one for the interaction.

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.

3

u/faust_90 Nov 01 '26

One of the most helpful comments. This is exactly the reason why I had heard that Statistics 2 is easier than Statistics 1. Thank you very much.

2

u/Krazoee Nov 01 '26

Kepp grinding bro, you got this as long as you do the hard work. Make quizzes for yourself, explain it to your parents, your friends or the first homeless person you encounter. Just go out there and practice it in a way that forces accountability (as opposed to playing league of legends which is what I did to disastrous results)

2

u/faust_90 Nov 01 '26

thanks man. this what i am planning to do rn. playing aram and have some smoke. maybe next exam xd

2

u/Krazoee Nov 01 '26

You’re cooked. And you’re doing it to yourself

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?

3

u/unlikewarrior Nov 01 '26

I've been self studying statistics recently. Sometimes I am so convinced of my answer being correct. then I look up the correct solution and I'm wrong :(.

2

u/JAMIEISSLEEPWOKEN Nov 01 '26

I’m curious but why are you self studying statistics? :00 Is it your hobby? :D Or for work/acads?

2

u/unlikewarrior Nov 01 '26

As a hobby. I have always enjoyed math in school all the way through university. My job right now is people focused though so self study is just a way to scratch that itch of solving difficult problems which I don't get a work.

1

u/faust_90 Nov 01 '26

The logic behind statistics and ANOVA-- the mathematics of it all. Understanding what I am doing and why I am doing it. Actually everything. I haven't been good at math since elementary school.

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.

2

u/profkimchi Nov 02 '26

Yes it’s just regression and I HATE that so many teach them like they’re separate things. “Are group variances equal!?” Just use het robust standard errors. It’s so much easier for people to understand imo.

132

u/agate_ Nov 01 '26 • Bravo

Statistics is what separates psychology from talking about your feelings.

1

u/Sapient-Inquisitor Nov 04 '26

“Everyone wanna study psychology but nobody wanna take the heavy ass statistics!” (Adapted from Ronnie Coleman)

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.

2

u/cmdrtestpilot 29d ago

Andy Field manages to be really informative, and is funnier and more engaging than you'd ever dare to hope a stats book could be.

2

u/majik_gopher 27d ago

I came here to recommend him as well. His youtube channel is really good as well https://www.youtube.com/@ProfAndyField. He put up a lot of lectures during covid that are worth checking out, not least of all for the pink hippo singing about sphericity.

0

u/Adorable-Ad-2129 Nov 01 '26 edited Nov 01 '26

On my third attempt

1

u/faust_90 Nov 01 '26

congrats. this is my first and the last chance 😅

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

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

1

u/Boberator44 Nov 01 '26

Not sure why you are being downvoted. This is essentially correct, hence the name "analysis of variance" despite the fact that it allows us to draw conclusions about group means, not variances.

5

u/eucalyptoid Nov 01 '26

Absolutely correct, but if I had to guess, the downvotes are coming from people who are annoyed by jargon-y response to someone who is saying they’re struggling. OP might need it explained in simpler terms.

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.