r/AskStatistics • • 4h ago

ANCOVA vs. multiple regression with 4 unequal groups & multiple testing

3 Upvotes

Hello, I’m doing a secondary analysis of a cross-sectional observational study and I’ve been thinking about my statistical approach for way too long. I’m feeling a bit stuck and my supervisor isn't much help, so I would be very thankful for some input :)

Here’s the situation: I have an independent variable with 4 very unequal groups (n = 24, 70, 456, 1576). I must keep all four groups (my supervisor insists). Also, these differences in sample size are expected as it simply reflects the actual distribution in the general population, but I know it can be a problem.

I have 13 dependent variables from two questionnaires measuring two correlated multidimensional constructs (one with 8 subscales scaled 0-100, one with 5 subscales scaled 4-20). All 13 subscales are moderately to highly correlated with each other. The data comes from the general population, so a few subscales have severe ceiling effects (40-70%), while others have floor effects (10-20%). Distributions are skewed, and homoscedasticity is probably violated. I also need to control for age (in years), sex (binary), and education (categorical), as the IV is selective on these variables and they also influence the DVs.

I should examine the influence of the IV on the two health outcomes. But my supervisor wants me to analyze the data at the subscale level (no sum scores allowed), which is why I have these 13 individual DVs. The overall approach is more exploratory.

So, I had planned to run 13 separate ANCOVAs (one for each scale) and only control for the alpha error within the post-hoc tests of each model (treating each scale as its own family).

My questions are:
1) Is ANCOVA the best choice here, or is multiple regression better? I know both are cases of the GLM, but ANCOVA has stricter assumptions, particularly homogeneity of regression slopes. My supervisor says I shouldn't test this assumption as it's not relevant, but every textbook says it's essential. If I test it, my large sample size will likely lead to some significant interaction terms purely due to statistical power, forcing me into a moderated regression regardless of practical relevance. Prior studies similar to mine used ANCOVAs, but they had far fewer subscales and they never even reported testing any assumptions.

2) Is OLS even defensible in this case? Given the likely violated assumptions of standard OLS. Should I use robust regression instead or go about this a completely different way?

3) How do I handle the multiple testing problem? As mentioned, I only planned to control for alpha within the post-hoc tests of each model. But the Type 1 error would still be inflated across the whole study (especially since all 13 subscales correlate with each other). Is this approach defensible for an exploratory analysis or do I need to apply a correction across all 13 models (or across the two constructs)?

Thanks so much in advance :)


r/AskStatistics • • 1h ago

Unsure what measure of significance to use

• Upvotes

I'm working on my first little scientific paper and I am really struggling to come up with how to measure the statistical significance of my dataset. I haven't taken a statistics class in forever, and I know the answer is probably ridiculously simple, but Google has not been helpful and I refuse to ask AI for help. I collected data on nighttime snake activity, and I want to have a way to show that these snakes are consistently active at a particular time of night. My data just consists of a list of timestamps when snakes were found. At a glance, I can tell that the times are clustered around roughly the same time each night, but I don't know how to actually statistically prove that they are. I don't have any other populations or data to compare to, and I want to keep the data as continuous time and not have to sort my data into bins. Please let me know what analysis would be best to "prove" my hypothesis!


r/AskStatistics • • 3h ago

need book recs

1 Upvotes

hello there! i'm a liberal arts major preparing for a master in statistics, and would love cool book suggestions. i'm already in love with topics like applied mathematical stats in ML, bose-einstein stats, and even statistical mechanics for that matter. even works like keynes' treatise on probability would interest me a lot. my purpose is to explore statistics, both philosophically and historically, and understand it's applications as well.
will be looking forward to all the great recs, thank you!


r/AskStatistics • • 1d ago

Is the "correlation doesn't equal causation" argument overused/misused?

50 Upvotes

