Professional Documents
Culture Documents
STA101 Lesson 18
Introduction to Linear Trend Analysis
However, when using the Least Squares Method for time series, we may translate the independent
variable 𝑋 (time) such that ∑𝑋 = 0, and hence 𝑋 = 0. Therefore, the least square regression
coefficients may be simplified as,
∑𝑋𝑌
𝑏̂ =
∑𝑋 2
𝑎̂ = 𝑌̅
Example
The close price of Alphabet Inc. (GOOG) shares on the last trading days of each year is represented by
the following time series. Find the linear equation that describes the trend and estimate the close
price for 2014
Solution
2308
𝑎=𝑌= = 256.44
9
∑𝑋𝑌 1468
𝑏= = = 24.47
∑𝑋 2 60
∴ 𝑌̂ = 256.44 + 24.47𝑥
For 𝑇 = 2014,
𝑋 = 2014 − 2008 = 6
∴ 𝑌̂ = 256.44 + (24.47 × 6) = 403.26
Example
The close price of Alphabet Inc. (GOOG) shares on the last trading days of each year is represented by
the following time series. Find the linear equation that describes the trend and estimate the close
price for 2014
Solution
2867
𝑎=𝑌= 10
= 286.7
∑𝑋𝑌 5651.73
𝑏= = = 17.13
∑𝑋 2 330
∴ 𝑌̂ = 286.7 + 17.13𝑥
For 𝑇 = 2014,
𝑋 = 2 × (2014 − 2008.5) = 11
∴ 𝑌̂ = 286.7 + (17.13 × 11) = 475.13
Practice Problems
Problem 1
Otobi is a furniture manufacturing company. Since they started the company, the number of tables
they have sold is represented by this time series:
Year 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996
a. Find the linear equation that describes the trend in the number of tables sold by Otobi.
b. Estimates their sales of tables in 1998.
Answers:
a. 𝑌̂ = 95.6 + 5.9939𝑥
b. 173.5
Problem 2
The number of faculty owned computers at the university of Ohio increased dramatically between
1990 and 1995:
a. 𝑌̂ = 1198.33 + 349.8571𝑥
b. 5746.47