Given the full joint pmf of three discrete variables as a 3-D array joint[x0, x1, x2] (non-negative, summing to 1), report which independence statements hold.
Implement independence_report(joint, tol=1e-9) returning a dict with exactly these keys, each mapped to a Python bool:
"0_1", "0_2", "1_2": marginal independence of each pair, for all values, where the pair's joint is obtained by summing out the third variable."0_1|2", "0_2|1", "1_2|0": conditional independence of the pair given the remaining variable , for every value with (values of with zero probability impose no constraint)."mutual": the three variables are mutually independent: all three pairs are marginally independent and .An equality "holds" when the largest absolute difference between the two sides, over all entries compared, is at most tol.