BasisResearch / chirho

An experimental language for causal reasoning
https://basisresearch.github.io/chirho/getting_started.html
Apache License 2.0
164 stars 10 forks source link

Fixed bug in "Adding Uncertainty over Model Parameters" section of the tutorial #546

Closed michaelleejl closed 3 weeks ago

michaelleejl commented 4 weeks ago

In Adding Uncertainty over Model Parameters, (https://basisresearch.github.io/chirho/tutorial_i.html#Adding-Uncertainty-over-Model-Parameters), the following code snippet

def bayesian_population_causal_model(n_individuals):
    stress_prob, smokes_cond_prob, cancer_cond_prob = parameter_prior()
    return population_intervened_causal_model(
        n_individuals, stress_prob, smokes_cond_prob, cancer_cond_prob
    )

Calls population_intervened_causal_model. It should instead call population_causal_model.