Article
November 24, 2026

AI vs. Statistics

Charles Keown-Stoneman

A student recently asked for my thoughts on machine learning (ML, a.k.a. artificial intelligence, AI) compared to ‘traditional’ statistics, and how I felt that ML/AI may be overtaking statistics as a field for modelling in science. As a biostatistician, this topic comes up somewhat regularly, and I thought I would share my thinking on the topic.

What Are We Doing?

I think it is important to clarify the purpose of any model we are attempting to build, whether you would classify it as ‘machine learning’, or ‘traditional statistics’. Broadly speaking, most scientific models with an outcome variable fill one of two roles (or both): inference, that is, helping us get a clearer picture of some aspect of how other variables are related to the outcome, and/or prediction, helping us make predictions about the outcome based on observed data. Both are important aspects of scientific modelling; but modelling strategies obviously differ depending on what the ultimate goal is (Shmueli, 2010).

While no longer always the case, ML models are often described as ‘black box’ models because it is hard, or sometimes impossible to understand exactly what is happening under the hood. Because of this aspect, ML models have often been limited in their ability to perform inference; however, they have provided great results with prediction, particularly with large data sets (Breiman, 2001).

Machine Learning Models are Statistical Models

One thing that will not surprise people in the fields of AI/ML and statistics, but may surprise others, is that ML models are at their core statistical models. Meaning, in most cases, they take input data, use that data to train a model using different forms of mathematics (which forms depending on the specifics of each approach), then use that model to do something, often with new data. The idea that ML models are statistical models, and that this idea is not widely known, is often joked about online within the computer science and statistics communities, e.g.

‍

Figure 1: Source: https://www.instagram.com/p/DW8yCZxlako/

Consider Artificial Neural Networks, (ANNs), one of the most common forms of ML/AI models. Large Language Models (LLMs) like ChatGPT, Claude, and Co-Pilot are forms of ANNs. Simpler forms of ANNs have been around for much longer and have been used in many different applications, often not related directly to language (Rosenblatt,1958). At their core, ANNs predict output variable(s) using input variables (note: I generally use terminology more common in statistics like ‘variables’ as opposed to those often seen in ML, like ‘features’). The thinking behind this approach was to try and mimic how neural circuitry works within living organisms, that is, as organic neurons are activated, they may or may not activate other neurons they’re connected to in a cascading fashion. Similarly, ANNs are constructed of ‘layers’ of ‘nodes’ (you can think of nodes as artificial neurons). As one node is activated (usually starting with input data), it may or may not activate other nodes, with connection strengths dictated through ‘weights’. The process of training these models includes using mathematics to decide on the optimal weights (and sometimes the number of nodes and layers). It has been pointed out that traditional linear regression can be thought of as a very simple ANN. That is, one layer of input variables used to estimate weights (regression coefficients) to predict a single output variable (Goodfellow et al., 2016).

‍

Figure 2: Example Artificial Neural Network Framework with three layers.

For those curious, LLMs use ‘tokens’, which are small units of text that may correspond to words, parts of words, punctuation, or occasionally longer text fragments, as both the input variables and the output variables. LLMs are fit using extremely large ANNs with nodes numbering in the billions or more, trained on immensely large datasets of existing language.

The amounts of required data have been and continue to be a major concern given the complexity of many ML approaches. Often these models require orders of magnitude more data than traditional statistical models.

Why does it matter if ML/AI is statistics?

With all of the above said, one can excel in the field of ML/AI without a deep understanding of statistics. Just as one can become a successful composer and musician with little-to-no formal understanding of chords, key signatures, or dynamics; but these concepts are still fundamental parts of any of their compositions, and understanding them may lead to better pieces of music.

