estimate_b_from_cov#
- causalbase.lingam.estimate_b_from_cov(causal_order, cov, prune_thres=0.0)[source]#
Estimate the coefficient matrix B by OLS.
- Parameters:
- causal_orderSequence[int]
Variable indices from source to sink.
- covnumpy.ndarray
Covariance matrix, shape
(p, p).- prune_thresfloat
Coefficients smaller than this in absolute value become zero.
- Returns:
- numpy.ndarray
B[child, parent], shape(p, p).