fedrcd_exact#

fedcausal.lingam.fedrcd_exact(sites, *, order=4, pruning='adaptive_lasso', lambda_selection='bic')[source]#

Find the causal order by deflating each site’s data, one round per source.

Each round the sites send the moment sums of their current data, the server picks the source by tau and the OLS coefficients on it, and every site deflates its data by them (x_j -= beta_j * x_s) and drops the source column. Runs the whole protocol in one process; fedcausal.flower.lingam.run_server_loop() with method="exact" is the same over Flower. With a single site this is HC (Chen et al., 2025), which is causalbase.lingam.rcd_exact().

Parameters:
sitessequence of array-like

Each site’s data, shape (n_k, p).

order{3, 4}, optional

Which tau discriminator to use, and so which moment sums the sites send.

pruning, lambda_selection

As in fedrcd().

Returns:
RCDResult

The estimated causal order and coefficient matrix.

Notes

p - 1 rounds of O(p^2) statistics each.