Hypothesis testing: comparig means

Similar documents
Sheila Barron Statistics Outreach Center 2/8/2011

The t-test: Answers the question: is the difference between the two conditions in my experiment "real" or due to chance?

Math Section MW 1-2:30pm SR 117. Bekki George 206 PGH

Applied Statistical Analysis EDUC 6050 Week 4

Creative Commons Attribution-NonCommercial-Share Alike License

Hypothesis Testing. Richard S. Balkin, Ph.D., LPC-S, NCC

Biostatistics 3. Developed by Pfizer. March 2018

Comparison of two means

EPS 625 INTERMEDIATE STATISTICS TWO-WAY ANOVA IN-CLASS EXAMPLE (FLEXIBILITY)

THIS PROBLEM HAS BEEN SOLVED BY USING THE CALCULATOR. A 90% CONFIDENCE INTERVAL IS ALSO SHOWN. ALL QUESTIONS ARE LISTED BELOW THE RESULTS.

Chapter 23. Inference About Means. Copyright 2010 Pearson Education, Inc.

PSYCHOLOGY 300B (A01) One-sample t test. n = d = ρ 1 ρ 0 δ = d (n 1) d

Exercise #10. Q1:A study was made of a random sample of 25 records of patients seen at a chronic disease

8/28/2017. If the experiment is successful, then the model will explain more variance than it can t SS M will be greater than SS R

Sample Size Considerations. Todd Alonzo, PhD

SPRING GROVE AREA SCHOOL DISTRICT. Course Description. Instructional Strategies, Learning Practices, Activities, and Experiences.

E 490 FE Exam Prep. Engineering Probability and Statistics

Clinical trial design issues and options for the study of rare diseases

Introduction to Statistics

Midterm Exam MMI 409 Spring 2009 Gordon Bleil

Testing Means. Related-Samples t Test With Confidence Intervals. 6. Compute a related-samples t test and interpret the results.

Instructions for doing two-sample t-test in Excel

Lecture Notes Module 2

Previously, when making inferences about the population mean,, we were assuming the following simple conditions:

PSY 216: Elementary Statistics Exam 4

COMPARING SEVERAL DIAGNOSTIC PROCEDURES USING THE INTRINSIC MEASURES OF ROC CURVE

Inferential Statistics: An Introduction. What We Will Cover in This Section. General Model. Population. Sample

Sample Size Reestimation in Non-Inferiority Trials. Heidelberg, Germany

Stat Wk 9: Hypothesis Tests and Analysis

MEA DISCUSSION PAPERS

HS Exam 1 -- March 9, 2006

* σ = The Z Test. Formulas and Symbols You Should Know. Assignment: Heiman Chapter 10. Terms You Should Know.

SAMPLE SIZE IN CLINICAL RESEARCH, THE NUMBER WE NEED

Simple Linear Regression the model, estimation and testing

Sample size for clinical trials

Business Statistics Probability

12.1 Inference for Linear Regression. Introduction

Chapter 9. Factorial ANOVA with Two Between-Group Factors 10/22/ Factorial ANOVA with Two Between-Group Factors

Date: 17 January 2013

Study Guide for the Final Exam

Statistics for EES Factorial analysis of variance

DIFFERENTE RELAZIONE TRA VALORI PRESSORI E MASSA VENTRICOLARE SX NEI DUE SESSI IN PAZIENTI IPERTESI.

Missy Wittenzellner Big Brother Big Sister Project

Describe what is meant by a placebo Contrast the double-blind procedure with the single-blind procedure Review the structure for organizing a memo

Model of an F 1 and F 2 generation

DIFFERENCE BETWEEN TWO MEANS: THE INDEPENDENT GROUPS T-TEST

The Association Design and a Continuous Phenotype

Homework Exercises for PSYC 3330: Statistics for the Behavioral Sciences

Prepared by: Assoc. Prof. Dr Bahaman Abu Samah Department of Professional Development and Continuing Education Faculty of Educational Studies

Evaluation of a Clinical Decision Support Rule-set for Medication Adjustments in mhealth-based Heart Failure Management

1) What is the independent variable? What is our Dependent Variable?

Methods for Determining Random Sample Size

Lab #7: Confidence Intervals-Hypothesis Testing (2)-T Test

SCHOOL OF MATHEMATICS AND STATISTICS

Analysis of Variance (ANOVA)

Conditional Distributions and the Bivariate Normal Distribution. James H. Steiger

The Z Test. Assignment. Terms You Should Know. Psychological Statistics The Z Test. G&W, Chapter 6. Z-test

Experimental Psychology Arlo Clark Foos

STAT 113: PAIRED SAMPLES (MEAN OF DIFFERENCES)

Psy201 Module 3 Study and Assignment Guide. Using Excel to Calculate Descriptive and Inferential Statistics

Research Methods 1 Handouts, Graham Hole,COGS - version 1.0, September 2000: Page 1:

MMI 409 Spring 2009 Final Examination Gordon Bleil. 1. Is there a difference in depression as a function of group and drug?

