Introduction to Statistics

The interactive components Introduction to Statistics uses most. Each has its own page with a live example and its full reference.

Sampling Distribution Builder

The learner draws random samples from a population (one at a time or in batches), sees each sample and its statistic, and watches the sampling distribution of that statistic build up against an exact or approximating law; sliders for n and other parameters show how centre, spread and shape change, and several estimators can be compared side by side (bias, SD, MSE).

Least-Squares Fit

Scatter plot with a least-squares line the learner manipulates: drag data points or a candidate line and watch residuals, RSS, R^2 and the ANOVA split respond; drag x0 to read confidence and prediction bands; drag one point to see leverage, standardized residual and Cook's distance with and without it; recentre a polynomial or interaction model and watch only the lower-order coefficients change.

Confidence Interval Coverage Simulator

The learner draws many samples and sees each one's interval stacked against the true value, with a running coverage count and its Monte Carlo error; procedures (z, t, bootstrap, signed-rank, chi-squared, Wald/Wilson/exact, prediction, tolerance) can be compared on the same samples, with sliders for n, level and p and an exact coverage-versus-p curve for proportions.

Power and sample size explorer

The learner drags the critical value, the alternative mean and sliders for n, sigma and alpha, and sees the null and alternative sampling distributions with alpha, beta and power shaded. Other views show the power and OC curves, power against n with the n needed for a target power, simulated studies, margin-of-error planning (mean, proportion, planning value p*) and two-sample allocation trade-offs.

Draggable Sample Summary

A small sample as draggable dots on a number line with live readouts (mean, median, sd, IQR, trimmed mean, ...) and an optional linked boxplot with fences and flagged outliers. The learner drags one point far and sees the mean and sd move while the median and IQR stay; shift and scale sliders test whether a statistic is equivariant.

Distribution Explorer

The learner moves parameter sliders and drags interval ends, quantiles, observed statistics or thresholds on a pmf or pdf. They see probability as shaded area or highlighted bars, linked to the cdf, survival or hazard panels, with live moment readouts, tail-bound comparisons, p-values and rejection regions.

Survey Sampling Design

A population of units on a map, shaded by value, sampled by simple random, stratified, cluster, systematic, convenience or voluntary-response designs. The learner draws samples, repeats them a thousand times and compares where the estimates centre (bias) and how far they spread (SE) under frame coverage, nonresponse and measurement-offset sliders, seeing which designs are unbiased, which gain precision, and which biases no sample size cures.

Multiple Testing Simulator

The learner reruns many simulated studies, each testing a family of hypotheses (some true nulls, some real effects, optionally correlated), and compares unadjusted testing with Bonferroni, Šidák, Holm, Hochberg, Benjamini–Hochberg and Benjamini–Yekutieli on FWER, false rejections, FDR and power. Views show one study's sorted p-values against each procedure's threshold, the pooled p-value histogram, error-rate bars with exact values, and FWER against m; further scenarios simulate planned versus post-hoc pairwise comparisons and choosing the tail or the level after seeing the data.

One-Way ANOVA Explorer

Groups on a dot plot whose observations (or group means) the learner drags, with the live between/within decomposition, the ANOVA table and F against its reference density. Other views show Tukey (or Tukey–Kramer) simultaneous intervals with letter groupings against the overall F, raw F versus the rank analysis (Kruskal–Wallis) when one value is dragged far away, and a simulator that averages the mean squares over many data sets from the model.

Likelihood Curve Explorer

The learner edits the observed data under a one-parameter model (binomial, Bernoulli, Poisson, exponential, normal mean) and drags parameter values along the likelihood, log-likelihood or relative-likelihood curve, reading off the MLE, likelihood ratios with evidence benchmarks, the score tangent and information, Wald / score / likelihood-ratio tests and intervals, the area under L, two proportional stopping-rule likelihoods, and score behaviour over repeated random samples.

Bivariate cloud explorer

