Docsity

Regression Analysis of Lilly's Annual Return using Financial Models, Study notes of Systems Engineering

Toggle sidebar
bg1
EMSE 388 – Quantitative Methods in Cost Engineering
Lecture Notes by: Dr. J. Rene van Dorp Chapter 6 - Page 106
Source: Financial Models Using Simulation and Optimization by Wayne Winston
CHAPTER 6: USING MULTIPLE REGRESSION
There are many situations in which one wants to predict the value the dependent
variable from the value of one or more independent variables.
Typically:
• independent variables are easily measurable
• Collection of independent variables explains the dependent variable
Example:
The return of most stocks is closely tied to the return on the market. In finance it
is important to try and predict the return on a stock (dependent variable) from the
return on the market (e.g. S&P500 Index).
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33

Partial preview of the text

Download Regression Analysis of Lilly's Annual Return using Financial Models and more Study notes Systems Engineering in PDF only on Docsity!

EMSE 388 – Quantitative Methods in Cost Engineering Lecture Notes by: Dr. J. Rene van Dorp

Chapter 6 - Page 106

Source: Financial Models Using Simulation and Optimization by Wayne Winston

CHAPTER 6: USING MULTIPLE REGRESSION

There are many situations in which one wants to predict the value the dependentvariable from the value of one or more independent variables.Typically:^ •

independent variables are easily measurable • Collection of independent variables explains the dependent variable Example: The return of most stocks is closely tied to the return on the market. In finance itis important to try and predict the return on a stock (dependent variable) from thereturn on the market (e.g. S&P500 Index).

EMSE 388 – Quantitative Methods in Cost Engineering Lecture Notes by: Dr. J. Rene van Dorp

Chapter 6 - Page 107

Note that for an individual stock:^ Year Source: Financial Models Using Simulation and Optimization by Wayne Winston

Closing Stock

Price

Dividends

Annual Return on Lilly

Year

MarketReturn

AnnualReturn onLilly

Regression FitAnnual Return on Lilly

1994

$

$0.

1994

6.27%

1995

$

$0.

73.82%

1995

32.16%

73.82%

48.68%

1996

$

$0.

36.41%

1996

18.47%

36.41%

26.68%

1997

$

$1.

7.73%

1997

5.23%

7.73%

5.40%

1998

$

$1.

12.56%

1998

16.81%

12.56%

24.01%

1999

$

$1.

63.39%

1999

31.49%

63.39%

47.60%

2000

$

$1.

9.33%

2000

-3.17%

9.33%

-8.10%

2001

$

$2.

16.72%

2001

30.55%

16.72%

46.09%

2002

$

$2.

-24.61%

2002

7.67%

-24.61%

9.32%

2003

$

$2.

1.73%

2003

9.99%

1.73%

13.05%

2004

$

$2.

14.74%

2004

1.31%

14.74%

-0.90%

2005

20.00%

29.14%

Prices

Last Year'

Prices'

Last Year-

Dividend Prices Year' of End

Return

Annual

=

EMSE 388 – Quantitative Methods in Cost Engineering Lecture Notes by: Dr. J. Rene van Dorp

Chapter 6 - Page 109

Source: Financial Models Using Simulation and Optimization by Wayne Winston

CONCLUSION:

There appears to be a linear relationship, but the wide dispersion about the bestfitting line indicates we do not have a perfect linear relationship. Possibly otherfactors besides market return determine the annual return on the Lilly stock.

INTERMEZZO: ANALYSIS OF VARIANCE

PROBLEM DESCRIPTION

-^ Suppose you have a linear function

b x a x a b a a x x

f^

k k

k

k^

⋅

⋅ =^

"

"

