Docsity

Linear Regression - Lecture Notes | FIN 203, Study notes of Finance

Toggle sidebar
bg1
LINEAR REGRESSION (INTRODUCTION)
Decisions in business and other areas are often based on
predictions of what might happen in the future. As one's ability to
predict future improves decisions can be made whose outcomes are
more favorable. The most formidable approach in predicting the
future is to establish quantitative relationships between what is
known and what is to be predicted. Regression and correlation are
interrelated statistical techniques that allow decision makers not only
to establish a quantitative relationship among such variables but also
measure the ā€œstrengthā€ of the relationship.
In regression analysis a mathematical equation is estimated
which relates some known quantities to an unknown variable of
interest. Examples may include the relationship between advertising
expenditure and level of demand, volume of production and material
cost, smoking habits and incidents of heart diseases. In all of the
examples the relationship to be established is of statistical (stochastic)
nature. This means that we do not pretend to imply that the level of
demand is exclusively and deterministically depends on advertising
budget, rather we hypothesize that among other factors advertising
budget has some non-trivial effect on the level of demand. Thus
knowing the advertising budget does not allow us to predict sales
without any error but simply affords a more accurate prediction than
would be possible without that knowledge. This is an important
difference from the scientific laws where the knowledge of certain
variables allow the scientists to make very accurate predictions, as in
the case of the speed of a train determining the time to traverse a 100
mile track without error.
Regression and correlation analyses are used to establish a
relationship or an association between two (or more) variables. The
known variable(s) is(are) called the independent (explanatory)
variable(s), while the variable to be predicted is the dependent (or
response) variable. In the example of advertising versus sales
volume, the advertising budget is the known independent variable
while the sales volume is the dependent (response) variable to be
predicted. In regression analysis we can have only one dependent
variable but can use more than one independent variable (for
instance, price in addition to advertising) to predict this dependent
variable. If we have only one independent variable the regression
model is called a simple regression model whereas if we have more
than one independent variable we have a multiple regression model.
In what follows we will first develop the simple regression model then
extend it to the multiple regression case.
In the context of simple regression model the nature of the
relationship can take many forms-- it may be linear or non-linear
(concave, convex or some arbitrary polynomial). In the majority of the
applications of regression method, a linear relationship is assumed.
pf3
pf4

Partial preview of the text

Download Linear Regression - Lecture Notes | FIN 203 and more Study notes Finance in PDF only on Docsity!

LINEAR REGRESSION (INTRODUCTION)

Decisions in business and other areas are often based on

predictions of what might happen in the future. As one's ability to

predict future improves decisions can be made whose outcomes are

more favorable. The most formidable approach in predicting the

future is to establish quantitative relationships between what is

known and what is to be predicted. Regression and correlation are

interrelated statistical techniques that allow decision makers not only

to establish a quantitative relationship among such variables but also

measure the ā€œstrengthā€ of the relationship.

In regression analysis a mathematical equation is estimated

which relates some known quantities to an unknown variable of

interest. Examples may include the relationship between advertising

expenditure and level of demand, volume of production and material

cost, smoking habits and incidents of heart diseases. In all of the

examples the relationship to be established is of statistical (stochastic)

nature. This means that we do not pretend to imply that the level of

demand is exclusively and deterministically depends on advertising

budget, rather we hypothesize that among other factors advertising

budget has some non-trivial effect on the level of demand. Thus

knowing the advertising budget does not allow us to predict sales

without any error but simply affords a more accurate prediction than

would be possible without that knowledge. This is an important

difference from the scientific laws where the knowledge of certain

variables allow the scientists to make very accurate predictions, as in

the case of the speed of a train determining the time to traverse a 100

mile track without error.

Regression and correlation analyses are used to establish a

relationship or an association between two (or more) variables. The

known variable(s) is(are) called the independent (explanatory)

variable(s), while the variable to be predicted is the dependent (or

response) variable. In the example of advertising versus sales

volume, the advertising budget is the known independent variable

while the sales volume is the dependent (response) variable to be

predicted. In regression analysis we can have only one dependent

variable but can use more than one independent variable (for

instance, price in addition to advertising) to predict this dependent

variable. If we have only one independent variable the regression

