← Projects

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

Course modules
ModuleTopicsUse case
1 · Descriptive statisticsVariable types, centre, spread and shapeSimulated salaries; preprocessing sleep data
2 · ProbabilityConditional probability, Bayes’ theoremSimplified spam filter
3 · DistributionsBinomial, Poisson, normal, exponential, central limit theoremWaiting times and conversion
4 · InferenceConfidence intervals, z and t tests, proportions, power, bootstrapFour questions on sleep data
5 · Correlation and regressionPearson, Spearman, simple linear regressionAdvertising and sales; sleep and stress
6 · ANOVA and non-parametric testsANOVA, Tukey, chi-square, Mann-Whitney, Kruskal-WallisTreatments 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_toolkit library 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.

← Back to home

Ask about my work

Checking the service…

Write any question about my background, projects, education or publications. Answers are based only on the content of this site and link to their sources.

To get started

0 of 500 charactersAnswers generated by a language model from this site. The conversation is not stored.