Download presentation

Presentation is loading. Please wait.

Published byMary Schneider Modified over 2 years ago

1
SADC Course in Statistics Assumptions underlying regression analysis (Session 05)

2
To put your footer here go to View > Header and Footer 2 Learning Objectives At the end of this session, you will be able to describe assumptions underlying a regression analysis conduct analyses that will allow a check on model assumptions discuss the consequences of failure of assumptions consider remedial action when assumption fail

3
To put your footer here go to View > Header and Footer 3 Checking assumptions Describing the relationship carries no assumptions. However, inferences concerning the slope of the line, e.g. by use of t-tests or F-tests, are subject to certain assumptions. Checking assumptions is important to avoid pitfalls associated with making invalid conclusions.

4
To put your footer here go to View > Header and Footer 4 Assumptions The simple linear regression model is: y i = x i + i In addition to assuming a linear form for the model, the i are assumed to be independent, with zero mean and constant variance 2, and be normally distributed. Note: Model predictions, often called fitted values, are

5
To put your footer here go to View > Header and Footer 5 How to check assumptions? The usual approach is to conduct a residual analysis. Residuals are deviations of observed values from model fitted values. Paddy data relating yield to fertiliser Residual

6
To put your footer here go to View > Header and Footer 6 Residual Plots Plotting residuals in various ways allows failure of assumptions to be detected. e.g. To check the normality assumption, plot a histogram of the residuals (provided there are enough observations); or do a normal probability plot of residuals. A straight line plot indicates that the normality assumption is reasonable.

7
To put your footer here go to View > Header and Footer 7 Residual Plots - continued Most useful is a plot of residuals against fitted values( ). It helps to detect failure of the variance homogeneity assumption. Also helps to identify potential outliers. e.g. If standardised residuals are used, i.e. residuals/standard error, then 95% of observations would be expected to lie between –2 and +2. A random scatter with no obvious pattern is good! Some examples follow….

8
To put your footer here go to View > Header and Footer 8 Some Residual Plots x x x x x x x x x x x x x x x x x x x xx x x x x A random scatter as above is good. It shows no obvious departures of the variance homogeneity assumption. 0

9
To put your footer here go to View > Header and Footer 9 Some Residual Plots x x x x x x x x x x x x x x x x x x x x x x x x x Variance increases with increasing x. Could try a log e (y) transformation. x 0

10
To put your footer here go to View > Header and Footer 10 0 x x x x x x x x x x x x x x x x x x x x x x x x x Indication that the response is a binomial proportion. Use a logistic regression model. Some Residual Plots x

11
To put your footer here go to View > Header and Footer 11 x x x x x x xx x x x x x x x x x x x x x x x x x Some Residual Plots Lack of linearity. Pattern indicates an incorrect model - probably due to a missing squared term. 0

12
To put your footer here go to View > Header and Footer 12 Some Residual Plots x x x x x x x x x x x x x x x x x x x x x x x x x Presence of an outlier. Investigate if there is a reason for this odd-point. 0

13
To put your footer here go to View > Header and Footer 13 Consequences of assumption failure Studies on consequences of assumption failure have demonstrated that: tests and confidence intervals for means are relatively robust to small departures from non-normality; the effects of non-homogeneous variance can be large, but not so serious if sample sizes in different sub-groupings are equal; dependence of observations can badly affect F-tests.

14
To put your footer here go to View > Header and Footer 14 Dealing with assumption failure One approach is to find a transformation that will stabilize the variance. Some typical transformations are: taking logs (useful when there is skewness); square root transformation; reciprocal transformation. Sometimes theoretical grounds will determine the transformation to use, e.g. when data are Poisson or Binomial. However, in such cases, exact methods of analysis will be preferable.

15
To put your footer here go to View > Header and Footer 15 Dealing with non-independence The assumption of independence is quite critical. Some attention to this is needed at the data collection stage. If observations are collected in time or space, plotting residuals in time (or space) order may reveal that subsequent observations are correlated. Techniques similar to those used in time series analysis or analysis of repeated measurements data may be more appropriate.

16
To put your footer here go to View > Header and Footer 16 An illustration – using paddy data Histogram of standardised residuals after fitting a linear regression of yield on fertiliser. This is a check on the normality assumption.

17
To put your footer here go to View > Header and Footer 17 A normal probability plot… Another check on the normality assumption Do you think the points follow a straight line?

18
To put your footer here go to View > Header and Footer 18 Std. residuals versus fitted values Checking assumption of variance homogeneity, and identification of outliers: Do you judge this to be a random scatter? Are there any outliers?

19
To put your footer here go to View > Header and Footer 19 Conclusion: The residual plots showed no evidence of departures from the model assumptions. We may conclude that fertiliser does contribute significantly to explaining the variability in paddy yields. Note: Always conduct a residual analysis after fitting a regression model. The same concepts carry over to more complex models that may be fitted.

20
To put your footer here go to View > Header and Footer 20 Practical work follows to ensure learning objectives are achieved…

Similar presentations

© 2016 SlidePlayer.com Inc.

All rights reserved.

Ads by Google