One-tail test: Weighted die
Your friend gives you a single regular die, and say she is worried that it has been weighted to prefer the outcome of 2. She wants you to test it.
Design a significance test for the data of 20 rolls of the die to determine whether the die is weighted. Use significance level
Solution
(1) Let
The Claim: “the die is weighted to prefer 2”
The null hypothesis
Assuming
(2) ⚠️ Notice that “prefer 2” implies the claim is for more 2s than normal.
Therefore: Choose a one-tail rejection set.
Need
- Equivalently:
(3) Solve for
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | |
|---|---|---|---|---|---|---|---|---|
| 0.026 | 0.130 | 0.329 | 0.567 | 0.769 | 0.898 | 0.963 | 0.989 |
Therefore, choose
The final answer is:
Two-tail test: Circuit voltage
A boosted AC circuit is supposed to maintain an average voltage of
Design a two-tail test incorporating the data of 40 independent measurements to determine if the expected value of the voltage is truly
Solution
(1) Use
The Claim to test:
Rejection region:
where
(2) Assuming
Recall Chebyshev’s inequality:
(3) Now solve:
Therefore the rejection region should be:
One-tail test with a Gaussian: Weight loss drug
Assume that in the background population in a specific demographic, the distribution of a person’s weight
Design a test at the
Solution
(1) Since the drug is tested on 64 individuals, we use the sample mean
The Claim: “the drug is effective in reducing weight”
The null hypothesis
Assuming
⚠️ One-tail test because the drug is expected to reduce weight (unidirectional).
Rejection region:
(2) Compute that
Since
(3) Furthermore:
Then:
(4) Solve:
Therefore, the rejection region:
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
(1) First, establish the conditional distributions:
Density functions:
(2) The ML condition becomes:
(3) Therefore,
The decision rule is: activate alarm when
(4) 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
(1) First, establish priors:
The MAP condition becomes:
(2) Therefore,
The decision rule is: activate alarm when
(3) 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
(1) 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:
(2) Therefore,
The decision rule is: activate alarm when
(3) Type I error:
Type II error:
Total error:
(4) PMF of total cost:
Therefore