Machine Learning is a Subfield of Statistics
I have a background in statistics, with an applied emphasis in political science and econometrics. I am also a programmer, but I am just beginning to get serious about machine learning. Before and after looking more deeply, it seems to me that machine learning (ML) is simply a special subfield of statistics.
When looking into \"statistics vs machine learning,\" here are some fails that I found:
- The Actual Difference Between Statistics and Machine Learning
- \"Machine learning models are designed to make the most accurate predictions possible. Statistical models are designed for inference about the relationships between variables.\"
- The statement on ML seems fair enough, but statistical models are used for more than inference.
- Moreover, how do we decide whether an ML model is accurate? We have to use statistics like fitness.
- \"...we do not know how well the model will perform until we ‘test’ this data on additional data that was not present during training, called the test set\"
- This is a general problem in applied statistics. There is nothing strictly special about out-of-sample validation in ML. Sure, it can be granted that emphasis, jargon, and norms of practice are different but nbd.
- \"Likewise, machine learning models provide various degrees of interpretability, from the highly interpretable lasso regression to impenetrable neural networks...\"
- My dude, Lasso Regression is applied stats. It's not original with ML.
- This actually highlights the intersectional point: Many statistical models are re-implemented in ML. This alone shows there is at least some intersection, but I will argue that moreover, it's a total subfield.
- \"Machine learning models are designed to make the most accurate predictions possible. Statistical models are designed for inference about the relationships between variables.\"
- Machine Learning vs Statistical Modeling
- \"Machine learning is an algorithm\"
- Sure, but basically all our statistical models are algorithms too.
- Still, somewhat interesting: There are some statistics that are not algorithms, eg the average, but this is no such thing as a non-algorithmic ML model.
- Which algorithms are used in ML, specifically? Refer back to 1.3 above and see that somewhere between very many and all ML algorithms are statistical algorithms.
- \"Machine Learning uses less assumptions\"
- #fail - your ML algo doesn't use fewer assumptions than I use when I compute an average.
- \"Machine learning is an algorithm\"
Now, let's come to an explainer that I actually found useful, from a PhD ML researcher:
He emphasizes that prediction and application is the main emphasis of ML, and he goes through some interesting facts that I didn't know. For example, he says \"neural networks...are essentially just extensions of logistic regressions on top of each other.\"
What became obvious to me during his presentation is that:
- Statistics is about things called statistics.
- Examples include the mean, median, mode, standard deviation, coefficients, and so on.
- Parameters are statistics too.
- Machine Learning is a case of applied statistics.
- ML executes statistical optimization and as such it utilizes statistics including goodness of fit, bias, variance, error, and so on.
- ML includes supervised and unsupervised learning. In the case of supervised learning, a practitioner is specifying features in the same way a statistician would. In fact, to even make sensible specifications, I believe a practitioner needs to have some statistical understanding of the underlying data.
- In any real application of ML, stats will be needed too.
- Communicating the findings of ML requires statistics. Eg \"75 percent of input images were identified as cats.\"
- The video above brilliantly quotes the statistician Ronald Fisher: \"The quantity of data which usually by its mere bulk is uncapable of entering the mind is to be replaced by relatively few quantities which shall adequately represent the whole of the original data\"
- The above quote defines what a statistic is, and it also shows why big data and ML can't be communicated to an end-user without consolidation into statistics.
- ML happened later in history and has historically grown out of statistics. Yes, it is also a subfield of computer science. There is no competition or exclusivity here. Essentially all meaningful statistics today are implemented as programs too.
As a concluding note, my findings today reassure me that:
- A background in statistics and econometrics is a great entry into machine learning.
- There is no major conflict between usual statistical and ML approaches.
- ML is in many ways just the automation of complex statistics, including some statistical practices that were previously manual and laborious.
- A good ML practitioner needs statistical, and I would suggest econometric, skills as well.
Related: