Compute the structural intervention distance between the DAG dag and the estimated DAG (or CPDAG) est_g. The structural intervention distance is defined as in the paper from Peters J., and Bühlmann P., https://www.mitpressjournals.org/doi/full/10.1162/NECO_a_00708. In general, the structural intervention distance is not symmetric, i.e., compute_str_int_distance(dag, est_g) != compute_str_int_distance(est_g, dag).

compute_str_int_distance(dag, est_g)

Arguments

est_g

Square binary matrix. The estimated DAG or CPDAG.

Value

Numeric --- between 0 and 1. The structural intervention distance between the DAG dag and the DAG (or CPDAG) est_g.