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.

Slides:



Advertisements
Similar presentations
Copyright ©2011 Brooks/Cole, Cengage Learning Testing Hypotheses about Means Chapter 13.
Advertisements

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
Testing means, part III The two-sample t-test. Sample Null hypothesis The population mean is equal to  o One-sample t-test Test statistic Null distribution.
Probability & Statistical Inference Lecture 7 MSc in Computing (Data Analytics)
Probability & Statistical Inference Lecture 6 MSc in Computing (Data Analytics)
Inferences About Means of Two Independent Samples Chapter 11 Homework: 1, 2, 3, 4, 6, 7.
Comparing Means: Independent-samples t-test Lesson 14 Population APopulation B Sample 1Sample 2 OR.
Today Today: Chapter 10 Sections from Chapter 10: Recommended Questions: 10.1, 10.2, 10-8, 10-10, 10.17,
BCOR 1020 Business Statistics
Independent t-Test CJ 526 Statistical Analysis in Criminal Justice.
Inferences About Means of Two Independent Samples Chapter 11 Homework: 1, 2, 4, 6, 7.
Testing the Difference Between Means (Small Independent Samples)
Inferences About Process Quality
1 Inference About a Population Variance Sometimes we are interested in making inference about the variability of processes. Examples: –Investors use variance.
Chapter 9 Hypothesis Testing II. Chapter Outline  Introduction  Hypothesis Testing with Sample Means (Large Samples)  Hypothesis Testing with Sample.
5-3 Inference on the Means of Two Populations, Variances Unknown
Hypothesis Testing Using The One-Sample t-Test
Objective: To test claims about inferences for two sample means, under specific conditions.
Statistical Analysis. Purpose of Statistical Analysis Determines whether the results found in an experiment are meaningful. Answers the question: –Does.
The Paired-Samples t Test Chapter 10. Paired-Samples t Test >Two sample means and a within-groups design >The major difference in the paired- samples.
AM Recitation 2/10/11.
Jeopardy Hypothesis Testing T-test Basics T for Indep. Samples Z-scores Probability $100 $200$200 $300 $500 $400 $300 $400 $300 $400 $500 $400.
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Ch 10 Comparing Two Proportions Target Goal: I can determine the significance of a two sample proportion. 10.1b h.w: pg 623: 15, 17, 21, 23.
Statistical Analysis Statistical Analysis
Lesson Comparing Two Means.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 2 – Slide 1 of 25 Chapter 11 Section 2 Inference about Two Means: Independent.
More About Significance Tests
LECTURE 21 THURS, 23 April STA 291 Spring
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
Introduction to Statistical Inference Probability & Statistics April 2014.
T tests comparing two means t tests comparing two means.
Two Sample Tests Nutan S. Mishra Department of Mathematics and Statistics University of South Alabama.
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
Chapter 9 Hypothesis Testing II: two samples Test of significance for sample means (large samples) The difference between “statistical significance” and.
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.
t-tests Quantitative Data One group  1-sample t-test
Independent t-Test CJ 526 Statistical Analysis in Criminal Justice.
Lesson Comparing Two Means. Knowledge Objectives Describe the three conditions necessary for doing inference involving two population means. Clarify.
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.
to accompany Introduction to Business Statistics
© Copyright McGraw-Hill 2004
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.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 10 Comparing Two Groups Section 10.1 Categorical Response: Comparing Two Proportions.
Goodness-of-FitSlide #1 Goodness-of-Fit Test Examples – –Test whether responses are “random” (e.g., preference) –Test Mendelian genetics (e.g., 3:1 and.
Inferences Concerning Variances
Inference ConceptsSlide #1 1-sample Z-test H o :  =  o (where  o = specific value) Statistic: Test Statistic: Assume: –  is known – n is “large” (so.
AP Statistics. Chap 13-1 Chapter 13 Estimation and Hypothesis Testing for Two Population Parameters.
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.
Copyright ©2011 Brooks/Cole, Cengage Learning Testing Hypotheses about Difference Between Two Means.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
Inference for distributions: - Comparing two means.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 10 Comparing Two Groups Section 10.3 Other Ways of Comparing Means and Comparing Proportions.
Chapter 10: The t Test For Two Independent Samples.
Chapter 11 Inference for Distributions AP Statistics 11.2 – Inference for comparing TWO Means.
Introduction For inference on the difference between the means of two populations, we need samples from both populations. The basic assumptions.
Math 4030 – 10b Inferences Concerning Variances: Hypothesis Testing
Comparing Two Means: Paired Data
Independent Sample T-Test
Lesson Comparing Two Means.
Recipe for any Hypothesis Test
Chapter 10: The t Test For Two Independent Samples
Summary of Tests Confidence Limits
Comparing Two Means: Paired Data
Inference Concepts 1-Sample Z-Tests.
Presentation transcript:

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 areas exposed to and areas protected from moose browsing? Does the average 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? When: samples from two populations, samples are independent, quantitative variable

