Exercise: Checking the sum and product rules

9.1. Exercise: Checking the sum and product rules#

Goal: Check using a very simple example that the Bayesian rules are consistent with standard probabilities based on frequencies. Also reinforce notation and vocabulary.

Reference: Bayesian rules of probability#

Notation: \(\prob(x \mid I)\) is the probability of \(x\) being true given information \(I\) (we do not give the generalizations to pdfs here).

  1. Sum rule: If set \(\{x_i\}\) is exhaustive and exclusive,

\[ \sum_i \prob(x_i \mid I) = 1 \]
  • cf. complete and orthonormal

  • implies marginalization (cf. inserting complete set of states or integrating out variables - but be careful!)

\[ \prob(x \mid I) = \sum_j \prob(x,y_j \mid I) \]
  1. Product rule: expanding a joint probability of \(x\) and \(y\)

\[ { \prob(x,y \mid I) = \prob(x \mid y,I)\,\prob(y \mid I) = \prob(y \mid x,I)\,\prob(x \mid I)} \]
  • If \(x\) and \(y\) are mutually independent: \(\prob(x \mid y,I) = \prob(x \mid I)\), then

\[ \prob(x,y \mid I) \longrightarrow \prob(x \mid I)\,\prob(y \mid I) \]
  • Rearranging the second equality yields Bayes’ Rule (or Theorem)

\[ \color{blue}{\prob(x \mid y,I) = \frac{\prob(y \mid x,I)\, \prob(x \mid I)}{\prob(y \mid I)}} \]

Answer all the questions#

TABLE 1

Blue

Brown

Total

Tall

1

17

18

Short

37

20

57

Total

38

37

75

TABLE 2

Blue

Brown

Total

Tall

 

 

 

Short

 

 

 

Total

 

 

 

Question 1

Table 1 shows the number of blue- or brown-eyed and tall or short individuals in a population of 75. (a) Fill in the blanks in Table 2 with probabilities (in decimals with three places, not fractions) based on the usual “frequentist” interpretations of probability (which would say that the probability of randomly drawing an ace from a deck of cards is 4/52 = 1/13).
(b) Put x’s in any row and/or column that illustrates marginalization and y’s for entries illustrating the sum rule.

Question 2

(a) What is \(\prob(short, blue)\)? Is this a joint or conditional probability?
(b) What is \(\prob(blue)\)?
(c) From the product rule, what is \(\prob(short | blue)\)? Can you read this result directly from the table?

Question 3

Apply Bayes’ theorem to find \(\prob(blue | short)\) from your answers to the last part.

Question 4

What rule does the second row (the one starting with “Short”) illustrate? Write it out in \(\prob(\cdot)\) notation.

Question 5

Are the probabilities of being tall and having brown eyes mutually independent? Why or why not?