Remove the known distance term
Faint dots are the full population; opaque dots are the selected slice. There is no direct X-to-Y link in this generating model. A finite slice still contains distance variation; its correlation need not vanish.
Try this
- Choose Whole population. Both log-fluxes contain the same distance term, so their apparent relation can be strong.
- Choose Narrow distance slice. Fewer galaxies are highlighted. Compare its correlation with the whole sample and the intrinsic residuals without changing any galaxies.
- Increase intrinsic scatter. Does a common cause always produce an obvious correlation?
- Set scatter to zero. The measured fluxes then follow exactly the same distance trend, while both intrinsic properties are constants: their Pearson correlation is undefined, not zero.
The known common cause
The model is X = −2Z + εx and Y = −2Z + εy, with Z uniform on [0, 1] and independent Normal intrinsic terms of SD σ. Z represents a rescaled log-distance; the flux zero points are arbitrary. There are no flux limits or measurement errors.
The whole-population correlation is (1/3)/(1/3 + σ²). Within a distance interval of actual clipped width w, it is (w²/3)/(w²/3 + σ²). These are population values, not the finite sample correlations shown in the cards. Random fluctuations remain, especially in narrow slices.
Conditioning on an exact known distance makes the two intrinsic terms independent here. A finite-width slice is not exact conditioning. The residual panel subtracts the known generating distance effect; it is not a fitted deconfounding procedure. For positive scatter, its population correlation and the exact-distance conditional correlation are zero. At zero scatter its variances vanish, so Pearson r is undefined.
This demonstration establishes a common cause because its generating model is known. In real observations, conditioning on a convenient variable does not by itself establish causality and can introduce collider bias. Intrinsic correlations, uncertain distances, selection and measurement errors would need their own model.
Changing a slice only selects from the cached population. Changing scatter rescales the same intrinsic Normal draws. Only New realisation or a different seed generates a different population.