nx_analyst_causal_gate.nx
buildroot/runtime/nx_analyst_causal_gate.nx
about
nx_analyst_causal_gate.nx -- F1005. The role logic is trivial to assert; what this gate really has to
prove is WHY it must exist. So the centre of it is two EMPIRICAL demonstrations on real generated data,
where the identical operation -- "control for a third column" -- is right once and catastrophic twice:
T6 COLLIDER: two INDEPENDENT columns acquire a strong NEGATIVE partial correlation purely by
conditioning on their sum. The association is manufactured out of nothing.
T7 MEDIATOR: a real, strong x->m->y effect is driven toward ZERO by conditioning on m.
T8 CONFOUNDER: the same operation is CORRECT, collapsing a spurious link.
F1004's ai_confound_scan picks whichever control weakens the relationship most -- which in T6 and T7 is
exactly the wrong column. That is the defect this organ exists to gate.
D001-compliant verdict via nx_gate_verdict. license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_gate_verdict.nxnx_analyst_causal.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 14 | const CG_N: i64 = 60 |
functions
| 16 | func cg_eq(a: i64, b: i64) -> i64 { if a == b { return 1 } return 0 } called by 1: main |
| 17 | func cg_has(hay: *u8, needle: *u8) -> i64 called by 1: main |
| 33 | func main() -> i64 |