Docsity

Correlation and Regression Analysis: A Comprehensive Guide with Exercises, Exercises of Mathematical finance

Toggle sidebar
bg1
1
CORRELATION AND REGRESSION ANALYSIS
Correlation
It refers to the degree of relationship or association existing between two or more
variables:
Two variables – simple correlation
Three or more variables –multiple correlation
Correlation is the degree of relationship existing between two or more variables.
P refers to correlation of all the values of the population of X and Y; it’s represented
as pxy.
r refers to a Sample statistic for correlation. It’s the estimate of P from any particular
sample. It’s represented as rxy.
Correlation analysis is a statistical procedure/tool which studies the relationship between
two or more variables and involves various methods and techniques used for studying and
measuring the extent of the relationship between the (two) variables. These methods
include:
1. Scatter diagram method.
2. Karl Pearson’s coefficient of correlation (covariance method).
3. Rank Method also called spearman rank correlation.
4. Two way frequency table (bivariate correlation method).
5. Concurrent deviations method.
Significance of Correlation Analysis
1. It helps in measuring degree of relationship between two or more variables e.g.
between price and quantity demanded or supplied; sales and advertising expenses.
2. Aids in understanding economic phenomena.
3. Estimation (prediction and forecasting).
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Correlation and Regression Analysis: A Comprehensive Guide with Exercises and more Exercises Mathematical finance in PDF only on Docsity!

CORRELATION AND REGRESSION ANALYSIS

Correlation

It refers to the degree of relationship or association existing between two or more variables:

 Two variables – simple correlation  Three or more variables – multiple correlation

Correlation is the degree of relationship existing between two or more variables.

 P refers to correlation of all the values of the population of X and Y; it’s represented as pxy.  r refers to a Sample statistic for correlation. It’s the estimate of P from any particular sample. It’s represented as rxy.

Correlation analysis is a statistical procedure/tool which studies the relationship between two or more variables and involves various methods and techniques used for studying and measuring the extent of the relationship between the (two) variables. These methods include:

  1. Scatter diagram method.
  2. Karl Pearson’s coefficient of correlation (covariance method).
  3. Rank Method also called spearman rank correlation.
  4. Two way frequency table (bivariate correlation method).
  5. Concurrent deviations method.

Significance of Correlation Analysis

  1. It helps in measuring degree of relationship between two or more variables e.g. between price and quantity demanded or supplied; sales and advertising expenses.
  2. Aids in understanding economic phenomena.
  3. Estimation (prediction and forecasting).
  1. Guides in reducing the degree of uncertainty or variation e.g. if we know there is a relationship between general price level and supply we can control price fluctuations by increasing supply.
  2. Aids in decision making more so in planning.

Perhaps observations by the two scholars below capture significance of correlation quite well:

According to W.A Neiswanger

“Correlation analysis contributes to the understanding of economic behavior, aids in locating the critically important variables on which others depend, may reveal to the economist the connection by which disturbance spread and suggest to him the paths through which stabilizing forces may become effective.”

“The effect of correlation is to reduce the range of uncertainly of our prediction.” Tippet

Scatter diagram method

It’s the simplest way of representing a bivariate distribution and helps when ascertaining the correlation between two variables.

Suppose we are given n pairs of values (X 1 Y 1 ) (X 2 Y 2 )….. (Xn, Yn) of two variables X and Y. These n points may be plotted as dots (.) on the XY- plane. The resultant is described as a scatter diagram.

Pearsonian Correlation Coefficient (Covariance Method)

Covariance measures the extent to which two variables vary akin to variance only that this time two variables are involved (bivariate distribution).

This method was suggested by a British biometrician and Statistician by the name Karl Pearson hence the term Pearsonian Correlation Coefficient. This coefficient is calculated as follows:

_

_

2 2

_^2 _^2

_ _

_^2 _^2

_ _

cov , .................................( 1 )

y Y Y

x X X

Where

x y

xy

X X Y Y
X X Y Y

n

Y Y

n

X X

n X X Y Y

r XY

i i

i i

i i

i i

xy x x

^   ^  
^  ^  
^   ^  
^  ^  

Alternative formula:

From equation 3:

 

 ^ 

^ 

_^2 _

_ _

X X Y Y

X X Y Y

rxy

Numerator:

n

n XY X Y n

XY Y X

n

X

n

n Y n

Y X

