Blas MOLA-YUDEGO
What is a model? How is a linear regression fit and assessed? How we construct a model and make predictions with it?
In our case, a model is simply a (simplified) representation of reality, using mathematical language. This section will deal with regression linear models, starting with a single variable (predictor, independent) used to predict another one (response, dependent). The relation between both variables must be modeled, using a line and some properties of the normal distribution to fit the parameters that define that line. The model is assessed to measure the predictive power as well as if we incur in any violation of the premises concerning the way the line was fit. We will review the assumptions of Normality of the residues, linearity, constant variance (homoscedasticity) and independence. From that basis, we will expand to add more variables, check the effects of multi-collinearity and how to deal from there.
T3.1 Linear regression model [lecture]
T3.2 Model assessment [lecture]
T3.3 Multiple regression [lecture]
Slides from old lectures 2019 [PDF]
We propose you to try the following tasks to practice the concepts explain in those lectures:
How to do it?
In Excel:
Generate random numbers in excel: =RAND()
Generate numbers following a normal distribution with mean=100 and st dev=10: =NORMINV(RAND(),100,10)
In R:
Check here.
For more instructions, google (as I do)!
|
ObjectivesThe objectives of this topic are:
ScheduleLecture days: Third week: 2-6 November During the lecture we will discuss about the topics in the presentations, the exercises and possible doubts.
|
Data and materialsDatasetsExcel for task [xls] Excel for practice [xls] Simple regression exercisesExercise pre-exam [PDF] Exercise height-volume [PDF] Exercise heigh-diameter-volume [PDF] [solutions] Exercise wheat production [PDF] Multiple regression exercisesExercise height-diameter-value [PDF] Exercise barley yields [PDF] Videos and tutorialsSimple linear regression [youtube] How to make our own sandbox model [video]
|