Comparing means Norhafizah Ab Manan. After class, you should Understand independent t test, paired t test and ANOVA Know how to calculate the t statistics.

Slides:



Advertisements
Similar presentations
Hypothesis Testing Steps in Hypothesis Testing:
Advertisements

8.3 T- TEST FOR A MEAN. T- TEST The t test is a statistical test for the mean of a population and is used when the population is normally or approximately.
The two-sample t-test Expanding t to two groups. t-tests used for population mean diffs With 1-sample t, we have a single sample and a population value.
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
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.
T-Tests.
t-Tests Overview of t-Tests How a t-Test Works How a t-Test Works Single-Sample t Single-Sample t Independent Samples t Independent Samples t Paired.
Single Sample t-test Purpose: Compare a sample mean to a hypothesized population mean. Design: One group.
T-Tests.
PSY 307 – Statistics for the Behavioral Sciences
Independent Sample T-test Formula
PSY 307 – Statistics for the Behavioral Sciences
T-Tests Lecture: Nov. 6, 2002.
Testing the Difference Between Means (Small Independent Samples)
Hypothesis Testing Using The One-Sample t-Test
Statistical Analysis. Purpose of Statistical Analysis Determines whether the results found in an experiment are meaningful. Answers the question: –Does.
Hypothesis Testing and T-Tests. Hypothesis Tests Related to Differences Copyright © 2009 Pearson Education, Inc. Chapter Tests of Differences One.
Estimation and Hypothesis Testing Faculty of Information Technology King Mongkut’s University of Technology North Bangkok 1.
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.
Statistics for Managers Using Microsoft® Excel 7th Edition
Means Tests Hypothesis Testing Assumptions Testing (Normality)
Copyright © 2015, 2012, and 2009 Pearson Education, Inc. 1 Section 7.3 Hypothesis Testing for the Mean (  Unknown).
Hypothesis Testing for the Mean (Small Samples)
Education 793 Class Notes T-tests 29 October 2003.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 2 – Slide 1 of 25 Chapter 11 Section 2 Inference about Two Means: Independent.
The Hypothesis of Difference Chapter 10. Sampling Distribution of Differences Use a Sampling Distribution of Differences when we want to examine a hypothesis.
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
Chapter 9: Testing Hypotheses
QMS 6351 Statistics and Research Methods Regression Analysis: Testing for Significance Chapter 14 ( ) Chapter 15 (15.5) Prof. Vera Adamchik.
Statistics for the Behavioral Sciences Second Edition Chapter 11: The Independent-Samples t Test iClicker Questions Copyright © 2012 by Worth Publishers.
January 31 and February 3,  Some formulae are presented in this lecture to provide the general mathematical background to the topic or to demonstrate.
Go to index Two Sample Inference for Means Farrokh Alemi Ph.D Kashif Haqqi M.D.
Hypothesis Testing with One Sample Chapter 7. § 7.3 Hypothesis Testing for the Mean (Small Samples)
Testing means, part II The paired t-test. Outline of lecture Options in statistics –sometimes there is more than one option One-sample t-test: review.
PSY 307 – Statistics for the Behavioral Sciences Chapter 16 – One-Factor Analysis of Variance (ANOVA)
1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Warsaw Summer School 2011, OSU Study Abroad Program Difference Between Means.
1 Psych 5500/6500 Introduction to the F Statistic (Segue to ANOVA) Fall, 2008.
Testing Differences in Population Variances
Hypothesis Testing for the Mean (Small Samples)
Chapter 14 – 1 Chapter 14: Analysis of Variance Understanding Analysis of Variance The Structure of Hypothesis Testing with ANOVA Decomposition of SST.
I271B The t distribution and the independent sample t-test.
1 ANALYSIS OF VARIANCE (ANOVA) Heibatollah Baghi, and Mastee Badii.
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.
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
The t-distribution William Gosset lived from 1876 to 1937 Gosset invented the t -test to handle small samples for quality control in brewing. He wrote.
Hypothesis Testing with TWO Samples. Section 8.1.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Correlation. u Definition u Formula Positive Correlation r =
Chapter 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
Introduction to the t statistic. Steps to calculate the denominator for the t-test 1. Calculate variance or SD s 2 = SS/n-1 2. Calculate the standard.
CHAPTER 7: TESTING HYPOTHESES Leon-Guerrero and Frankfort-Nachmias, Essentials of Statistics for a Diverse Society.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Chapter Hypothesis Testing with One Sample 1 of © 2012 Pearson Education, Inc. All rights reserved.
Statistical Inferences for Population Variances
Hypothesis Testing – Two Population Variances
Introduction to Hypothesis Test – Part 2
Unit 8 Section 7.5.
Math 4030 – 10b Inferences Concerning Variances: Hypothesis Testing
Hypothesis Testing for Proportions
Chapter 8 Hypothesis Testing with Two Samples.
Data Analysis and Interpretation
Types of T-tests Independent T-tests Paired or correlated t-tests
Module 26: Confidence Intervals and Hypothesis Tests for Variances for Two Samples This module discusses confidence intervals and hypothesis tests for.
Elementary Statistics
One way ANALYSIS OF VARIANCE (ANOVA)
Elementary Statistics: Picturing The World
What are their purposes? What kinds?
Presentation transcript:

