• No results found

OLS Examples. OLS Regression

N/A
N/A
Protected

Academic year: 2021

Share "OLS Examples. OLS Regression"

Copied!
36
0
0

Loading.... (view fulltext now)

Full text

(1)

Page 1

OLS Examples

OLS Regression

• Problem

– The Kelley Blue Book provides information on

wholesale and retail prices of cars. Following

are age and price data for 10 randomly selected

Corvettes between 1 and 6 years old. Here, age

is in years, and price is in hundreds of dollars.

240 340 243 270 230 299 340 210 195 205 price 4 1 5 4 5 2 2 6 6 6 age

(2)

Page 3

OLS Regression

Coding Sheet for Corvette Data Variable Possible

Values Source Mnemonic

Age of

Corvettes Years

Kelley Blue Book,

various issued age Price of Corvettes Hundred of Dollars, Nominal IBID. price

(3)

Page 5

Note Mean and Std. Dev.

of PRICE

SXX SYY

Note from Stat 101:

(

)

41827 . 53 9 6 . 25681 1 1 2 = = − = − − =

n S n Y Y s YY

(4)

Page 7

OLS Specification LS price C age

Form for OLS command:

LS dependent variable C independent variable(s) or

Equation eq1.LS dependent variable C independent variable(s)

Section 1

Section 2…..Standard table layout Section 3

(5)

Page 9

AGE

*

27.90291

-371.6019

Price

Estimated

=

:

for

Equation

160 200 240 280 320 360 0 1 2 3 4 5 6 7 AGE PR IC E PRICE of Corvettes vs. AGE of Corvettes

AGE

*

27.90291

-371.6019

Price

Estimated

=

Residual

(6)

Page 11

SSE = Sum of Squared Residuals = 1623.709 s = Standard Error of Regression = 14.24653

Note: 14.24653 202.96363 s 202.96363 2 10 1623.709 2 n SSE s2 = = = − = − =

Standard Errors of Estimates

S s s XX AGE = Note:

(7)

Page 13

tcand p-values

Both Highly Significant

10.88729 2.562889

27.90291

tAGE = − =−

(8)

Page 15

Sum is zero SSE

(9)

Page 17 R2 Fcand p-value 0.936775 25681.60 1623.709 1 S SSE 1 SST SSE 1 R YY 2 = − = − = − = Note: Note:

(

Y-Y

)

S 25681.60 SST=

2 = YY=

Inelastic

Very

-0.444798

-27.90291

257.2

4.1

=

η

Price

=

(10)

Page 19 -0.444798 Elasticity Inelastic 4.1 -27.90291 Price Classification Mean Estimate Variable

Elasticity Summary Table

Interpretation: Price of a corvette is inelastic with

respect to the age of the corvette so that a 1% increase in age decreases the price by only 0.4%. Other factors are at play regarding the lower prices, but age is certainly a major factor as evidenced by the R2of 0.94.

OLS Regression

Other Examples

Problem 1: CAPM

(11)

Page 21

Problem 1: CAPM

• Problem

– Estimate , the systematic risk, for CAPM

• CAPM is • An empirical version is

β

[

m t f

]

i f t i

|

)

r

β

E(r

|

)

r

E(r

Ω

=

+

Ω

0

=

α

r

-r

=

r~

r

-r

=

r~

)

σ

N(0,

~

ε

ε

r~

β

α

r~

f m m f i i 2 i m i i

=

+

+

• beta is key

– Each security has a beta

– Each portfolio has a beta

• Portfolio beta is weighted average of individual betas

(12)

Page 23

• beta is proportionality factor

– Excess returns for security over riskless return is proportional to excess returns in market over riskless returns

– Excess is extra return to compensate for risk for not holding the market portfolio

• Premium on security is proportional to premium on the market portfolio

f t m f t i i

r

)

|

E(r

r

)

|

E(r

β

Ω

Ω

=

Problem 1: CAPM

• If

1

r

)

