/* Reading notes, vernacular statistics series, trying to use Mandarin to tell the basic concept of statistics. The topic here is "decision and risk", which is about two types of errors (type I and type II errors). The following adaptations to the "mathematical statistics of the Primary course" (Chang-study will be translated, Taiyuan: Shanxi publishing House, 1986), the English name Statistics:an intuitive approach by George H. Weinberg and John Abraham Sc Humaker. The book is nearly extinct, when it returns to Wen Yuangang, with a view to the. */
1. Assumptions and decisions: scenarios
The original hypothesis: the coin is uniform. Alternative hypothesis: coins are biased.
/* When we have difficulty rejecting the original hypothesis, we can only conclude that the original hypothesis may be true and cannot be rejected now. And when we can reject it, the conclusion is: it must not be true. The following oral expression is not as clear (and awkward) as here, as the expression here prevail. */
Test: In a flat place, throw a coin independently 100 times, each time the results of the throw are recorded. Finally, the number of positive and negative occurrences were:
Front: 55 Reverse: 45
Question: Judging by the results you see, you accept or reject the hypothesis that the coin is uniform.
Dr.-R replied: "Reject this hypothesis because the number of positive numbers obtained exceeds the allowable bounds of the negative number, which indicates that the coin is biased." ”
-a doctor replied: "The assumption that the coin is homogeneous is accepted." We cannot accuse the coin of throwing 55 heads, 45 tails, and an even coin can throw this ratio. ”
Dr.-R: "What kind of result will make you reject that hypothesis?" I mean, there should be a difference between the positive number and the negative number to make you think the coin is biased. “
-A doctor: "At least 90 are facing 10 opposite sides, or 90 are facing 10 positive faces." If our decision is to reject a 55-to-45 ratio, or a higher percentage of coins, then this decision will allow us to pronounce many even coins that have been accidentally thrown at these ratios. Your opinion makes it too easy to criticize an even coin. ”
Dr.-R: "Too much!" at least 90-to-10 ratio. You said the coin was biased. You are overly credulous and will almost never be able to refuse the assumption that the coin is homogeneous. Admittedly, you rarely reject an even coin, but it's hard for you to refuse a coin that is biased. ”
The dialogue above should give the guys a sense of what the hypothesis tests mean. Can be summed up, the following table, the idea will be clear:
| Decision \ Hypothesis |
Really |
False |
| Refused |
Class I error Alpha |
No Errors 1-β |
| Accept |
No errors |
Category II Error beta |
The law of Dr. A (accept) is that unless the test gets a ratio of more than 90:10, the assumption that the coin is homogeneous is accepted. Dr. A hates the mistake of denying even coins ("abandonment", Category I Errors), and his law minimizes the probability of making such mistakes. Since the uniform coin rarely appears at a ratio of more than 90:10, he seldom risks taking a uniform coin as biased. The price he paid, however, was to significantly reduce the testing capability (power, see below), and his law made it extremely difficult to reject the hypothesis. A large number of biased coins will not appear as large as 90 to 10, so they will also be treated as even coins without being detected. It can be said that Dr. A has a preference for accepting assumptions, and when the hypothesis is true, he seldom makes a mistake of rejecting it, but when the hypothesis is not true, he often commits the mistake of accepting it.
The Law of Dr. R (Reject) is that unless the ratio is less than 55 to 45, the assumption that the coin is homogeneous is unacceptable, that is, only if the positive and negative number of the coin is within a narrow limit, she accepts the hypothesis. She sees the experiment as a security check in the United States at 9.11 ("Err on the side of 3,000, not miss one"), and it is important to detect a biased coin. Dr R's law has a minimal risk of accepting false assumptions ("take pseudo", category II errors), at the cost of increasing the risk of having a homogeneous coin to be biased. It can be said that Dr. R has a preference for the refusal hypothesis, and when the hypothesis happens not to be true, she seldom makes the mistake of accepting it, but when the hypothesis happens to be true, she often makes a mistake of rejecting it.
2-1. Decision-making and risk (test with uniform coins, category I errors)
An experiment is not enough to judge the two-bit doctor whose law is correct. Now, with an even coin (as we know, two doctors do not know, the original hypothesis here is that the coin is evenly spaced), put the above mentioned coin test, repeat 100 times (each trial by 100 throws composition), then, record the positive number X, will constitute a two-item distribution, X~B (N,P), wherein, n= 100,p=0.5. According to a central limit theorem, a normal distribution is the limit distribution of two distributions, the above two distributions can be approximated by the mean value np=50, and the variance is NP (1-P) =25 normal distribution. Because the two-item distribution only takes the integer value, there are many voids in the approximate normal curve, in order to correct this situation, we can enlarge 0.5 units at both ends of the integer to represent the number under the normal curve.
For Dr R, she accepted the hypothesis only if the number of positive throws was more than 45, less than 55 o'clock. Under normal curves, these two endpoints can be written in 45.5 and 54.5.
--|-/////-| ———
45.5 54.5
standardization, (45.5-50)/5=-0.9, (54.5-50)/5=0.9, according to the standard normal table, it is known that the receiving area of 45.5-54.5 includes 63% of the total area. In other words, a sample of 63% of the sample produced by throwing a uniform coin has a positive grumble in the receiving area, and accordingly, the probability of a negative field raised by Dr R in the positive is 37%. In other words, when the coin is homogeneous, Dr. R's probability of committing the category I error is 37%. For Dr. A, his acceptance area was between 10-90 and he would hardly commit category I errors.
2-2. Decision-making and risk (test with biased coins, category II errors, efficacy)
Now take a biased coin (as we know, two doctors do not know, the original hypothesis here or the coin is uniform), that is, the probability of casting a positive is not equal to One-second (note that the coin is biased, and do not have to specify the value of P, because the coin can have an infinite number of different ways). In order to evaluate how successful the two doctor's laws are in rejecting assumptions, we need to assign a bias to the coin, such as the probability of throwing a positive 0.6, doing the same 100 trials (100 throws per test), approximately a normal distribution, a mean np=60, and a variance of NP (1-P) = 24.
For Dr. A, his rule is that if the positive number received is between 10 and 90, the hypothesis will be accepted. Obviously, even if a biased coin gets a positive number, it is also in the receiving area of Dr. A. That is, when the probability of a coin appearing positive is 0.6, Dr. A often has to accept the assumption that the uniform coin, he almost always make category II errors.
For Dr R, her rule of thumb is to accept assumptions only if the resulting positive digits are between 45-55. It can be calculated that 45.5-54.5 of the area of the entire normal curve area of 13%, that is, in the use of the bias of 0.6 coins to do experiments, Dr. R mistakenly accepted the probability that the coin is uniform this hypothesis is 13% (class II error), accordingly, she correctly rejected the probability of the uniform coin hypothesis is 87%.
In the alternative hypothesis described here (where the coin is biased, the skewness is 0.6), Dr. A actually has no ability to detect the error of the original hypothesis (the coin is uniform), and Dr R has considerable ability to achieve (87%). Here 1-β=87% is also defined as power, i.e., When a particular original hypothesis arises, the probability of the original hypothesis is correctly rejected.
3. Hypothesis Testing
The above pains to emphasize the tradeoff between two kinds of mistakes. In our hypothesis tests, we took a law similar to Dr. A, minimizing the probability of committing the category I error (as far as possible), although this would increase the chance of committing category II errors ("Take false"). This is a conservative strategy, presumably because of the greater risk of committing the category I error, similar to the law of "presumption of innocence" in court:
The original hypothesis: the defendant is not guilty. Alternative hypothesis: The defendant is guilty
The defendant is not guilty of innocence unless there is special and sufficient evidence. Here, the cost of putting the innocent defendant to capital punishment (category I errors) is very large, and the release of the guilty Defendant (category II error) only adds a bit of judicial cost.
/* To be continued, the main purpose of the following is, in a similar way, to say what P-value is. */
from:http://cos.name/2008/12/decision-and-risk/#more-267