t-tests Quantitative Data One group  1-sample t-test

Slides:



Advertisements
Similar presentations
BPS - 5th Ed. Chapter 241 One-Way Analysis of Variance: Comparing Several Means.
Advertisements

Objectives (BPS chapter 18) Inference about a Population Mean  Conditions for inference  The t distribution  The one-sample t confidence interval 
Review of the Basic Logic of NHST Significance tests are used to accept or reject the null hypothesis. This is done by studying the sampling distribution.
Inference for a population mean BPS chapter 18 © 2006 W. H. Freeman and Company.
Copyright ©2011 Brooks/Cole, Cengage Learning Testing Hypotheses about Means Chapter 13.
Copyright ©2011 Brooks/Cole, Cengage Learning Testing Hypotheses about Means Chapter 13.
Significance Testing Chapter 13 Victor Katch Kinesiology.
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. More About Significance Tests Chapter 13.
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
Chapter 9: Inferences for Two –Samples
Inference for distributions: - Comparing two means IPS chapter 7.2 © 2006 W.H. Freeman and Company.
BCOR 1020 Business Statistics
Chapter Goals After completing this chapter, you should be able to:
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 9-1 Introduction to Statistics Chapter 10 Estimation and Hypothesis.
A Decision-Making Approach
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
Independent Sample T-test Often used with experimental designs N subjects are randomly assigned to two groups (Control * Treatment). After treatment, the.
Chapter 11: Inference for Distributions
5-3 Inference on the Means of Two Populations, Variances Unknown
PSY 307 – Statistics for the Behavioral Sciences
Chapter 15 Nonparametric Statistics
Chapter 9 Comparing Means
Hypothesis Testing – Examples and Case Studies
Inferences Based on Two Samples
Lesson Comparing Two Means.
Education 793 Class Notes T-tests 29 October 2003.
More About Significance Tests
Confidence Intervals and Hypothesis Tests for the Difference between Two Population Means µ 1 - µ 2 : Independent Samples Inference for  1  2 1.
Two Sample Tests Nutan S. Mishra Department of Mathematics and Statistics University of South Alabama.
One Sample Inf-1 If sample came from a normal distribution, t has a t-distribution with n-1 degrees of freedom. 1)Symmetric about 0. 2)Looks like a standard.
Week 111 Power of the t-test - Example In a metropolitan area, the concentration of cadmium (Cd) in leaf lettuce was measured in 7 representative gardens.
Copyright © Cengage Learning. All rights reserved. 10 Inferences Involving Two Populations.
STATISTICAL INFERENCE PART VIII HYPOTHESIS TESTING - APPLICATIONS – TWO POPULATION TESTS 1.
A Course In Business Statistics 4th © 2006 Prentice-Hall, Inc. Chap 9-1 A Course In Business Statistics 4 th Edition Chapter 9 Estimation and Hypothesis.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section Inference about Two Means: Independent Samples 11.3.
Two sample problems:  compare the responses in two groups  each group is a sample from a distinct population  responses in each group are independent.
1 Chapter 9 Inferences from Two Samples 9.2 Inferences About Two Proportions 9.3 Inferences About Two Means (Independent) 9.4 Inferences About Two Means.
BPS - 3rd Ed. Chapter 161 Inference about a Population Mean.
Lesson Comparing Two Means. Knowledge Objectives Describe the three conditions necessary for doing inference involving two population means. Clarify.
Psych 230 Psychological Measurement and Statistics
Week111 The t distribution Suppose that a SRS of size n is drawn from a N(μ, σ) population. Then the one sample t statistic has a t distribution with n.
T-TestsSlide #1 1-sample t-test H o :  =  o (where  o = specific value) Statistic: Test Statistic: Assume: –  is UNknown – n is large (so that the.
Statistics: Unlocking the Power of Data Lock 5 Inference for Means STAT 250 Dr. Kari Lock Morgan Sections 6.4, 6.5, 6.6, 6.10, 6.11, 6.12, 6.13 t-distribution.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 1 – Slide 1 of 26 Chapter 11 Section 1 Inference about Two Means: Dependent Samples.
T-TestsSlide #1 2-Sample t-test -- Examples Do mean test scores differ between two sections of a class? Does the average number of yew per m 2 differ between.
SECTION 1 HYPOTHESIS TEST FOR THE DIFFERENCE IN TWO POPULATION PROPORTIONS Two-Population Tests With Qualitative Data  A lot.
AP Statistics.  If our data comes from a simple random sample (SRS) and the sample size is sufficiently large, then we know that the sampling distribution.
Linear Models -- Foundation. What Type of Variable? 1.Temperature ( o F) 2.Habitat complexity (low, medium, high) 3.Home range size (m 2 ) 4.Brood size.
T-tests Quantitative Data One group  1-sample t-test Two independent groups  2-sample t-test Two dependent groups  Matched Pairs t-test t-TestsSlide.
T-tests Quantitative Data One group  1-sample t-test Two independent groups  2-sample t-test Two dependent groups  Matched Pairs t-test t-TestsSlide.
MATB344 Applied Statistics I. Experimental Designs for Small Samples II. Statistical Tests of Significance III. Small Sample Test Statistics Chapter 10.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
Inference for distributions: - Comparing two means.
Chapter 7 Inference Concerning Populations (Numeric Responses)
Objectives (PSLS Chapter 18) Comparing two means (σ unknown)  Two-sample situations  t-distribution for two independent samples  Two-sample t test 
T-tests Quantitative Data One group  1-sample t-test Two independent groups  2-sample t-test Two dependent groups  Matched Pairs t-test t-TestsSlide.
Two-Sample Inference Procedures with Means
Chapter 10 Two-Sample Tests and One-Way ANOVA.
Estimation & Hypothesis Testing for Two Population Parameters
Math 4030 – 10a Tests for Population Mean(s)
Simulation-Based Approach for Comparing Two Means
Two-Sample Inference Procedures with Means
Comparing Two Means: Paired Data
Independent Sample T-Test
Two-Sample Hypothesis Test with Means
Comparing Two Means: Paired Data
Two-Sample Inference Procedures with Means
Two-Sample Inference Procedures with Means
Two-Sample Inference Procedures with Means
Two-Sample Inference Procedures with Means
Presentation transcript:

t-tests Quantitative Data One group  1-sample t-test Two independent groups  2-sample t-test Two dependent groups  Matched Pairs t-test t-Tests

A Full Reality t No longer know what s is!!!!! What should be used instead? Our best guess at s  s Changes details, not the big picture t t-Tests

Student’s t-distribution Compared to a standard normal (Z): Similarities symmetric about 0 approximately bell-shaped Differences more probability in the tails less probability in the center Exact shape depends on degrees-of-freedom (df) See HO for R work -4 -2 2 4 Z or t 10 df 5 df 2 df 1 df t-Tests

1-sample t-test Ho: m = mo (where mo = specific value) Statistic: Test Statistic: Assume: s is UNknown n is large (so that the test stat follows a t-distribution) n > 40, OR n > 15 and histogram is not strongly skewed, OR Histogram is approximately normal When: Quantitative variable, one population sampled, s is UNknown. df = n-1 t-Tests

A Full Example In Health magazine reported (March/April 1990) that the average saturated fat in one pound packages of butter was 66%. A food company wants to determine if its brand significantly differs from this overall mean. They analyzed a random sample of 96 one pound packages of its butter. Test the company’s hypothesis at the 1% level. Variable n Mean St. Dev. Min ... %SatFat 96 65.6 1.41 60.2 ... t-Tests

Practical Significance Is there a real difference between 66% and 65.6% saturated fat? If the sample size is large enough, any hypothesis can be rejected. t-Tests

R Handout t-Tests

Example Data – Cottonmouths Researchers have determined that a population of cottonmouth snakes must have an average litter size greater than 5.8 snakes in order for the population to grow. A sample of snake litters from this population was taken and the number of snakes in the litter was recorded in Cottonmouth.txt. Test, at a very conservative level, if the average litter size is large enough for the population to grow. Based on data from Blem, X. and X. Blem. 1995. Journal of Herpetology 29:391-398. t-Tests

2-Sample t-test -- Examples Do test scores differ between sections of a class? Is the average number of yew per m2 different between areas exposed to and areas protected from moose browsing? Does the time from ingesting a pill until a subject claims no more headache pain less for subjects given an experimental drug as compared to those given a placebo? t-Tests

What do those examples have in common? All compare the mean of one group to the mean of another group compare two sections compare two areas of yew density compare two groups of subjects The samples are independent. t-Tests

2-sample t-test Ho: m1 = m2 (where the subscript is a sample index) Statistic: because m1=m2 same as m1-m2=0 - 0 Test Statistic: where sp2 is the pooled sample variance df = n1 + n2 - 2 t-Tests

2-sample t-test Assume: Are s12 & s22 parameters or statistics? n1 + n2 is large (to use a t-distribution) n1 + n2 > 40, OR n1 + n2 > 15 and both histograms are not strongly skewed, OR both histograms are approximately normal the two samples are independent s12 = s22 Are s12 & s22 parameters or statistics? Hypothesis Test -- Levene’s Test Ho: s12 = s22 vs Ha: s12  s22 What do you do with the p-value? t-Tests

