Copyright (c) Bani K. Mallick1 STAT 651 Lecture 9.

Slides:



Advertisements
Similar presentations
Lecture 6 Outline – Thur. Jan. 29
Advertisements

Chapter 8 The t Test for Independent Means Part 2: Oct. 15, 2013.
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.
Confidence Interval and Hypothesis Testing for:
Copyright (c) Bani Mallick1 Stat 651 Lecture 5. Copyright (c) Bani Mallick2 Topics in Lecture #5 Confidence intervals for a population mean  when the.
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.
Copyright (c) Bani Mallick1 Lecture 2 Stat 651. Copyright (c) Bani Mallick2 Topics in Lecture #2 Population and sample parameters More on populations.
Copyright (c) Bani Mallick1 STAT 651 Lecture 7. Copyright (c) Bani Mallick2 Topics in Lecture #7 Sample size for fixed power Never, ever, accept a null.
What z-scores represent
SADC Course in Statistics Comparing Means from Independent Samples (Session 12)
Two Population Means Hypothesis Testing and Confidence Intervals With Known Standard Deviations.
Independent t-Test CJ 526 Statistical Analysis in Criminal Justice.
Copyright (c) Bani Mallick1 STAT 651 Lecture 10. Copyright (c) Bani Mallick2 Topics in Lecture #10 Comparing two population means using rank tests Comparing.
Copyright (c) Bani K. Mallick1 STAT 651 Lecture #16.
Copyright (c) Bani Mallick1 Lecture 4 Stat 651. Copyright (c) Bani Mallick2 Topics in Lecture #4 Probability The bell-shaped (normal) curve Normal probability.
Copyright (c) Bani K. Mallick1 STAT 651 Lecture #15.
A Decision-Making Approach
Copyright (c) Bani K. Mallick1 STAT 651 Lecture #13.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
T-Tests Lecture: Nov. 6, 2002.
Two Population Means Hypothesis Testing and Confidence Intervals With Unknown Standard Deviations.
Copyright © 2014 Pearson Education, Inc.12-1 SPSS Core Exam Guide for Spring 2014 The goal of this guide is to: Be a side companion to your study, exercise.
Copyright © 2010 Pearson Education, Inc. Chapter 24 Comparing Means.
Copyright (c) Bani K. Mallick1 STAT 651 Lecture # 12.
Copyright (c) Bani Mallick1 STAT 651 Lecture # 11.
Copyright (c) Bani K. mallick1 STAT 651 Lecture #14.
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.
Week 9 October Four Mini-Lectures QMM 510 Fall 2014.
Chapter 24: Comparing Means.
Two Sample Tests Ho Ho Ha Ha TEST FOR EQUAL VARIANCES
Chapter 13 – 1 Chapter 12: Testing Hypotheses Overview Research and null hypotheses One and two-tailed tests Errors Testing the difference between two.
Chapter 7 Using sample statistics to Test Hypotheses about population parameters Pages
Hypothesis testing – mean differences between populations
T-test Mechanics. Z-score If we know the population mean and standard deviation, for any value of X we can compute a z-score Z-score tells us how far.
Section 10.1 ~ t Distribution for Inferences about a Mean Introduction to Probability and Statistics Ms. Young.
More About Significance Tests
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
Hypothesis tests III. Statistical errors, one-and two sided tests. One-way analysis of variance. 1.
Chapter 9 Section 2 Testing the Difference Between Two Means: t Test 1.
T-TEST Statistics The t test is used to compare to groups to answer the differential research questions. Its values determines the difference by comparing.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 12 Inference About A Population.
Statistical Hypotheses & Hypothesis Testing. Statistical Hypotheses There are two types of statistical hypotheses. Null Hypothesis The null hypothesis,
Independent t-Test CJ 526 Statistical Analysis in Criminal Justice.
9.2 Testing the Difference Between Two Means: Using the t Test
The Independent- Samples t Test Chapter 11. Quick Test Reminder >One person = Z score >One sample with population standard deviation = Z test >One sample.
Chapter 9: Testing Hypotheses Overview Research and null hypotheses One and two-tailed tests Type I and II Errors Testing the difference between two means.
Chapter 10 The t Test for Two Independent Samples
Hypothesis Testing Errors. Hypothesis Testing Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean.
Copyright (c) Bani K. Mallick1 STAT 651 Lecture 6.
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.
ISMT253a Tutorial 1 By Kris PAN Skewness:  a measure of the asymmetry of the probability distribution of a real-valued random variable 
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
Lecture Slides Elementary Statistics Twelfth Edition
Copyright (c) Bani Mallick1 STAT 651 Lecture 8. Copyright (c) Bani Mallick2 Topics in Lecture #8 Sign test for paired comparisons Wilcoxon signed rank.
Hypothesis Testing. Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean μ = 120 and variance σ.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide Next Time: Make sure to cover only pooling in TI-84 and note.
CHAPTER 7: TESTING HYPOTHESES Leon-Guerrero and Frankfort-Nachmias, Essentials of Statistics for a Diverse Society.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
Statistical hypothesis Statistical hypothesis is a method for testing a claim or hypothesis about a parameter in a papulation The statement H 0 is called.
The Single-Sample t Test Chapter 9. t distributions >Sometimes, we do not have the population standard deviation, σ. Very common! >So what can we do?
Testing the Difference between Means, Variances, and Proportions
Chapter 10 Two Sample Tests
Testing the Difference Between Two Means
Two-Sample Hypothesis Testing
Levene's Test for Equality of Variances
Hypothesis Testing and Confidence Intervals
Presentation transcript:

