Professional Documents
Culture Documents
Lecture 7: Review On Two Sample Problems: Weihua Zhou Department of Mathematics and Statistics
Lecture 7: Review On Two Sample Problems: Weihua Zhou Department of Mathematics and Statistics
problems
Weihua Zhou
Department of Mathematics and Statistics
Two Large Independent Samples
Member 1 2 3 4 5
Before 120 150 140 135 130
After 125 130 130 140 120
x1 - x2 - D0
z=
2 2
s1 s2
n1 n2
n1 n2 - 2
d - D0
t=
sd / n
where d and s d are sample mean and standard
deviation of the paired differences d1 , , d n
Member 1 2 3 4 5
Before 120 150 140 135 130
After 125 130 130 140 120
F
1 2 3 4
Comparing Two Population Variances
Comparing Two Population Variances
Example
Two training procedures are compared by measuring
the time that it takes trainees to assemble a device. A
different group of trainees are taught using each
method. Is there a difference in the two methods? Use
a = .01. Assume both populations are normally
distributed with equal variances.
Time to Method 1 Method 2
Assemble
Sample size 10 12
Sample mean 35 31
Sample Std 4.9 4.5
Dev
Solution:
SAS Examples
Suppose you wish to compare a new method of teaching reading
to “slow learners” to the current standard method. You decide to
base this comparison on the results of a reading test given at the
end of a learning period of 6 months. Of a random sample of 22
slow learners, 10 are taught by the new method and 12 are taught
by the standard method. All 33 children are taught by qualified
instructors under similar conditions for a 6-month period. The
data is saved as reading.txt. At 𝛼 = .05, does the new method
improve the test score?
SAS Example
• Set up hypotheses
• From step 2, choose the correct method to report the test results
• Make conclusions
SAS Code
data reading;
infile ‘C:\Users\wzhou2\Dropbox (UNC Charlotte)\courses\stat2223\reading.txt’;
Input method $ score;
Proc print data=reading;
proc ttest data=reading;
class method;
var score;
run;
SAS Example
• Determine equal variance: Since P-value is more than .10. We
will fail to reject the null hypothesis of equal variance.