BN-Assignment-2
Consider the following Bayesian networks with the following nodes
- R (Rain): it is raining or not, with binary values
: it is raining and : it is not raining. - L (Leaves): there are juicy leaves or not,
- Q (Quokkas Happiness): the quokkas are happy or unhappy,
- T (Tourists): there are lots of tourists or not many,
- S (Selfie Quokka): people are taking lots of quokka selfies, or not,

Question 1.
Write the chain rule for the joint distribution
Question 2.
What is the probability that there are many tourists?
Given joint distribution:
We want:
using Variable Elimination (VE).
We will keep
- Find all factors containing
: - Eliminate
- Only factor with
: .
- Only factor with
Remaining:
. Eliminate
- Multiply the factors with
and sum out :
- Multiply the factors with
- Eliminate
- Combine factors with
and sum out :
- Combine factors with
- With
:
- Eliminate
Question 3.
What is the probability that the quokkas are happy, given there are lots of quokka selfies being taken and it is raining.
- Factorization & evidence
- Evidence:
. Substitute to get factors
(
Eliminate variables
(keep ). Eliminate
- Numbers:
- Eliminate
- Numbers:
- Combine & normalize