Docsity

topic 3 regression techniques, Apuntes de Marketing de Ventas

Vista previa parcial del texto

¡Descarga topic 3 regression techniques y más Apuntes en PDF de Marketing de Ventas solo en Docsity!

Topic 3:

Regression Techniques

1

Index

1. Introduction

2. Concept of regression

3. Econometric models and regressions

4. Key elements

5. Linear regression models

2

Readings&links

General Readings for Regression Analysis:

  • This slides and class notes.
  • Gujarati y Porter (2009) 5º ed. Basic Econometrics. Chapter 1: The Nature of Regression Analysis and Chapter 2: Two-Variable

Regression Analysis: Some Basic Ideas

  • Any other book on Basic Econometric Analysis (Introduction to econometrics or basic Econometrics, etc.).
  • Hyndman, R. and Athanasopoulos, G.. Forecasting: principles and practice. Ed. Otext.com Available in paperback and online at

https://www.otexts.org/fpp/

  • Good econometric online tutorials:

     Ben Lambert (Khan Academy format): http://oxbridge-tutor.co.uk/. I suggest this video about casualty https://youtu.be/Sqy_b5OSiXw 

and this about covariance and correlation: https://youtu.be/KDw3hC2YNFc

  • Quant concepts: Introduction to regression: https://youtu.be/k_OB1tWX9PM; Interpreting regression coefficients: https://youtu.be/f-

utw1Q72jA?list=PLiolZ-a0LrqFLo-526sHGNFCrkQECLPe7; Regression with excel: https://youtu.be/VdMPoCKGFM0?list=PLiolZ-

a0LrqFLo-526sHGNFCrkQECLPe7; differences between covariance and correlation: https://youtu.be/85Ilb-89sjk

For this Topic:

  • Gujarati y Porter (2009) 5º ed. Basic Econometrics. Chapter 1: The Nature of Regression Analysis and Chapter 2: Two-Variable

Regression Analysis: Some Basic Ideas

4

5

1. Introduction

Previous

techniques

Foundations: Extract historical patterns and apply them in

forecasting future. Historical techniques.

Source of information: Own series.

Regression

analysis

Foundations: Analyze relationships between the target

variable (dependent) and other variables (independent).

Casualty model. The dependent variable will be expressed as

a function of a certain number of factors that determine its

behavior.

Source of information: Other variables

Basic understanding: The regression model as a framework for the analysis of

relationships among variables

Technical know how: How to formulate a regression model, estimate its parameters,

understand the results and implications of the estimated model and forecast using

this type of models.

In this

course

we will

obtain

7

Naïve

forecast

Our first forecast will be to use the average consumption.

But taking a deeper look at the table shows that consumption differs among income

groups: The higher the income, the higher the consumption.

7272

= = 121.2$

60

Total consumption

week family

number observations

Unconditional Average

E(Y): Unconditional expected value (simple average) of weekly consumption

expenditure

Educated

forecast

Take into account the relationship between income and

consumption. Given “I” groups:

i

i

Total consumption

number observations

Conditional Average

8

E(YX): Conditional expected value (conditional average) of weekly

consumption expenditure. They depend on the given values of the (conditioning)

variable X.

Thus, instead of forecasting that a family will spend 121.2$/week, depending on

their income we could forecast a different value, that will be more “accurate” in

each case.

But, How can we calculate a global quantitative measure for that relationship

between income and consumption?  With a Regression!

10

Analyze if there is a significant (reliable) causal relationship,

obtaining a functional form and a quantitative assessment.

For what purpose?

Definition

Goal

Consumption regression: Keynesian propensity to consume Example

Consumption= f (Income)

Modern definition

Regression analysis allows to analyze the dependence of one

variable (dependent variable), on one or more other variables

(explanatory variables), providing a functional form for that

relationship and a quantitative assessment of it.

  • Structural analysis
  • Forecast

Strategic decisions

Asimetric treatment of the relationship among variables

Endogenous Variable

Explanatory Variales

Explained by

Dependency Causality

11

3. Econometric models and regressions

How will we know which variables affect or “cause” the behavior of our

target variable?

 An Economic Model will give us the “key”

variables

Economic

Model

Econometric

model

  • Simplification
  • General

Adaptation (time,

geography, etc.)

Shows the key characteristics of a

system or set of relationships

  • Stocastic component
  • Functional form
  • Quantitative assesment

Gives estimations of the parameters

that characterize the relationship

(sign and magnitude).

Theoretical model

Empirical application

13

t t t

C     y  

1 2

Variables

  • Exogenous (independent or explanatory) and Endogenous

(dependent)

  • Quantitatives or Qualitatives (dummies)

Parameters

or coeficients

Quantitative Assesment of the relationship between an

exogenous variable and the endogenous variable.

Disturbance or

error term

It represents all those factors that affect the endogenous

variable but are not taken into account explicitly by the

explanatory variables. It is also know as the “random or

stochastic” term

Functional

form

  • Lineal
  • No lineal

4. Key Elements

5. Linear Regression Model

Consumption= f (Income)

 

t t

C  f I

5.1. The concept of a linear regression model

Figure 3. Regression line

The regression analysis implies that for each X (income level) there is a population

of Y values (weekly consumption expenditures) that are spread around the

(conditional) mean of those Y values.

 Basic specification of the linear regression function

E(Y|X

i

)=f(X

i

)

Regression

Function

The expected value of the distribution of Y

given X

i

is functionally related to X

i

.

Assuming there is a “linear” relationship between Y and X

i

, we have:

E(Y|X

i

)=f(X

i

)= β

1

  • β

2

X

i

For a particular case, What would be the consumption of a new family?

It doesn´t have to match the average consumption for its income

There is a “nonsystematyc” deviation

Sthocastic

or random

u

i

= Y

i

  • E(Y|X

i

)

thus

Y

i

= E(Y|X

i

) + u

i

For a linear function

Y

i

= β

1

  • β

2

X

i

  • u

i

As we might have lots of samples for a particular phenomenon, we may not be able

to estimate the PRF “accurately” because of sampling fluctuations.

That is why Econometrics includes “statistical inference” which is a set of hypothesis

and tools that help to analyze the level of accuracy of a sample regression.

Figure 4. Regression lines based on two different samples

 Extra-information: Different notations for linear regression

Equation notation

i i k ki i

Y     X  ....   X  u

1 2 2

i i K Ki i

K K

K K

Y X ... X u
Y X ... X u
Y X ... X u

1 2 2

2 1 2 22 2 2

1 1 2 21 1 1

k i

i i ki

k

k

i

u

...

u

u

ˆ

...

ˆ

ˆ

*

x x ... x

... ... ... ... ...

x x ... x

x x ... x

y

...

y

y

2

1

2

1

2 3

22 32 2

21 31 1

2

1

1

1

1

y (ix1) X (ixk) β (kx1) u (ix1)

Matrix notation

Y= Xβ + u