I am studying Bayesian Networks. Given that variables:
$W$: Wet grass
$R$: Rain
$S$: Sprinkler
I know the probabilities of:
$P(C)$
$P(S | C)$
$P(S | !C)$
$P(R | C)$
$P(R | !C)$
$P(W | R,S)$
$P(W | R,!S)$
$P(W | !R,S)$
$P(W | !R,!S)$
with them how can I calculate:
$P(R|W) = ?$
and
$P(R|S, W) = ?$
Here is my Bayesian Network:
PS: I could calculate P(S) and P(R). If anybody can just show me how to find P(R|S) I may solve this question.