A scatter of paired data (from a model with sliders, draggable points, re-paired lists or preset data sets) with correlation and covariance readouts. Learners move rho or the model parameters, drag points, re-pair lists or transform the data, and see the least-squares line, conditional means, quadrant signs, concordant pairs, marginals or directional variance respond.

Permutation Test Explorer

The learner relabels the units of a two-sample or paired data set (swap group labels, flip signs, or drag the observed rank statistic), then builds the null distribution of the chosen statistic exactly, one arrangement at a time, or by Monte Carlo shuffles, and reads off the tail and p-value, with the Monte Carlo error, the tie-corrected variance and a normal approximation with and without continuity correction.

Quantile Plot Explorer

A Q-Q (or P-P) plot of a sample against normal, exponential or uniform quantiles with a reference line: the learner switches samples and reference laws, draws fresh samples to see chance wiggle, drags points, and reads the plot correlation and Shapiro-Wilk W; a grid mode shows several shapes side by side with hidden answers.

Density Estimate Explorer

A histogram the learner regroups: drag the class width (and first cutpoint) and watch too-wide classes hide the shape and too-narrow ones turn it into spikes, switch between frequency, relative-frequency and density scales, read the linked frequency table, merge classes, or overlay a kernel density estimate built as a sum of bumps with a bandwidth slider.

Joint probability table

An editable two-way table of counts or probabilities with its marginals. Learners click a row or column label to condition on it (row/column profiles as 100% bars or a mosaic), click cells to build an event and read off its probability, compare the table with the product of its margins, and optionally see chi-squared, simulated tables under independence, conditional means and variances, covariance or entropies.

Null Distribution Simulator

The learner simulates thousands of data sets with the null hypothesis true and sees the test statistic's histogram against its claimed null law (t, F, chi-squared, normal, Kolmogorov) with the rejection region shaded, and the actual rejection rate against the nominal alpha; switching the parent distribution, group sizes and sds, within-group correlation or an effect slider shows when a test keeps its level, and level or power curves sweep a parameter.

Confidence Interval Stepper

The learner types the summary data (x-bar with sigma or s, or x successes out of n), picks the formula, level and sides, and steps through assumptions, estimate, standard error, critical value (with the R call), margin and the interval drawn on a number line, then the interpretation. A test mode steps a one-sample z-mean, t-mean or z-proportion test the same way, ending with the p-value shaded under N(0,1) or t, the decision and the conclusion in context; a choose mode asks which formula fits each scenario.

Confidence interval verdicts

A confidence interval on a number line. In the test view the learner drags the null value across it and watches the two-sided (or one-sided) test flip from 'fail to reject' to 'reject' exactly at the endpoints, where the p-value curve crosses alpha. In the practical, noninferiority and equivalence views the learner drags the estimate (or slides the SE, level or margin) and sees how the interval's position against 0 and a minimal important difference or margin decides the verdict; ratio measures can be read on log and linear axes.

Bootstrap Resampling Explorer

The learner resamples a data set with replacement (one resample at a time or in batches) and grows the bootstrap distribution of a statistic, comparing the bootstrap SE and shape with the true sampling distribution, reading percentile/basic/normal/BCa interval endpoints, racing their coverage over many fresh samples, and seeing failures such as the point mass at the sample maximum and its m-out-of-n repair.

Running Average Simulator

The learner runs many independent sample paths of a running mean (or relative frequency, or centred sum) against n, plays the paths forward, drags an inspection line and an epsilon band, and reads off how many paths are outside the band, the run-to-run spread versus sigma/sqrt(n), and Chebyshev or required-n figures. Covers the law of large numbers, Monte Carlo error and laws with no mean (Cauchy, zeta) that never settle.

Also used occasionally: Bar Chart versus Histogram, Empirical Rule Bands, Stem-and-Leaf Builder.

The general components (Equation Plotter, Flowchart, Surface Graph, …) work in every subject.