Professional Documents
Culture Documents
Problem 1 Suppose at any moment, the probability of fire in a classroom is α. Suppose the
conditional probability of alarm given fire is β, and the conditional probability of alarm given
no fire is γ. Calculate the conditional probability of fire given alarm. How come P (f ire|alarm)
and P (alarm|f ire) can be so different? Please explain your calculation by counting hypothetical
repetitions. For instance, suppose α = 1/1000, and β = 99/100, and γ = 2/100. Imagine we repeat
the experiments 100,000 times. Then on average, 100 times there is fire. Out of these 100 times,
99 times there is alarm, and so on.
A: Let A be the event of alarm, and F be the event of fire.
P (A) = P (F )P (A|F ) + P (F c )P (A|F c ) = αβ + (1 − α)γ.
P (F ∩ A)
P (F |A) =
P (A)
P (F )P (A|F )
=
P (F )P (A|F ) + P (F c )P (A|F c )
αβ
= .
αβ + (1 − α)γ
https://www.norsys.com/tutorials/netica/secA/tut_A1.htm