Statistics
From study design, summaries and probability to hypothesis tests, the bootstrap, Bayesian methods and regression, statistics as told through the free samples of Leanpub books.
Created from the free samples of 11 Leanpub books and the descriptions and tables of contents of 27 more books and courses, with every source cited.
Statistics is the discipline of collecting data, analysing them and stating conclusions together with a measure of their uncertainty.
The subject is taught today in overlapping ways. The classical course moves from descriptive summaries through probability to tests and intervals built on mathematical models such as the normal distribution. The Bayesian approach treats probability as a degree of belief that is updated as evidence arrives. Around them sit the applied traditions, of which medicine is the largest among these books, and the growing literature that presents statistics as the groundwork of machine learning.
This article describes how data are collected and summarised, the ideas of probability and inference, regression, and the forms the subject takes in medicine, in research and in machine learning. Its sources are the free samples of 11 Leanpub books and the public descriptions and tables of contents of 27 more books and courses.
Where to start
A reader with no background can begin gently. Probability for Lemurs (2022) explains the concepts in pictures with almost no mathematics, though it is unfinished, and An Introduction to Statistics (2024) is a first-year text for business students in which every calculation is done by hand or on a calculator.[1] [20]
Readers in medicine and the life sciences have their own shelf. Applied Medical Statistics for Beginners (2022) is a practice-oriented introduction that avoids equations where it can.[13] A clinician who needs only to read journal articles can take Understanding data and statistics in the medical literature (2019), a course of about four hours with the mathematics left out.[16]
A reader who already knows basic inference and some R can go straight to regression with Regression Models for Data Science in R (2019).[12] Intuitive Statistics (2026) runs from p-values to Bayesian models in one course with worked examples in R, and Bayesian Analysis with Python - Third Edition (2024) introduces applied Bayesian modelling in Python.[23] [28] For practitioners who validate regression models, SQF7: Classical Linear Regression Model (2026) is a compact reference to the classical model and its diagnostic tests.[3]
History
Probability was first worked out in the seventeenth century for games of chance, and the theorem that carries the name of Bayes dates from the eighteenth. The method of least squares was devised at the start of the nineteenth century for fitting astronomical observations, and regression took its name later in that century from a study of the heights of parents and their children, the data with which Regression Models for Data Science in R still opens.[12] The early twentieth century added the machinery most courses teach: significance tests, the design of experiments and randomisation.
Computers changed the practice twice. Statistical software put routine analysis within reach of every researcher, which is why so many books here are tied to one package or language. And cheap computation made practical the sampling algorithms on which modern Bayesian analysis depends.[28]
Data and study design
How data were collected decides what can be concluded from them. Quick and Easy Statistics (2021) sets out the standard designs of clinical research by the question each answers: a cross-sectional study for how common something is, a case-control study that looks back from people with a disease, a cohort study that follows healthy people forward, and a randomised controlled trial for whether an intervention works.[2]
Modern Computational Statistics with R (2026) makes the order of reasoning its philosophy: understand the question before calculating, the design before modelling, and what the data can justify before interpreting.[22] Understanding data and statistics in the medical literature gives study design, measurement and preregistration their own lessons for readers of the medical literature.[16]
Describing data
Descriptive statistics reduce a body of data to a few numbers and pictures. Quick and Easy Statistics is careful with the vocabulary: a population is the whole set one wants to describe, a sample is a subset of it, a parameter is a number describing the population and a statistic, without the final "s", is a number describing a sample.[2]
What Just Happened: Descriptive Statistics (2021) is a short textbook on this part of the subject alone, covering types of data, measures of position such as percentiles and quartiles, the mean, median and mode, dispersion, skewness and correlation.[6] An Introduction to Statistics begins in the same place, with levels of measurement and frequency distributions, and Dr B's No Bull Guide (2019) works each method of a first course three ways: in a spreadsheet, on a graphing calculator and by hand.[20] [21]
Summaries can also mislead. How to Lie with Numbers, Stats & Graphs (2020), a box set of two short books for general readers, goes through the ways numbers and charts are misrepresented in politics, business and the press.[24]
Probability
Probability supplies the language in which uncertainty is stated. Probability Etudes in Common Lisp (2026) follows the usual path of a first course, from sample spaces and the Kolmogorov axioms through conditional probability, random variables and the named distributions to the law of large numbers and the central limit theorem, with each topic accompanied by a runnable program; it also has sections on the history of the subject and on the rival interpretations of what a probability is.[25] Concepts, Problems and Solutions in Permutations, Combinations and Probability (2020) approaches counting and probability through solved examples for readers without a mathematical background, and Exercises of Advanced Statistics (2022) is a collection of worked exercises on random variables, joint distributions and the standard inequalities.[26] [27]
The result that most often surprises beginners is Bayes' theorem. Probability for Lemurs works it through with bananas: one banana in 36 contains a bug, and a spot on the skin is a clue that is right 99 per cent of the time. A spotted banana then has a bug about 73 per cent of the time, not 99, because the rarity of bugs, the base rate, has to be combined with the reliability of the clue; relying on either number alone gives the wrong answer.[1] Visual Maths for ML: Probability (2026) reaches the same idea in pictures, moving from coin flips to an email filter that estimates the probability that a message is spam.[36]
Inference
Inference is the step from a sample to the population it came from. Intuitive Statistics teaches the classical route, starting from p-values and t-tests, and Methods in Biostatistics with R (2019) introduces the bootstrap, a resampling method, early, in its chapter on probability.[23] [14]
Bayesian methods
Bayesian analysis starts from a prior belief about an unknown quantity and uses the data to turn it into a posterior one. Probability for Lemurs marks the contrast with testing in a sentence: the clues come from the observations themselves, in place of hypothesis tests and confidence intervals.[1] Bayesian Analysis with Python - Third Edition is the fullest treatment, an introduction to applied modelling with the PyMC library that covers hierarchical models, generalised linear models, mixture models and Gaussian processes on synthetic and real data.[28]
Intuitive Statistics places Bayesian models at the end of a course that begins with t-tests, and presents them as a family that copes well with complicated data structures; on the way it sets significance testing beside model-selection methods meant to avoid the selective reporting known as p-hacking.[23] Bayesian mathematics for ai decision making (2026) follows the methods from Bayes' theorem through inference and graphical models to decision theory, and Visual Maths for ML: Bayesian Inference (2026) covers priors, likelihoods and posteriors in 37 pages of diagrams.[29] [37]
Regression
Regression describes how one quantity changes with others, and it is the method on which the largest number of these books concentrate.
Least squares
Regression Models for Data Science in R, the companion to an online course, gives a rigorous treatment of the elementary concepts, from the historical height data and ordinary least squares to models with several predictors, and expects its reader to know basic inference and R.[12] Least Squares & Regression: The Basics Using R (2nd Edition) (2022) moves in eight chapters from fitting lines, through transformations and curves, to model building with categorical variables.[30] An Introduction to Statistics derives the formulas of the regression line by least squares, which its description notes is rare in an introductory text.[20]
Assumptions and diagnostics
SQF7: Classical Linear Regression Model states the classical linear regression model formally. It rests on six assumptions: the relationship is linear; no explanatory variable is an exact linear combination of the others; the explanatory variables carry no information about the disturbance; the disturbances have constant variance and are uncorrelated with one another; the regressors may be fixed or random; and the disturbances are normally distributed.[3] The disturbance term exists because some determinants are always left out, measurements contain error and outside influences cannot be modelled. Under these assumptions the least squares estimator is the best linear unbiased one.[3]
Most of the book is about what to do when an assumption fails. It takes multicollinearity, heteroscedasticity, autocorrelation and non-normal disturbances in turn, each with the tests that detect it, the consequences of ignoring it and the remedies, and then turns to errors of specification such as omitting an important variable.[3] The author compiled it as a field manual while validating credit-risk models at a bank.[3]
How well a model predicts is a separate question. Errors of Regression Models (2020) compares the measures of a regression model's error, among them the coefficient of determination, the mean absolute error and the root mean square error, with the advantages and drawbacks of each.[31]
Prediction and classification
When the outcome is a category and not a number, logistic regression takes the place of the straight line. Score Personal Loan Applicants using R (2015) is a case study in R on a bank's records of 7,250 unsecured personal loans, where a bad customer is one who missed three or more payments in the first year and costs the bank on average five times the profit from a good one. The book cleans the data, builds a logistic model, selects variables automatically and backtests the result with cross-validation and measures such as sensitivity and specificity.[4] Probability of Default Rating Modeling with R (2024) covers the development and validation of probability-of-default rating models in the same field.[32]
Regression is also where statistics meets machine learning. Supervised Machine Learning - Linear Regression (2022) presents linear regression as a supervised learning technique, and its contents go on from the assumptions and error measures to overfitting, cross-validation and the regularised variants, lasso and ridge.[7] Linear and Nonlinear Regression in Artificial Intelligenc VOL-1 (2026) runs from simple and multiple regression to regularisation, logistic regression and generalised linear models, and Data Science - Regression Analysis (DIY for newbies) (2020) is a beginner's workbook of regression code in Python and R.[33] [9]
Statistics in medicine and the life sciences
Medicine is the applied field best represented. Methods in Biostatistics with R joins methodology to R programming throughout, on the argument that books on methods neglect implementation and books on programming neglect foundations.[14] Biostatistics with Python (2025) uses Python for the same purpose.[15] Applied Medical Statistics for Beginners covers study design, the choice of a statistical test and the analysis of numerical and categorical data without reference to any package.[13]
Several titles serve particular needs. Quick and Easy Statistics teaches analysis in a commercial statistics package with screenshots, for new researchers who find the subject frightening, and Medical Statistics - Level 1 (2021), a course, covers the same ground as far as simple linear regression.[2] [17] Biostatistics Booklet - Osama ElSawwah (2025) and Short notes in Epidemiology and Biostatistics for Medical Exams (2026) are brief revision aids for medical licensing examinations.[18] [19]
Statistics for machine learning and programming
Many of the books published since 2025 present statistics as preparation for machine learning. Statistics for Machine Learning (2026) covers the ground in nine short chapters from probability to model evaluation, and Applied Statistics with AI Hypothesis Testing and Inference for Modern Models (2026) begins with descriptive statistics and inference and then applies them to evaluating machine learning models.[34] [35] Visual Maths for ML: Statistics (2026) teaches through annotated diagrams and one running case about predicting delivery times.[38] In The Hundred-Page Guide to the Core Mathematics of Machine Learning (2025) probability and statistics are one part of three, with chapters on Bayes' theorem, distributions and the trade-off between bias and variance, and The Orange Book of Machine Learning - Green edition (2026) opens a book on prediction with a chapter on statistics and exploratory analysis.[11] [10]
The language is usually R or Python, and the books above divide between them. Statistics with Rust, Second Edition (2026) is the exception: it implements statistical methods in Rust for readers who already know the statistics, with a first chapter comparing the language with Python on performance, memory safety and concurrency.[8]
Statistics in a research project
A last book is about the place of the analysis in the work around it. The Graduate Student's Guide to Statistics (2014), written by a statistical consultant who has advised several hundred graduate students, treats the analysis as one small component of a research programme whose goal is to finish the degree. It covers the analysis plan, the design of studies so as to avoid complications, communication with an advisor and committee, writing the manuscript and what to do when there are no results, and its advice is that the earlier a student thinks about the statistical analysis, the less trouble it causes later.[5]
Questions about Statistics
Which statistics book should I start with?
A reader with no background can start with Probability for Lemurs (2022), which explains the concepts in pictures with almost no mathematics, or with An Introduction to Statistics (2024), a first-year text in which every calculation is done by hand or on a calculator.[1] [20] Readers in medicine have Applied Medical Statistics for Beginners (2022), which avoids equations where it can.[13]
Why does the base rate matter in Bayes' theorem?
A clue that is right 99 per cent of the time does not make the conclusion 99 per cent certain when the thing it points to is rare.[1] In the example of Probability for Lemurs, one banana in 36 has a bug, and a spotted banana has one about 73 per cent of the time, because the rarity has to be combined with the reliability of the clue.[1]
What are the main study designs in clinical research?
Quick and Easy Statistics sets out four by the question each answers: a cross-sectional study for how common something is, a case-control study that looks back from people with a disease, a cohort study that follows healthy people forward, and a randomised controlled trial for whether an intervention works.[2] Understanding data and statistics in the medical literature gives study design a lesson of its own for readers of the medical literature.[16]
What are the assumptions of linear regression?
SQF7: Classical Linear Regression Model lists six for the classical model, among them that the relationship is linear, that no explanatory variable is an exact linear combination of the others, and that the disturbances have constant variance and are uncorrelated with one another.[3] Under these assumptions the least squares estimator is the best linear unbiased one.[3]
What is the difference between a parameter and a statistic?
A parameter is a number that describes a population, the whole set one wants to describe, and a statistic is a number that describes a sample, a subset of it.[2] What Just Happened: Descriptive Statistics (2021) is a short textbook on descriptive statistics alone, from types of data to dispersion and correlation.[6]
When is logistic regression used instead of a straight line?
Logistic regression is used when the outcome is a category and not a number.[4] Score Personal Loan Applicants using R (2015) builds one on a bank's loan records to tell good customers from bad, and tests it with cross-validation.[4]
Sources
Every source is a Leanpub book or course. The note after each says which part of it was read; where no sample was available, only the public description and table of contents were used.
- 1.Probability for Lemurs, Patrick Delaney: Lemur see, lemur calculate. A visual probability handbook for aspiring, curious primates. Free sample: the front matter, a contents page marking which chapters are finished, and the chapter on Bayes' theorem. 2022. Free sample: PDF
- 2.Quick and Easy Statistics, Fatai Akemokwe: A Practical and Interactive Approach Using SPSS Free sample: the welcome, the definitions of basic terms, study designs and the start of data preparation. Based on an older version of the software. 2021. Free sample: PDF
- 3.SQF7: Classical Linear Regression Model, Yan Zeng: Assumptions and Diagnostic Tests Free sample: the abstract, the full contents and the statement of the classical model, its assumptions and the least squares estimator. 2026. Free sample: PDF
- 4.Score Personal Loan Applicants using R, Guangming Lang: A Step-by-Step Guide to Doing Predictive Analysis Using Logistic Regression and R Free sample: the preface, the case and its variables, setup and the start of data cleaning. 2015. Free sample: PDF · EPUB
- 5.The Graduate Student's Guide to Statistics, Jerome V. Braun, Ph.D.: A clear description of how to do statistics for your thesis or dissertation Free sample: the preface, the author's background and the introduction; none of the methods chapters. 2014. Free sample: PDF · EPUB
- 6.What Just Happened: Descriptive Statistics, Shefali Nayak: An Explorer’s Guide to Data Free sample: the front matter and the contents list, with almost no teaching text. 2021. Free sample: PDF
- 7.Supervised Machine Learning - Linear Regression, Shefali Nayak Free sample: the preface, the contents and the first page of chapter 1. 2022. Free sample: PDF
- 8.Statistics with Rust, Second Edition, GitforGits | Asian Publishing House: Explore rust programming and its powerful crates across data science, machine learning and NLP projects Free sample: the prologue and the full contents; no chapter text. 2026. Free sample: PDF
- 9.Data Science - Regression Analysis (DIY for newbies), Geetha Subramanian: Includes 100 solved problems Free sample: short introductions to regression methods and the first solved questions. 2020. Free sample: PDF · EPUB
- 10.The Orange Book of Machine Learning - Green edition, Carl McBride Ellis: The essentials of making predictions using supervised regression and classification for tabular data. Free sample: an older free edition, of which only the title page and contents were read. 2026. Free sample: PDF
- 11.The Hundred-Page Guide to the Core Mathematics of Machine Learning, PR: A Practical Introduction to Linear Algebra, Calculus, and Statistics with Python and NumPy Free sample: the notation, the full contents and chapter 1 on the book's approach; none of the statistics chapters. 2025. Free sample: PDF
- 12.Regression Models for Data Science in R, Brian Caffo: A companion book for the Coursera Regression Models class No sample: from the description and table of contents. 2019.
- 13.Applied Medical Statistics for Beginners, Mohamed Elsherif No sample: from the description and table of contents. 2022.
- 14.Methods in Biostatistics with R, Ciprian Crainiceanu, Brian Caffo, John Muschelli: A Rigorous and Practical Treatment of Biostatistics Foundations using R No sample: from the description and table of contents. 2019.
- 15.Biostatistics with Python, Packt Publishing Ltd: Apply Python for biostatistics with hands-on biomedical and biotechnology projects No sample: from the description and table of contents. 2025.
- 16.Understanding data and statistics in the medical literatureCourse, Jeffrey Leek, Lucy D'Agostino McGowan, Elizabeth Matsui No sample: from the description and table of contents. 2019.
- 17.Medical Statistics - Level 1Course, Fatai Akemokwe, Afelemo Orilade, Nyemike Awunor: Probability, Descriptive & Inferential Statistics, Correlation & Linear Regression No sample: from the description and table of contents. 2021.
- 18.
- 19.Short notes in Epidemiology and Biostatistics for Medical Exams, Mohamed Elsherif No sample: from the description. 2026.
- 20.An Introduction to Statistics, Michael Hughes The sample yielded no text: from the description and table of contents. 2024. Free sample: PDF
- 21.Dr B's No Bull Guide, Bryan Aguiar: to Applied Statistics 101 No sample: from the description and table of contents. 2019.
- 22.Modern Computational Statistics with R, Osama Abdelhay: An Introduction to Statistical Thinking, Uncertainty, and Evidence No sample: from the description. 2026.
- 23.Intuitive Statistics, William D. Pearse: Mastering basics, Bayes, and AI No sample: from the description. 2026.
- 24.How to Lie with Numbers, Stats & Graphs, Lee Baker: A Box Set Containing Truth, Lies & Statistics and Graphs Don't Lie No sample: from the description. 2020.
- 25.Probability Etudes in Common Lisp, Mark Watson: Interactively learn probability using Common Lisp No sample: from the description and table of contents. 2026.
- 26.Concepts, Problems and Solutions in Permutations, Combinations and Probability, Chandra Shekhar Kumar No sample: from the description. 2020.
- 27.
- 28.Bayesian Analysis with Python - Third Edition, Packt Publishing Ltd: A practical guide to probabilistic modeling No sample: from the description. 2024.
- 29.Bayesian mathematics for ai decision making, Anshuman Mishra: Inference probabilities programming and uncertainty modeling No sample: from the description and table of contents. 2026.
- 30.Least Squares & Regression: The Basics Using R (2nd Edition), Roger W Johnson No sample: from the description. 2022.
- 31.Errors of Regression Models, Lee Baker: One Stat to Rule Them All No sample: from the description and table of contents. 2020.
- 32.Probability of Default Rating Modeling with R, Andrija Djurovic: Comprehensive overview of the modeling processes, principles, and designs No sample: from the description and table of contents. 2024.
- 33.Linear and Nonlinear Regression in Artificial Intelligenc VOL-1, Anshuman Mishra: Mathematical Foundations, Regularization Techniques & Predictive Modeling No sample: from the description and table of contents. 2026.
- 34.
- 35.Applied Statistics with AI Hypothesis Testing and Inference for Modern Models, Anshuman Mishra No sample: from the description and table of contents. 2026.
- 36.Visual Maths for ML: Probability, Pramod Tyagi: An illustrated guide from probability basics to machine learning The sample yielded no text: from the description. 2026. Free sample: PDF
- 37.Visual Maths for ML: Bayesian Inference, Pramod Tyagi: Update beliefs with evidence. The sample yielded no text: from the description. 2026. Free sample: PDF
- 38.Visual Maths for ML: Statistics, Pramod Tyagi: An illustrated guide to data, uncertainty and model evaluation No sample text (the download failed): from the description. 2026. Free sample: PDF
Further reading
Other books in the library on the same ground, not cited above.
- Getting Started With Statistics, Lee Baker: A Series of Bitesize Guides For Beginners Short guides for beginners on data collection, data types, hypothesis testing and Bayes' theorem. 2021.
- Truth, Lies & Statistics, Lee Baker: How to Lie with Statistics A short layman's book on the ways data and statistics are used to mislead; one of the two books in the box set cited above. 2020.
- ML Cheatsheet: Linear Regression, Hisham El-Amir: Learn Linear Regression in Weekend A brief cheatsheet on linear regression and the least squares approach. 2020.
- Introduction to Supervised Machine Learning, myothida: Regression and Classification An introduction to supervised machine learning with one chapter on regression methods and one on classification. 2023. Free sample: PDF
- Life in the Lab, the essential guide to becoming a researcher, Kevin Hamill: Experimental design, conducting research, data analysis and statistics, and writing up your work for publication A guide to starting a research career, from experimental design and data processing to writing and talks. 2022. Free sample: PDF
- Mathematics for artificial Intelligence-ii, Anshuman Mishra: (statistics and optimization) The second volume of a mathematics series for AI, whose first part is advanced statistics. 2026.
- Enhancing High-Volume Comparable Sales Processing with Regression Models, Sid Som A guide to regression models in high-volume property valuation. 2025.