3 ms·
You see this a lot in the context of building a regression and often times the assumptions are violated: * Linear relationship between predictor and response a
by eggie5 9y ago
You see this a lot in the context of building a regression and often times the assumptions are violated:
* Linear relationship between predictor and response and no multicollinearity
* No auto-correlation (statistical independence of the errors)
* Homoscedasticity (constant variance) of the errors
* Normality of the residual(error) distribution.
As the paper suggests, plotting the data visually will help you avoid these assumptions, but also just making sure you don't violate the assumptions w/ statistical tests would work too. For example, uou can look at your residuals (loss) as an indicator of good fit. If your residuals do not follow a normal distribution, this is typically a warning sign that your R2 score is dubious.
There are a few statistical tests for Residual Normality, particularly, the Jaque-Bara test is common and available in scipy.
So, I would argue, you don't even need to visualize the data. I describe this more here: http://www.eggie5.com/104-linear-regression-assumptions http://www.eggie5.com/104-linear-regression-assumptions
- christopheraden 9y agoSure, using hypothesis tests could pick out some of the structured examples in the Datasaurus, but in practice, things are often more subtle. Goodness of Fit tests to check for normality, in particular, are a little bit thorny, lacking power in small sample sizes, and rejecting normality for slight departures in higher sample sizes. My experience has been with assumption checking that by the time a hypothesis test has sufficient evidence to reject an assumption, you'd usually be able to see it visually. Until you get into high dimensions, it probably doesn't hurt too much to visualize the data. Additionally, it can be helpful to understand what signal has been left in the residuals (ex: you fit a linear model, but failed to include a quadratic term), which is something hypothesis tests aren't as good at telling you.
- eggie5 9y agoYes, "lacking power in small samples sizes"