SOCR · Data Science and Predictive Analytics, third edition

Statistical instruments you can turn, break, and read.

Each lab isolates one idea from the DSPA3 textbook that is easy to state and easy to get wrong — then hands you the controls that make the consequence obvious. Everything computes in your browser in TypeScript: no R, no installation, no server.

8
interactive labs live
42
labs mapped to the textbook
14
chapters, 9 clusters
0
bytes of your data uploaded

Predict, then observe

Every lab opens with a prompt whose most popular answer is wrong. The reveal comes from the instrument, not from prose.

Numerics you can inspect

Seeded RNG, QR and SVD, coordinate-descent LASSO, ROC and calibration — all pure TypeScript, all deterministic.

Every state has a URL

Found a pathological case? Copy the permalink. It reopens the exact scenario, controls and all.

Built for two audiences

Students get guided sequences and an R bridge back to the book. Teachers get presets, prompts, and teacher mode.

Start with the flagships

One lab per major theme, each carrying the misconception its chapter exists to correct.

Full catalogue
Ch 1 · 1.4
Simulator

Sampling Distributions & the Limits of the CLT

Separate the distribution of the data from the distribution of a statistic, and find where the central limit theorem stops applying.

15 min
Ch 2 · 2.3
Misconception

Missingness Mechanisms: MCAR, MAR, MNAR

Delete data three different ways and watch which repairs work, which fail, and why more data never fixes a biased mechanism.

18 min
Ch 3 · 3.5
Diagnostic

Conditioning, Collinearity, and Unstable Coefficients

Watch the condition number of a design matrix explode and see exactly which quantities become unidentifiable — and which do not.

20 min
Ch 4 · 4.2
Explorer

PCA Geometry: Projection, Scale, and What Variance Means

Rotate a data cloud, change a measurement unit, and see principal components move — the projection is geometry, not magic.

18 min
Ch 5 · 5.6
Comparator

Accuracy Is a Trap: Metrics Under Class Imbalance

Move a threshold, move the prevalence, and watch which performance numbers stay honest and which quietly lie.

20 min
Ch 8 · 8.4
Comparator

Cluster Geometry: k-means, DBSCAN, and Shapes That Break Them

Compare centroid and density clustering on blobs, moons, and pure noise — and see why the elbow plot cannot tell you k.

22 min
Ch 9 · 9.5
Misconception

Calibration Is Not Discrimination

Distort a model's probabilities without touching its ranking: AUC does not move a decimal place while every probability becomes wrong.

18 min
Ch 11 · 11.3
Explorer

LASSO Paths, Cross-Validation, and False Discoveries

Trace coefficients from saturated to empty, then discover that the cross-validated λ is tuned for prediction — not for finding the right variables.

25 min

Nine clusters, fourteen chapters

Foundations & Data Quality

Ch 1, 2

Simulation, reproducibility, floating point, missingness mechanisms, robustness, and multiplicity.

2 live · 8 mapped

Mathematical Core

Ch 3, 4

Matrix computing, conditioning, projection geometry, and linear/nonlinear dimensionality reduction.

2 live · 6 mapped

Supervised Learning

Ch 5, 6

Bayes error, kNN boundaries, metric families, leakage, kernels, ensembles, and backpropagation.

1 live · 6 mapped

Unsupervised Learning & Text

Ch 7, 8

TF-IDF geometry, association rules, k-means, DBSCAN, spectral clustering, and mixtures.

1 live · 5 mapped

Validation & Feature Selection

Ch 9, 11

Resampling, calibration versus discrimination, decision curves, LASSO paths, and knockoffs.

2 live · 6 mapped

Systems & Performance

Ch 10

Columnar formats, chunking, Amdahl's law, and streaming computation in the browser.

0 live · 2 mapped

Temporal & Longitudinal

Ch 12

Autocorrelation, stationarity, filtering, survival curves, and forecast validation.

0 live · 3 mapped

Optimization

Ch 13

Loss landscapes, gradient descent variants, constraints, and Bayesian optimization.

0 live · 3 mapped

Deep Learning

Ch 14

Backpropagation, convolution, sequence models, generative models, and generalization.

0 live · 3 mapped