One reason that I believe it’s important for researchers to understand that ML models are complex statistical models is that lessons learned in the field of statistics can help and have helped, in making ML models better and more robust. One long standing issue in statistics is overfitting. That is, have we created a model that fits the collected data extremely well, but would not generalize well to newly collected data? If so, we say the model is overfit. In traditional statistics this has mostly been addressed through the concept of parsimony, using the simplest possible model that will still perform the needed task. Other forms of assessment for overfitting have been developed, such as bootstrap validation, cross-validation, and testing/training data splitting (Hastie et al., 2009). These lessons have carried over successfully to the field of ML, where a good modeller will hopefully attempt to limit the amount of overfitting in their model.

Aside from overfitting, I personally have found statisticians often view models through a lens that might emphasize specific aspects of robustness that may be overlooked by other researchers. For example, we may think about including metrics of confidence and precision, and think deeply about the quality of the data used in training.

A double-edged sword in the field of statistics is that it is ubiquitous and intermingled with other fields. This means statistical modelling is often advanced in different directions within engineering, computer science, physics, epidemiology, economics, the list goes on and on. This gives statistics the advantage of many minds working on fundamentally similar problems, while also leading to the same concepts in statistics being ‘discovered’ repeatedly across different fields, and sometimes given different names. I believe this inefficiency in research could be lessened if we use the information already available in the connected fields of research, such as statistics for ML research.

Future Directions

To be clear, the sharing of my thoughts on the relationship between statistics and ML/AI is not a knock on ML/AI, far from it. I believe approaches often lumped together as ‘traditional statistics’ such as linear and logistic regression, still have their place in scientific research, especially in situations where available data is limited. However, it would be naïve of me to discount the collective power and potential provided by more advanced ML techniques, particularly in situations with large amounts of data, and complicated, non-linear relationships between variables. I hope this post helps clarify for those less familiar with either field how they are related, and to point out that the processes of producing the best models for each task would benefit from the knowledge gained within each others’ fields.

‍

Key Takeaways

  • ML/AI and statistics are more closely related than many people realize, and not necessarily in direct competition with one another.
  • Inference and prediction are different goals that often require different modelling strategies.
  • LLMs and other AI models are sophisticated statistical learning systems.
  • Statistical principles such as validation, uncertainty assessment, and avoiding overfitting remain critical for AI.
    ‍

References

  • Breiman, L. (2001). StatisticalModeling: The Two Cultures. Statistical Science, 16(3), 199–215. https://doi.org/10.1214/ss/1009213726
  • Goodfellow, I., Bengio, Y.,& Courville, A. (2016). III Deep Learning Research. In Deep Learning.MIT Press.
  • Hastie, T., Tibshirani, R.,& Friedman, J. (2009). The Elements of Statistical Learning: DataMining, Inference, and Prediction (Second edition.). Springer Nature. https://doi.org/10.1007/978-0-387-84858-7
  • Rosenblatt, F. (1958). Theperceptron: a probabilistic model for information storage and organization inthe brain. Psychological review, 65(6), 386.
  • Shmueli, G. (2010). To Explainor to Predict? Statistical Science, 25(3), 289–310. https://doi.org/10.1214/10-sts330
    ‍

About The Author

Charles (Charlie) Keown-Stoneman, PhD, P.Stat. is the Senior Research Biostatistician and Biostatistics Team Lead at SPHERE at Unity Health Toronto, an Investigator at the Li Ka Shing Knowledge Institute, and an Associate Professor (Affiliated Scientist) of Biostatistics at the Dalla Lana School of Public Health at the University of Toronto. He received his PhD in Applied Statistics from the University of Guelph.

As the Lead Biostatistician at SPHERE, he oversees our team of biostatisticians working on clinical trials and observational studies. Dr. Keown-Stoneman is an expert in time-to-event analysis, longitudinal analysis, and regression modelling generally. He is a frequent contributor to the medical, psychiatric, paediatric, and nutritional literature. He has experience teaching undergraduate and graduate statistics courses at the University of Guelph and the University of Toronto.

‍

‍

Stay connected as SPHERE continues to shape the future of clinical research.