Download presentation
Presentation is loading. Please wait.
1
Statistics 03 Hypothesis Testing ( 假设检验 )
2
When we have two sets of data and we want to know whether there is any statistically significant difference between them, we can use hypothesis testing.
3
Principles of hypothesis testing Small probability event: Something that is very unlikely to take place When something is a small probability event, we usually take it as false. When a small probability event takes place, we take it as true. e.g. Win a lottery
4
Null hypothesis As a procedure in hypothesis testing, we usually have to establish a null hypothesis, a hypothesis that there is no significant variability between the two sets of data compared. H 0 : μ=μ 0 Underlying principle: the variability is caused by random errors. Therefore small probability events do not take place.
5
Hypothesis
6
Alternative hypothesis We need to establish a second hypothesis: alternative hypothesis as an opposite to the null hypothesis. H 1 : μ≠μ 0 In the alternative hypothesis, the small probability event takes place. The variability between the two sets of data compared is no longer caused by random errors. It is the result of systematic difference.
7
Case: Comparison of means Class A has been given a special kind of instruction. We want to know the effect of this methodology. Class A took the same test as the other students. We got the data as follows: Class A mean: 72 n: 45 The other classes mean: 69 s: 5
8
Analysis Class A: a sample with a mean μ=72 The others: the population where the sample is taken with the mean μ 0 =69 The special methodology should have brought about some systematic effect on Class A. Such an effect is not a small probability event. Therefore Null hypothesis: no significant difference between Class A and the other classes in spite of the special teaching methodology. i.e. H 0 : μ=μ 0 Alternative hypothesis: difference is significant. i.e. H 1 : μ≠μ 0
9
Computation 1. Establish the null hypothesis and the alternative hypothesis H 0 : μ=μ 0 H 1 : μ≠μ 0 2. Calculate the Z value |Z|=|(μ-μ 0 )/ (σ 0 /√n)| 3. Look up in the Normal Distribution Table for Z α, usually Z α/2=0.025 =1.96 4. Compare |Z| and Z α/2 If |Z| > Z α/2, reject H 0 If |Z| <= Z α/2, accept H 0
10
Computation |Z|=|(μ-μ 0 )/ (σ 0 /√n)| =|(72-69)/(5/√45)| =3/(5/6.71) =3/0.745 =4.027 |Z| > Z α/2=0.025 =1.96 Reject H 0
11
Another Case An experiment on reading comprehension was done on two groups of students: an advanced class with 63 students and a normal class with 67 students. The investigator obtained the following data: Advanced class M: 2.33929 s: 0.69483 n: 56 Normal class M: 1.864407 s: 0.797791 n: 59
12
Question Is there any statistically significant difference between the two groups at the 95% confidence level?
13
Analysis The advanced class is taken as a sample from a population represented by the normal class. The advanced students are supposed to possess a higher level of reading comprehension which can make systematic difference from average students. Therefore null hypothesis H 0 : μ=μ 0 alternative hypothesis H 1 : μ≠μ 0
14
Computation |Z|=|(μ-μ 0 )/ (σ 0 /√n)| =|(2.33929-1.864407)/( 0.797791/√56)| =3/(5/6.71) =3/0.745 =4.027 |Z| > Z α/2=0.025 =1.96 Reject H 0
15
One Tailed vs. Two Tailed When we ask: Is A different from B, we need a two tailed test.
16
One Tailed vs. Two Tailed When we ask: is A better or worse than B, we need a one tailed test.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.