t-TestsSlide #2 2-sample t-test H o :  1 -  2 =0 (which is the same as   =  2 ) Statistic: Test Statistic: where s p 2 is the pooled sample variance - 0 df = n 1 + n 2 - 2

t-TestsSlide #3 2-sample t-test Assume: – n 1 + n 2 is large (to use a t-distribution) n 1 + n 2 > 40, OR n 1 + n 2 > 15 and both histograms are not strongly skewed, OR both histograms are approximately normal – the two samples are independent –  1 2 =  2 2 Are  1 2 &  2 2 parameters or statistics? Hypothesis Test -- Levene’s Test –H o :  1 2 =  2 2 vs H a :  1 2   2 2 –What do you do with the p-value?

t-TestsSlide #4 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-TestsSlide #5 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 CO 2 produced to O 2 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. A Full Example

t-TestsSlide #6 Group n Mean StDev Min 1 st Qu Median 3 rd Qu Max Caffeine Placebo Levene’s Test p-value = A Full Example Caffeine RER Frequency Placebo RER Frequency

Inference ConceptsSlide #7 Recipe for any Hypothesis Test 1) State the rejection criterion (  )  =0.05 2) State the null & alternative hypotheses, define the parameter(s) H o :  c  p = 0 H a :  c  p  0 where  c is mean RER for all males given the caffeine pill  p is mean RER for all males given the placebo

Inference ConceptsSlide #8 Recipe for any Hypothesis Test 3) Determine which test to perform – Explain! 2-sample t-test … because … (a) two populations were considered (caffeine and placebo groups), (b) the populations are independent (there is no connection between males in the two groups), and (c) a quantitative variable (RER) was recorded. 4) Collect the data (address type of study and randomization) (i) Experiment (pill was controlled by experimenter to form treatments) (ii) Random allocation of individuals to treatments, but not random selection from population for inclusion in the experiment

Inference ConceptsSlide #9 Recipe for any Hypothesis Test 5) Check all necessary assumption(s) (i)n c +n p = = 36 >15 and histograms not strongly skewed (ii) Two samples are independent Caffeine RER Frequency Placebo RER Frequency

Inference ConceptsSlide #10 Recipe for any Hypothesis Test 5) Check all necessary assumption(s) [cont] (iii) Variances are equal 2. H o : Variances are equal H a : Variances are not equal 3. Levene’s Test 8. p-value = p-value >  (0.05) … DNR H o 10. Variances appear to be equal

t-TestsSlide #11 Group n Mean StDev Min 1 st Qu Median 3 rd Qu Max Caffeine Placebo ) Calculate the appropriate statistic(s)  x c -  x p = = ) Calculate the appropriate test statistic df = – 2 = 34

Inference ConceptsSlide #12 Recipe for any Hypothesis Test 8) Calculate the p-value 9) State your rejection decision p-value (0.0022) <  (0.05) …. Reject H o 10) Summarize your findings in terms of the problem The mean RER appears to differ between the males that received the caffeine pill and those that received the placebo. > 2*distrib(-3.307,distrib="t",df=34) [1]

Inference ConceptsSlide #13 Recipe for any Hypothesis Test 11) If rejected H 0, compute a 100(1-  )% confidence region for parameter (i) 100(1-0.05)% = 95% (ii) Interval … because H a was not equals (iii) t* = ±2.032 … from (iv) ± 2.032* ± 3.61 (-9.49, -2.27) (v) I am 95% confident that the mean RER for those that received the caffeine pill is between 2.27 and 9.49 units lower than for those that received the placebo. > ( distrib(0.025,distrib="t",df=34,type="q") ) [1]