Calculates the posterior probability of the risk event given observations of the root causes.
Arguments
- cause_probs
A vector of prior probabilities for each root cause 'C_i'.
- risks_given_causes
A vector of conditional probabilities of the risk event 'R' given each cause 'C_i'.
- risks_given_not_causes
A vector of conditional probabilities of the risk event 'R' given not each cause 'C_i'.
- observed_causes
A vector of observed values for each cause 'C_i' (1 if observed, 0 if not observed, NA if unobserved).