To be nitpicky about vocabulary for a moment, note that you do not expect homoscedasticity of residuals in a binomial model. For a binomial response, the analog to checking residuals in a Guassian model for normality and homoscedasticity is checking the binomial response for over- (or under-) dispersion.
Wow this response was very helpful thanks @jsocolar
Ok so when checking for (over or under- ) dispersion the posterior predictive check can give you insight into this based on how the predictions are distributed around your observed values.
So my follow up question is if your model is showing more under-dispersion than over (meaning the predicted values tend to be lower than the observed values), then what are some techniques to correct for this.
Under-dispersion is not the same thing as predicted values tending to be lower than observed values. Under-dispersion is if predicted values tend to be more variable than observed values (the observed values are under-dispersed compared to binomial sampling).
If you are seeing a clear systematic tendency for underestimation of the observed values, then it is likely that you have prior-data conflict (otherwise, the model would be free to adjust the intercept parameter until it was getting things right on average). If you are seeing a clear tendency to underestimate the values for a subset of points (as in, the posterior predictive distribution completely fails to cover their values, or it mostly fails to cover the values for a lot of points), then it is likely that you have overdispersion instead. That is, binomial sampling variation is too low to reflect the variation contained in your data. In this case, you would expect to see systematic underestimation of some points and systematic overestimation of other points, beyond what should be expected from binomial sampling variation. Remedies include adding more covariates (but only if they actually have explanatory power) and adding more flexible random effects structures, up to and including an observation-level random effect (this can work well when at least some observations involve more than a couple of trials; it leads to non-identifiability if the observations are binary (i.e. one trial each; Bernoulli sampling variation).
If you’re interested in logistic regression from a residual perspective, Roback and Legler cover that in chapter 6. From a pp-check perspective, those plots look spectacular.
You’re asking a big question, which requires a similarly big answer. Consider this book, Statistical Rethinking | Richard McElreath, and its related lecture series, https://www.youtube.com/@rmcelreath/playlists. I can’t overstate how big of a change it is to move away from a conventional ‘test the residuals’ paradigm to a ‘check the posterior predictive distribution to ensure the model is validly answering my research question’ type paradigm.
Hello! By any chance, do you have any papers or resources that explain why we don’t check for homoscedasticity in binomial models and what the proper diagnostics are?
We don’t check homoscedasticity in binomial models because binomial models don’t make that assumption. Any good GLM textbook will cover this. Here are three: