Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.1 Simple linear regression What regression analysis does The simple.

Slides:



Advertisements
Similar presentations
11-1 Empirical Models Many problems in engineering and science involve exploring the relationships between two or more variables. Regression analysis.
Advertisements

Chap 12-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 12 Simple Regression Statistics for Business and Economics 6.
Forecasting Using the Simple Linear Regression Model and Correlation
Inference for Regression
Multiple regression. Problem: to draw a straight line through the points that best explains the variance Regression.
Regression Analysis Once a linear relationship is defined, the independent variable can be used to forecast the dependent variable. Y ^ = bo + bX bo is.
1 Chapter 2 Simple Linear Regression Ray-Bing Chen Institute of Statistics National University of Kaohsiung.
Generalized Linear Models (GLM)
Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L10.1 CorrelationCorrelation The underlying principle of correlation analysis.
Chapter 13 Multiple Regression
Correlation and Regression. Spearman's rank correlation An alternative to correlation that does not make so many assumptions Still measures the strength.
Lecture 15 – Tues., Oct. 28 Review example of one-way layout Simple Linear Regression: –Simple Linear Regression Model, 7.2 –Least Squares Regression Estimation,
Chapter 12 Simple Regression
BA 555 Practical Business Analysis
Lecture 16 – Thurs., March 4 Chi squared test for M&M experiment Simple linear regression (Chapter 7.2) Next class after spring break: Inference for simple.
Chapter 12 Multiple Regression
Lecture 19: Tues., Nov. 11th R-squared (8.6.1) Review
The Simple Regression Model
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 13-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
SIMPLE LINEAR REGRESSION
Pengujian Parameter Koefisien Korelasi Pertemuan 04 Matakuliah: I0174 – Analisis Regresi Tahun: Ganjil 2007/2008.
Chapter Topics Types of Regression Models
Topics: Regression Simple Linear Regression: one dependent variable and one independent variable Multiple Regression: one dependent variable and two or.
REGRESSION AND CORRELATION
SIMPLE LINEAR REGRESSION
Ch. 14: The Multiple Regression Model building
© 2000 Prentice-Hall, Inc. Chap Forecasting Using the Simple Linear Regression Model and Correlation.
11-1 Empirical Models Many problems in engineering and science involve exploring the relationships between two or more variables. Regression analysis.
1 BA 555 Practical Business Analysis Review of Statistics Confidence Interval Estimation Hypothesis Testing Linear Regression Analysis Introduction Case.
Correlation and Regression Analysis
Introduction to Regression Analysis, Chapter 13,
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. More About Regression Chapter 14.
Simple Linear Regression Analysis
Correlation & Regression
University of Ottawa - Bio 4118 – Applied Biostatistics © Antoine Morin and Scott Findlay 18/08/2015 2:25 AM 1 Data analysis project Proposal must be approved.
Regression and Correlation Methods Judy Zhong Ph.D.
SIMPLE LINEAR REGRESSION
Introduction to Linear Regression and Correlation Analysis
Inference for regression - Simple linear regression
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 12-1 Chapter 12 Simple Linear Regression Statistics for Managers Using.
STA291 Statistical Methods Lecture 27. Inference for Regression.
Simple Linear Regression Models
Correlation and Regression
BPS - 3rd Ed. Chapter 211 Inference for Regression.
Statistics for Business and Economics Chapter 10 Simple Linear Regression.
OPIM 303-Lecture #8 Jose M. Cruz Assistant Professor.
Statistics for Business and Economics 7 th Edition Chapter 11 Simple Regression Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch.
University of Ottawa - Bio 4118 – Applied Biostatistics © Antoine Morin and Scott Findlay 08/10/ :23 PM 1 Some basic statistical concepts, statistics.
© 2003 Prentice-Hall, Inc.Chap 13-1 Basic Business Statistics (9 th Edition) Chapter 13 Simple Linear Regression.
Introduction to Linear Regression
EQT 373 Chapter 3 Simple Linear Regression. EQT 373 Learning Objectives In this chapter, you learn: How to use regression analysis to predict the value.
Applied Quantitative Analysis and Practices LECTURE#23 By Dr. Osman Sadiq Paracha.
©2006 Thomson/South-Western 1 Chapter 13 – Correlation and Simple Regression Slides prepared by Jeff Heyl Lincoln University ©2006 Thomson/South-Western.
© Copyright McGraw-Hill Correlation and Regression CHAPTER 10.
Lecture 10: Correlation and Regression Model.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Simple Linear Regression Analysis Chapter 13.
University of Ottawa - Bio 4118 – Applied Biostatistics © Antoine Morin and Scott Findlay 24/01/2016 8:44 PM 1 Simple linear regression What regression.
Statistics for Managers Using Microsoft® Excel 5th Edition
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 12-1 Chapter 12 Simple Linear Regression Statistics for Managers Using.
BPS - 5th Ed. Chapter 231 Inference for Regression.
Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L12.1 Lecture 12: Generalized Linear Models (GLM) What are they? When do.
University of Ottawa - Bio 4158 – Applied Biostatistics © Antoine Morin and Scott Findlay 06/07/2016 6:16 AM 1 Single classification analysis of variance.
Chapter 2 Linear regression.
Statistics for Managers using Microsoft Excel 3rd Edition
Statistical Quality Control, 7th Edition by Douglas C. Montgomery.
Chapter 11 Simple Regression
Elements of a statistical test Statistical null hypotheses
Simple Linear Regression
Product moment correlation
Presentation transcript:

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.1 Simple linear regression What regression analysis does The simple regression model Hypothesis testing in regression Residual analysis Inverse prediction, replicated regression and weighted regression Regression caveats Power considerations in simple linear regression What regression analysis does The simple regression model Hypothesis testing in regression Residual analysis Inverse prediction, replicated regression and weighted regression Regression caveats Power considerations in simple linear regression

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.2 What regression does Fits a straight line through a cloud of data. Tests and quantifies the effect of an independent variable X on a dependent variable Y. Intensity of the effect is given by the slope (b) of the regression. The importance of the effect is given by the coefficient of determination (r 2 ). Fits a straight line through a cloud of data. Tests and quantifies the effect of an independent variable X on a dependent variable Y. Intensity of the effect is given by the slope (b) of the regression. The importance of the effect is given by the coefficient of determination (r 2 ). X Y XX YY b =  Y  X

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.3 Regression and correlation coefficients The slope b is estimated as: The correlation r is: So, b = r if X and Y have the same variance… and if b = 0, r = 0 and vice versa.

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.4 How it does it by the method of least squares, which involves minimizing the sum of squared deviations between the observations and the regression line, i.e. minimizing the residuals Squared deviation of an observation given by: by the method of least squares, which involves minimizing the sum of squared deviations between the observations and the regression line, i.e. minimizing the residuals Squared deviation of an observation given by: X Y ii Residual:

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.5 Regression or correlation? Correlation: degree of association between two variables X and Y; no causal relationship assumed! Regression: to predict the value of the dependent variable if the independent variable were changed; causal relationship assumed! Correlation: degree of association between two variables X and Y; no causal relationship assumed! Regression: to predict the value of the dependent variable if the independent variable were changed; causal relationship assumed!

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.6 When do we use regression? Don’t use it to determine the strength of association between to variables. Do use it if you want to predict the value of Y given X. Don’t use it to determine the strength of association between to variables. Do use it if you want to predict the value of Y given X. X Y Regression X1X1 X2X2 Correlation

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.7 The simple regression model The regression model is: So, all simple regression models are described by 2 parameters, the intercept (  ) and slope (b). The regression model is: So, all simple regression models are described by 2 parameters, the intercept (  ) and slope (b). b =  Y  X (slope) X XX YY  (intercept) ii XiXi YiYi Observed Expected

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.8 AssumptionsAssumptions Residuals are independent and normally distributed. The variance of the residuals is equal for all X (homoscedasticity). The relationship between Y and X is linear. There is no measurement error on X (Model I regression). Residuals are independent and normally distributed. The variance of the residuals is equal for all X (homoscedasticity). The relationship between Y and X is linear. There is no measurement error on X (Model I regression).

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.9 Measurement error Assumption of no error on X can be examined beforehand, and is almost invariably violated. Only of concern when measurement error is large relative to magnitude of X (say, > 10%). If assumption is invalid, then Model II regression is required. Assumption of no error on X can be examined beforehand, and is almost invariably violated. Only of concern when measurement error is large relative to magnitude of X (say, > 10%). If assumption is invalid, then Model II regression is required.

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.10 Residual analysis I: independence Plot residuals against estimates, look for patterns. Do ACF plot. Plot residuals against estimates, look for patterns. Do ACF plot. Estimate Residual

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.11 Residual analysis II: Normality Plot residuals against estimates; look for patterns. Do normal probability plot. Check with Lilliefors test. Plot residuals against estimates; look for patterns. Do normal probability plot. Check with Lilliefors test. NEDs Residual Normal Non-normal Residual Estimate

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.12 Residual analysis III: Homoscedasticity Plot residuals against estimates; look for patterns. Check with Levene’s test by grouping Y’s into several classes. Plot residuals against estimates; look for patterns. Check with Levene’s test by grouping Y’s into several classes. Estimate Residual Group 1 Group 2 Group 3 Residual Estimate

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.13 Residual analysis IV: Linearity Plot residuals against estimates; look for patterns. Residual X Y Estimate

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.14 Robustness of regression with respect to violation of assumptions

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.15 What to do when assumptions aren’t met Try transforming the data, but remember: (1) for some data, no transformation will work; (2) finding an appropriate transformation may not be easy. Use non-linear regression. Try transforming the data, but remember: (1) for some data, no transformation will work; (2) finding an appropriate transformation may not be easy. Use non-linear regression.

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.16 Transformations in regression

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.17 oCoC Transformations in regression Chirps/min oCoC Chirps/min (log scale) Chirp rate as a function of temperature in males of the cricket Oecanthus fultoni.

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.18 Transformations in regression Relative brightness (times) in log scale Millivolts Relative brightness (times) Millivolts Electrical resistance as a function of illumination in cephalopod eyes.

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.19 Hypothesis testing I: partitioning the total sums of squares Total SSModel (Explained) SSUnexplained (Error) SS = + Y

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.20 Hypothesis testing I: partitioning the total sums of squares So, MS regression = s 2 Y and MS error = 0 if observed = expected. Calculate F = MS R /MS e and compare with F distribution with 1 and N - 2 df. H 0 : F = 0 So, MS regression = s 2 Y and MS error = 0 if observed = expected. Calculate F = MS R /MS e and compare with F distribution with 1 and N - 2 df. H 0 : F = 0

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.21 Standard error of the slope The standard error s b and 100(1-  ) CIs of the slope are: So, for fixed N, can decrease s b by expanding range of X values sampled. The standard error s b and 100(1-  ) CIs of the slope are: So, for fixed N, can decrease s b by expanding range of X values sampled. Y X s b smaller Y s b larger

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.22 Standard error of the intercept The standard error s  of the intercept  is: So, for fixed N, we can decrease s  by expanding range of X values sampled. The standard error s  of the intercept  is: So, for fixed N, we can decrease s  by expanding range of X values sampled. X s  smaller Y  Y s  larger 

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.23 Hypothesis testing II: testing model parameters Test each hypothesis by a t- test: Note: these are 2-tailed hypotheses! Test each hypothesis by a t- test: Note: these are 2-tailed hypotheses! X Y  H 02 : b = 0 X Y  Y  Y H 01 :  = 0 Y = 0 Observed Expected

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.24 Hypothesis testing III: one-tailed hypotheses Biological theory predicts that Y should increase with X. So, H 0 : b  0 (one-tailed) Calculate: Reject if t b > 0 and p (one- tailed) <  Biological theory predicts that Y should increase with X. So, H 0 : b  0 (one-tailed) Calculate: Reject if t b > 0 and p (one- tailed) <  YY H 0 accepted H 0 rejected Y X Y

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.25 Confidence intervals in regression 100 (1-  ) CI for estimated values 100 (1-  ) CI for observations

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.26 Confidence intervals in regression CI for observations is larger than CI for estimated values. CIs for both estimated values and observations increase with increasing distance between X value and mean of sample. CI for observations is larger than CI for estimated values. CIs for both estimated values and observations increase with increasing distance between X value and mean of sample. X Y Observations Y Estimates

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.27 OutliersOutliers points that appear to lie well off the fitted line Issue 1: are “apparent” outliers really outliers? Issue 2: do they significantly affect the statistical conclusions? points that appear to lie well off the fitted line Issue 1: are “apparent” outliers really outliers? Issue 2: do they significantly affect the statistical conclusions? X Y Outlier?

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.28 Outlier analysis I: Studentized residuals Plot Studentized residuals against estimated values. “Large” residuals are those with value > 3.0. Such cases make large contributions to residual mean square of the regression. Plot Studentized residuals against estimated values. “Large” residuals are those with value > 3.0. Such cases make large contributions to residual mean square of the regression.

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.29 Outlier analysis II: Leverage Leverage measures the potential influence of the case on the regression line. Determined by X value only, so that points far from the mean have higher leverage. “Large” = anything greater than 4/N. Leverage measures the potential influence of the case on the regression line. Determined by X value only, so that points far from the mean have higher leverage. “Large” = anything greater than 4/N. Small leverage Large leverage X Y

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.30 Outlier analysis III: Cook’s distance Cook’s distance: measures both leverage and contribution to residual mean square, i.e. actual influence of a point. “Large” = anything greater than 1. Cook’s distance: measures both leverage and contribution to residual mean square, i.e. actual influence of a point. “Large” = anything greater than 1. Smaller Cook’s Larger Cook’s X Y

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.31 Resolving outlier problems Do they have a significant effect on regression results? To determine, delete them, rerun analyses and compare results. Are slope and intercept estimates significantly affected, i.e. still lie within 95% CI’s of original estimates? Do they have a significant effect on regression results? To determine, delete them, rerun analyses and compare results. Are slope and intercept estimates significantly affected, i.e. still lie within 95% CI’s of original estimates? Outliers in Outliers out Y No significant effect X Y Significant effect

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.32 The effects of outlier deletion Reduces sample size (N), thereby reducing power. Decreases MS e, so s b decreases, and power increases. If N is small, the former effect will probably outweigh the latter unless outliers are very aberrant. Reduces sample size (N), thereby reducing power. Decreases MS e, so s b decreases, and power increases. If N is small, the former effect will probably outweigh the latter unless outliers are very aberrant. Power (1 -  )  N smaller N larger s b larger s b smaller s b fixed N fixed 0 0 1

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.33 Inverse prediction Regression of Y on X, but want to predict X, given Y. Regression of X on Y not possible due to error in Y. e.g. calibration curves: want to predict concentration from reading, based on regression of reading on known solute concentrations. Regression of Y on X, but want to predict X, given Y. Regression of X on Y not possible due to error in Y. e.g. calibration curves: want to predict concentration from reading, based on regression of reading on known solute concentrations. Reading Concentration Reading Concentration Error in “X”

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.34 Inverse prediction Regress Y on X. Generate predicted value of X given Y. Calculate 95% confidence limits for “X” estimate based on 95% confidence limits for “Y” estimate from standard regression. Regress Y on X. Generate predicted value of X given Y. Calculate 95% confidence limits for “X” estimate based on 95% confidence limits for “Y” estimate from standard regression. Y Predicted “X” Lower 95% limit Upper 95% limit

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.35 Regression with replication When several Y’s are measured for each X. In this case, we can test the linearity assumption directly by testing the MS due to deviations from linearity over MS within groups. When several Y’s are measured for each X. In this case, we can test the linearity assumption directly by testing the MS due to deviations from linearity over MS within groups. Regression SS Within-group SS SS due to nonlinearity Group SS Error SS

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.36 Weighted regression Used when our confidence in the values of individual observations varies, e.g. different measurement error, precision. In replicated designs, variance of Y for given X may vary among X’s, as may sample size (N). So, weight by N or inverse of sample variance. Used when our confidence in the values of individual observations varies, e.g. different measurement error, precision. In replicated designs, variance of Y for given X may vary among X’s, as may sample size (N). So, weight by N or inverse of sample variance. X Y

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.37 Regression caveats I: causation A statistically significant regression of Y on X need not imply a causal relationship between the two. A non-significant linear regression need not imply the lack of a causal relationship if the causal relationship is non-linear. A statistically significant regression of Y on X need not imply a causal relationship between the two. A non-significant linear regression need not imply the lack of a causal relationship if the causal relationship is non-linear. Z X Y X Y X Y Accept linear H 0

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.38 Regression caveats II: small samples Significant regressions can be obtained by chance, i.e. even when no (linear) causal relationship exists. This is especially true if sample sizes are small. So when doing multiple simple regressions, control  e. Significant regressions can be obtained by chance, i.e. even when no (linear) causal relationship exists. This is especially true if sample sizes are small. So when doing multiple simple regressions, control  e. X Y True regression (H 0 accepted) Sample regression (H 0 rejected)

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.39 Regression caveats III: large samples When N is large, only very small regression coefficients are required to reject H 0 (power is large). So, be careful of “overinterpreting” the observed relationship if R 2 is small. When N is large, only very small regression coefficients are required to reject H 0 (power is large). So, be careful of “overinterpreting” the observed relationship if R 2 is small. True regression (H 0 rejected but R 2 small) X Y

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.40 Regression caveats IV: extrapolation and interpolation Be careful when (1) predictions lie outside range of sample; (2) when predictions are for values where data are sparse. X Y Estimated relation True relation X Y Predicted value True value Observations

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.41 The final word on extrapolation In the space of one hundred and seventy-six years the Lower Mississippi has shortened itself two hundred and forty-six miles. That is an average of a trifle over one mile and a third per year. Therefore, any calm person, who is not blind or idiotic, can see that in the Old Oölitic Silurian period, just a million years ago next November, the Lower Mississippi River was upwards of one million three hundred thousand miles long, and stuck over the Gulf of Mexico like a fishing rod. And by the same token, any person can see that seven hundred and forty-two years from now, the lower Mississippi will be only a mile and three-quarters long, and Cairo and New Orleans will have joined their streets together, and be plodding comfortably along under a single mayor and a mutual board of aldermen. Mark Twain, Life on the Mississippi

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.42 Power and sample size in simple linear regression Because the correlation coefficient r and the regression coefficient b are closely related, i.e. … we can transform b to r and evaluate power using r. Because the correlation coefficient r and the regression coefficient b are closely related, i.e. … we can transform b to r and evaluate power using r. X Y

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.43 Power and sample size regression If we test H 0 : b = 0 with sample size n, we can determine 1 -  by calculating the z-transformed values for the critical value of the corresponding r (at specified  ) (z  ) and the sample regression coefficient b (z r ), and the one- tailed probability of the normal deviate: X Y

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.44 Power and sample size in regression Once Z  (1) is determined, we can calculate the probability of obtaining a Z-value of this size or greater, i.e. . Power is then 1- . Once Z  (1) is determined, we can calculate the probability of obtaining a Z-value of this size or greater, i.e. . Power is then 1- . X Y Z  (1) p 

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.45 Power and sample size in regression: an example Changes in wing length with age in a sample of 13 birds So 1 -  = Changes in wing length with age in a sample of 13 birds So 1 -  = 1.00.

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.46 Minimal sample size in regression Given desired power 1 - , how large a sample is required to reject H 0 : b  = 0 if it is false and the true regression coefficient is at least b   To do so, first calculate regression coefficient  0 corresponding to b . Given desired power 1 - , how large a sample is required to reject H 0 : b  = 0 if it is false and the true regression coefficient is at least b   To do so, first calculate regression coefficient  0 corresponding to b . X1X1 Y Reject H 0 ? Observed Expected under H 0 : b = 0 True regression (b 0 ) Y Reject H 0 ?

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.47 Minimal sample size in regression (cont’d) …then calculate: X1X1 Y Reject H 0 ? Observed Expected under H 0 : b = 0 True regression (b 0 ) Y Reject H 0 ?

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.48 Minimal sample size: an example We want to reject H 0 : b  = 0 99% of the time when b 0  > 0.2  and   (2)  =.05  So  (1) =.01 and For b =.20, we have... We want to reject H 0 : b  = 0 99% of the time when b 0  > 0.2  and   (2)  =.05  So  (1) =.01 and For b =.20, we have...

Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L11.49 Minimal sample size (cont’d) So… …and So… …and So, a sample size of at least 8 should be used.