Calculating Conditional Probability (Maybe using Bayes Theorem)

77 Views Asked by At

Well, I've a bunch of variables, viz $Age$, $Gender$, etc..

Age can take: values from $1$ to $6$ (which are actually coded) Gender can take: $0$ and $1$

I know the $$P(A=1),...,P(A=6), ... P(G=0), P(G=1)$$

Similarly, I also know $$P(A=1|G=0) , ... , P(A=6|G=0) , ... , P(A=1|G=1) , ... , P(A=6|G=1)$$ and vice versa, for all variables.

Suppose I now change the probability of the variable Age, (still maintaining that $P(A=1) + ... + P(A=6) = 1$. Now, I want that change to affect the probability of $P(G=0)$ and $P(G=1)$, how do I do that?