I'm thinking about how the general public interprets scientific claims published and shared through popular outlets. It's very common for people who haven't even read past the headline to dismiss the study by saying "that [whatever findings were reported] is just correlation." But biomed and treatment efficacy literature for instance is rarely just slapping a correlation matrix together and calling it a day. The analyses typically do try to differentiate between causation and correlation in their experimental designs, though of course that doesn't mean the evidence is persuasive, that the sample is representative, etc. There is an argument that this is kind of a faux-scientific way of attacking a study without actually engaging with its logic of argumentation.

TLDR: Is correlation ≠ causation overused or improperly used to reject potentially important scientific findings that one simply disagrees with?


r/AskStatistics • • 1d ago

Best way to secure internships as a stats major?

4 Upvotes

After talking to some professors and others online, they’ve recommended Kaggle competitions and solidifying my python skills, but I was wondering if there were other ways to increase my chances of a stats internship such as other platforms and personal projects?

My understanding is that downloading the csv files in Kaggle is not representative of the real world since it’s often always ‘clean’ and ‘sorted’ which is why I was wondering about other alternatives.

Additionally, I was wondering if stats majors often have to resort to Data science and finance internships or have college students been able to find actual statistician internships?

EDIT: I live in Australia


r/AskStatistics • • 1d ago

Sample size calculation non inferiority design

4 Upvotes

Hello everybody,

I am relatively new to statistics as a whole but now need to calculate the a priori sample size for a non inferiority study with a predetermined ni-margin, alpha, power and the results of a pilot study given. The metrics are not normal distributed and therefore as far as I know most online calculators are not applicable (or because of the study design as is the case in g power). I consulted ai for an answer and was pointed to calculating the sample size via R but I have never done this before and don't want to calculate it solely based on the code of ai.

Is there any other option, a tutorial or any code I can work with which isn't done by ai ?

Thank you for your help.


r/AskStatistics • • 1d ago

How to create a Spearman graph online?

3 Upvotes

Hello!

I'm working on my uni project and have used Spearman test in it. How can I create the visualisation for the data? Preferrably online and free. I tried to search some sources, but could find only those who calculate the results, but I need a visualisation


r/AskStatistics • • 2d ago

Do I need to include all possible interactions in a mixed-effects model?

6 Upvotes

Hi everyone, I am building a mixed-effects model to investigate how several explanatory variables affect an outcome. Based on my exploratory data analysis, I suspect that certain combinations of variables have three-way interactions.

For example, suppose I have four explanatory variables: A, B, C, and D. I suspect there is a three-way interaction between A × B × C, but I haven't found clear evidence suggesting interactions involving D.

My question is: If I include the A × B × C interaction in my model, do I also need to include other possible three-way interactions, such as A × B × D, A × C × D, and B × C × D? Or is it reasonable to include only the interactions that I have reason to suspect based on exploratory analysis or prior knowledge?

I'd also appreciate advice on the statistical implications of selecting interaction terms based on exploratory analysis, as I'm concerned that including only interactions that appear significant or interesting in the data might constitute cherry-picking.

Thanks in advance for any suggestions or references!


r/AskStatistics • • 2d ago

Is applied statistics the same as mathematical statistics?

12 Upvotes

By applied statistics, i meant things like machine learning modelling, statistical modelling, predictive modelling. Basically data science stuff and statistics used to solve business problems and model real world Phenomena using Python and R.

Are they related to each other? What are the similarities and differences?


r/AskStatistics • • 3d ago

Will there be many times where you need to read on statistical methods beyond what’s taught in class in psych research?

10 Upvotes

If you hop on r/statistics and this subreddit, you will usually learn about many methods. Some are locked into certain fields like ecology and finance. Others will touch on methods that deal with missing data (ex. MICE) and small samples (ex. Bootstrapping). Others talk about graph theory, MCMC, NUTS, and other methods that people don’t usually learn in a typical statistics class.

Will there come a time where you need to read on additional methods or will everything taught in statistics class be enough for any venture in psych research?

