Berkson's Paradox Simulator

Filter independent traits on a shared selection rule and see the selected-sample association emerge.

Population x trials must be at most 5,000,000.

Population x trials must be at most 5,000,000.

The population traits are independent. The selected sample is filtered.

Population phi

0.000

Selected phi

-0.500

Selection rule
selected if A or B
Selection rate
75.0%
Mean simulated selected phi
Not run
Expected tables
CellPopulationSelected

Run the simulation to fill Monte Carlo metrics and convergence.

Monte Carlo convergence
TrialMean selected phi
Export

phi = (both * neither - A-only * B-only) / sqrt(row and column margins) How?

How this is calculated

The full population starts with independent binary traits. The selected sample keeps only cases where trait A or trait B is present, which removes the neither cell and can create a negative association.

Formula: phi = (both * neither - A-only * B-only) / sqrt(row and column margins)

Sources

  1. Berkson's paradox overview. Wikipedia. Retrieved .
  2. Collider effect educational note. arXiv. Retrieved .

Method last reviewed