# Statistics and machine learning

April 15, 2011 — September 13, 2023

Those who ignore statistics are condemned to reinvent it

A methodological distinction that some people make: What’s the difference between analytics and statistics?

- Analytics helps you form hypotheses. It improves the quality of your questions.
- Statistics helps you test hypotheses. It improves the quality of your answers.

I would divide these into *exploratory* and *descriptive* statistics, but that terminology is not universal.

It is best not to need statistics at all. If a pattern is so clear it is undeniable, then we can go home early. Although — is our bar for *undeniable* high enough? Have we *really* eliminated our own biases and wishful thinking? How would we know?

OK, statistics also plays some other roles, like giving us greater accuracy in our predictions, but that doesn’t fit into the aphorism so nicely.

What else to say here? I am not sure. I created this page before I became a professional statistician, and statistics grew to be half this web site. For more information on statistics, see… pretty much any page.

## 1 Role in science

Statistics is an Excellent Servant and a Bad Master:

This means that Galileo, Newton, Kepler, Hooke, Pasteur, Mendel, Lavoisier, Maxwell, von Helmholtz, Mendeleev, etc. did their work without anything that resembled modern statistics, and that Einstein, Curie, Fermi, Bohr, Heisenberg, etc. etc. did their work in an age when statistics was still extremely rudimentary. We don’t need statistics to do good research.

Indeed we do not. What we need statistics for is to ensure that marginally viable research is not 💩 research.

## 2 Exploratory data analysis

## 3 Unifying statistics and ML

I’m especially interested in modern fusion methods that harmonise what we would call *statistics* and *machine learning* methods, and the unnecessary terminological confusion between those systems. But I have nothing to say about that right now.

Why not read Kevin Murphy’s probml/pml-book: Probabilistic Machine Learning textbooks? They are free online.

## 4 Decisions

TODO: Introduce decision theory.

## 5 Tests

TODO: Introduce tests.

## 6 Taxonomies

Boaz Barak, ML Theory with bad drawings attempts one division of labour:

However, what we actually do is at least

thrice-removedfrom this ideal:

The model gap:We do not optimize over all possible systems, but rather a small subset of such systems (e.g., ones that belong to a certain family of models).The metric gap:In almost all cases, we do not optimize the actual measure of success we care about, but rather another metric that is at best correlated with it.The algorithm gap:We don’t even optimize the latter metric since it will almost always be non-convex, and hence the system we end up with depends on our starting point and the particular algorithms we use.The magic of machine learning is that sometimes (though not always!) we can still get good results despite these gaps. Much of the theory of machine learning is about understanding under what conditions can we bridge some of these gaps.

The above discussion explains the “machine Learning is just X” takes. The expressivity of our models falls under

approximation theory. The gap between the success we want to achieve and the metric we can measure often corresponds to the difference betweenpopulationandsampleperformance, which becomes a question ofstatistics. The study of our algorithms’performance falls underoptimization.

## 7 Textbooks, resources

- Arne Hallam’s Home Page includes some excellent lecture on statistics
- Encyclopedia of Machine Learning and Data Science would really like to be a definitive reference

## 8 References

*Data Mining*.

*Theoretical Statistics*.

*Foundations of Mathematical and Computational Economics*.

*A Probabilistic Theory of Pattern Recognition*.

*Computer Age Statistical Inference: Algorithms, Evidence, and Data Science*. Institute of Mathematical Statistics Monographs.

*Statistical Models and Causal Inference: A Dialogue with the Social Sciences*.

*Bayesian Data Analysis*. Chapman & Hall/CRC texts in statistical science.

*Epidemiology*.

*Epidemiology*.

*Journal of the Royal Statistical Society. Series D (The Statistician)*.

*Stochastic modeling of scientific data*. Stochastic modeling series.

*arXiv:2102.05242 [Cs, Stat]*.

*The Elements of Statistical Learning: Data Mining, Inference and Prediction*.

*Probability, Random Processes, and Statistical Analysis: Applications to Communications, Signal Processing, Queueing Theory and Mathematical Finance*.

*Mathematical and Statistical Methods for Data Science and Machine Learning*. Chapman & Hall/CRC Machine Learning & Pattern Recognition.

*Theory of point estimation*. Springer texts in statistics.

*Testing statistical hypotheses*. Springer texts in statistics.

*Annual Review of Public Health*.

*Foundations of Machine Learning*. Adaptive Computation and Machine Learning.

*Machine learning: a probabilistic perspective*. Adaptive computation and machine learning series.

*Probabilistic Machine Learning: An Introduction*. Adaptive Computation and Machine Learning Series.

*Probabilistic Machine Learning: Advanced Topics*.

*Monte Carlo Statistical Methods*. Springer Texts in Statistics.

*Theory of Statistics*. Springer Series in Statistics.

*Asymptotic statistics*. Cambridge series in statistical and probabilistic mathematics.

*All of Statistics: A Concise Course in Statistical Inference*.