Download presentation

Presentation is loading. Please wait.

Published byAlexandra Dolan Modified over 2 years ago

1
SADC Course in Statistics Predictions from the regression model (Session 09)

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 assess the regression model in terms of its appropriateness as a prediction equation distinguish between two types of possible predictions and why their precision differs use software to produce predictors and corresponding confidence intervals understand dangers of predicting beyond values used in developing the predictor

3
To put your footer here go to View > Header and Footer 3 An Example Consider a health survey of a random sample of 20 districts in which one variable of interest was the perinatal mortality rate, i.e. no. of deaths in first 30 days after birth per 1000 live births; In all districts, the number of health centres per 1000 households is known. Suppose a health official wants to predict perinatal mortality in districts not covered by the survey.

4
To put your footer here go to View > Header and Footer 4 The data (fictitious) mort hcentres morthcentres

5
To put your footer here go to View > Header and Footer 5 Results of a linear regression model mort | Coef. Std.Err. t P>|t| hcentres | const. | Adjusted R 2 = 52.6% The equation of the line is: mort = (hcentres)

6
To put your footer here go to View > Header and Footer 6 Predictions from the model There are two types of predictions possible: 1.What would be the average mortality rate in districts where there are only 9 health centres per 1000 households? 2.A particular district has 9 health centres per 1000 hhs. What would be the predicted mortality rate in this district? The answer to both predictions are: mortality = (9) = But would their standard errors be the same?

7
To put your footer here go to View > Header and Footer 7 Standard errors of the predictions The standard error for (1), call it sepred, can be obtained with statistical software. The standard error for (2) is the square root of: (sepred) 2 + (residual M.S. in anova) The addition of the RMS is to account for variation of individual values about their mean. Note: For the case where there is only 1 regressor variable, a simple formula does exist (see final slide).

8
To put your footer here go to View > Header and Footer 8 Confidence intervals for predictions The standard error can be used to determine (say) 95% confidence intervals for each type of prediction. Because individual predictions have a larger standard error, the corresponding 95% C.I. will be wider for such predictions. The graphs below show the difference in precision (Stata output)

9
To put your footer here go to View > Header and Footer 9 Confidence intervals for predicted mean values

10
To put your footer here go to View > Header and Footer 10 Confidence intervals for predicted individual values

11
To put your footer here go to View > Header and Footer 11 Dangers of extrapolation It is clear from above graphs that the confidence bands widen as predictions are made away from the mean of the x values. This is also true of predictions made from results of a multiple linear regression model. Hence extrapolating to make predictions beyond xs used in the model fitting can be dangerous since they would be very imprecise!

12
To put your footer here go to View > Header and Footer 12 A real example from Tanzania One aim of the Adult Morbidity and Mortality Project (AMMP) in Tanzania was to investigate how health outcomes varied across different levels of poverty. All households in several sentinel sites were monitored over many years… But, initially there was no measure of income poverty to address above objective. Question: Can a prediction model be developed to give a poverty measure using socio-economic variables?

13
To put your footer here go to View > Header and Footer 13 Results for a model for households in Tabora region lnexpdf | Coef. Std.Err. t P>|t| hhsize | hhsize2 | water | qmeat | qmilk | iron | table | wheatf | seeds | num_meal | const. |

14
To put your footer here go to View > Header and Footer 14 Model equation lnexpdf (y) = – 0.227(hhsize) (hhsize) (water) (qmeat) (qmilk) (iron) (table) (wheatf) (seeds) (num_meal)

15
To put your footer here go to View > Header and Footer 15 How good is the prediction? R 2 =58%. A plot of predicted values vs actual also indicates closeness of prediction.

16
To put your footer here go to View > Header and Footer 16 But terciles tabulation of actual versus predicted, less promising! terciles | terciles of prediction | of lnexpdf| Lowest Middle Highest | Total Lowest | | 341 Middle | | 351 Highest | | Total | | Percent correctly classified = [( )/1049]*100 = 66 %

17
To put your footer here go to View > Header and Footer 17 How many HHs are correctly classified as being below poverty line? If really below| Below poverty line| basic needs | on predictions | poverty line? | No Yes | Total No | | 880 Yes | | Total | | 1, Percent correctly classified as below line = [( )/1049]*100 = 86.6 %

18
To put your footer here go to View > Header and Footer 18 Does the prediction address the original objective? The answer is yes. Although at a household level, the predictions were not so good, health outcomes like mortality rates, percent immunised, etc., were measured in AMMP at community level. The predictions, averaged over HHs in a community were satisfactory, e.g. further analysis showed that the average prediction percent error was under 6%.

19
To put your footer here go to View > Header and Footer 19 Key Steps in model prediction… Select carefully a set of potential explanatory variables Decide the direction of influence expected (+ or – for regression coefficients) Use a suitable model selection approach to identify the subset of variables contributing significantly to explaining the variation in the key response(y) Conduct a residual analysis and take remedial action if problems occur

20
To put your footer here go to View > Header and Footer 20 Key Steps in model prediction… Check whether the final model makes sense in terms of the explanatory variables included and the signs of their coefficients Consider whether there are other latent variables which may be non-measurable but influential! Conclusions should mention these! Examine how well the prediction performs, studying also the precision of the prediction Give the form of the model equation and corresponding conclusions

21
To put your footer here go to View > Header and Footer 21 Formulae for standard errors for a simple linear regression (for reference only) If s 2 represents the Residual Mean Square in the anova, the std. error for the predicted mean = Std. error for a predicted individual value =

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

Similar presentations

© 2016 SlidePlayer.com Inc.

All rights reserved.

Ads by Google