Professional Documents
Culture Documents
1.94
16
4
n
16
z-test in Excel
ZTEST
Do now: examples2.xlsx | ZIP
provide sample IQ data, null hypothesis
value, (if omitted, s is used)
p-value is returned
If p-value < , reject Ho.
Will you reject Ho or not?
= 0.05
Our actual value (red line, pvalue = 0.026) is in the rejection
region of one tailed test (0.026 <
0.05).
However, it is outside rejection
region for two tailed test. To see
this, you must compare 0.026 >
0.025. Or you can 2x multiply this
equation 0.052 > 0.05.
t for one
In the real world you typically dont have the
luxury of working with such well-defined
populations as results of IQ test.
Real world:
small samples
you often dont know the population parameters
2.85
s
3.16
n
9
reject Ho
Testing a variance
The family of distributions for the test is called
chi-square - 2
The formula
for test statistics
2
n
1
s
With this test, you have to assume that what youre measuring has a normal distribution.
n 1 s 2
25 1.8
1.5
36
two-tailed test
Ho: 1 2 = 0, Ha: 1 2 0
n1
n2
x x
1
x x
1
162 162
25 25
5.8
1.28
4.53
Use either NORMSDIST (supply 1.28, you get pvalue = 1-0.899=0.101) or NORMSINV (probability
= 0.95, you get critical value equaling to 1.645).
Accept Ho.
Do now
IQ_Test sheet
t for Two
The previous example involves a situation you
rarely encounter - known population
variances.
Not knowing the variances takes the CLT out
of play. This means that you cant use the
normal distribution as an approximation of
the sampling distribution of the difference
between means.
Instead, you use the t-distribution. You
perform a t-test.
1
s
1
s
1
2
2
s 2p 1
N1 1 N2 1
DF
x1 x2 1 2
t
sp
1
1
N1 N 2
2
p
N1 1 s N 2 1 s
N1 1 N2 1
2
1
2
2
x1 x2 1 2
t
sp
1
1
N1 N 2
Its more desirable to use the equal variances t-test, which typically
provides more degrees of freedom than the unequal variances t-test.
t
s12 s22
N1 N 2
0.60
F
1.36
0.44
http://www.intuitor.com/statistics/CurveApplet.html
power