Power and Sample Size Boulder 2004 Benjamin Neale Shaun Purcell.

Slides:



Advertisements
Similar presentations
Tests of Hypotheses Based on a Single Sample
Advertisements

Bivariate analysis HGEN619 class 2007.
1 COMM 301: Empirical Research in Communication Lecture 15 – Hypothesis Testing Kwan M Lee.
Lecture (11,12) Parameter Estimation of PDF and Fitting a Distribution Function.
Anthony Greene1 Simple Hypothesis Testing Detecting Statistical Differences In The Simplest Case:  and  are both known I The Logic of Hypothesis Testing:
Statistics.  Statistically significant– When the P-value falls below the alpha level, we say that the tests is “statistically significant” at the alpha.
Hypothesis Testing Steps in Hypothesis Testing:
Chapter 9 Hypothesis Testing Understandable Statistics Ninth Edition
CHAPTER 21 Inferential Statistical Analysis. Understanding probability The idea of probability is central to inferential statistics. It means the chance.
Statistical Significance What is Statistical Significance? What is Statistical Significance? How Do We Know Whether a Result is Statistically Significant?
Multiple regression analysis
HYPOTHESIS TESTING Four Steps Statistical Significance Outcomes Sampling Distributions.
Power and Sample Size + Principles of Simulation Benjamin Neale March 4 th, 2010 International Twin Workshop, Boulder, CO.
Statistical Significance What is Statistical Significance? How Do We Know Whether a Result is Statistically Significant? How Do We Know Whether a Result.
Hypothesis Testing: Type II Error and Power.
Lec 6, Ch.5, pp90-105: Statistics (Objectives) Understand basic principles of statistics through reading these pages, especially… Know well about the normal.
Univariate Analysis in Mx Boulder, Group Structure Title Type: Data/ Calculation/ Constraint Reading Data Matrices Declaration Assigning Specifications/
4-1 Statistical Inference The field of statistical inference consists of those methods used to make decisions or draw conclusions about a population.
Genetic Dominance in Extended Pedigrees: Boulder, March 2008 Irene Rebollo Biological Psychology Department, Vrije Universiteit Netherlands Twin Register.
Chapter 9 Hypothesis Testing.
Today Concepts underlying inferential statistics
Power and Sample Size Adapted from: Boulder 2004 Benjamin Neale Shaun Purcell I HAVE THE POWER!!!
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 8 Tests of Hypotheses Based on a Single Sample.
Inferential Statistics
AM Recitation 2/10/11.
Aaker, Kumar, Day Ninth Edition Instructor’s Presentation Slides
Hypothesis Testing:.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
Hypothesis Testing – Introduction
8 - 1 © 2003 Pearson Prentice Hall Chi-Square (  2 ) Test of Variance.
Estimation and Hypothesis Testing Now the real fun begins.
Review of Statistical Inference Prepared by Vera Tabakova, East Carolina University ECON 4550 Econometrics Memorial University of Newfoundland.
Means Tests Hypothesis Testing Assumptions Testing (Normality)
4-1 Statistical Inference The field of statistical inference consists of those methods used to make decisions or draw conclusions about a population.
Statistical Analysis A Quick Overview. The Scientific Method Establishing a hypothesis (idea) Collecting evidence (often in the form of numerical data)
+ Chapter 9 Summary. + Section 9.1 Significance Tests: The Basics After this section, you should be able to… STATE correct hypotheses for a significance.
Power & Sample Size and Principles of Simulation Michael C Neale HGEN 691 Sept Based on Benjamin Neale March 2014 International Twin Workshop,
1 Power and Sample Size in Testing One Mean. 2 Type I & Type II Error Type I Error: reject the null hypothesis when it is true. The probability of a Type.
Copyright © 2012 Wolters Kluwer Health | Lippincott Williams & Wilkins Chapter 17 Inferential Statistics.
Copyright © 2008 Wolters Kluwer Health | Lippincott Williams & Wilkins Chapter 22 Using Inferential Statistics to Test Hypotheses.
LECTURE 19 THURSDAY, 14 April STA 291 Spring
Inferential Statistics 2 Maarten Buis January 11, 2006.
Learning Objectives In this chapter you will learn about the t-test and its distribution t-test for related samples t-test for independent samples hypothesis.
1 Lecture note 4 Hypothesis Testing Significant Difference ©
CHAPTER 9 Testing a Claim
EMIS 7300 SYSTEMS ANALYSIS METHODS FALL 2005 Dr. John Lipp Copyright © Dr. John Lipp.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
1 9 Tests of Hypotheses for a Single Sample. © John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger. 9-1.
Academic Research Academic Research Dr Kishor Bhanushali M
CHAPTER 9 Testing a Claim
Power Simulation Ascertainment Benjamin Neale March 6 th, 2014 International Twin Workshop, Boulder, CO Denotes practical Denotes He-man.
© Copyright McGraw-Hill 2004
INTRODUCTION TO HYPOTHESIS TESTING From R. B. McCall, Fundamental Statistics for Behavioral Sciences, 5th edition, Harcourt Brace Jovanovich Publishers,
_ z = X -  XX - Wow! We can use the z-distribution to test a hypothesis.
Education 793 Class Notes Inference and Hypothesis Testing Using the Normal Distribution 8 October 2003.
Chapter 13 Understanding research results: statistical inference.
Hypothesis Testing Steps for the Rejection Region Method State H 1 and State H 0 State the Test Statistic and its sampling distribution (normal or t) Determine.
If we fail to reject the null when the null is false what type of error was made? Type II.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 9 Testing a Claim 9.1 Significance Tests:
Chapter 9 Hypothesis Testing Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze.
Logic of Hypothesis Testing
CHAPTER 9 Testing a Claim
Power and p-values Benjamin Neale March 10th, 2016
Hypothesis Testing – Introduction
Statistical Inference about Regression
Power and Sample Size I HAVE THE POWER!!! Boulder 2006 Benjamin Neale.
Chapter 9: Testing a Claim
Power Calculation Practical
Power Calculation Practical
Calculating t X -  t = s x X1 – X2 t = s x1 – x2 s d One sample test
Presentation transcript:

Power and Sample Size Boulder 2004 Benjamin Neale Shaun Purcell

To Be Accomplished Introduce Concept of Power via Correlation Coefficient (ρ) Example Identify Relevant Factors Contributing to Power Practical: Power Analysis for Univariate Twin Model How to use Mx for Power

Simple example Investigate the linear relationship (  between two random variables X and Y:  =0 vs.  0 (correlation coefficient). draw a sample, measure X,Y calculate the measure of association  (Pearson product moment corr. coeff.) test whether   0.

How to Test   0 assumed the data are normally distributed defined a null-hypothesis (  = 0) chosen  level (usually.05) utilized the (null) distribution of the test statistic associated with  =0 t=   [(N-2)/(1-  2 )]

How to Test   0 Sample N=40 r=.303, t=1.867, df=38, p=.06 α=.05 As p > α, we fail to reject  = 0 have we drawn the correct conclusion?

 = type I error rate probability of deciding  0 (while in truth  =0)  is often chosen to equal.05...why? DOGMA

N=40, r=0, nrep=1000 – central t(38),  =0.05 (critical value 2.04)

Observed non-null distribution (  =.2) and null distribution

In 23% of tests of  =0, |t|>2.024 (  =0.05), and thus draw the correct conclusion that of rejecting  0. The probability of rejecting the null- hypothesis (  =0) correctly is 1- , or the power, when a true effect exists

Hypothesis Testing Correlation Coefficient hypotheses: –h o (null hypothesis) is ρ=0 –h a (alternative hypothesis) is ρ ≠ 0 Two-sided test, where ρ > 0 or ρ < 0 are one-sided Null hypothesis usually assumes no effect Alternative hypothesis is the idea being tested

Summary of Possible Results H-0 trueH-0 false accept H-01-  reject H-0  1-   =type 1 error rate  =type 2 error rate 1-  =statistical power

Rejection of H 0 Non-rejection of H 0 H 0 true H A true Nonsignificant result (1-  ) Type II error at rate  Significant result (1-  ) Type I error at rate 

Power The probability of rejection of a false null-hypothesis depends on: –the significance criterion (  ) –the sample size (N) –the effect size (NCP) “The probability of detecting a given effect size in a population from a sample of size N, using significance criterion  ”

P(T)P(T) T alpha 0.05 Sampling distribution if H A were true Sampling distribution if H 0 were true   POWER = 1 -  Standard Case Effect Size (NCP)

P(T)P(T) T alpha 0.1 Sampling distribution if H A were true Sampling distribution if H 0 were true POWER = 1 -   Impact of Less Cons. alpha  

P(T)P(T) T alpha 0.01 Sampling distribution if H A were true Sampling distribution if H 0 were true POWER = 1 -  Impact of More Cons. alpha  

P(T)P(T) T alpha 0.05   Increased Sample Size Sampling distribution if H A were true Sampling distribution if H 0 were true POWER = 1 - 

P(T)P(T) T alpha 0.05 Sampling distribution if H A were true Sampling distribution if H 0 were true   POWER = 1 -  Increase in Effect Size Effect Size (NCP)↑

Effects on Power Recap Larger Effect Size Larger Sample Size Alpha Level shifts Type of Data: –Binary, Ordinal, Continuous

When To Do Power Calcs? Generally study planning stages of study Occasionally with negative result No need if significance is achieved Computed to determine chances of success

Power Calculations Empirical Attempt to Grasp the NCP from Null Simulate Data under theorized model Calculate Statistics and Perform Test Given α, how many tests p < α Power = (#hits)/(#tests)

Practical: Empirical Power 1 We will Simulate Data under a model online We will run an ACE model, and test for C We will then submit our data and Shaun will collate it for us While he’s collating, we’ll talk about theoretical power calculations

Practical: Empirical Power 2 First get F:\ben\2004\ace.mx and put it into your directory We will paste our simulated data into this script, so open it now in preparation, and note both places where we must paste in the data Note that you will have to fit the ACE model and then fit the AE submodel

Practical: Empirical Power 3 Simulation Conditions –30% A 2 20% C 2 50% E 2 –Input: –A C of E of –350 MZ 350 DZ –Simulate and Space Delimited at – or click here in slide show modehere –Click submit after filling in the fields and you will get a page of data

Practical: Empirical Power 4 With the data page, use control-a to select the data, control-c to copy, and in Mx control-v to paste in both the MZ and DZ groups. Run the ace.mx script with the data pasted in and modify it to run the AE model. Report the A, C, and E estimates of the first model, and the A and E estimates of the second model as well as both the -2log-likelihoods on the webpage or click here in slide show mode here

Practical: Empirical Power 5 Once all of you have submitted your results we will take a look at the theoretical power calculation, using Mx. Once we have finished with the theory Shaun will show us the empirical distribution that we generated today

Theoretical Power Calculations Based on Stats, rather than Simulations Can be calculated by hand sometimes, but Mx does it for us Note that sample size and alpha-level are the only things we can change, but can assume different effect sizes Mx gives us the relative power levels at the alpha specified for different sample sizes

Theoretical Power Calculations We will use the power.mx script to look at the sample size necessary for different power levels In Mx, power calculations can be computed in 2 ways: –Using Covariance Matrices (We Do This One) –Requiring an initial dataset to generate a likelihood so that we can use a chi-square test

Power.mx 1 ! Simulate the data ! 30% additive genetic ! 20% common environment ! 50% nonshared environment #NGroups 3 G1: model parameters Calculation Begin Matrices; X lower 1 1 fixed Y lower 1 1 fixed Z lower 1 1 fixed End Matrices; Matrix X Matrix Y Matrix Z Begin Algebra; A = X*X' ; C = Y*Y' ; E = Z*Z' ; End Algebra; End

Power.mx 2 G2: MZ twin pairs Calculation Matrices = Group 1 Covariances A+C+E|A+C _ A+C|A+C+E / Options MX%E=mzsim.cov End G3: DZ twin pairs Calculation Matrices = Group 1 H Full 1 1 Covariances _ / Matrix H 0.5 Options MX%E=dzsim.cov End

Power.mx 3 ! Second part of script ! Fit the wrong model to the simulated data ! to calculate power #NGroups 3 G1 : model parameters Calculation Begin Matrices; X lower 1 1 free Y lower 1 1 fixed Z lower 1 1 free End Matrices; Begin Algebra; A = X*X' ; C = Y*Y' ; E = Z*Z' ; End Algebra; End

Power.mx 4 G2 : MZ twins Data NInput_vars=2 NObservations=350 CMatrix Full File=mzsim.cov Matrices= Group 1 Covariances A+C+E|A+C _ A+C | A+C+E / Option RSiduals End G3 : DZ twins Data NInput_vars=2 NObservations=350 CMatrix Full File=dzsim.cov Matrices= Group 1 H Full 1 1 Covariances _ | A+C+E / Matix H 0.5 Option RSiduals ! Power for alpha = 0.05 and 1 df Option Power= 0.05,1 End