Professional Documents
Culture Documents
t=
x 0
s/ n
H o : = 0
H o : = 0
H o : = 0
H a : 0
H a : > 0
H a : < 0
Reject if
Reject if
Reject if
| t |> z /2
t > z
t < z
Check to see if the value of the test statistic falls in the rejection region. If it does, then reject Ho
(and conclude Ha). If it does not fall in the rejection region, do not reject Ho.
State the conclusion in words.
t=
x 0
s/ n
H o : = 0
H o : = 0
H o : = 0
H a : 0
H a : > 0
H a : < 0
x 0
p value = P Z >
s/ n
display
x 0
p value = P Z <
s/ n
display
x 0
p value = 2* P Z >
s/ n
display
x 0
1
normprob
x 0
s/ n
1 normprob abs
s / n
, reject Ho.
, cannot reject Ho.
x 0
normprob
s/ n
STATA COMMAND
Testing the mean in Stata is easily done using the sample statistics and the ttesti command
Ha : < 5
Classical Approach
The test statistic is
t=
P-Value Approach
The test statistic is
x 0
4.43 5
=
= 1.03
s / n 3.23 / 34
t=
x 0
4.43 5
=
= 1.03
s / n 3.23 / 34
Because this is a left-tailed test, we compare the Because this is a left-tailed test, the P-Value is
test statistic value to -1.645.
found by calculating
Since -1.03 is NOT less than -1.645, we fail to
reject the null hypothesis.
Ha: mean != 5
Pr(|T| > |t|) = 0.3110
Note-Stata always uses the t distribution so their p-value will differ slightly from ours.
np0 (1 p0 ) 10
Step 1: Determine the null and alternative hypotheses. The hypotheses can be structured in
one of three ways:
t=
p p0
p0 (1 p0 )
n
H o : p = p0
H o : p = p0
H o : p = p0
H a : p p0
H a : p > p0
H a : p < p0
Reject if
Reject if
Reject if
| t |> z / 2
t > z
t < z
Check to see if the value of the test statistic falls in the rejection region. If it does, then reject Ho
(and conclude Ha). If it does not fall in the rejection region, do not reject Ho.
State the conclusion in words.
t=
p p0
p0 (1 p0 )
n
H o : p = p0
H o : p = p0
H o : p = p0
H a : p p0
H a : p > p0
H a : p < p0
p value =
2* P Z >
display
p p0
p0 (1 p0 )
1 normprob abs
p value =
p value =
PZ >
display
PZ <
display
p p0
1 normprob
p0 (1 p0 )
p p0
p0 (1 p0 )
, reject Ho.
, cannot reject Ho.
value:
p p0
p0 (1 p0 )
p p0
1 normprob
p0 (1 p0 )
p p0
p0 (1 p0 )
STATA COMMAND
Testing the mean in Stata is easily done using the sample statistics and the ttesti command
H a : p > 0.60
Classical Approach
The test statistic is
t=
p p0
p0 (1 p0 )
n
P-Value Approach
The test statistic is
81
0.6
114
= 2.41 =
0.6(0.4)
114
t=
p p0
p0 (1 p0 )
n
81
0.6
114
= 2.41
0.6(0.4)
114
Because this is a right-tailed test, we compare Because this is a right-tailed test, the P-Value is
the test statistic value to 1.645.
found by calculating
Since 2.41 is LARGER than 1.645, we reject the
null hypothesis.
Ha: p != 0.6
Pr(|Z| > |z|) = 0.0160