Statistical testing cont’d
ML test: Smoke detector
Suppose that a smoke detector sensor is configured to produce
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,
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
Suppose that the background chance of smoke is
What are the three error probabilities? (Type I, Type II, Total.)
Solution
First, establish priors:
The MAP condition becomes:
Therefore,
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
Suppose that the background chance of smoke is
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,
The decision rule is: activate alarm when
Type I error:
Type II error:
Total error:
PMF of total cost:
Therefore
Mean square error
Minimal MSE estimate given PMF
Suppose
1 | 2 | 3 | 4 | 5 | |
---|---|---|---|---|---|
0.15 | 0.28 | 0.26 | 0.19 | 0.13 |
Find the minimal MSE estimate of
Solution
The minimal MSE given
First compute the conditional PMF:
Therefore:
The error is:
Minimal MSE estimate from joint PDF
Here is the joint PDF of
Find the minimal MSE estimate of
What is the estimate of
Answer
Estimating on a variable interval
Suppose that
(a) Find
Solution
(a) Find
We know
Given
(b) Find
We know
To compute this function, we calculate a sequence of densities.
We know
Now extract the marginal
Now deduce the conditional
Then:
So
(c) Find
We need all the basic statistics.
From this we infer
Hence:
Thus:
Line of minimal MSE given joint PDF
Here is the joint PDF of
Find the line giving the linear MSE estimate of
What is the expected error of this line,
What is the estimate of
Answer