A boosted AC circuit is supposed to maintain an average voltage of with a standard deviation of . Nothing else is known about the voltage distribution.
Design a two-tail test incorporating the data of 40 independent measurements to determine if the expected value of the voltage is truly . Use .
Solution
Use as the decision statistic, i.e. the sample mean of 40 measurements of .
Assume that in the background population in a specific demographic, the distribution of a person’s weight satisfies . Suppose that a pharmaceutical company has developed a weight-loss drug and plans to test it on a group of 64 individuals.
Design a test at the significance level to determine whether the drug is effective.
Solution
Since the drug is tested on 64 individuals, we use the sample mean as the decision statistic.
The Claim: “the drug is effective in reducing weight”
The null hypothesis : “no effect: weights on the drug still follow ”
Assuming is true, then .
⚠️ One-tail test because the drug is expected to reduce weight (unidirectional). Rejection region:
Calculate:
⚠️ Standardized is approximately normal!
(The standardization of removes the effect of . As if it’s the summation.)
First, we show that the MAP design selects for all those which render more likely than . This will be used in the next step to show that MAP minimizes probability of error.
Observe this calculation:
Recall the MAP criterion:
Divide both sides by and apply the above Calculation in reverse:
This is what we sought to prove.
Next, we verify that the MAP design minimizes the total probability of error.
The total probability of error is:
Expand this with summation notation (assuming the discrete case):
Now, how do we choose the set (and thus ) in such a way that this sum is minimized?
Since all terms are positive, and any may be placed in or in freely and independently of all other choices, the total sum is minimized when we minimize the impact of placing each .
Write for cost of false alarm, i.e. cost when is true but decided .
Probability of incurring cost is .
Write for cost of miss, i.e. cost when is true but decided .
Probability of incurring cost is .
Expected value of cost incurred
MC design
Suppose we know:
Both prior probabilities and
Both conditional distributions and (or and )
The minimum cost (MC) design for a decision statistic :
Discrete case:
Continuous case:
Then .
The MC design minimizes the expected value of the cost of error.
MC minimizes expected cost
Inside the argument that MAP minimizes total probability of error, we have this summation:
The expected value of the cost has a similar summation:
Following the same reasoning, we see that the cost is minimized if each is placed into precisely when the MC design condition is satisfied, and otherwise it is placed into .