Using SAS to Calculate Tests of Cliff s Delta. Kristine Y. Hogarty and Jeffrey D. Kromrey

Chapter 12. The One- Sample

Spotty Calcification as a Marker of Accelerated Progression of Coronary Atherosclerosis : Insights from Serial Intravascular Ultrasound

CHAPTER - 6 STATISTICAL ANALYSIS. This chapter discusses inferential statistics, which use sample data to

Stroke-free duration and stroke risk in patients with atrial fibrillation: simulation using a Bayesian inference

Understanding Temporal Patterns in Hypertensive Drug Therapy

Estimation of Statistical Power in a Multicentre MRI study.

YSU Students. STATS 3743 Dr. Huang-Hwa Andy Chang Term Project 2 May 2002

This is a repository copy of Practical guide to sample size calculations: superiority trials.

One-Way ANOVAs t-test two statistically significant Type I error alpha null hypothesis dependant variable Independent variable three levels;

Investigating the robustness of the nonparametric Levene test with more than two groups

GALECTIN-3 PREDICTS LONG TERM CARDIOVASCULAR DEATH IN HIGH-RISK CORONARY ARTERY DISEASE PATIENTS

Common Statistical Issues in Biomedical Research

Where does "analysis" enter the experimental process?

Statistical inference provides methods for drawing conclusions about a population from sample data.

Still important ideas

Comparing Means among Two (or More) Independent Populations. John McGready Johns Hopkins University

Lesson 11.1: The Alpha Value

Knowledge Discovery and Data Mining I

Review for Test 2 STA 3123

How to design sample size? Minato Nakazawa, Ph.D. Dept. Public Health

Type of intervention Primary prevention; secondary prevention. Economic study type Cost-effectiveness analysis and cost utility analysis.

One way Analysis of Variance (ANOVA)

Problem #1 Neurological signs and symptoms of ciguatera poisoning as the start of treatment and 2.5 hours after treatment with mannitol.

EC352 Econometric Methods: Week 07

CATHETER-BASED RENAL DENERVATION INCREASES INSULIN SENSITIVITY AND IMPROVES GLUCOSE METABOLISM IN PATIENTS WITH RESISTANT HYPERTENSION

Objectives. Quantifying the quality of hypothesis tests. Type I and II errors. Power of a test. Cautions about significance tests

Confidence Intervals On Subsets May Be Misleading

The Effect of Sitagliptin on Carotid Artery Atherosclerosis in Type 2 Diabetes. Literature Review and Data Analysis. Megan Rouse

Research Analysis MICHAEL BERNSTEIN CS 376

Quantitative Methods in Computing Education Research (A brief overview tips and techniques)

A Brief (very brief) Overview of Biostatistics. Jody Kreiman, PhD Bureau of Glottal Affairs

Online Appendix (JACC )

Att vara eller inte vara (en Bayesian)?... Sherlock-conundrum

Final Exam Practice Test

Non-parametric methods for linkage analysis

CHAPTER OBJECTIVES - STUDENTS SHOULD BE ABLE TO:

Introduction & Basics

Transcription:

Hypothesis testing: comparig means Prof. Giuseppe Verlato Unit of Epidemiology & Medical Statistics Department of Diagnostics & Public Health University of Verona COMPARING MEANS 1) Comparing sample mean to population mean z = -------- x- / n t = -------- x- s/ n ) Comparison of two sample means when n 1 >60 and n >60 x t = 1 - x s 1 s + n 1 n SE 1 SE This equation is useful to understand test development, but it not used in everyday practice, equation 3 is used instead. 1

3)Comparison between the means of two small sample (n 1 <60 and n <60) SSq s p = s pooled = 1 + SSq n 1 + n - x t = 1 - x x 1 - x = s p s p SSq 1 +SSq 1 1 + n 1 n n 1 + n - n 1 n ( ) + 4) Comparing paired data x 11 - x 1 = d 1 x 1 - x = d x 13 - x 3 = d d 3 x 14 - x 4 = d 4 s d x 15 - x 5 = d 5 t = d- 0 s d / n Hypothesis testing: comparing a sample mean (x) to a population mean ( )

