Skip to content

Interactive simulator of missing-data & selection bias: drag sliders, watch β̂ warp, and build intuition about the impact of missing data (bias) in seconds

License

Notifications You must be signed in to change notification settings

dbann/selection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Missing-Data / Selection-Bias Visualizer

Interactive one-page demo that shows, in real time, how different missing-data mechanisms could bias regression.
Move the sliders, watch β̂ diverge from the truth, and build intuition about MCAR vs MNAR in seconds.

▶️ Live demo

Demo

Features

  • Percent-missing slider plus presets for MCAR, MNAR-by-X, MNAR-by-Y, X ∨ Y, Flatten and Steepen.
  • Live read-outs of βtrue, β̂, and a colour-coded bias gauge.
  • One-click resample to illustrate sampling variability.
  • Single HTML file

How was this made?

With AI! 'vibe coding' - that is, giving the idea to an AI (LLM) and asking it to implement it. I used a combination of LLMs (GPT, claude, gemini), and worked iteratively untill a reasonably useful tool was created - sometimes the LLMs make mistakes (errors, unwanted features etc). It was then hosted on github.

License

MIT License - see the LICENSE file for details.

Feedback

david.bann@ucl.ac.uk

About

Interactive simulator of missing-data & selection bias: drag sliders, watch β̂ warp, and build intuition about the impact of missing data (bias) in seconds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages