Home▸Molecular Biology▸Mendelian Randomization: Confounded Regression vs Genetic Instrument (2D)

Mendelian Randomization: Confounded Regression vs Genetic Instrument (2D)

The same instrumental-variable model in 2D: a scatter of a simulated cohort with the true, OLS and Mendelian-randomization slopes, and the histogram of estimates over repeated cohorts. Teaching model with Gaussian variables.

Molecular Biology2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Mendelian Randomization: Confounded Regression vs Genetic Instrument (2D) ↗ Open standalone

Does an exposure really cause an outcome, or is a hidden confounder fooling the regression? Use a genetic variant as a natural randomiser: the ratio of its effect on the outcome to its effect on the exposure recovers the causal effect. Change instrument strength, confounding, pleiotropy and cohort size, and watch a cloud of people, the OLS and instrument lines and the spread of estimates over repeated cohorts. A Blender-built cohort plot with numerical checks of the instrumental-variable formulas.

⚙ Under the hood

The same instrumental-variable model in 2D: a scatter of a simulated cohort with the true, OLS and Mendelian-randomization slopes, and the histogram of estimates over repeated cohorts. Teaching model with Gaussian variables.

Mendelian RandomizationInstrumental VariableConfoundingPleiotropyWeak Instrument

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

What did you find?

Add reproduction steps (optional)