Let s assume that in Northern Europe glycaemia of type diabetic patients is equal to 170 4 mg/dl ( ). A mean glycaemia of 161 mg/dl is recorded in 36 Italian patients. Is glycaemia of type diabetic patients the same in Italy as in Northern Europe? Distribution of glycaemia in type diabetic patients from Northern Europe Corresponding distribution of sample means for n=36 ( = 4/ 36 = 4/6 = 4 mg/dl) N.B. Since n>30, the distribution of sample mean is normal irrespective of the distribution of the original variable. Hypotheses { H 0: it = 0 H 1 : it 0 Significance level [P(type I error)] = 5% Region of H 0 acceptance z-test is used, based on the z-distribution (normal standard deviate) Significance level 10% 5% 1% Critical threshold 1.645 1.96.576 (absolute value) Regions of H 0 rejection There are two regions of rejection, hence the test is two-tailed. 3

z = x- = 161-170 = -9 = -.5 / n 4/ 36 4 observed z > threshold.5 1.96 H 0 is rejected. Glycaemia of Italian diabetic patients differs from glycaemia of North European diabetic patients (P=0.04). Let s assume that in Northern Europe glycaemia in type diabetic patients is normally distributed with mean 170 mg/dl. The variability of glycaemia is unknown. Glycaemia in a sample of 5 Italian diabetic patients is 155 0 mg/dl (mean standard deviation). Is glycaemia of type diabetic patients the same in Italy as in Northern Europe? s (sample standard deviation) is taken as an estimate for (population standard deviation): Standard Error = s/ n = 0/ 5 = 0/5 = 4 However estimating σ from s introduces an additional source of sample variability: both mean and standard deviation vary from one sample to another. To cope with this problem, the z- distribution is replaced by the t- distribution, which presents larger variability. 4

Hypotheses { H 0: it = 0 H 1 : it 0 Significance level [P(type I error)] = 5% Region of H 0 acceptance Assuming α=5%, with n-1=4 critical threshold =.064 Regions of H 0 rejection There are two regions of rejection, hence the test is two-tailed. t = x- = 155-170 = -15 = -3.75 s/ n 0/ 5 4 observed t > threshold 3.75.064 H 0 is rejected. Glycaemia of Italian diabetic patients differs from glycaemia of North European diabetic patients (P=0.001). 5

Hypothesis testing: comparison of two sample means (x 1 and x ) Example: Twenty hypertensive patients are randomly assigned to two different treatments. The first group is administered a diuretic drug, while the second group is given a beta-blocker. The next table shows the heart rate (in beats/min), recorded in each patient after two weeks of treatment: Diuretic 80 86 88 8 88 87 77 7 88 79 Beta-blocker 70 65 66 76 68 66 71 7 69 8 Does heart rate significantly differ between the two groups? H 0 : µ diur = µ B- H 1 : µ diur µ B- two-tailed test Student s t-test (for unpaired data) { { H 0 : µ diur µ B- H 1 : µ diur > µ B- one-tailed test Significance level = 5% Degrees of freedom = n 1 + n - = 10+10- = 18 Critical threshold = t 18, 0.05 =.101 6

t = x 1- x x 1 - x = SE x1- x (1/n 1 +1/n ) (SSq 1 +SSq )/ (n 1 +n -) x x n x SSq Var SD Diuretic 87 68675 10 8.7 8.1 31.34 5.599 Beta-blocker 705 49947 10 70.5 44.5 7.17 5.1 Assumptions: 1) Heart rate is normally distributed ) Variance does not differ between the two groups 8.7-70.5 t = = (1/10+1/10) (8.1+44.5)/ (10+10-) 1. 5.85 = 1..4 = 5.043 observed t (5.043) > critical t value (.101) H 0 is rejected (P<0.001) Hypothesis testing: Student s t test for paired data 7

An oral hypoglycaemic drug is given to a sample of diabetic patients. Glycaemic values (in mg/dl), recorded in each patient before and after treatment, are presented in the following table: Patient 1 3 4 5 6 7 8 9 10 Before 4 179 149 54 11 135 18 153 167 138 After 198 167 116 9 117 108 143 133 159 131 Was glycaemia significantly affected by treatment? mean value Patient Before After Difference 1 4 198-6 179 167-1 3 149 116-33 4 54 9-5 5 11 117 5 6 135 108-7 7 18 143-75 8 153 133-0 9 167 159-8 10 138 131-7 { H 0 : δ = 0 H 1 : δ 0 Two-tailed test (Student s t-test for paired data) Σd = -8 Σd = 946 d = -,8 s d = 1,67 Significance level = 5% Degrees of freedom = n 1-1 = 10-1 = 9 Critical threshold = t 9, 0.05 =.6 t = d-0 = -.8 = -.8 = -3.37 s d / n 1.67/ 10 6.853 8

observed t > critical t value 3.37.6 H 0 is rejected. Glycaemia significantly decreased in type diabetic patients after administering an oral hypoglycaemic drug (P=0.009). Comparing means: computing sample size 9

Computing sample size to achieve enough power to detect possible difference between two means (z + z ) n > [ ] where n = number of subjects in each group z = 1.96 for alpha = 5% z = 0.84, 1.8, 1.645 for power = 80, 90, 95% = standard deviation, derived from pilot studies or current literature = x 1 -x = minimal clinically-important difference Example: The reference drug decreases systolic pressure by 5 mmhg. To represent a real improvement, the new drug should reduce systolic pressure by at least 30 mmhg (i.e. 5 mmhg more). Standard deviation of pressure changes is estimated to be 10 mmhg from previous studies. Alpha is set at 5% and power at 90%, hence z / = 1.96 e z = 1.8. (z + z ) n > [ ] n > [ ] n > 84.06 n 85 85 subjects per group are needed to achieve 90% power. (1.96 + 1.8) 10 5 10