Copyright (c) Bani K. Mallick1 STAT 651 Lecture 9

Copyright (c) Bani K. Mallick2 Topics in Lecture #9 Comparing two population means Output: detailed look The t-test

Copyright (c) Bani K. Mallick3 Book Sections Covered in Lecture #9 Chapter 6.2

Copyright (c) Bani K. Mallick4 Relevant SPSS Tutorials Transformations of Data 2-sample t-test Paired t-test

Copyright (c) Bani K. Mallick5 Lecture 8 Review: Comparing Two Populations There a two populations Take a sample from each population The sample sizes need not be the same Population 1: Population 2:

Copyright (c) Bani K. Mallick6 Lecture 8 Review: Comparing Two Populations Each will have a sample standard deviation Population 1: Population 2:

Copyright (c) Bani K. Mallick7 Lecture 8 Review: Comparing Two Populations Each sample with have a sample mean Population 1: Population 2: That’s the statistics. What are the parameters?

Copyright (c) Bani K. Mallick8 Lecture 8 Review: Comparing Two Populations Each sample with have a population standard deviation Population 1: Population 2:

Copyright (c) Bani K. Mallick9 Lecture 8 Review: Comparing Two Populations Each sample with have a population mean Population 1: Population 2:

Copyright (c) Bani K. Mallick10 Lecture 8 Review: Comparing Two Populations How do we compare the population means and ???? The usual way is to take their difference: If the population means are equal, what is their difference?

Copyright (c) Bani K. Mallick11 Lecture 8 Review: Comparing Two Populations The usual way is to take their difference: If the population means are equal, their difference = 0 Suppose we form a confidence interval for the difference. From this we learn whether 0 is in the confidence interval, and hence can make decisions about the hypothesis

Copyright (c) Bani K. Mallick12 NHANES Comparison

Copyright (c) Bani K. Mallick13 NHANES Comparison: what the output looks like

Copyright (c) Bani K. Mallick14 NHANES Comparison: the variable Independent Samples Test E E Equal variances assumed Equal variances not assumed Log(Saturated Fat) FSig. Levene's Test for Equality of Variances tdfSig. (2-tailed) Mean Difference Std. Error DifferenceLowerUpper 95% Confidence Interval of the Difference t-test for Equality of Means

Copyright (c) Bani K. Mallick15 NHANES Comparison: The method. If you think the varianes are wildly different, try a transformation Independent Samples Test E E Equal variances assumed Equal variances not assumed Log(Saturated Fat) FSig. Levene's Test for Equality of Variances tdfSig. (2-tailed) Mean Difference Std. Error DifferenceLowerUpper 95% Confidence Interval of the Difference t-test for Equality of Means

Copyright (c) Bani K. Mallick16 NHANES Comparison: the p-value. Independent Samples Test E E Equal variances assumed Equal variances not assumed Log(Saturated Fat) FSig. Levene's Test for Equality of Variances tdfSig. (2-tailed) Mean Difference Std. Error DifferenceLowerUpper 95% Confidence Interval of the Difference t-test for Equality of Means

Copyright (c) Bani K. Mallick17 NHANES Comparison: the difference in sample means Independent Samples Test E E Equal variances assumed Equal variances not assumed Log(Saturated Fat) FSig. Levene's Test for Equality of Variances tdfSig. (2-tailed) Mean Difference Std. Error DifferenceLowerUpper 95% Confidence Interval of the Difference t-test for Equality of Means

Copyright (c) Bani K. Mallick18 NHANES Comparison: the standard error of difference in sample means Independent Samples Test E E Equal variances assumed Equal variances not assumed Log(Saturated Fat) FSig. Levene's Test for Equality of Variances tdfSig. (2-tailed) Mean Difference Std. Error DifferenceLowerUpper 95% Confidence Interval of the Difference t-test for Equality of Means

Copyright (c) Bani K. Mallick19 NHANES Comparison: the 95% confidence interval Independent Samples Test E Equal variances assumed Equal variances not assumed FSig. Levene's Test for Euality of Variances tdfSig. (2-tailed) Mean Difference Std. Error DifferenceLowerUpper 95% Confidence Interval of the Difference t-test for Equality of Means

Copyright (c) Bani K. Mallick20 NHANES Comparison The “Mean Difference” is Since the healthy cases had a higher mean, this is Mean(Healthy) – Mean(Cancer) The 95% CI is from to What is this a CI for? The difference in population mean log(saturated fat) intake between cancer cases and healthy controls:  (Healthy) –  (Cancer)

