Outreach · Online course
Learning statistics step by step, from intuition to analysis with Python
- What it is
- A Spanish-language web book for people with no statistics background: six modules with theory and runnable practice, a capstone project and three reference appendices.
- Authorship
- Author of the course, its stats_toolkit library and its publishing workflow.
Course facts and contents
Facts
- Audience
- People starting with no statistics background
- Language
- Spanish
- Format
- Quarto web book · Jupyter practice, locally or in Google Colab
- Content
- 6 modules · capstone project · interactive lab · 3 appendices
- Tools
- Quarto · Python · NumPy · pandas · SciPy · statsmodels · pytest · GitHub Actions
- Code
- GitHub
Who it is for
The course is meant for people starting with no statistics background who want to learn to describe data, reason with probabilities, estimate, test hypotheses, study relationships and compare groups. Every explanation comes with code that runs on a computer or in Google Colab with no setup.
How it is organised
| Module | Topics | Use case |
|---|---|---|
| 1 · Descriptive statistics | Variable types, centre, spread and shape | Simulated salaries; preprocessing sleep data |
| 2 · Probability | Conditional probability, Bayes’ theorem | Simplified spam filter |
| 3 · Distributions | Binomial, Poisson, normal, exponential, central limit theorem | Waiting times and conversion |
| 4 · Inference | Confidence intervals, z and t tests, proportions, power, bootstrap | Four questions on sleep data |
| 5 · Correlation and regression | Pearson, Spearman, simple linear regression | Advertising and sales; sleep and stress |
| 6 · ANOVA and non-parametric tests | ANOVA, Tukey, chi-square, Mann-Whitney, Kruskal-Wallis | Treatments and customer segments |
- Each module has a theory chapter with formulas, examples and self-check questions, and one or two practice notebooks with exercises and folded solutions.
- The course’s own
stats_toolkitlibrary implements the didactic methods by hand and compares its results with SciPy and statsmodels; it is tested with pytest. - Every change goes through an automatic check that runs the tests and the practice notebooks and renders the book before publishing it on GitHub Pages.
An example from the course
The module 4 practice asks: does sleep quality differ between women and men? It explains why to use Welch’s t-test, which does not require equal variances, instead of deciding first with an F-test, and how to read the result.
- Mean sleep quality: 7.665 for women and 6.973 for men.
- 95% confidence interval for the difference (women − men): 0.46 to 0.93.
- Since the whole interval is positive, the data point to a higher mean for women. The practice stresses that a statistically significant difference does not, on its own, tell you whether it matters in practice.
The course’s sleep data are synthetic, created for illustration: they are for practising the methods, not for drawing conclusions about health.
Authorship and resources
Third-party tools
- Quarto for the book, Observable JS for the interactive charts and MathJax for formulas, loaded from the internet.
- NumPy, pandas, matplotlib, SciPy and statsmodels for calculations; GitHub Actions and GitHub Pages for publishing.
My work
- Writing the theory, practice notebooks, exercises and appendices.
- Designing the stats_toolkit library, its tests and the review and publishing workflow.