Statistics Playground — learn statistics & machine learning interactively

An interactive playground for probability, statistics and machine learning — pick a concept, edit its parameters, and see the distribution curve, the computed value and a plain-English explanation, all computed in your browser. The functions mirror familiar R syntax (e.g. pnorm, dbinom, t.test) with the equivalent Python (numpy/scipy) alongside. Around the playground: timed practice exams, ten statistics games, a printable cheat sheet, statistical tables, a glossary, and free R and Python coding playgrounds — no account, no install.

Topics & functions

Visualizing data

Central tendency

  • mean — The average
  • median — The middle value
  • mode — The most common value
  • compare — Mean vs median vs mode

Measuring spread

Probability

Expectation

Permutations & combinations

Binomial, Poisson & geometric

  • dbinom — Exact binomial probability
  • pbinom — Cumulative binomial
  • dpois — Exact Poisson probability
  • ppois — Cumulative Poisson
  • dgeom — Geometric probability
  • pgeom — Cumulative geometric

The normal distribution

  • dnorm — Height of the curve
  • pnorm — Probability below a value
  • qnorm — Value for a probability
  • scale — Standardize (z-scores)
  • rnorm — Random normal samples

Beyond the normal

Sampling & estimation

Confidence intervals

Hypothesis testing

The χ² distribution

Correlation & regression

  • cor — Correlation
  • lm — Linear regression

Supervised learning

  • knn — k-Nearest Neighbors

Linear regression methods

  • ridge — Ridge regression
  • lasso — Lasso regression

Classification

  • logreg — Logistic regression
  • lda — Linear Discriminant Analysis

Basis expansions

Kernel smoothing

Model assessment

Model inference

Trees

  • tree — Decision trees (CART)

Boosting

Neural networks

Support vector machines

  • svm — Support Vector Machines

Unsupervised learning

  • kmeans — k-Means clustering
  • pca — Principal Component Analysis

Random forests