Lecture 2
Contents
Sample Question
Question 1
If two dice are rolled, what is the probability that the sum of the upturned faces will equal 7?
Solution:
Assuming all 36 possible outcomes are equally likely. There are 6 outcomes that give a sum of 7:
Hence, the desired probability is
P(sum=7)=366=61.Question 2
A total of 36 members of a club play tennis, 28 play squash, and 18 play badminton. Furthermore, 22 of the members play both tennis and squash, 12 play both tennis and badminton, 9 play both squash and badminton, and 4 play all three sports. How many members of this club play at least one of three sports?
Solution:
Let N denote the number of members of the club. Let
- T = members that play tennis
- S = members that play squash
- B = members that play badminton
From the principle of inclusion-exclusion:
P(T∪S∪B)=P(T)+P(S)+P(B)−P(TS)−P(TB)−P(SB)+P(TSB) =36+28+18−22−12−9+4 =43Hence, 43 members play at least one sport.
Question 3
An insurance company classifies people as accident-prone or not.
- P(accident∣prone)=0.4
- P(accident∣not prone)=0.2
- P(prone)=0.3 What is the probability that new policy holder will have accident?
Solution The probability that a new policyholder will have an accident is:
P(A1)=P(A1∣A)P(A)+P(A1∣Ac)P(Ac)=0.4⋅0.3+0.2⋅0.7=0.26Question 4
At a certain stage of a criminal investigation, the inspector in charge is 60 percent convinced of the guilt of a certain suspect. Suppose, however, that a new piece of evidence which shows that the criminal has a certain characteristic (such as left-handedness, baldness, or brown hair) is uncovered. If 20 percent of the population possesses this characteristic, how certain of the guilt of the suspect should the inspector now be if it turns out that the suspect has the characteristic?
Solution
Letting G denote the event that the suspect is guilty and C the event that he possesses the characteristic of the criminal, we have P(G∣C)=P(C)P(GC) =P(C∣G)P(G)+P(C∣Gc)P(Gc)P(C∣G)P(G) =1(.6)+(.2)(.4)1(.6) ≈.882 where we have supposed that the probability of the suspect having the characteristic if he is, in fact, innocent is equal to .2, the proportion of the population possessing the characteristic.
Case Study: Smart Fire Detection in a Warehouse
A large logistics company has deployed a Smart Fire Detection System (SFDS) in its warehouse, utilizing an array of Internet of Things (IoT) sensors that monitor temperature, smoke density, and CO2 levels. The goal is to detect a fire (H1) while minimizing false alarms (H0).
The SFDS makes a detection decision D based on aggregated sensor data. A key component of the system is the Conditional Probability modeling of sensor readings, and the final decision rule is based on the Neyman-Pearson theorem to maintain a strict maximum on the false alarm rate.
System Parameters:
- Prior Probability: The probability of a fire occurring on any given day is P(H1)=0.001.
- Likelihoods: The system outputs a combined "Fire Score" S. The probability density functions (PDFs) for this score under the two hypotheses are modeled as:
- Under No Fire (H0): S∼Exponential(λ0), with λ0=1 (i.e., f(S∣H0)=e−S for S≥0).
- Under Fire (H1): S∼Exponential(λ1), with λ1=0.5 (i.e., f(S∣H1)=0.5e−0.5S for S≥0).
- Threshold: The SFDS declares a fire (D=H1) if the score S exceeds a certain threshold τ.
Questions:
- Conditional Probability (Type I Error): The company mandates that the Probability of False Alarm (Type I Error, α) must not exceed 0.05 (i.e., 5%) to avoid unnecessary operational disruption.
- Calculate the minimum detection threshold (τ) that the SFDS must use to satisfy this constraint. (α=P(D=H1∣H0)).
- Neyman-Pearson Theorem (Power): Given the threshold τ calculated in part 1 (rounded to four decimal places), determine the resulting Probability of Detection (Power, β) that the system achieves. (β=P(D=H1∣H1)).
- Bayesian Update (Posterior Probability): If the SFDS registers a fire score of S=3 and declares an alarm, what is the Posterior Probability that a fire has actually occurred? (P(H1∣S=3)).
Worked-Out Solution
1. Conditional Probability (Type I Error)
We must find τ such that PFA=α≤0.05.
PFA=α=∫τ∞f(S∣H0)dS α=∫τ∞e−SdS α=[−e−S]τ∞=0−(−e−τ)=e−τ
Setting α=0.05: e−τ=0.05 τ=−ln(0.05) τ≈2.9957
2. Neyman-Pearson Theorem (Power)
We use τ≈2.9957 to calculate the Probability of Detection (β): β=PD=∫τ∞f(S∣H1)dS β=∫2.9957∞0.5e−0.5SdS β=[−e−0.5S]2.9957∞ β=0−(−e−0.5×2.9957)=e−1.49785 β≈0.2236
3. Bayesian Update (Posterior Probability)
We use Bayes' Rule for P(H1∣S=3).
Given Values: P(H1)=0.001P(H0)=0.999 f(S=3∣H0)=e−3≈0.049787 f(S=3∣H1)=0.5e−0.5×3=0.5e−1.5≈0.111565
Bayes' Rule: P(H1∣S)=f(S∣H1)P(H1)+f(S∣H0)P(H0)f(S∣H1)P(H1)
Calculation: P(H1∣S=3)=(0.111565)(0.001)+(0.049787)(0.999)(0.111565)(0.001) P(H1∣S=3)=0.000111565+0.0497372130.000111565 P(H1∣S=3)≈0.0498487780.000111565 P(H1∣S=3)≈0.002238
Despite the high score and alarm, the probability that a fire has actually occurred is only about 0.2238%. The initial very low prior probability (0.1%) heavily influences the result, illustrating the low base rate problem in rare event detection.
Question 5
Similar case-study can also include multiple sensors with AND, OR type fusion of decisions.