lecture15 notes

Probability and Statistics for Engineering and the Sciences (with CD-ROM and InfoTrac )

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Stat 312: Lecture 15 Two-sample t test Moo K. Chung mchung@stat.wisc.edu March 13, 2003 Concepts 1. Pooled sample variance: S 2 p = ( n - 1) S 2 X + ( m - 1) S 2 Y n + m - 2 . 2. Let X 1 , · · · , X n and Y 1 , · · · , Y m be two indepen- dent samples from normal distributions with the same population variance. The test statis- tic for testing H 0 : μ X = μ Y vs. H 1 : μ X 6 = μ Y T = ¯ X - ¯ Y - ( μ X - μ Y ) S p p 1 /n + 1 /m t n + m - 2 . Reject H 0 if | T | > t α/ 2 ,n + m - 2 . In-class problems Example 1. A study was conducted to compare the weights of cats and dogs. Weights of cats: 20, 21, 35, 13, 21, 10. Weights of dogs: 31, 10, 20, 40. Assume that the population variance to be same for both cats and dogs. Is there any diFerence between the weights of cats and dogs? > x<-c(20,21,35,13,21,10) > y<-c(31,10,20,40) > sqrt((5*var(x)+3*var(y))/8) [1] 10.52824 > t=(mean(x)-mean(y))/(10.53*sqrt(1/5+1/3)) > t [1] -0.6827026 > qt(0.05,8) [1] -1.859548
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/31/2008 for the course STAT 312 taught by Professor Chung during the Spring '04 term at Wisconsin.

Ask a homework question - tutors are online