Code & Apps
THE FORGE

Interactive apps for exploring modeling concepts.

These apps render best on a laptop or desktop browser.

About THE FORGE

These are teaching tools for exploring statistical and mathematical concepts in ways that are hard to show in a textbook and almost impossible to draw on a chalkboard. You control the inputs and see the results change in real time.

Each app walks through a concept across a sequence of tabs that start with guided examples and build toward more complexity. Most apps include a Blueprint panel with the underlying theory and math. Most also end with The Anvil, a sandbox for open-ended experimentation.

Every app ends with The Script, an R script that reproduces every number on its tabs.

These work best when you come in with some context from a lecture or reading. Use the guided tabs to build intuition, check the Blueprint when you want to see what's happening under the hood, then go to The Anvil and try to break things.

MA376 — Applied Statistics

Permutation Test Explorer Two-sample inference by shuffling labels: build the null distribution yourself, compare it with the t-test, and count how often each test rejects when there is no effect. OLS Basics Least squares by hand, a map of the SSE of every line, MAE against MSE with outliers, and a fit-by-eye challenge. Gauss-Markov The assumptions that make a regression printout trustworthy. Break each one with a dial and see what stops being true. Power and the F The Tomato Trial as curves. Build an F from plot yields, then watch α, β, power, and the minimum detectable effect move as n, df, and the garden layout change. KNN + CV Click any car to move the neighborhood, compare raw and normalized distance, and tune k by leave-one-out error. Bias-Variance Tradeoff Polynomial and KNN fits on the same data, the bias-variance decomposition by simulation, and a challenge to find the lowest test error. Regression & Regularization Collinearity, loss functions, robustness to outliers, the geometry of ridge and the LASSO, and coefficient paths tuned by cross-validation. Bootstrap & Cross-Validation The bootstrap standard error, bootstrap intervals and their coverage, cross-validation, and choosing a LASSO penalty. Link Functions Why a straight line fails for binary and count data, how a link fixes it, comparing links within a family, and reading log-odds and odds. Mixed Effects Simpson's paradox, fixed group effects, shrinkage toward the overall line, random slopes, and a binary-response challenge. Tree Methods Growing and pruning a decision tree, bagging, and random forests tuned by out-of-bag error.