STA 102 Lab 7 - Two Sample Hypothesis Testing

(Due with Chapter 8 Homework)

Purpose: To learn how to perform two-sample t-tests in Splus b/c in the future, it would be a total drag to have to do it by hand. Also, to present a concise summary of your results using complete sentences.

You will be writing up your report in some word-processing program, like Word or Word-Perfect or even Memo-pad/Simple-Text. There should not be any printing errors involved with this assignment.


Recall the Nutrition example from the worksheet in lecture (refer to questions 8.37 - 8.42 in your text). You will need your textbook in order to do this assignment, so go back to your room and get it if you are in lab right now without it.

  1. Go into S-plus and start a new worksheet(File -> New).
  2. Type in the Vitamin C values (from Table 8.14) into the first column (automagically labelled "V1").
  3. Type in the Placebo values into the second column ("V2").
  4. Do NOT type in the "difference" values for the third column Rather, learn to use the Formula option:
  5. Decide whether you should do a two-sample paired-t-test or a two-sample t-test-for-independent-samples (in Splus, these are simply called paired-t and two-sample t, respectively).
  6. Now perform the appropriate test by Going to Statistics -> Compare Samples -> Two-samples -> t Test...
  7. Choose the appropriate t-test:
  8. As described in exercise 8.41, derive a lower one-sided CI for the mean difference (Vitamin C - Placebo) by selecting the appropriate option under "alternative hypothesis":
  9. Hit "ok" and Look at your results.
  10. Check that you chose the appropriate alternative hypothesis in Step 9 by carefully reading your althernative hypothesis in the results report (and remembering which of your variables is Vitamin C and which one is Placebo, and which CI was asked for.)
  11. Now, write a short (one-page) lab-report about your results. Use Complete Sentences and Paragraphs Only! Be sure to include/address/state the following: