Guide to Linear Regression (2015)
alexhwoods.com
alexhwoods.com
If there is uncertainty in both the x and y coordinates then one needs to pursue alternate approaches which admit variation in both, one of the most popular being "Deming regression"[1]
Although, linear regression, logistic regression, svm regression, are all almost the same thing, the loss function is different, all can be trained with gradient descent.
website: http://biostat.mc.vanderbilt.edu/wiki/Main/RmS Amazon book: http://amzn.to/1UdPWOv
True:
> no discussion of how one might interpret this model, what its assumptions are, and how to assess validity or fit?
Quoting OP from the comments in his blog:
> Hey Victor, thanks for reading! You’re absolutely right, I should have taken some time to talk about the assumptions of linear regression. I tried to mention them in passing, but I’ll try to be more explicit next time. I should have brought up the pearson correlation coefficient. I tried to write this from a more machine learning point of view, not as much statistics.
Either way it was a decently written post and would read more in the future (though I would like to see more statistics side of things rather than just me thinking Alex here is waving his hands saying 'you see nothing!' when we look at the mathematical assumptions / 'pure' statistics).
In other thoughts:
I'm currently in the process of writing a blog series on the analytics of Firearm projectiles (What ammo is most accurate from a Ruger American 308 Win.). Seeing other statistical posts like this help me figure out how to make mine better. So thanks Alex!
My biggest inspiration (other than taking a perfect shot at a whitetail deer and him just dropping dead) was a good PDF about shotGroups over on the CRAN[1]. It is a little dry and statistically heavy (meaning you need to have some statistical background to make sense of it), but well enough detailed for the info that triggered me to pursue this pet project.
I would love to write it at a level where if a person with no statistical background would be able to read through it and be able to understand it "enough". (Which requires a lot of rewriting on my part to make sure I'm also not boring a person with statistics background to death too explaining what Standard Deviation is :P)
[1] https://cran.r-project.org/web/packages/shotGroups/vignettes...
Guide itself: http://docs.statwing.com/user-friendly-guide-to-regression/
Perhaps more interestingly to a lot of folks in this crowd, a guide to interpreting residuals: http://docs.statwing.com/interpreting-residual-plots-to-impr...
One valid critique is that the approach we describe is not super rigorous, there's more "add a variable and see if it sticks" and "explore a bunch of bivariate relationships to decide what to include" then you'd want to do if you were publishing a paper on your findings. To our minds, though, this approach is more realistic for the use cases we're more concerned about, like analyzing an ad hoc survey. You can always consider your results to be exploratory and then validate later. (Note that these docs occasionally refer to Statwing, our product, but really could be used for any tool).
Criticism is welcome.
You may also want to mention adjusted R^2 as a measure of quality of the model. I've never heard of AICR before, the standard metrics for quality of the model are AIC/BIC (and sometimes Mallus Cp).
Edit: fixed sloppy wording about confidence interval.
The r^2 and AICR comments reflect the fact that these docs were built around Statwing's regression capabilities, which default to m-estimation instead of OLS. There's no adjusted r^2 for that, which I agree is a better measure when available, and it uses AICR, where the R stands for "robust". But still a good catch, since I didn't caveat ahead of time that we were only talking about robust methods (and we don't note it in the docs).
Much appreciated.
In my work as an engineer I use multiple linear regression from time to time. The best method I've found is forward selection stepwise approach. I've never really seen a simple explanation of how it works (it was introduced to me by a statistician at my work) but it is useful when you have many variables and you want to see how significant a single variable is relative to overall regression. The impression I get is pure stats people really dislike stepwise modelling.
More recently I've been looking into something called PCA (Principle Component Analysis) and PLS (projection to latent structure) after I came across it in a PHD thesis. I've yet to find a decent simple explanation about how it works though. Unfortunately my work no longer employees a statistician.
In short: you can't just throw linear regression at anything and expect to get reasonable results, but it's pretty damn close.