Stat350 Lab 4
Due Friday, March 25, 2011
When turning in labs:
a) Please put your
NAME, CLASS TIME, AND THE LAB #
on your submission.
b) Label each part with the problem number and put them in logical order.
c) ALWAYS include your SAS code for each problem.
Purposes:
1) Hypothesis tests for means
2) Hypothesis tests for two means
3) Hypothesis tests for paired data
For this lab, you should reference all the code we used in lab 3, including the
same datasets.
The code is almost identical to the three sets we did last week
with this slight modification, "H0=<claim>":
SAS Learning code:
proc
ttest
data
=one
alpha
=
0.10
H0
=
100
;
/*Tests if the mean score is 100*/
var
score;
run
;
SAS Learning output (look for the bolded part):
Variable:
score
N
Mean
Std Dev
Std Err
Minimum
Maximum
21
93.6667
13.9869
3.0522
57.0000
121.0
Mean
90% CL Mean
Std Dev
90% CL Std Dev
93.6667
88.4025
98.9308
13.9869
11.1609
18.9891
DF
t Value
Pr > t
20
2.08
0.0511
Note:
SAS ALWAYS produces two sided Pvalues, so if you are doing a one
sided test, you need to divide the Pvalue SAS gives you by 2.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
This is the end of the preview.
Sign up
to
access the rest of the document.
 Spring '08
 Staff
 Statistics, Null hypothesis, Statistical hypothesis testing, appropriate null

Click to edit the document details