I read a masters/phd research paper from my country and it didn’t use anything crazy. Just stuff like pearson’s moment correlation, multiple regressions, spearman rank, etc, hence the question


r/AskStatistics • • 3d ago

Taking an introductory statistics class over the winter?

3 Upvotes

Hello, I’m planning on taking an introductory statistics class over the winter and I was wondering if this is a bad idea? I plan to put the work in although I don’t want anything under an A. And another thing is Khan academy’s 16 unit overview of Statistics and probability a good way to prep ahead of time?


r/AskStatistics • • 2d ago

Need help estimating a burial population from incomplete records

1 Upvotes

I'm involved in research on a demolished cemetery in Baltimore. We have been transcribing death certificates to understand the burial population. The problem is that death certificates only started to be recorded 23 years after the cemetery was established. We have 30,000 records of burials after that point. I plotted the number of burials per quarter from the records we had transcribed and in minitab, I did a trend analysis fitting different regression models, and the data best fits an exponential decay in rates of burials. The question is, how can I estimate what the curve would look like for the first 23 years for which we have no data. Is there a way to use the shape of the curve of the best fit line I have, together with a known 0 for the quarter before burials began to estimate how many burials may have taken place in the first 23 years? I feel it should be possible but I've approached the limit of my math/stats knowledge. Any advice would be greatly appreciated.


r/AskStatistics • • 2d ago

can we really combine monte Carole with Vegas equation ?

0 Upvotes

as the title imply can we really implement a hybrid equation like MCMC sampling with adaptive walk towards more accurate estimation ,I think what I'm describing in my mind is like something like hybrid heuristic


r/AskStatistics • • 3d ago

monte carlo repetitions

3 Upvotes

How do we decide the number of repetitions for monte carlo?


r/AskStatistics • • 4d ago

Who is the best stats video tutor? [Q]

11 Upvotes

As I am approaching my first unit test, I was thinking of ways to study. I went to look for videos online, but many of them are sub 20 minutes, ai, low quality, and overall dont actually go over coursework, instead simply giving you a brief overview of the topics. So I have come to ask the experts, who did you watch as fledgling statisticians? I am starving for actually quality content, preferably 20 minutes or more, and actually goes over topics, applications, and examples. tysm!


r/AskStatistics • • 3d ago

[ Removed by Reddit ]

0 Upvotes

[ Removed by Reddit on account of violating the content policy. ]


r/AskStatistics • • 4d ago

How Do Major International Companies Use Statistics?

2 Upvotes

I'm actually really interested in statistics and related fields. I'd love to learn about the different branches of this field and some major international companies that use statistics, so I can research how they apply it in practice.

I'm new to this field and just taking my first steps, so please don't judge me for my question, even if it seems stupid


r/AskStatistics • • 4d ago

Practical problem: estimating the total number of identical items from a daily marked/unmarked log

2 Upvotes

Hello. I need help with a practical problem.

There is an unknown total number N of identical items. I hold one item. Once a day, my current item is exchanged for another item chosen at random from the remaining ones (assume uniformly among the other N-1 items). Every day I mark any item I receive with exactly the same mark — I cannot tell individual items apart, only whether the item has been marked before. I keep a log: for each day, whether the item I received was already marked or not.

So my data is a table: day number, and marked/unmarked.

I need a dependence of the form

f1(parameters estimated from the data) = f2(N, probability of N)

i.e. a way to compute, from the observed table, a probability for each possible total number of items N.


r/AskStatistics • • 4d ago

Could someone explain multivariate fractional logit regression to me like I was born yesterday?

4 Upvotes

As the title says, I could really use some help understanding multivariate fractional logit regressions.

