Reminder: Hypotheses
Reminder: Hypotheses
Hypotheses
H0: Null-hypothesis is an conjecture which we assume is
true until we have too much evidence against it.
H1: The alternative hypothesis covers the alternative to H0
4 lecture 9
Test of variance
The MATLAB way
Data σ20 = 0.52 H0: σ2 ≤ σ20
>> [h,p,ci,stats]=vartest(x,0.5^2,0.05,‘right')
5 lecture 9
Difference in means
Estimation (known variances)
Estimate of µ1 − µ2 :
x1 − x2
Confidence interval:
σ 12 σ 22 σ 12 σ 22
( x1 − x2 ) − zα / 2 + < µ1 − µ 2 < ( x1 − x2 ) + zα / 2 +
n1 n2 n1 n2
6 lecture 9
Test of two means
Known variances (two-sided)
Hypotheses: Significance level:
H 0 : µ1 − µ 2 = d 0
P(− zα / 2 < z < zα / 2 ) = 1 − α
H1 : µ1 − µ 2 = d 0
s p 1 / n1 + 1 / n2 n1 + n2 − 2
− tα / 2,v , tα / 2,v v = n1 + n2 − 2
8 lecture 9
Test of two means
Unknown & unequal variances (two-sided)
Test statistic:
( x1 − x2 ) − d 0
t=
s12 / n1 + s22 / n2
Degrees of freedom:
Critical values:
( s12 / n1 + s22 / n2 ) 2
− tα / 2,v , tα / 2,v v= 2
( s1 / n1 ) 2 ( s22 / n2 ) 2
+
n1 − 1 n2 − 1
9 lecture 9
Test of variance
( n − 1) s 2
+ ( n − 1) s 2
tstast = s 2p = 1 1 2 2
n1 + n2 − 2
11 lecture 9
Ratio of variances
Estimation
Consider two populations with variances σ21 and σ22
and two samples of sizes n1 and n2.
12 lecture 9
Test of two variances
Two-sided test
Hypotheses: Significance level:
H0 : σ1 = σ 2
( )
P 1 / fα / 2,n2 −1,n1 −1 < f < fα / 2,n2 −1,n2 −1 = 1 − α
H1 : σ 1 ≠ σ 2
14 lecture 9
Test of equal variance
The MATLAB way
Data pop. A Data pop. B
>> [h,p,ci,stats] = vartest2(x,y,0.1)
15 lecture 9
A couple of comments
16 lecture 9