Levene’s Test Summary A hypothesis test within a hypothesis test. Small p-values mean the variances are unequal. If Levene’s test is a reject, can not continue with the 2-sample t-test (as presented here). t-Tests

Are You Surprised by the SE for the difference in means? Let’s do some algebra on the SE for a sample mean It is “similar” to the SE for a single sample mean t-Tests

2-sample t-test When: quantitative data, samples from two populations, samples are independent t-Tests

A Full Example A study of the effect of caffeine on muscle metabolism used 36 male volunteers who each underwent arm exercise tests. Eighteen of the men were randomly selected to take a capsule containing pure caffeine one hour before the test. The other men received a placebo capsule. During each exercise the subject's respiratory exchange ratio (RER) was measured. [RER is the ratio of CO2 produced to O2 consumed and is an indicator of whether energy is being obtained from carbohydrates or fats]. The question of interest to the experimenter was whether, on average and at the 5% level, caffeine changed mean RER. t-Tests

A Full Example Group n Mean StDev Min 1st Qu Median 3rd Qu Max Caffeine 18 94.22 4.870 84.0 93.00 94.00 96.75 105.0 Placebo 18 100.10 5.795 89.0 96.25 100.50 103.00 109.0 Levene’s Test p-value = 0.1993 t-Tests

R Handout t-Tests

Example Data – Sex & Direction A sample of 30 males and 30 female was taken to an unfamiliar wooded park and given spatial orientation tests, including pointing to the south. The absolute pointing error, in degrees, was recorded. The results are in the SexDirection.txt file on the webpage. Do men have a better sense of direction than women, at the 1% level? from Sholl, X, et al. 2000. The relation of sex and sense of direction to spatial orientation in an unfamiliar environment. Journal of Environmental Psychology. 20:17-28. t-Tests

Matched-Pairs -- Examples Each individual is given a simulated driving test before and after drinking two beers in one hour. Determine if driving score is lower after the two beers. One identical twin is raised by the genetic parents and the other by foster parents. Determine if there is a difference in IQ between the twins. t-Tests

What do the examples have in common? The individuals are not independent the before and after driving scores for an individual must be kept together as a pair the twin’s IQ scores must be kept together as a pair This is called a matched-pairs design Sampling/experimental design creates dependent samples in an effort to reduce the observed natural variability Why try to reduce natural variability? Decreasing natural variability increases power! t-Tests

Analyzing Matched-Pairs Find the difference between paired observations Treat differences as if they were the observed data Test the null hypothesis that the mean difference is equal to zero Thus, perform a 1-sample t-test on the differences t-Tests

Matched Pairs Data Before After 57 55 62 58 64 58 After-Before -2 -4 57 55 62 58 64 58 After-Before -2 -4 -6 These are then ignored!!! These are then analyzed as a 1-sample t-test t-Tests

Matched-Pairs t-test Ho: mdiff = 0 (where mdiff is the mean difference) Sample: random selection of n paired observations Assume: Original samples are dependent number of paired observations (n) is “large” n > 40, OR n > 15 and SAMPLE distribution (of differences) is not strongly skewed, OR SAMPLE distribution is approximately normal Statistic: Test Statistic: df = n-1 t-Tests

So ... Use the Matched-Pairs t-test when a quantitative variable was recorded on two samples that are dependent. Note, though, that this reduces to a 1-sample t-test on the differences. t-Tests

A Full Example Each of 25 randomly-selected students were given two tests on a driving simulator program. The first test was before the subject had drunk two beers in one hour. The second test was after the student had drunk the two beers. Determine if the two beers significantly negatively affected the student’s driving test score. Use a = 0.10 level (weak evidence is still evidence in this case). t-Tests

A Full Example Computer Output 10) Conclusion 11) Confidence region Variable N Mean Median StDev SE Mean Diff (A-B) 25 -0.596 -0.600 1.804 0.361 10) Conclusion It appears that the driving test score for all students decreased significantly, on average, after two beers in one hour. 11) Confidence region One is 90% confident that the average difference in test scores for all students is less than -0.120. This indicates that driving test scores decreased at least 0.120 points, on average, after two beers in one hour. -3.0 -2.0 -1.0 0.0 1.0 2.0 1 2 3 4 5 Diff (A-B) Frequency t-Tests

Example Data – Gasoline Additive A random sample of 22 cars was obtained. The gas mileage (mpg) of each car was determined both with and without an additive designed to raise gas mileage added to the gasoline. Test at the 5% level that the gas mileage increased significantly when the gas additive was used. Data in GasAdditive.txt t-Tests