Alexander
Professor Abuabara
DAEN 427
College Station, 13 Dec 2025

Practice questions

Rubric: Full credit may be given for any reasonable Bayesian analysis.

1) Probability of being sunny

From the following expressions, which one corresponds to the sentence: The probability of being sunny given that it is June 14th of 1976?

(a)
p(sunny)
(b)
p(sunnyJune)
(c)
p(sunnyJune 14th of 1976)
(d)
p(June 14th of 1976sunny)
(e)
p(sunny,June 14th of 1976)p(June 14th of 1976)

2) Picking a Pope

Show that the probability of choosing a human at random and picking the Pope is not the same as the probability of the Pope being human. In the animated series Futurama, the (Space) Pope is a reptile. How does this change your previous calculations?

PIC

3) Broken telephone

Consider the following simplified version of the broken telephone game. A first player secretly communicates a message m1 {0,1,2} to a second player with probabilities

P(m1 = 0) = P(m1 = 1) = P(m1 = 2) = 1 3.

The second player then secretly communicates a message m2 = m1 + n to a third (final) player, where

P(n = 0) = 2 3,P(n = +1) = 1 3.

(a)
What is the optimal Bayes classification of the message received by the last player?
(b)
What is the expected error probability?

4) Binary classification

Consider the following binary classification problem with losses L(C,Cpred):

Cpred = +1 Cpred = 1 C = +1 0 100 C = 1 10 0

Your prior is

P(C = +1) = 1 10.

(a)
What is the optimal classifier (and expected loss) based only on the prior distribution?
(b)
Suppose you can run an experiment with binary outcomes x {0,1} with likelihoods
P(x = 1C = +1) = 3 4,P(x = 1C = 1) = 1 20.

Find the classifier that minimizes expected loss. Compute the optimal expected loss and compare with part (a).

Answers

1) Probability of being sunny

The correct answers are (c) and (e).

The last one follows from the definition of conditional probability.

2) Picking a Pope

Let’s assume there are 7.8 108 humans and there is only one Pope (Pope Leo XIV at the time of this writing). If a human is picked at random from the entire human population, the chances of that human being the pope are 1 in 7.8 108.

p(Popehuman) = 1 7.8 108

Because Pope is selected among humans. We can assert that given someone is the Pope, there is 100% chance he is a human. So, p(humanPope) = 1.

Regarding the animated series Futurama and the space Pope is a reptile. We then have that p(Popehuman) = 0 and p(humanPope) = 0.

3) Broken telephone

(a)
Note that m2 {0,1,2,3} and
P(m2 = m1m1) = 2 3P(m2 = m1 + 1m1) = 1 3

Hence the posterior distribution is:

P(m1 = 0m2) = { 2 3 1 3 2 3 1 3 +01 3 +01 3 = 1,m2 = 0 1 3 1 3 1 3 1 3 +2 3 1 3 +01 3 = 1 3,m2 = 1 01 3 01 3 +1 3 1 3 +2 3 1 3 = 0,m2 = 2 01 3 01 3 +01 3 +1 3 1 3 = 0,m2 = 3.
P(m1 = 1m2) = { 01 3 01 3 +1 3 1 3 +01 3 = 0,m2 = 0 2 3 1 3 2 3 1 3 +1 3 1 3 +01 3 = 2 3,m2 = 1 1 3 1 3 1 3 1 3 +2 3 1 3 +01 3 = 1 3,m2 = 2 01 3 01 2 +01 3 +1 3 1 3 = 0,m2 = 3.

and P(m1 = 2m2) = 1 P(m1 = 0m2) P(m1 = 1m2).

Hence,

m1𝑝𝑟𝑒𝑑(m2) = { 0,m2 = 0 1,m2 = 1 2,m2 = 2 2,m2 = 3.
(b)
P(m1 = 0m2 = 1)P(m2 = 1)+P(m1 = 1m2 = 2)P(m2 = 2) = 1 3 1 3 +1 3 1 3 = 2 9

4) Binary classification

(a)
The a priori Bayes classifier is Cpred𝑀𝐴𝑃 = 1 because P(C = +1) < P(C = 1). However, this is not the classifier the minimizes expected loss since: 𝔼[L(C,Cpred = +1)] = 10P(C = 1) = 9 < 𝔼[L(C,Cpred = 1)] = 100P(C = +1) = 10

The optimal expected loss is 𝔼[L(C,Cpred = +1)] = 10P(C = 1) = 9.

(b)
The posterior distribution is:
P(C = +1x) = { 3 4 1 10 3 4 1 10 + 1 20 9 10 = 0.625 x = 1 1 4 1 10 1 4 1 10 +19 20 9 10 = 0.0284 x = 0

Hence,

𝔼[L(C, Cpred = +1)x = 1] = 10P(C = 1x = 1) = 3.75 < 𝔼[L(C,Cpred = 1)x = 1] = 100P(C = +1x = 1) = 62.5

and

𝔼[L(C, Cpred = +1)x = 0] = 10P(C = 1x = 0) = 9.71 > 𝔼[L(C,Cpred = 1)x = 0] = 100P(C = +1x = 0) = 2.84

Hence, the optimal classifier is:

Cpred(x) = { + 1 x = 1 1 x = 0

The expected loss under optimal classifier is:

𝔼[L(C,Cpred(x))] = 10P(C = 1x = 1)P(x = 1)+ 100P(C = +1x = 0)P(x = 0) = 10(0.375)P(x = 1) + 100(0.0284)P(x = 0) = 10(0.375)(0.12) + 100(0.0284)(0.88) = 2.93 < 9

Return DAEN 427 home