# Relationship between statistical models and machine learning algorithms

**URL:** <https://discourse.datamethods.org/t/relationship-between-statistical-models-and-machine-learning-algorithms/7063>\
**Category:** models\
**Tags:** regression, machine-learning\
**Created:** [September 12, 2023, 11:29pm UTC](https://discourse.datamethods.org/t/relationship-between-statistical-models-and-machine-learning-algorithms/7063 "2023-09-12T23:29:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![R\_cubed](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/r_cubed/32/1518_2.png) [@R\_cubed](https://discourse.datamethods.org/u/R_cubed)\
**Post date:** [September 12, 2023, 11:29pm UTC](https://discourse.datamethods.org/t/relationship-between-statistical-models-and-machine-learning-algorithms/7063/1 "2023-09-12T23:29:27Z")

</div>

I was thinking about this post on statistical vs machine learning.

> **[Statistical Thinking - Road Map for Choosing Between Statistical Modeling and...](https://www.fharrell.com/post/stat-ml/)**
>
> This article provides general guidance to help researchers choose between machine learning and statistical modeling for a prediction project.

I became curious if anyone had worked out the formal relationships among conventional statistical models (ie. hierarchical and/or generalized linear models) and machine learning models: support vector machines, neural nets, etc.

I am aware of 2 papers that explore the relationship:

1. Neural Nets are essentially polynomial regression by Xi Cheng and Norman Matloff

> **[Neural Networks Are Essentially Polynomial Regression](https://matloff.wordpress.com/2018/06/20/neural-networks-are-essentially-polynomial-regression/)**
>
> You may be interested in my new arXiv paper, joint work with Xi Cheng, an undergraduate at UC Davis (now heading to Cornell for grad school); Bohdan Khomtchouk, a post doc in biology at Stanford; a…

1. The following slides discuss the close relationship between logistic regression and  
support vector machines (SVM). [Support Vector Machines vs Logistic Regression, University of Toronto CSC2515](http://www.cs.toronto.edu/%7Ekswersky/wp-content/uploads/svm_vs_lr.pdf)

Does anyone have other papers exploring this?

---

<div class="post-metadata">

**Author:** ![ChristopherTong](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/christophertong/32/2938_2.png) [@ChristopherTong](https://discourse.datamethods.org/u/ChristopherTong)\
**Post date:** [September 13, 2023, 1:25am UTC](https://discourse.datamethods.org/t/relationship-between-statistical-models-and-machine-learning-algorithms/7063/2 "2023-09-13T01:25:57Z")

</div>

A classic framing of boosting (eg, AdaBoost) as a statistical model is Friedman, Hastie, and Tibshirani (2000)

> **[Additive logistic regression: a statistical view of boosting (With discussion...](https://projecteuclid.org/journals/annals-of-statistics/volume-28/issue-2/Additive-logistic-regression--a-statistical-view-of-boosting-With/10.1214/aos/1016218223.full)**
>
> Boosting is one of the most important recent developments in classification methodology. Boosting works by sequentially applying a classification algorithm to reweighted versions of the training data and then taking a weighted majority vote of the...

A more recent framing of deep learning as a “regression model with transformed predictors” is given by Hoeting (2021) in the following:

> **[Hoeting\_DeepLearning\_USDA.pdf](https://www.stat.colostate.edu/~jah/talks_public_html/Hoeting_DeepLearning_USDA.pdf)**
>
> 4.64 MB

---

<div class="post-metadata">

**Author:** ![js592](https://discourse.datamethods.org/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@js592](https://discourse.datamethods.org/u/js592)\
**Post date:** [September 13, 2023, 3:24pm UTC](https://discourse.datamethods.org/t/relationship-between-statistical-models-and-machine-learning-algorithms/7063/3 "2023-09-13T15:24:51Z")

</div>

I’ve found Kevin Murphy’s book to be a great resource for this: [“Probabilistic machine learning”: a book series by Kevin Murphy | pml-book](https://probml.github.io/pml-book/)

Some other topics:

LLM’s are Markov models [https://statmodeling.stat.columbia.edu/wp-content/uploads/2023/07/carpenter-llm-2023.pdf](https://statmodeling.stat.columbia.edu/wp-content/uploads/2023/07/carpenter-llm-2023.pdf)

Diffusion models (used in image generation etc)

> **[Un garçon pas comme les autres (Bayes) - Diffusion models; or Yet another way...](https://dansblog.netlify.app/posts/2023-01-30-diffusion/diffusion.html)**
>
> If you gaze for long into an abyss, the abyss creates a cutting-edge AI method. So saddle up your Ganzfeld effect, girls. We ride at dawn.

---

<div class="post-metadata">

**Author:** ![f2harrell](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/f2harrell/32/165_2.png) [@f2harrell](https://discourse.datamethods.org/u/f2harrell)\
**Post date:** [September 13, 2023, 7:25pm UTC](https://discourse.datamethods.org/t/relationship-between-statistical-models-and-machine-learning-algorithms/7063/4 "2023-09-13T19:25:19Z")

</div>

These are good resources. I’d like to find a paper that addresses this through effective degrees of freedom. For example a regression model with p linear main effects has effective d.f. of p. A random forest allows for all possible 2-way 3-way … interactions so will have d.f. that is probably at least p + p(p-1)/2. Effective d.f. relates directly to overfitting and the sample size needed for a method to work.

---

<div class="post-metadata">

**Author:** ![R\_cubed](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/r_cubed/32/1518_2.png) [@R\_cubed](https://discourse.datamethods.org/u/R_cubed)\
**Post date:** [September 17, 2023, 1:49pm UTC](https://discourse.datamethods.org/t/relationship-between-statistical-models-and-machine-learning-algorithms/7063/5 "2023-09-17T13:49:29Z")

</div>

I found a Master’s dissertation from 2022 that directly studied this issue in terms of sample size estimation. It seems limited due to the fact it emphasized classification over estimation. I did not even see a mention of the Brier score, and the emphasis appears to be on inadmissible scoring rules. Despite that, the references listed look like a good start to exploring what has been discussed among ML practitioners.

**Prol Castelo, G. (2022).** Minimum sample size estimation in Machine Learning.

> **[gprolcasteloTFM0622report.pdf](https://openaccess.uoc.edu/bitstream/10609/146007/8/gprolcasteloTFM0622report.pdf)**
>
> 769.94 KB

Worth reading in the context of the above reference is this post:

> **[Statistical Thinking - Damage Caused by Classification Accuracy and Other...](https://www.fharrell.com/post/class-damage/index.html)**
>
> Estimating tendencies is usually a more appropriate goal than classification, and classification leads to the use of discontinuous accuracy scores which give rise to misleading results.

---

<div class="post-metadata">

**Author:** ![ChristopherTong](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/christophertong/32/2938_2.png) [@ChristopherTong](https://discourse.datamethods.org/u/ChristopherTong)\
**Post date:** [March 24, 2025, 4:39am UTC](https://discourse.datamethods.org/t/relationship-between-statistical-models-and-machine-learning-algorithms/7063/6 "2025-03-24T04:39:29Z")

</div>

I recently stumbled across this 2023 paper, “A brief tour of deep learning from a statistical perspective” relevant to this thread.

[https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-032921-013738](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-032921-013738)

---

<div class="post-metadata">

**Author:** ![f2harrell](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/f2harrell/32/165_2.png) [@f2harrell](https://discourse.datamethods.org/u/f2harrell)\
**Post date:** [March 24, 2025, 11:38am UTC](https://discourse.datamethods.org/t/relationship-between-statistical-models-and-machine-learning-algorithms/7063/7 "2025-03-24T11:38:02Z")

</div>

This is fantastic. I’m add it to my course notes. It is a bit telling that they avoid the kind of problems we see in biomedical research where the signal:noise ratio is **much** higher than in their examples, and for which ML was not designed (at least not with typical sample sizes). Also see Norm Matloff’s preprint on the equivalence of neural networks and polynomial regression.
