27 Autocorrelation
27 Autocorrelation
Fundamentals of
Econometrics
1
12/9/2022
Week-13
Week-13
2
12/9/2022
Background
Background
▪ In statistics univariate summaries refers to Mean, Median, Mode, S.D,
Mean Deviation, Variance etc.
▪ …Bivariate summaries are required when there are two paired observations
(e.g., vehicle prices and their mileage per gallon) & interest is beyond
“univariate summaries”
▪ Such as ….how these two variables are linked …i.e., if one variable
increase/ decrease….what happens to other variable?
▪ A statistic that indicates how the two variables “co-vary” is called
“Covariance” and is given as:
1
▪ 𝐶𝑂𝑉𝑋,𝑌 =
𝑛−1
σ𝑛𝑖=1(𝑋𝑖 − 𝑋)(𝑌
ത 𝑖 − 𝑌)ത
3
12/9/2022
Background (cont.…)
▪ E.g., if prices of vehicles (in 000s US$) and their mileage per gallon
(miles per gallon) are used and we calculate the covariance equal to -20
thousands of dollar-miles per gallon
▪ …it indicates that the two variables are negatively linked
▪ …however, it is difficult to interpret -20 thousands of dollar-miles per
gallon (quantitative Interpretation difficulty)
▪ …furthermore, the change in scale do influence the value of the
covariance
▪ This problems of Covariance are solved by making the Covariance
unitless measure.
Background (cont.…)
▪ As we saw from the formula of Covariance, that it was calculated as the
product of mean deviations of the two variable
▪ To make it unit less, Covariance is divide by the product of standard
deviations (SX, SY) of the same two variables…due to which the units of
numerators and denominator cancel out…we get dimensionless
number/ratio
▪ ….that is called correlation coefficient,
𝑛
represented by “r” and is given as:
𝐶𝑜𝑣𝑋,𝑌 ത 𝑖 − 𝑌)
σ𝑖=1(𝑋𝑖 − 𝑋)(𝑌 ത
𝑟𝑋,𝑌 = =
𝑆𝑋 𝑆𝑌 ത 2 σ(𝑌𝑖 − 𝑌)
σ(𝑋𝑖 − 𝑋) ത 2
4
12/9/2022
Measurement of Autocorrelation
▪ For a time series (Yt) Autocorrelation can be calculated as follows:
σ𝑛𝑡=𝑘+1(𝑌𝑡 − 𝑌)(𝑌
ത 𝑡−𝑘 − 𝑌) ത
𝜌𝑘 =
ത 2
σ(𝑌𝑡 − 𝑌)
▪ 𝜌𝑘 value like correlation coefficients ranges between +1and -1 for perfect positive
and perfect negative autocorrelation/Serial Correlation*.
▪ Positive autocorrelation(negative autocorrelation) is the case when errors/time
series in one time period are positively correlated(negatively correlated) with the
same errors/time series in the other time period.
▪ Time series data patterns (Randomness, seasonality, trends etc.) can be studied
using Autocorrelation Coefficients
▪ The patterns can be identified using autocorrelation coefficient at different time
lags
*Although there is slight difference between autocorrelation and serial correlation, for this course we will treat them same and
will use it for correlation between succussive values of error terms.
10
5
12/9/2022
Lag-Values of a Variable
• You can
calculate Lag
values manually
as shown
• Software such as
EVIEWS you do
have an option to
generate lag
values directly
11
Announcements
▪ Your Project is due at 17:00 hours on Wednesday, December 28, 2022
12
6
12/9/2022
CHAPTER 6
Regression Diagnostic III: Autocorrelation
13
14
7
12/9/2022
15
Causes of Autocorrelation
16
8
12/9/2022
1. Inertia
2. Specification Bias (Excluded variable/incorrect functional form)
3. Cobweb Phenomenon
4. Lags
5. Manipulation of Data
6. Nonstationarity
17
18
9
12/9/2022
19
10
12/9/2022
▪ This is also one of the reason for 1. Low supply causes rise in price
Quantity (Q)
21
22
11
12/9/2022
23
24
12
12/9/2022
Thank You
25
13