One sample T Interval Example: speeding 90% confidence interval n=23 Check conditions Model: t n-1 Confidence interval: 31.0±1.52 = (29.48, 32.52) STAT.

Slides:



Advertisements
Similar presentations
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 25 Paired Samples and Blocks.
Advertisements

1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 21, Slide 1 Chapter 21 Comparing Two Proportions.
Chapter 14 Comparing two groups Dr Richard Bußmann.
Confidence Interval and Hypothesis Testing for:
Copyright ©2011 Brooks/Cole, Cengage Learning Testing Hypotheses about Means Chapter 13.
Copyright ©2011 Brooks/Cole, Cengage Learning Testing Hypotheses about Means Chapter 13.
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
10-1 Introduction 10-2 Inference for a Difference in Means of Two Normal Distributions, Variances Known Figure 10-1 Two independent populations.
Copyright © 2010 Pearson Education, Inc. Chapter 25 Paired Samples and Blocks.
Copyright © 2010 Pearson Education, Inc. Chapter 24 Comparing Means.
5-3 Inference on the Means of Two Populations, Variances Unknown
Comparing Means.  Comparing two means is not very different from comparing two proportions.  This time the parameter of interest is the difference between.
Objective: To test claims about inferences for two sample means, under specific conditions.
Chapter 24: Comparing Means.
Chapter 20: Testing Hypotheses about Proportions
Copyright © 2010 Pearson Education, Inc. Chapter 23 Inference About Means.
Copyright © 2009 Pearson Education, Inc. Chapter 23 Inferences About Means.
Chapter 24 Comparing Means.
Copyright © 2010 Pearson Education, Inc. Slide
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 23, Slide 1 Chapter 23 Comparing Means.
Comparing Means Chapter 24. déjà vu’ this is our t-value; it works a lot like a z-score. You can use the InvT function in the calculator to get your p-value.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 25 Paired Samples and Blocks.
Comparing Two Proportions
10-1 Introduction 10-2 Inference for a Difference in Means of Two Normal Distributions, Variances Known Figure 10-1 Two independent populations.
Chapter 10 Comparing Two Means Target Goal: I can use two-sample t procedures to compare two means. 10.2a h.w: pg. 626: 29 – 32, pg. 652: 35, 37, 57.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 24 Comparing Means.
Copyright © 2009 Pearson Education, Inc. Chapter 23 Inferences About Means.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 9 Inferences Based on Two Samples.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 24, Slide 1 Chapter 24 Paired Samples and Blocks.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 24 Comparing Means.
Chapter 22: Comparing Two Proportions
1 10 Statistical Inference for Two Samples 10-1 Inference on the Difference in Means of Two Normal Distributions, Variances Known Hypothesis tests.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Hypotheses tests for means
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 25 Paired Samples and Blocks.
Copyright © 2010 Pearson Education, Inc. Chapter 22 Comparing Two Proportions.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 22 Comparing Two Proportions.
STA 2023 Module 11 Inferences for Two Population Means.
Copyright © 2010 Pearson Education, Inc. Slide
AP Statistics Chapter 24 Comparing Means.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 24 Comparing Means.
Paired Samples and Blocks
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 24, Slide 1 Chapter 25 Paired Samples and Blocks.
Comparing Means Chapter 24. Plot the Data The natural display for comparing two groups is boxplots of the data for the two groups, placed side-by-side.
Chapter 22 Comparing Two Proportions.  Comparisons between two percentages are much more common than questions about isolated percentages.  We often.
Chapter 22 Comparing two proportions Math2200. Are men more intelligent? Gallup poll A random sample of 520 women and 506 men 28% of the men thought men.
+ Unit 6: Comparing Two Populations or Groups Section 10.2 Comparing Two Means.
Copyright ©2011 Brooks/Cole, Cengage Learning Testing Hypotheses about Difference Between Two Means.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide Next Time: Make sure to cover only pooling in TI-84 and note.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 23, Slide 1 Chapter 24 Comparing Means.
Statistics 24 Comparing Means. Plot the Data The natural display for comparing two groups is boxplots of the data for the two groups, placed side-by-side.
AP Statistics Chapter 25 Paired Samples and Blocks.
AP Statistics Chapter 24 Comparing Means. Objectives: Two-sample t methods Two-Sample t Interval for the Difference Between Means Two-Sample t Test for.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Copyright © 2009 Pearson Education, Inc. Chapter 24 Comparing Means.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Chapters 22, 24, 25 Inference for Two-Samples. Confidence Intervals for 2 Proportions.
Chapter 24 Comparing Means Copyright © 2009 Pearson Education, Inc.
Chapter 24 Comparing Means.
AP Statistics Chapter 24 Comparing Means.
Chapter 23 Comparing Means.
Chapter 23 Comparing Means.
Comparing Two Proportions
Chapter 23 Comparing Means.
Comparing Two Proportions
Chapter 24 Comparing Means Copyright © 2009 Pearson Education, Inc.
Chapter 24 Comparing Two Means.
Presentation transcript:

One sample T Interval Example: speeding 90% confidence interval n=23 Check conditions Model: t n-1 Confidence interval: 31.0±1.52 = (29.48, 32.52) STAT TESTS 8 TInterval Input: Data or Stats

One-sample t-test Null hypothesis test statistic Model: t n-1 P-value depends the alternative hypothesis

One sample T Test Example: speeding t-statistic = 1.13 P-value = (one-sided) STAT TESTS 2: T-TEST (for one sample)

Chapter 24 Comparing Means Math2200

Example: AA battery Brand name vs. generic batteries The same CD player, the same CD, volume at 5 6 pairs of AA alkaline batteries, randomized run order Brand nameGeneric

Plot the data Boxplot –Generic batteries lasted longer and were more consistent –Two outliers? –Is this difference really large enough?

Comparing two means Parameter of interest Standard error

Comparing Two Means (cont.) Because we are working with means and estimating the standard error of their difference using the data, we shouldn’t be surprised that the sampling model is a Student’s t. –The confidence interval we build is called a two-sample t-interval (for the difference in means). –The corresponding hypothesis test is called a two-sample t-test.

Sampling Distribution for the Difference Between Two Means When the conditions are met, the standardized sample difference between the means of two independent groups can be modeled by a Student’s t-model with a number of degrees of freedom found with a special formula. We estimate the standard error with

A two-sample t-interval Margin of error – –What degrees of freedom? Confidence interval

What is df? Between and

Assumptions and Conditions Independence –Randomization –10% condition Normal population assumption –Nearly normal condition –n<15, do not use these methods if seeing severe skewness –n<40, mildly skewness is OK. But should remark outliers –n>40, the CLT works well. The skewness does not matter much. Independent group assumption –Think about how the data are collected

Example: AA battery Parameter of interest Check conditions

Example: AA battery The sampling distribution is t with df=8.98 –Critical value for 95% CI –95% CI: ( )±16.5 = (2.1, 35.1)

Testing the difference between two means Price offered for a used camera buying from a friend vs. buying from a stranger. Does friendship has a measurable effect on pricing? Buying from a friendBuying from a stranger

Two-sample t-test Null hypothesis T-test statistic Standard error df (by the complicated formula) P-value (one-sided or two-sided)

Example: friend vs. stranger Specify hypotheses Check conditions (boxplots) When conditions are satisfied, do a two- sample t-test –Observed difference = –se = –Df = –P-value = (two-sided)

Back Into the Pool Remember that when we know a proportion, we know its standard deviation. –Thus, when testing the null hypothesis that two proportions were equal, we could assume their variances were equal as well. –This led us to pool our data for the hypothesis test.

Back Into the Pool (cont.) For means, there is also a pooled t-test. –Like the two-proportions z-test, this test assumes that the variances in the two groups are equal. –But, be careful, there is no link between a mean and its standard deviation…

Back Into the Pool (cont.) If we are willing to assume or we are told that the variances of two means are equal, we can pool the data from two groups to estimate the common variance and make the degrees of freedom formula much simpler. We are still estimating the pooled standard deviation from the data, so we use Student’s t- model, and the test is called a pooled t-test.

The Pooled t-Test Estimate of the common variance se of the sample mean difference t-statistic

The Pooled t-Test Df = n 1 + n 2 – 2 Confidence interval

When should we pool? Most of the time, the difference is slight There is a test that can test this condition, but it is very sensitive to failure of assumptions and does not work well for small samples. In a comparative randomized experiment, experiment units are usually selected from the same population. If you think the treatment only changes the mean but not the variance, we can assume equal variances.

T-83 Plus –STAT TESTS + 0: 2-SampTInt Data: 2 Lists or STATS: Mean, sd, size of each sample Whether to pool the variance –STAT TESTS + 4: 2-SampTTest One-sided or two-sided Two-tail, lower-tail, upper-tail Whether to pool the variance

What Can Go Wrong? Watch out for paired data. –The Independent Groups Assumption deserves special attention. –If the samples are not independent, you can’t use two-sample methods. Look at the plots. –Check for outliers and non-normal distributions by making and examining boxplots.

What have we learned? We’ve learned to use statistical inference to compare the means of two independent groups. –We use t-models for the methods in this chapter. –It is still important to check conditions to see if our assumptions are reasonable. –The standard error for the difference in sample means depends on believing that our data come from independent groups, but pooling is not the best choice here. The reasoning of statistical inference remains the same; only the mechanics change.