Docsity

Linear Regression, Correlation Analysis - Business Statistics - Lecture Slides, Slides of Business Statistics

Partial preview of the text

Download Linear Regression, Correlation Analysis - Business Statistics - Lecture Slides and more Slides Business Statistics in PDF only on Docsity!

Linear Regression

and

Correlation Analysis

Scatter Plots and Correlation

  • A scatter plot (or scatter diagram) is used to show

the relationship between two variables

  • Correlation analysis is used to measure strength of

the association (linear relationship) between two

variables

  • Only concerned with strength of the relationship
  • No causal effect is implied

Scatter Plot Examples

y

x

y

x

y

y

x

x

Strong relationships Weak relationships

Scatter Plot Examples

y

x

y

x

No relationship

Features of ρ and r

  • Unit free
  • Range between -1 and 1
  • The closer to -1, the stronger the negative

linear relationship

  • The closer to 1, the stronger the positive

linear relationship

  • The closer to 0, the weaker the linear

relationship

Examples of Approximate

r Values

r = +.3 r = +

y

x

y

x

y

x

y

x

y

x

r = -1 r = -.6 r = 0

Calculation Example Tree Height

Trunk Diameter

y x xy y^2 x^2 35 8 280 1225 64 49 9 441 2401 81 27 7 189 729 49 33 6 198 1089 36 60 13 780 3600 169 21 7 147 441 49 45 11 495 2025 121 51 12 612 2601 144 Σ =321 Σ =73 Σ =3142 Σ =14111 Σ =

Calculation Example

0

10

20

30

40

50

60

70

0 2 4 6 8 10 12 14

[8(713) (73) ][8(14111) (321) ]
[n( x ) ( x) ][n( y ) ( y) ]
n xy x y
r

2 2

2 2 2 2

∑ ∑ ∑ ∑

∑ ∑ ∑

Trunk Diameter, x

Tree Height, y

r = 0.886 → relatively strong positive linear association between x and y

Simple Linear Regression Model

  • Only one independent variable, x
  • Relationship between x and y is

described by a linear function

  • Changes in y are assumed to be

caused by changes in x

Types of Regression Models Positive Linear Relationship

Negative Linear Relationship

Relationship NOT Linear

No Relationship

Linear Regression Assumptions

  • Error values (ε) are statistically independent
  • Error values are normally distributed for any given

value of x

  • The probability distribution of the errors is normal
  • The probability distribution of the errors has

constant variance

  • The underlying relationship between the x variable

and the y variable is linear

Population Linear Regression

Random Error

for this x value

y

x

Observed Value of y for x (^) i

Predicted Value of y for x (^) i

y = β 0 + β 1 x + ε

xi

Slope = β 1

Intercept = β 0

εi

Least Squares Criterion

  • b 0 and b 1 are obtained by finding the

values of b 0 and b 1 that minimize the

sum of the squared residuals

(y (b b x))

e (y yˆ)

∑

∑ ∑

The Least Squares Equation

  • The formulas for b 1 and b0 are:

yˆ^ i = b 0 +b 1 x

algebraic equivalent:

∑

∑

∑

∑ ∑

−

−

n

x x

n

x y xy b (^) 2 2

1 ( )

∑

∑

−

− − 1 =^2 ( )

( )( )

x x

x x y y b

b 0 (^) = y − b 1 x

and