Statistics and machine learning datasets
MockDataLab builds seeded regression and classification tables you can inspect, rerun, and grade against a known generating rule. In real coursework and software tests, an observed table hides its true mean and noise variance, which makes it hard to tell whether a fitting script has a bug or whether the sample is simply noisy. Every specimen on this hub commits to an explicit formula or class geometry first, then draws inputs and adds controlled noise from a named unsigned 32-bit seed. Because both the clean column and the noisy column are written into the export, students and engineers can check fitted coefficients, residual variance, and decision boundaries directly against the generator.
Regression specimens draw one or two continuous inputs from uniform or normal distributions, evaluate the clean relationship, and add independent Gaussian noise plus optional outlier spikes. Classification specimens write a discrete label column instead of a continuous target, covering both linearly separable Gaussian clouds and interlocking crescents that defeat straight-line cuts. Every template runs entirely in your browser with no uploads and no server state, and every CSV, JSON, and Python snippet carries the line SYNTHETIC DATA - generated by MockDataLab (mockdatalab.com).
When none of the fixed specimens matches the equation your homework or benchmark needs, open the custom formula editor as an escape hatch. You can enter your own algebraic expression, name multiple inputs, choose uniform or normal ranges, adjust noise or outlier spikes, and download a reproducible table whose header records the exact expression and seed. Analytic time-series traces that used to sit alongside regression formulas now have their own home on the Signals & physics hub.
Domain
Data & ML
Templates
7 seeded
Runtime
Browser
Free-form bench
Need your own equation?
Type any algebraic formula, add multiple inputs, configure Gaussian/uniform noise or outliers, and export CSV, JSON, or Python.
Formula specimens
Synthetic quadratic dataset
seed 42Generate a seeded table for y = 3x² + sin(x), with Gaussian noise and a few outlier spikes. Preview the curve and download CSV, JSON, or Python.
Open specimen
Synthetic linear regression dataset
seed 7A seeded straight-line dataset, y = 1.8x + 0.4, with Gaussian noise. Use it to practice fitting, residuals, and reproducible CSV export.
Open specimen
Synthetic polynomial dataset
seed 11Generate a noisy cubic, 0.18x³ − 1.05x² + 0.4x + 2, for polynomial regression exercises. Same seed, same table, labeled synthetic.
Open specimen
Synthetic two-input regression dataset
seed 21A seeded dataset where y depends on x1 and x2, including an interaction term. One input is uniform, the other is normal, with Gaussian noise on y.
Open specimen
Classification specimens
Synthetic Gaussian blobs dataset
seed 5Three labeled Gaussian clusters on a circle, in the spirit of scikit-learn make_blobs. A seeded classification table with x1, x2, and a class label.
Open specimen
Synthetic moons classification dataset
seed 9Two interlocking half-circles with Gaussian coordinate noise, in the spirit of scikit-learn make_moons. Download a labeled synthetic CSV.
Open specimen
How the specimens differ
| Page | Mean | Noise | Seed |
|---|---|---|---|
| Quadratic | 3*x^2 + sin(x) | gaussian | 42 |
| Linear regression | 1.8*x + 0.4 | gaussian | 7 |
| Polynomial | 0.18*x^3 - 1.05*x^2 + 0.4*x + 2 | gaussian | 11 |
| Two inputs | 0.9*x1 - 1.3*x2 + 0.35*x1*x2 | gaussian | 21 |
| Blobs | blobs | cluster | 5 |
| Moons | moons | coordinate | 9 |
See also
Analytic time traces that previously lived alongside these formula tables now sit on the Signals & physics hub. Neighboring benches apply the same seeded honesty rule to other domains: the Shepp–Logan phantom generates teaching CT reconstructions, and the underdamped step response records an input beside a noisy plant output. Static CSV downloads for every template live on the dataset index.