1 / 34

Module 17: Two-Sample t-tests, with equal variances for the two populations

Module 17: Two-Sample t-tests, with equal variances for the two populations. This module describes one of the most utilized statistical tests, the two-sample t-test conducted under the assumption that the two populations from which the two samples were selected have the same variance.

Télécharger la présentation

Module 17: Two-Sample t-tests, with equal variances for the two populations

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Module 17: Two-Sample t-tests, with equal variances for the two populations This module describes one of the most utilized statistical tests, the two-sample t-test conducted under the assumption that the two populations from which the two samples were selected have the same variance. Reviewed 11 May 05 /MODULE 17 17 - 1

  2. Up to this point, the focus has been on a single population, for which the observations had a normal distribution with a population mean  and standard deviation . From this population, a random sample of size n provided the sample statistics and s as estimates of  and , respectively. We created confidence intervals and tested hypotheses concerning the population mean , using the normal distribution when we had available the value of  and using the t distribution when we did not and thus used the estimate s from the sample. This circumstance is often described as the one sample situation. The General Situation 17 - 2

  3. Clearly, we are often faced with making judgments for circumstances that involve more than one population and sample. For the moment, we will focus on the so-called two sample situation. That is, we consider two populations. Question: Do you believe the two populations have the same mean? 17 - 3

  4. Two Sample Hypotheses H0: A = B versus H1: AB or equivalently H0: Δ = A - B = 0 versus H1: Δ = A - B 0. 17 -

  5. Parameters vs. Estimates 17 - 4

  6. We are interested in Δ = µ1 - µ2 If the samples are independent, then When 17 - 5

  7. Estimating σ2 we have two estimates of σ2 , one from sample 1, namely s12 and one from sample 2, namely s22. How can we best use these two estimates of the same thing. One obvious answer is to use the average of the two; however, it may be desirable to somehow take into account that the two samples may not the same size. If they are not the same size, then we may want the larger one to count more. 17 - 6

  8. Hence, we use the weighted average of the two sample variances, with the weighting done according to sample size. This weighted average is called the pooled estimate: Pooled Average 17 - 7

  9. Estimate of Var() To estimate Var(), we can use 17 - 8

  10. Example 1: Blood Pressures of Children To investigate the question of whether the children of city A and city B have the same systolic blood pressure, a random sample of n = 10 children was selected from each city and their blood pressures measured. These samples provided the following data: 17 - 9

  11. We are interested in the difference:   Δ = A - B and we have as an estimate of Aand as an estimate of B; hence it is reasonable to use: d = - = 105.8 - 97.2 = 8.6 (mm Hg) as an estimate of Δ = A - B. 17 - 10

  12. We then can ask whether this observed difference of 8.6 mm Hg is sufficiently large for us to question whether the two population means could be the same, that is, A = B. Clearly, if the two population means are truly equal, that is, if A = Bis true, then we would expect the two sample means also to be equal, that is = , except for the random error that occurs as a consequence of using random samples to represent the entire populations. The question before us is whether this observed difference of 8.6 mm Hg is larger than could be reasonably attributed to this random error and thus reflects true differences between the population means. 17 - 11

  13. Confidence Interval for A- B, using sp 17 - 12

  14. 17 - 13

  15. Example 2: AJPH, April 1994; 84:p644 17 - 14

  16. Example 2 (contd.) 17 - 15

  17. Example 2 (contd.) 1. The hypothesis: H0 : 1 2vs. H1: 1 2 2. The assumptions: Independent random samples from normal distributions, 3.The  level: = 0.05 4. The test statistic: 5. The critical region:Reject H0 if t is not between 17 - 16

  18. 6. Test result: 7. The Conclusion: Reject H0 since t = 2.5 is not between ± 1.97; 0.01 < p < 0.02 17 - 17

  19. Example 3: AJPH July 1994; 89:1068 17 - 18

  20. 55.35 175.03 Source: AJPH, July 1994; 89:1068 Example 3 (contd.) 17 - 19

  21. The hypothesis: H0 : µ1 = µ2 vs. H1: µ1≠ µ2 • The assumptions: Independent random samples from normal distributions • 3. The  level:  = 0.05 • 4. The test statistic: 17 - 20

  22. 5. The critical region: Reject if t is not between  t0.975(1738) =1.96 6. The Result: 7. Conclusion: Accept H0: 1 = 2, since p > 0.05 ; 0.05 < p < 0.10 17 - 21

  23. Example 4: AJPH July 1994; 89:1068 17 - 22

  24. 1. The hypothesis: H0: SSS = NHS vs. H1: SSS≠ NHS • The  level: = 0.05 • 3. The assumptions: Independent Samples, Normal Distribution, • 4. The test statistic: • 5. The critical region: Reject if t is not between ± 2.1315 17 - 23

  25. 6. The result : • The conclusion: Reject H0: SSS = NHS ; 0.01< p < 0.02 17 - 24

  26. Independent Random Samples from Two Populations of Serum Uric Acid Values 17 - 25

  27. Serum Acid Worksheet 17 - 26

  28. s12 = 0.09, s22 = 0.19 17 - 27

  29. 1. The hypothesis: H0: μ1 = μ2 vs. H1: μ1≠ μ2 2. The -level: = 0.05 3. The assumptions: Independent Random Samples Normal Distribution, 4. The test statistic: Testing the Hypothesis That The Two Serum Uric Acid Populations Have The Same Mean 17 - 28

  30. 5. The reject region: Reject H0: μ1 = μ2 if t is not between ± t0.975(18) = 2.1009 6. The result: 7. The conclusion: Reject H0: μ1 = μ2 , since t is not between ± 2.1009 17 - 29

  31. Serum Uric Acid Values Before And After a Special Meal 17 - 30

  32. 17 - 31

  33. 1. The hypothesis: H0: Δ = 0 vs. H1: Δ ≠ 0, where Δ = μAfter - μBefore 2. The -level: = 0.05 3. The assumptions: Random Sample of Differences, Normal Distribution 4. The test statistic: Testing the Hypothesis That The Serum Uric Acid Levels Before and After A Special Meal Are The Same 17 - 32

  34. 5. The rejection region: Reject H0: Δ = 0, if t is not between ± t0.975(9)= 2.26 6. The result: 7. The conclusion: Reject H0: Δ = 0 since t is not between ± 2.26 17 - 33

More Related