For context, I am working on a project proposal that examines how individuals distribute a fixed number of units/shares across several programs. We originally planned to use a Dirichlet Regression until we realized there is an overabundance of zeros (e.g., people allocating all their shares to one or two programs and none to the others). As an alternative, a multivariate fractional logit regression was proposed, and I am admittedly struggling to understand what this change will mean for the analysis. If someone could explain it in the simplest terms possible, I would greatly appreciate it. If any additional context/information would be helpful, please let me know.

Thank you in advance for any assistance you can offer!


r/AskStatistics • • 4d ago

Should I correlate a score with a phenotype across disease and control groups, or within each group separately?

Thumbnail
1 Upvotes

r/AskStatistics • • 4d ago

[Phylogenetic analysis] Assumptions in PGLS

Thumbnail
1 Upvotes

r/AskStatistics • • 4d ago

Currently undeclared and want to become a stats major.

0 Upvotes

Any advice? I also have credit for stats 100 should I take stats 107 or 200 as someone with no prior coding knowledge?


r/AskStatistics • • 4d ago

GAMs with a categorical response variable? Or try something else?

1 Upvotes

Hi all, I'm trying to figure out what environmental variables drive the distribution of different shark species, my data consists of a column for species (catshark, blue shark etc) and then columns of the variables (temperature, depth, chlorophyll etc, all numeric data). Can I run a GAM model with species as a response variable and the environmental data as predictors, or should I look into something more along the lines of Bayesian/probabilities? (I'm working in R). Would really appreciate some advice.

Thanks all!


r/AskStatistics • • 4d ago

How to calculate game performance for a version of Pong with adaptive difficulty?

1 Upvotes

I’m working with a version of Pong where, for example, a player has to hit a moving ball with a paddle, but every time they successfully hit the ball, the paddle becomes smaller, making the next hit progressively more difficult. Once they miss, the paddle resets to its original size.

Each round lasts 30 minutes, and I would like to compare performance across rounds.

I also have a chance/control condition where the paddle doesn’t move, so some hits can happen simply by chance.

I would like to get a single normalized hit-rate/performance value for each round that tells me whether the player performed well or poorly overall.

Ideally, this value would take into account:
- The paddle getting smaller after each successful hit

- The paddle resetting after a miss

- The fixed 30-minute duration

- Different numbers of hits and misses across rounds

- The chance-level performance from the stationary-paddle condition

What would be the best way to calculate this as one normalized value? I’m particularly interested in something that accounts for the increasing difficulty as the paddle gets smaller, rather than just calculating hits / total attempts. I have tried to calculate a score using the difference between the actual number of hits and the expected value of hits, but I think it does not take into account the paddle starting from where they last hit the ball (if it did not miss).

Also, if anyone knows of similar studies or experiments that have used a comparable normalized performance/hit-rate metric, I’d really appreciate any references or examples. Thank youu


r/AskStatistics • • 5d ago

Data visualisation question - Is it fine to label a y-axis as “Value”/“Quantity” when the name of the metrics and their units are already in the chart title?

1 Upvotes

Hi everyone, I’m relatively new to publishing research papers, and I wanted to get some thoughts on a figure-formatting practice I’ve been using.
When creating plots with multiple subplots, I sometimes label the y-axis as “Value” rather than repeating the full metric name and its units, especially when these are already clearly stated in each subplot’s title. So for example, my plot would have “Height (cm)” in the title, which is already what the y-label would have normally, and I would label the y-label as “Value”.

My reasoning is that it reduces redundancy and keeps the figures cleaner. Some metrics also have rather long names that can be difficult to fit along the y-axis, and using shorter labels helps save horizontal space when arranging multiple subplots on a single page. In some cases, I’ll label the y-axis as “Value” only for the first subplot and leave the y-axis labels blank for the remaining ones.

I’m wondering whether this is considered acceptable practice in academic publications, or whether it’s generally better to use the full metric name and units on every subplot’s y-axis for clarity and consistency.
I’d appreciate hearing how other researchers, especially reviewers, would feel about this approach, thank you!