

Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!


Regression analysis is a tool for building mathematical and statistical models that characterise
relationships between a dependent variable and one or more independent (explanatory)
variables. Most of the times, all these variables are numerical.
2 categories of regression models:
Simple linear regression= it involves a single independent variable;
Multiple linear regression= it involves two or more independent variables;
Simple linear regression aims to find a linear relationship between 1 independent (X) and 1
dependent (Y) variables. The first step is to verify if the relation is linear or not, by creating a
scatter chart that shows the relation visually.
Simple linear regression is designed to find the best fitting regression line (the one in which
point of the graph are closer to the line) by minimising errors. Regression models are in fact
commonly used as they provide better estimates of market values than simply using averages.
L east-square regression are the mathematical basis for best-fitting regression line. Taking a data
set of a sample and assuming it has a linear regression, the dependent variable Y is obtained
by summing coefficients of population parameters. Yet, since data come from a sample, the
coefficients of the population are unknown, and so the formula uses estimates of these
coefficients. They respectively are the intercept ( b 0
) and the slope ( b 1
Since the formula uses population estimates , there can be find residuals. They are the observed
errors given by the difference between the actual value and the estimated value of the dependent
variable (actual Y - predicted Y). Focusing on standard residuals, they are particularly useful in
detecting outliers (if the value is outside the range +2;-2, we’re dealing with a potential residual).
2 ways of test for significance:
regression, which is a hypothesis test to determine if the regression coefficient ( slope ) is equal
zero. Thus:
0
–> population slope coefficient = 0 –> no correlation
1
–> population slope coefficient ≠ 0 –> correlation
If H 0
is rejected, then it shows a statistical significance , thus a variation of X variables will cause
variation of Y variables.
statistic is t = ( b 1
- 0) / standard error. This output also provides the p-value for the test, thus
there will be a rejection and a non-rejection region to discover if the variables are correlated.
Key assumptions to check:
represent a bell-shaped curve
Multiple linear regression aims to find a linear relationship between 1 dependent (Y) and 2 or
more independent (X) variables. Because usually a dependent variable depends on more than
just one independent variable (EG. On what depends students’ performances (Y)? Different
factors like: satisfaction, the acceptance rate, the average students’ expenditure -> they all are
independent (X). Here again the SLOPE and the INTERCEPT are estimates and represent the
expected change in the dependent (Y), while the associated independent (X) is increased by 1 unit
(and the others independent remain unvaried).
Here ANOVA test will consider the entire model. F-test for testing the following hypothesis:
0
–> every regression coeff. Of independent variables = 0 –> no correlation
1
–> at least one coefficient ≠ 0 –> correlation
If H0 is rejected, then the independent variable is significant, and so, improves the ability of the
model to better predict the dependent variable. On the other hand, if H0 is not rejected, the
independent variable is not significant and it shouldn’t be included in the model.
overfitting. It occurs when the model fit too closely the sample data, but since samples may
have unusual variability different from population, there’s the risk of a model not fitting the real
population. In multiple regressions, if too many terms are added to the model, then it may not
adequately predict other values from the population. It can be mitigated by using good logic ,
intuition and theory.