HomeData ScienceMissing Data Imputation Lab: Mean, KNN & Regression Fill

Missing Data Imputation Lab: Mean, KNN & Regression Fill

Interactive 2D lab: hide values in a correlated synthetic dataset under MCAR or biased MAR missingness, then compare mean, median, KNN and regression imputation against the true hidden values across linked scatter panels with live RMSE, variance-ratio and per-row error readouts.

Data Science2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-ds-topic-94 ↗ Open standalone

Real datasets arrive with holes, and how you fill them changes every model built downstream. This simulator generates a correlated three-feature synthetic dataset, hides a chosen fraction of one feature either completely at random (MCAR) or in a way that depends on another observed feature (MAR), and then reconstructs the missing values with mean, median, k-nearest-neighbour or linear-regression imputation — or removes the incomplete rows entirely. Because the dataset is synthetic, the true hidden values are known: each reconstructed point is drawn next to a translucent ghost of its real value in a linked pair of pannable, zoomable scatter panels, while a sorted error-bar panel and live RMSE / variance-ratio readouts show exactly how much error and variance distortion each strategy introduces, especially once the missingness itself becomes biased.

⚙ Under the hood

Hide values in a correlated synthetic dataset under MCAR or biased MAR missingness, then compare mean, median, KNN and regression imputation against the true hidden values across linked pannable scatter panels — target space, predictor space and a sorted per-row error chart — with live RMSE and variance-ratio readouts.

data preprocessingmissing dataimputationKNNregressiondata science

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)