ML test: Smoke detector

Suppose that a smoke detector sensor is configured to produce when there is smoke, and otherwise. But there is background noise with distribution .

Design an ML test for the detector electronics to decide whether to activate the alarm.

What are the three error probabilities? (Type I, Type II, Total.)

Solution

First, establish the conditional distributions:

Density functions:


The ML condition becomes:


Therefore, is , while is .

The decision rule is: activate alarm when .


Type I error:

Type II error:

Total error:

MAP test: Smoke detector

Suppose that a smoke detector sensor is configured to produce when there is smoke, and otherwise. But there is background noise with distribution .

Suppose that the background chance of smoke is . Design a MAP test for the alarm.

What are the three error probabilities? (Type I, Type II, Total.)

Solution

First, establish priors:

The MAP condition becomes:


Therefore, is , while is .

The decision rule is: activate alarm when .


Type I error:

Type II error:

Total error:

MC Test: Smoke detector

Suppose that a smoke detector sensor is configured to produce when there is smoke, and otherwise. But there is background noise with distribution .

Suppose that the background chance of smoke is . Suppose the cost of a miss is the cost of a false alarm. Design an MC test for the alarm.

Compute the expected cost.

Solution

We have priors:

And we have costs:

(The ratio of these numbers is all that matters in the inequalities of the condition.)

The MC condition becomes:


Therefore, is , while is .

The decision rule is: activate alarm when .


Type I error:

Type II error:

Total error:


PMF of total cost:

Therefore .