Skip to main content

Causality Diagram

A learning component illustrating the impact of a confounding variable when assessing a causal relationship between two variables and of randomization.

Options

  • x | (string|node): name of explanatory variable. Default: 'Lights at Night'.
  • y | (string|node): name of response variable. Default: 'Child Myopia'.
  • z | (string|node): name of confounding variable. Default: 'Parental Myopia'.

Examples

Live Editor
Result

Randomized Assignment

05

05

05
YXZ
ZNo ZXNo XYNo Y
XNo XNo YY
Z
XNo XNo YY
No Z
XNo XNo YY
Observed Relationship