1 / 17

The t-test

The t-test. Inferences about Population Means when population SD is unknown. Confidence intervals in z (Review). Want to estimate height of students at USF. Sampled N=100 students. Found mean =68 in and SD = 6 in. Best guess for population mean is 68 inches plus or minus some. 95%CI =

Download Presentation

The t-test

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. The t-test Inferences about Population Means when population SD is unknown

  2. Confidence intervals in z (Review) • Want to estimate height of students at USF. Sampled N=100 students. Found mean =68 in and SD = 6 in. • Best guess for population mean is 68 inches plus or minus some. • 95%CI = • 95%CI=68±(1.96)[6/sqrt(100)] • 68 ±1.96(.6) = 68 ±1.18 • Interval is 66.82 to 69.18. Such an interval will contain the mean 95% of the time.

  3. Problem with z • Formulas so far use population SD, and they have been correct, but SD is usually unknown, so we have to estimate • Estimate will be off a bit; would be nice to account for this • The statistic called ‘t’ adjusts for error in estimate of SD. Estimate of SD is better as sample size increases, so t changes with N. The values of t are basically the same as z, but t spreads out more and more as the sample size gets small.

  4. The t Distribution We use t when the population variance is unknown (the usual case) and sample size is small (N<100, the usual case). If you use a stat package for testing hypotheses about means, you will use t. The t distribution is a short, fat relative of the normal. The shape of t depends on its df. As N becomes infinitely large, t becomes normal.

  5. Example values from t and z

  6. Degrees of Freedom For the t distribution, degrees of freedom are always a simple function of the sample size, e.g., (N-1). One way of explaining df is that if we know the total or mean, and all but one score, the last (N-1) score is not free to vary. It is fixed by the other scores. 4+3+2+X = 10. X=1.

  7. t table

  8. Confidence Intervals in t Want to estimate height of students at USF. Sampled N=100 students. Found mean =68 in and SD = 6 in. Best guess for population mean is 68 inches plus or minus some. 95%CI = 95%CI=68±(1.98)[6/sqrt(100)] 68 ±1.98(.6) = 68 ±1.19 Interval is 66.81 to 69.19. Such an interval will contain the mean 95% of the time. Note this is virtually the same as in z, where interval was 66.82 to 69.18. Matters more when N is small.

  9. CI in t, Example 2 • Suppose we want to estimate mean curiosity score for psychology students. Sample N = 25 people, Mean = 52, SD = 10. Note: this is same as CI in z, except we use t instead of z. The value of t comes from a table. Tabled value depends on df.

  10. One-sample t-test We can use a confidence interval to “test” or decide whether a population mean has a given value. For example, suppose we want to test whether the mean height of women at USF is equal to 68 inches. Suppose we randomly sample 50 women students at USF. We find that their mean height is 63.05 inches. The SD of height in the sample is 5.75 inches. Then we find the standard error of the mean by dividing SD by sqrt(N) = 5.75/sqrt(50) = .81. The critical value of t with (50-1) df is 2.01(find this in a t-table). Our confidence interval is, therefore, 63.05 plus/minus 1.63. See the graph.

  11. One-sample t Example 1 Take a sample, set a confidence interval around the sample mean. Does the interval contain the hypothesized value?

  12. Conventional Steps (Cookbook) • 1. Choose alpha (.05) • 2. State null and alternative hypotheses (H0: pop mean is 68) (Ha is not 68) • 3. Calculate observed stat (t = ?) • 4. Find critical value (tcrit =value in table) • 5. State decision rule (if obs > tcrit, reject null) • 6. State conclusion (pop mean is not 68)

  13. The sample mean is roughly six standard deviations (St. Errors) from the hypothesized population mean. If the population mean is really 68 inches, it is very, very unlikely that we would find a sample with a mean as small as 63.05 inches.

  14. One-sample t, Example 2 • Over the years, smokers at M’s treatment center report smoking an average of 30 cigs per day. New treatment Smoke-B-Gon pills given to N=25 new clients. Did it help? |tobs| > tcrit. Reject null. Result is significant.

  15. Application • We prefer to use the t test instead of the z test when the _____ is small. • 1 mind • 2 sample size • 2 standard error • 4 type II error

  16. Definition • The t test adjusts for error in estimating the population ____ during hypothesis testing. • 1 mean • 2 median • 3 range • 4 standard deviation

  17. Application • We compute a one-sample t test and find an obtained value of t of 2.5. The critical (tabled) value of t given the null hypothesis turns out to be 2.01. What do we decide? • 1 the result is significant • 2 the result is not significant • 3 we made a type I error • 4 we made a type II error

More Related