Edge : Conditional dependence (direct cause)

Example

We notice the grass in our garden is wet, which might be caused by rain. Construct a Bayesian network to represent their probabilistic relationship, using the relevant CPT.

Solution : The probabilistic graphical model is :

We can use Binary Random Variables :

  • represents whether the grass is wet (1) or not (0).
  • represents whether it has been raining (1) or not (0). Probabilistic relationship : An edge represents the conditional dependence (“cause-effect” relationship) between the parent node (cause) and the child node (effect) : .

The Bayesian network with CPTs is :

Prior Knowledge :

  • Probability of raining through the day is :
  • The probability that the grass gets wet when it rains is :
  • The probability that the grass gets wet without raining (e.g., sprinkler on) is: Direct Cause : Inference In the “direct cause” structure, there are 2 random variables (nodes). Inference is the problem of finding out the “cause” variable when we only observed the “effect” variable.
  • Observed Variables : The ones we have knowledge about.
  • Unobserved (hidden) Variables : The ones we do not observe.

Question

If you observe the grass is wet, what’s the probability it rained ?

Solution : By Bayes’ rule

Calculate the marginal probability of Wet Grass :

Putting it back into the denominator :

Interpretation :

  • The above inference is called diagnosis i.e., to obtain P(Cause | Effect).
  • Conclusion : Knowing that the grass is wet increased the probability it rained from to .

Conditional Independence : Why It Matters ?

The Full Joint Distribution :

Graphical Representation :

Parameter Count :

  • Suppose are binary variables .
  • Full joint distribution requires parameters.
  • With conditional independence, we have so only need parameters.

Indirect cause

Consider the following: Cloudy influences Rain, so we have:

Hence, wetGrass is independent of cloudy give rain. The joint distribution encoded in this graph is :

Common Cause

It is natural to suppose the cloudy weather influence our decision to turn on the sprinkler or not and cloudy weather will also influence the chance of rain, we model this “common cause” probabilistic relationship using :

The joint probability distribution:

If C is observed, then S and R are independent.

Common Effect

Suppose we identify another cause of wet grass, the sprinkler, we can then model the relationship as a converging connection (Common effects):

The joint probability distribution :

If neither W nor any of its descendants are observed, then S and R are independent. Explaining away : If we can confirm one cause (e.g., rain is true) of an observation (e.g., grass is wet), it reduces the need to invoke alternative causes, e.g., sprinkler is on.