|

E(r

r

)

|

E(r

β

f t m f t i i

>

=

Premium

i

>

Premium

m

then asset i is viewed as riskier than the market

Problem 1: CAPM

(13)

Page 25

beta

Interpretation

Example

1 Moves With Market Conglomerates (AT&T)

>1 More Volatile Companies Sensitive

To Macro Events (Autos)

0<beta<1 Less Volatile Mildly Sensitive To

Macro Events (Electric Utilities)

<0 Move Counter To Goldmining Stocks

Market

Problem 1: CAPM

Coding Sheet for CAPM Data

Variable Possible

Values Source Mnemonic

Excess returns for an overall stock market index of the total market in the UK.

Monthly, 1/80-12/99. Percentages*

DataStream

(2000) rendmark Excess returns on an index of 104 stocks

in the cyclical consumer goods sector in the UK. Monthly, 1/80-12/99.

Percentages* IBID. rendcyco Excess returns on an index of 104 stocks

in the noncyclical consumer goods sector

in the UK. Monthly, 1/80-12/99. Percentages* IBID. rendncco Excess returns on an index of 104 stocks

in the information tech sector in the UK. Monthly, 1/80-12/99.

Percentages* IBID. rendit Excess returns on an index of 104 stocks

in the telcom sector in the UK. Monthly,

1/80-12/99. Percentages* IBID. rendtel

(14)

Page 27

Problem 1: CAPM

• Excess returns are calculated as follows

– Let p

i

be the closing price of the index at the

last trading day in month i and let r

i

be the

one-month interest rate at the start of one-month i. Then

the return v

i

of the index is

and the excess return is v

i

– r

i

. The reported

numbers are 100(v

i

– r

i

).

(

− −1

)

/ −1

= i i i

i p p p

(15)

Page 29 -40 -20 0 20 40 60

RENDTEL RENDNCCO RENDMARK RENDIT RENDCYCO

E x cess R e tu rn s ( % )

Excess Returns Distributions Stock Market Sectors (UK)

1980 - 1999

Note: Monthly data

-30 -20 -10 0 10 20 80 82 84 86 88 90 92 94 96 98 E xcess R e tu rn s ( % ) Excess Returns Overall Stock Market Index (UK)

1980 - 1999

(16)

Page 31 0 10 20 30 40 50 60 70 -30 -20 -10 0 10 Series: RENDMARK Sample 1980M01 1999M12 Observations 240 Mean 0.808884 Median 1.204026 Maximum 13.46098 Minimum -27.86969 Std. Dev. 4.755913 Skewness -1.157801 Kurtosis 8.374932 Jarque-Bera 342.5191 Probability 0.000000 Excess Returns Overall Stock Market Index (UK)

1980 - 1999 -30 -20 -10 0 10 20 30 E xcess R e tu rn s ( % ) Excess Returns

Cyclical Consumers Goods Sector (UK) 1980 - 1999

(17)

Page 33 0 10 20 30 40 -30 -20 -10 0 10 20 Series: RENDCYCO Sample 1980M01 1999M12 Observations 240 Mean 0.499826 Median 0.309320 Maximum 22.20496 Minimum -35.56618 Std. Dev. 7.849594 Skewness -0.230900 Kurtosis 4.531597 Jarque-Bera 25.59050 Probability 0.000003 Excess Returns

Cyclical Consumer Goods Sector (UK) 1980 - 1999 -40 -30 -20 -10 0 10 20 80 82 84 86 88 90 92 94 96 98 E xcess R e tu rn s ( % ) Excess Returns

Noncyclical Consumer Goods Sector (UK) 1980 - 1999

(18)

Page 35 -40 -20 0 20 40 60 80 82 84 86 88 90 92 94 96 98 E x cess R e tu rn s ( % ) Excess Returns Information Technology Sector (UK)

1980 - 1999

Note: Monthly data

-20 -10 0 10 20 30 40 E xcess R e tu rn s ( % ) Excess Returns Telecommunications Sector (UK)

(19)

Page 37

Problem 1: CAPM

• Interpretation

– The intercept is highly insignificant suggesting that the line goes through the origin

– The slope is highly significant and positive at the 0.0 level indicating that the market rate of return (excess returns) have a positive effect on the returns for the cyclical consumer goods sector in the UK

– The R2is 0.50 suggesting that 50% of the variation in returns in the

cyclical consumer goods sector is accounted for by the market excess returns

– The model is significantly different from the naïve model as indicated by the p-value for F

(20)

Page 39

Problem 1: CAPM

• Interpretation

– Since this is a CAPM, the slope has the

interpretation of systematic risk

• Since it is greater than 1.0, this indicates that the cyclical consumer goods sector is riskier that the market as a whole

• When the market rises, the excess returns in this sector will rise more than the market

Problem 1: CAPM

241.3363 F 0.5035 R2 1.17* (0.0000) RendMark -0.477 (0.2188) Intercept Model Model Portfolio

(21)
(22)

Page 43

Other Examples

Problem 2: Bank Wages

(23)

Page 45

Problem 2: Bank Wages

• Problem

– Find the relationship between the salary of

employees at a major US bank and their years

of education completed

Coding Sheet for Bank Salary Data

Variable Possible

Values Source Mnemonic

Current yearly salary of bank employees

in US Nominal dollars SPSS, version 10 (2000) salary Number of years of education completed Years IBID. educ

Natural log of salary logs natural log of Calculated as salary

(24)

Page 47 0 20000 40000 60000 80000 100000 120000 140000 6 8 10 12 14 16 18 20 22 C u rre n t Y e a rl y S a la ry ($ )

Education (Years Completed) Current Yearly Salary

vs. Education Completed

(25)

Page 49 0 20000 40000 60000 80000 100000 120000 140000 C u rr e n t Y e a rly S a la ry ($ ) Distribution of Current Yearly Salary Bank Employees (US)

0 10 20 30 40 50 60 70 25000 50000 75000 100000 125000 Series: SALARY Sample 1 474 IF GENDER=1 Observations 258 Mean 41441.78 Median 32850.00 Maximum 135000.0 Minimum 19650.00 Std. Dev. 19499.21 Skewness 1.629931 Kurtosis 5.702920 Jarque-Bera 192.7741 Probability 0.000000 Distribution of Current Yearly Salary Bank Employees (US)

(26)

Page 51 9.6 10.0 10.4 10.8 11.2 11.6 12.0 N a tu ra l L o g o f C u rre n t Y e a r S a la ry Distribution of Log of Current Yearly Salary Bank Employees (US)

8 12 16 20 24 28 32 36 Series: LOGSALARY Sample 1 474 IF GENDER=1 Observations 258 Mean 10.54461 Median 10.39967 Maximum 11.81303 Minimum 9.885833 Std. Dev. 0.398579 Skewness 0.840303 Kurtosis 2.805992 Distribution of Log of Current Yearly Salary Bank Employees (US)

(27)

Page 53

• Our model is

or

• Interpret the slope parameter as the

percentage increase in salary (S) due to one

additional year of education

Problem 2: Bank Wages

(

SALARY

i

)

β

0

β

1

EDUC

i

ε

i

ln

=

+

+

( )

dx

S

dS

dx

S

d

ln

=

i i 1Educ ε β i

Ae

e

Salary

=

Salary rises 9% for each additional year of education

(28)

Page 55

Problem 2: Bank Wages

• Interpretation

– The intercept and slope parameters are highly significant at the 0.0 level

• This indicates that education has a significant, positive effect on salary

– The higher the level of education, the higher the salary

• For each extra 1 year of education, salary rises 9% – Almost 49% of the variation in (log) salary is accounted

for by education

– The model is significantly different from the naïve model as indicated by the p-value for F

Problem 2: Bank Wages

225.2383 F 0.4680 R2 0.092* (0.0000) Educ 9.22* (0.0000) Intercept Model Model Portfolio

(29)

Page 57

Other Examples

Problem 3:

Population and Economic Growth

Problem 3:Population and Economic Growth

• Population growth is an important factor for

long-term economic growth

• Malthus assumed (correctly) that population will grow geometrically (e.g., 1, 3, 9, 27, 81,…) while the food supply will increase arithmetically (e.g., 10, 10, 30, 40 …)

– Population would double every 24 years

• As a result of the faster growth of population, population growth would overtake food supply growth – but he didn’t specify when

(30)

Page 59

Problem 3:Population and Economic Growth

Food Output and

Population

Time

Food Population

• Digression on compound growth

– Compounding

– Time to double

• What is the implied population growth rate, g, for

Problem 3:Population and Economic Growth

(

)

t

0

t

PV

1

g

(31)

Page 61

• Curent population projections

– The Year 2000 population growth rate, g, was

about 1.4%

• World population in 2000 was about 6.1Billion people

• Absolute growth: 85.4 Million in one year

Problem 3:Population and Economic Growth

(32)

Page 63

Problem 3:Population and Economic Growth

• The future

– There is some hope ahead

• The UN forecasts a drop in fertility in developing countries

• Developed countries will grow by less than 1% annually

• Predicted world’s population in 2300

(33)

Page 65

• Malthus had checks on population growth

– Contraceptives

– Abortion

– Self-restraint

– Wars

• Malthus wrote right at the time of the

Industrial and Green Revolutions, so he

could not see their implications

Problem 3:Population and Economic Growth

• Data from the World Development

Indicators, World Bank (2004)

– Calculated average annual growth for GDP and

population

Problem 3:Population and Economic Growth

countries

107

...,

1,

i

,

1

1963

in

Value

2003

in

Value

g

40 1 i i i

⎟⎟

=

⎜⎜

=

(34)

Page 67 Coding Sheet for Growth Data

Variable Possible

Values Source Mnemonic

Real GDP in country (1995 $US), 1963

and 2003 Real dollars

World Development Indicators (World Bank, 2004) gdp63, gdp03

Average annual growth in GDP Decimal values Calculated g

Population in country, 1963 and 2003 Count

World Development Indicators (World Bank, 2004) pop63, pop03

(35)

Page 69 -.02 .00 .02 .04 .06 .08 .10 .00 .01 .02 .03 .04 R eal G D P A v er age A n n u a l G ro w th

Population Average Annual Growth by Country (n = 107) Real GDP and Population

Average Annual Growth 1963 - 2003

Highly insignificant

(36)

Page 71 -.02 .00 .02 .04 .06 .08 .10 .00 .01 .02 .03 .04 R eal G D P A v er age A n n u a l G ro w th

Population Average Annual Growth by Country (n = 107) Real GDP and Population

Average Annual Growth 1963 - 2003

References

Related documents

CDF of End-to-end Response Time at Glass Device for the NULL Cognitive Engine. End-to-End response time

In supply chain finance, guarantees by the core enterprise of the credit situation of SMEs leads to a greater strength of SMEs, and the possibility of reducing the risk of banks

The matters to be discussed in this paper are how the relation is formed between language and culture in Malay language and Indonesian language context; and

In Pakistan I held formal interviews with seven members of the Pakistani bar, including Supreme Court advocates and public and private attorneys at all levels; six

If the alien sees other aliens nearby it will attack the player, but if it is alone, it will flee.. The behind this kind of behavior is to make the aliens attack in pairs

Tests showed that while for older datasets ground control points have to be used to estimate boresight angles, for the newer dataset orthorectification and DSM

• The development of a model named the image based feature space (IBFS) model for linking image regions or segments with text labels, as well as for automatic image

In this study, we examined the influence of the chronic administration of N ω -nitro-L-arginine methyl ester (L-NAME) (20 mg/rat/day) to rats for up to eight weeks on the