"

) , , , | , , (

b x k a i

i i^

⋅ =^ ∑

=^1

were the parameters a

,…, a 1

k,b unknown.

EMSE 388 – Quantitative Methods in Cost Engineering Lecture Notes by: Dr. J. Rene van Dorp

Chapter 6 - Page 110

  • Source: Financial Models Using Simulation and Optimization by Wayne Winston You have N data points

) , , (^

1

ny

y^

"

generated by this linear function

but the data points contain some measurement error. • Together with each data-point y

j^ of this linear function you have the input-

variables

) , , (^ 1

j k

j^

x

x^

"

-^ If the measurement error were to be zero and you knew the values of theparameters a

,…, a 1

,b thenk^

b x a

y

k i

j i i

j^

⋅

=^ ∑

=^1

EMSE 388 – Quantitative Methods in Cost Engineering Lecture Notes by: Dr. J. Rene van Dorp

Chapter 6 - Page 112

Source: Financial Models Using Simulation and Optimization by Wayne Winston

MEETING THE SECOND OBJECTIVE:

-^ Introduce the random variable Y representing a measurement of the function

b x a b a a x x f

k i

i i

k

k^

ˆ

ˆ

ˆ), ˆ, ˆ, | , , (^

1

1

1

∑=

⋅

=

"

"

and assume that:1. 2. where

ε^ does not depend on the input-variables (or independent variables

) , , (^1

xk x^

"

1

1

ˆ

ˆ^

ˆ^

ˆ

[^

|^

,^

,^

,^ ]

k^

j

k^

i^

i

i

E Y

a

a^

b^

a^

x^

b

= =^

⋅^

∑

"

ˆ^1

ˆ

[^

|^

,^

,^

,^

]

k

Y^

E Y

a

a^

b

ε

=^

"

EMSE 388 – Quantitative Methods in Cost Engineering Lecture Notes by: Dr. J. Rene van Dorp

Chapter 6 - Page 113

  • Source: Financial Models Using Simulation and Optimization by Wayne Winston Assume that error term

ε^

is^ normal distributed with mean 0 and standard

deviation

σ^ or variance

(^2) σ

PROBLEM THAT REMAINS TO BE SOLVED:

Estimation of the variance

(^2) σ

THE ANALYSIS OF VARIANCE

EMSE 388 – Quantitative Methods in Cost Engineering Lecture Notes by: Dr. J. Rene van Dorp

Chapter 6 - Page 115

and estimate the variance for the error-term using Source: Financial Models Using Simulation and Optimization by Wayne Winston

2

1 2

1

1

2

) ( 1 ˆ) ( 1 ) ( 1

∑

∑

∑

=

=

=

−

= −

=

n j

j

n j

j

n j

j^

y y n b y n n

ε

BUT!

We know estimator of variance above is BIASED. An unbiased estimator of the variance is: Conclusion:

An unbiased estimator for the variance of the error term is

∑= −

n j

j

n^

1

(^2) ) ( 1 1

ε

Informally, we divide by (n-1) instead of dividing by n as we used 1 parameter

ˆ b

to represent the entire data set:

Statistician refers to this as loosing a “degree of freedom”.

1 (^

,^

,^

n )

y^

y "

2

1 1

(^

)

1

n^

j j

y^

y

n^

=

−

−^

∑

EMSE 388 – Quantitative Methods in Cost Engineering Lecture Notes by: Dr. J. Rene van Dorp

Chapter 6 - Page 116

Simple Linear Regression: Source: Financial Models Using Simulation and Optimization by Wayne Winston

Suppose

b x a b x x

f^

k^

⋅ =^

) | , , (^

"

Hence, we have data

) , , (^

1

ny

y^

"

and we need to represent this entire set of

data by one linear line specified by two “best-guesses”

b a^

ˆ, ˆ^1

and the

independent variable x

. Simple 1

linear regression gives us the these “least-

squares” parameter estimates

ˆ a^ 1

and

ˆ^ b.

We calculate n-observed error terms: 1 1

ˆ

ˆ

j^

j y

a^

x^

b

ε^

=^

−^

⋅^

−^

,^ j=1,…,n

and estimate the variance for the error-term using

∑= −

n j

j

n^

1

(^2) ) ( 1 1

ε

EMSE 388 – Quantitative Methods in Cost Engineering Lecture Notes by: Dr. J. Rene van Dorp

Chapter 6 - Page 118

Source: Financial Models Using Simulation and Optimization by Wayne Winston

ANSWER IS GIVEN BY R-SQUARED!

2

1

)

( ∑=

−

=

n j

j^

y y

SS

2

1

1 1

ˆ)

ˆ ( ∑=

− ⋅ −

=

n j

j

j^

b x a y

SSE

= − = − =^

SSESS

SSESS SS R^

1

2

2

1

2

1

1 1

2

1

2

1

1 1

) ( 1 1

ˆ)

ˆ ( 1 1 1

) (

ˆ)

ˆ ( 1

∑ ∑

∑ ∑

=

=

−

−

− ⋅ − − − = −

− ⋅ −

−^

n j

j

n j

j j

n j

j

n j

j j

y y

n

b x a y n y y

b x a y

EMSE 388 – Quantitative Methods in Cost Engineering Lecture Notes by: Dr. J. Rene van Dorp

Chapter 6 - Page 119

Source: Financial Models Using Simulation and Optimization by Wayne Winston

2

1

1

1 1

2

ˆ

ˆ (^

)^

Variance Residuals

1

1

1

1

Sample Variance

Sample Variance

n^

j^

j

j

n

y^

a^

x^

b

n^

n

=

− ^

−^

⋅^

−^

⋅ ^

−^

− ^

=^

−^

=^

−

∑

-^ One says that R-Squared metric “favors” the more complicated approach as(n-2)/(n-1) is less than 1 and does not account for the fact that simple linearregression uses one more parameter to represent the data. Multiple Linear Regression:

Suppose

b x a x a b a a x x

f^

k k

k

k^

⋅

⋅ =^

"

"

"

1 1

1

1

), , , | , , (

EMSE 388 – Quantitative Methods in Cost Engineering Lecture Notes by: Dr. J. Rene van Dorp

Chapter 6 - Page 121

An unbiased estimator of the variance in of the error term is:Source: Financial Models Using Simulation and Optimization by Wayne Winston

∑=

−

n j

j

k n^

1

(^2) ) ( ) 1 (^1) (

ε

Informally, we divide by n-(k+1) instead of dividing by n as we used (k+1)parameters to represent the entire data set:

) , , (^

1

ny

y^

"

We lost (k+1) “degrees of freedom”.

HOW MUCH “BETTER” DOES

THE MULTIPLE

LINEAR REGRESSION

APPROACH

EXPLAIN THE

VARIANCE IN THE DATA COMPARED TO

THE SIMPLEST APPROACH

OF ONE POINT ESTIMATE?

EMSE 388 – Quantitative Methods in Cost Engineering Lecture Notes by: Dr. J. Rene van Dorp

Chapter 6 - Page 122

Source: Financial Models Using Simulation and Optimization by Wayne Winston

ANSWER IS GIVEN BY R-SQUARED!

2

1

)

( ∑=

−

=

n j

j^

y y

SS

2

1

1

ˆ)

ˆ

( ∑

∑

=^

=

− ⋅

−

=

n j

j i k i j^

b x a

y

SSE

i^ = − = − =^

SSESS

SSESS SS R^

1

2

2

1

2

1

1

2

1

2

1

1

) ( 1 1

ˆ)

ˆ

( 1 1 1

) (

ˆ)

ˆ

( 1

∑ ∑

∑

∑ ∑

∑

= =^

=

= =^

=

−

−

− ⋅ − − − = −

− ⋅

−

−^

n j

j

n j

j i k i j

n j

j

n j

j i k i j

y y

n

b x a y n y y

b x a

y^

i

i

EMSE 388 – Quantitative Methods in Cost Engineering Lecture Notes by: Dr. J. Rene van Dorp

Chapter 6 - Page 124

Source: Financial Models Using Simulation and Optimization by Wayne Winston

ADJUSTED R-SQUARED:

=

− =^

Variance

Sample

Residuals

Variance 1

Adjusted

(^2) R

SS (^1) - (^1) n

SSE1) (k- n

1 1

−

Practical Implications:

-^ One

can

always

improve

the

R-squared

value

by

including

more

independent variables. It appears that we are obtaining a better fit. • However, with the same number of data points, the number of data pointsper fitted parameter decreases and we intuitively feel “a loss of accuracy” ineach fitted parameter.

EMSE 388 – Quantitative Methods in Cost Engineering Lecture Notes by: Dr. J. Rene van Dorp

Chapter 6 - Page 125

  • Source: Financial Models Using Simulation and Optimization by Wayne Winston In

the

extreme

case

if^

we^

take

as

many

independent

variables

(and

parameters) as the original data we obtain a perfect fit (R-Squared=1). Webasically get out data back. Is this a perfect fit? • No, you need to account for the complexity of the model. • You can increase the number of independent variables as long as theADJUSTED R-SQUARED increases.

STRIVE FOR THE SIMPLEST MODEL

THAT “BEST” EXPLAINSTHE VARIANCE IN THE DATA