model is called a simple regression model whereas if we have more

than one independent variable we have a multiple regression model.

In what follows we will first develop the simple regression model then

extend it to the multiple regression case.

In the context of simple regression model the nature of the

relationship can take many forms-- it may be linear or non-linear

(concave, convex or some arbitrary polynomial). In the majority of the

applications of regression method, a linear relationship is assumed.

Especially in business and other social sciences non-linear regression

models are used with somewhat less frequency. In the simple linear

regression the stochastic relationship between the dependent and the

independent variable can be represented by a straight line in the form

of:

Y = A + BX + Ǝ

This is called the true model and is assumed to have been obtained

from the entire population. Here Y is the dependent variable, X is the

independent variable; the parameters, A and B are respectively are

the intercept and the slope of the regression, while Ǝ is the error

term that represents the influence of all the other unknown factors on

the dependent variable. If the value of B is positive we speak of a

direct relationship between the variables as they both go in the same

direction e. g ., as the independent variable increases so does the

dependent variable and vice versa. On the other hand if the parameter

B has a negative value the relationship is inverse -when the

independent variable increases the dependent variable decreases and

vice versa. If B is actually zero then there is no relationship between

X and Y.

From this point on lets assume Y represents the monthly sales

volume and X the advertising budget. Since we assume there are other factors

besides the advertising budget affecting the sales volume, even for fixed value of X , a

range of Y values are possible (i.e., the relationship is not deterministic). For any fixed

value of X , the distribution of all Y values is referred to as the conditional distribution of

Y , denoted by Y|X —read as Y given X. For example Y|X =500 refers to the distribution of

sales volumes in all months in which the advertising budget has been 500. In

regression analysis we make certain assumptions about the

conditional distributions of the dependent variable—variable which we

try to predict.

ļ‚· Normality. All conditional distributions are normally distributed ( e.g. the

distribution of sale volumes in all months in which advertising has been or

will ever be some fixed level is normal).

ļ‚· Homoscedasticity. All conditional (normal) distributions have the same

variance, s

2

ļ‚· Linearity. The means of the conditional distributions are linearly related

to the value of the independent variable.

ļ‚· Deterministic X. Values of the independent variable(s) is(are) known

without any uncertainty.

ļ‚· Independent errors. The magnitude of error in one observation has no

influence of the magnitude of the error in other observations.

The third assumption is implicit in the model Y = A + BX + Ǝ.

Mean of Y|X, Y m |X

= A + BX since the mean of Ǝ is zero. (There are very large

number of other factors affecting Y, some positive some negative, thus their combined

effect is zero).

Utopia : In the example, if we knew (we probably never will!)

the true model: Y = 649.58 + 1.1422 X and s

2

= 356, we would be able to make

The quantity to be minimized (by the choice of a and b ) is

2

2

i

i

i

i

i

i

Y Y Y  a  bX 

. Let’s call this (the sum of squared errors) SSE. If

we choose

and

then SEE will be minimized. Also an estimate of the s

2

is obtained from

Notice that the least squares line minimizes the estimated value of s e

since the numerator

under the radicand is precisely SSE.

These three formulas give then the least-squares estimate of the true model (true

relationship between Y and X) as

Y  a  bX

ˆ

Sampling Distribution of and b

Since these estimates (statistics) are obtained from a random sample, their values are not

fixed like A and B but are variable, i.e ., they are random variables. If had taken many

different random samples and calculated a and b from them as above we wouldn’t always

find the same values. Thus a and b , like any other statistic calculated from a random

sample can be associated with a probability distribution which is called sampling

distribution. Also the standard deviation of the possible a ’s and b ’s (of the sampling

distributions) are referred to as the standard error of these estimators.

This discussion concludes our introduction and the estimation of the linear model

from a sample we will continue our discussion with 1) measuring the degree of fit

between X and Y and later 2) using the estimated model to make predictions or inferences

about the true relationship between X and Y and about Y for any given (fixed) value of X.

2 2 2

X n X

XY nX Y

X X

X X Y Y

b

i

i

i

i i

i

i

i

i

a  Y  b X

2 2

)

ˆ

(

2 2



  

 











n

Y a Y b X Y

n

Y Y

s

i i

i i i i

e