lawsynth/crates/lawsynth-causal
caelum0x 8af85c6e28 style: format workspace to rustfmt.toml (use_small_heuristics = Max)
Bring the whole workspace into compliance with the repo's rustfmt config
(edition 2024, max_width 100, use_small_heuristics = "Max"), which had drifted
across many crates. Pure formatting — no logic changes; `cargo fmt --check` is
now clean and `cargo build --workspace` is green.
2026-08-18 16:59:40 +03:00
..
2026-08-16 22:04:11 +03:00
2026-08-16 22:04:11 +03:00
2026-08-16 22:04:11 +03:00
2026-08-16 22:04:11 +03:00

lawsynth-causal

lawsynth-causal provides auditable causal-structure primitives without making causal conclusions on behalf of a caller. CausalGraph is a DAG with explicit variables and acyclicity checks. granger_test fits nested autoregressions by ordinary least squares and reports the resulting predictive F statistic.

Use graph and time-order validation to encode scientific assumptions, then keep those assumptions with the result. Granger predictability is not evidence of an interventional effect; unmeasured confounding and contemporaneous effects are outside this crate's estimator.