Comparing means Norhafizah Ab Manan

After class, you should Understand independent t test, paired t test and ANOVA Know how to calculate the t statistics Find the t tabulated from t distribution table

Comparing two means How can we get a mean? What data?- categorical or numerical?

Independent t test Is cholesterol level differ between male and female students? What is the null hypothesis for this study? malefemale

Independent t test Measure – Compare two means Assumptions 1.In each group of the dependent variables, the distribution is normal 2.Random sample How to test the assumption?

Steps in hypothesis testing 1.Define the null and alternative hypothesis  H o =The population means in two groups are equal  H a =The population means in the groups are not equal 2.Calculate the t statistics/ t calculated 3.Compare the t statistics to the value from t-distribution 4.Interpret the results

Example; A researcher interested to compare cholesterol level between male and female students. There are 12 males and 7 females. The data was: GroupSample size Mean (mmol/L) SD (mmol/L) Male Female

1. Define null and alternative hypothesis. Ho= The cholesterol means in male and female students are equal Ha= The cholesterol means in male and female students are not equal

2. Calculate the t statistics

GroupSample size Mean (mmol/L) Variance (mmol/L) Male Female = 0.483

2. Calculate the t statistics GroupSample size Mean (mmol/L) SD (mmol/L) Male Female = 0.778/0.3305=2.36

3. Compare the t statistics to the value from t-distribution If t calculated > t tabulated (from table)- we reject the null hypothesis If t calculated < t tabulated (from table) – we fail to reject the null hypothesis

One tailed Right-tailed Sign of Ha is > Key word: More than Left-tailed Sign of Ha is < Key word: Less than Rejection area

Two tailed The sign of H A is ≠ Key word: no different Rejection area

3. Compare the t statistics to the value from t-distribution Find the t tabulated from t distribution table =2.45 (from table) with alpha error= 95%, Upper tailed = 2.5%. Degree of freedom= the smaller of (n 1 -1) or (n 2 -1) 6? T statistics=2.36 2,45 -2,45 0

4. Interpret the results The t calculated value is in the critical region Reject the null hypothesis There is different of cholesterol between gender

Paired t test Measure – Compare two dependent means (before and after) Assumptions 1.Distribution of the different is normal 2.Random sample How to test the assumption?

Example A researcher interested to determine the effectiveness of an intervention towards BP. The BP of the subjects were measured twice; before and after the intervention. MeasureSample size Mean of dSdSd Pre-interV

1. Define null and alternative hypothesis. Ho= there is no different of BP before and after the intervention Ha= there is a different before and after the intervention

2. Calculate the t statistics The formula for t statistics: t=test statistics ḋ = mean of the difference S d =Sd of the difference n= sample size

2. Calculate the t statistics MeasureSample size Mean of dSdSd Pre-interV =2.930 Note: A hypothesized mean difference ( μ d ) can be any specified value. The most common value specified is zero.

3. Compare the t statistics to the value from t-distribution T calculated= T tabulated with df (14) and alpha(0.05)= 2.14

4. Interpret the results The t calculated value is in the critical region Reject the null hypothesis There is a different between before and after the intervention

ANOVA To compare means between more than two groups Variable: – Independent variable: Categorical – Dependent variable: Numerical Assumptions: – Data is normal distributed – Equal variance

Examples To determine whether BMI is different between age groups or not To study the effect of 3 different types of anti hypertensive drug on 120 patients. To compare the mean different of IQ scores among 3 classes

References Basic Biostatistics statistics for public health practice B Burt Genstman. Jones and Batlett Publisher Inc. Medical statistics at a glance. 3 rd Edition Aviva Petrie & Caroline Sabin. Wiley-Blackwell.