Copyright (c) Bani K. Mallick21 NHANES Comparison Mean(Healthy) – Mean(Cancer) The 95% CI is from to The null hypothesis of interest is that the population means are equal, i.e.,  (Healthy) –  (Cancer) = 0

Copyright (c) Bani K. Mallick22 NHANES Comparison Mean(Healthy) – Mean(Cancer) The 95% CI is from to Is the p-value p 0.05?

Copyright (c) Bani K. Mallick23 NHANES Comparison Mean(Healthy) – Mean(Cancer) The 95% CI is from to = Hypothesized value Confidence Interval

Copyright (c) Bani K. Mallick24 NHANES Comparison Mean(Healthy) – Mean(Cancer) The 95% CI is from to Is the p-value p 0.05? Answer: p < 0.05 since the 95% CI does not cover zero.

Copyright (c) Bani K. Mallick25 NHANES Comparison Mean(Healthy) – Mean(Cancer) The 95% CI is from to Is the p-value p 0.01? Answer: You cannot tell from a 95% CI. However, from the SPSS output, p = (see next slide)

Copyright (c) Bani K. Mallick26 NHANES Comparison: the 95% confidence interval Independent Samples Test E Equal variances assumed Equal variances not assumed FSig. Levene's Test for Euality of Variances tdfSig. (2-tailed) Mean Difference Std. Error DifferenceLowerUpper 95% Confidence Interval of the Difference t-test for Equality of Means

Copyright (c) Bani K. Mallick27 NHANES Comparison Mean(Healthy) – Mean(Cancer) The 95% CI is from to What do we conclude from this confidence interval?

Copyright (c) Bani K. Mallick28 NHANES Comparison Mean(Healthy) – Mean(Cancer) The 95% CI is from to What do we conclude from this confidence interval? The population mean log(saturated fat) intake is greater in the Healthy cases by between and (exponentiate to get in terms of grams of saturated fat), with 95% confidence

Copyright (c) Bani K. Mallick29 Comparing Two Population Means: the Formulas The data: The populations: The aim: CI for

Copyright (c) Bani K. Mallick30 Comparing Two Populations Does it matter which one you call population 1 and which one you call population 2? Not at all. The key is to interpret the difference properly.

Copyright (c) Bani K. Mallick31 Comparing Two Populations The aim: CI for This is the difference in population means The estimate of the difference in population means is the difference in sample means This is a random variable: it has sample to sample variability

Copyright (c) Bani K. Mallick32 Comparing Two Populations Difference of sample means “Population” mean from repeated sampling is The s.d. from repeated sampling is

Copyright (c) Bani K. Mallick33 Comparing Two Populations Difference of sample means The s.d. from repeated sampling is You need reasonably large samples from BOTH populations

Copyright (c) Bani K. Mallick34 Comparing Two Populations If you can reasonably believe that the population sd’s are nearly equal, it is customary to pick the equal variance assumption and estimate the common standard deviation by

Copyright (c) Bani K. Mallick35 Comparing Two Populations The standard error then of is the value The number of degrees of freedom is

Copyright (c) Bani K. Mallick36 Comparing Two Populations A (1  100% CI for is Note how the sample sizes determine the CI length

Copyright (c) Bani K. Mallick37 Comparing Two Populations Generally, you should make your sample sizes nearly equal, or at least not wildly unequal. Consider a total sample size of 100 = 1 if n 1 = 1, n 2 = 99 = 0.20 if n 1 = 50, n 2 = 50 Thus, in the former case, your CI would be 5 times longer!

Copyright (c) Bani K. Mallick38 Comparing Two Populations The CI can of course be used to test hypotheses This is the same as So we just need to check whether 0 is in the interval, just as we have done

Copyright (c) Bani K. Mallick39 Comparing Two Populations: The t- test There is something called a t-test, which gives you the information as to whether 0 is in the CI. It does not tell you where the means lie however, so it is of limited use. P-values tell you the same thing.

Copyright (c) Bani K. Mallick40 Comparing Two Populations: The t- test The t-statistic is defined by

Copyright (c) Bani K. Mallick41 Comparing Two Populations: The t- test You reject equality of means if In this case, is p  ?

Copyright (c) Bani K. Mallick42 Comparing Two Populations: The t- test You reject equality of means if p < 

Copyright (c) Bani K. Mallick43 NHANES Comparison: the t-test Independent Samples Test E E Equal variances assumed Equal variances not assumed Log(Saturated Fat) FSig. Levene's Test for Equality of Variances t df Sig. (2-tailed) Mean Difference Std. Error DifferenceLowerUpper 95% Confidence Interval of the Difference t-test for Equality of Means

Copyright (c) Bani K. Mallick44 Comparing Two Populations SPSS Demonstrations: bluebonnets and Framingham Heart Disease and Blood Pressure, as time permits