ผลต่างระหว่างรุ่นของ "Probstat/notes/hypothesis testing"
Jittat (คุย | มีส่วนร่วม) |
Jittat (คุย | มีส่วนร่วม) |
||
แถว 34: | แถว 34: | ||
: '''H<sub>0</sub>''': "the probability that the coin turns up head is 0.5". | : '''H<sub>0</sub>''': "the probability that the coin turns up head is 0.5". | ||
− | If the | + | If the experimental result contradicts this hypothesis, we can reject it. However, note that it is impossible to completely contradict this hypothesis, even with a result that shows 1000 heads in 1000 coin tosses does not contradict this hypothesis because there is non-zero probability to obtain that result. Therefore, we are happy with a result which is "unlikely" enough. The degree of "unlikely" matters in our confidence in rejecting the hypothesis. |
+ | |||
+ | Consider this criteria: | ||
+ | |||
+ | : We shall reject <math>H_0</math> if after tossing the coin for 20 times, we get at least 18 heads. | ||
== The null hypothesis == | == The null hypothesis == |
รุ่นแก้ไขเมื่อ 03:46, 8 ธันวาคม 2557
- This is part of probstat.
Since it is very hard to obtain complete information of the population, we usually end up with a collection of much smaller sample data. A question arises: how can we be confident if the conclusion we make from the collected sample is correct or it is only by chance?
This section tries to answer this question.
เนื้อหา
A motivating example
You friend gives you a coin and claims that this coin is special. (It is unclear what special is about this coin.)
You want to prove it so you toss the coin for 20 times.
If you get 10 heads, do you believe your friend that the coin is special?
If you get 12 heads, do you believe your friend that the coin is special?
How about 15 heads? How about 18 heads? How about 20 heads?
Let's consider each case.
10: What is the probability that a normal coin turns up at least 10 heads from 20 coin tosses? 58% So that this does not show anything special about this coin.
12: What is the probability that a normal coin turns up at least 12 heads from 20 coin tosses? 25% So this coin might be a bit special?
15: What is the probability that a normal coin turns up at least 15 heads from 20 coin tosses? 2% This coin is special or I am very lucky.
18: What is the probability that a normal coin turns up at least 18 heads from 20 coin tosses? 0.02% This coin is special or I am extremely lucky.
20: What is the probability that a normal coin turns up at least 20 heads from 20 coin tosses? about 1 in a million. I definitely should believe that this coin is special.
Let's go back to our reasoning in the previous coin example.
We want to reject some belief, i.e., that the coin is normal. In this case, that the normality is in the probability of turning up head. So the hypothesis that we want to test (or reject) is the following:
- H0: "the probability that the coin turns up head is 0.5".
If the experimental result contradicts this hypothesis, we can reject it. However, note that it is impossible to completely contradict this hypothesis, even with a result that shows 1000 heads in 1000 coin tosses does not contradict this hypothesis because there is non-zero probability to obtain that result. Therefore, we are happy with a result which is "unlikely" enough. The degree of "unlikely" matters in our confidence in rejecting the hypothesis.
Consider this criteria:
- We shall reject if after tossing the coin for 20 times, we get at least 18 heads.