n

XY Y Y
XY Y X X Y XY
X X Y Y XY XY XY XY

  ^ ^ ^ 

  ^ 
^   ^    ^    

_^2 _^2 _ _ _ _

Denominator:

 ^  
  ^  
^   ^    ^   ^  

_^22 _ _ 2 2 _ 2

_^2 _^2 _^2 _^2

X X X 2 XX X X 2 X X nX

X X Y Y X X Y Y

This reduces to:

Ranking could either be in ascending or descending order. However, consistency is key. If two or more observations have the same value we assign to them the mean rank.

Question:

Compute r for the rank pairs (1,3) (2,1) (3,4) and (4,12)

r’ = 0

Assignment: For the cardinal data below, compute Spearman Rank correlation coefficient.

Sales (‘000 Shs) Advertising cost

(‘000 Shs)

64 53

65 57

66 60

70 61

71 65

72 74

74 75

78 86

86 91

99 99

Regression analysis

Literally, the word regression means ‘stepping back’ or ‘returning to the average value.

Regression – This word was first used by Sir Francis Galton (19th^ century) in relation to studies he did in estimating the extent to which the stature of the sons of tall fathers/parents reverts or regresses back to the mean stature of the population. He looked at heights of about one thousand fathers and sons and published the results in a paper titled

‘Regression towards mediocrity in hereditary stature’ conclusions being:

  1. Tall fathers have tall sons and short fathers have short sons
  2. The average height of the sons of a group of tall fathers is less than the average height of the fathers and the average height of the sons of a group of short fathers is more than that of the fathers.

⇒The offsprings of abnormally tall or short parents tends to revert or step back to the average height of the population a phenomenon which Galton described as ‘regression to mediocrity.’

In the words of M.M. Blair ,

“Regression analysis is a mathematical measure of the average relationship between two or more variables in terms of the original units of the data”

Regression is a techniques used to describe the relationship between two or more variables in mathematical terms.

Regression is concerned with obtaining a mathematical equation which describes the relationship between two or more variables.

The equation can be used for:

  1. Comparison
  2. Estimation
  3. Fore casting or prediction (future).
  4. Planning purposes.

  a Y b X

n X X

b n XY X Y

xy aX b X

RR X Y a bX

y an b X

RR Y a bX

i i i

i i

2 2

Lines of regression For 2 variable x and y there are two lines of regression:

  1. Line of regression of y on x. (The Common Case). This is the line which gives the best estimate for the value of y for any specified value of x.

  a y b x

n x x

b n xy x y

xy a x b x

y an b x

Y a bx

 ^ 

2

2) Line of regression of x on y The line which gives the best estimate for the value of x for any specified value of y

 

A X B Y

n y y

B n xy x y

XY A Y B Y

X An B Y

X A BY
 ^ 

2

Evaluating regression equation

Why evaluate? i) To determine if or not it describes the relationship between variable adequately; ii) To see whether it can be used effectively for a) Comparison b) Estimation c) Prediction/forecasting d) Planning

Regression equation is evaluated using coefficient of determination (CD)

CD = r^2 = Explained (or expected variation

Total variation in y = ESS TSS

To serve its core purposes

  1. CD (r^2 ) as a measure of the relative reduction in the total sum of squares achieved by fitting a regression.
  2. r 2 as a measure of the linearity of the data point

Standard Error of Estimate

In deriving regression inferences we need a value for the standard error of estimates (e); since we do not know the value of e we estimate for it by se the sample standard error of estimate.

𝑠𝑒 =  n  e^  2 e 

Since 𝑒̅ = 0 (Because ∑𝑒̅ = 0),

2

2 2

n S y a y b xy

n

y y n S e

e

e

E. g

(1) Given the data pairs (4, 3) 6, 5) (10, 6.5) (12, 9.0)

(a) Calculate a and b then write the equation of the regression line (b) Calculate the sample standard error of estimate se

Sol: n = 4, ∑xy = 218 ∑y² = 162.

∑x² = 296, ∑x = 32 ∑y = 24

a = 0.8, b = 0.

y = 0.8+0.65x

Se ^162.^5 ^0.^8 ^242 ^0.^65 ^218  0. 894

Question

Given the data pairs (1, 2) (2, 4) and (3, 3)

a. Calculate a and b and then write the equation of the regression line b. Calculate Se

Solution:

b

a y x