causally.scm.context.SCMContext.confounded_model

SCMContext.confounded_model(p_confounder: float)

Make the assumption of model with latent confounders.

Parameters:

p_confounder (float, default 0.2) – The probability of adding a latent common cause between a pair of nodes, parametrizing a Bernoulli random variable. The value provided must be in the range (0, 1].