Professional Documents
Culture Documents
PPTCH9
PPTCH9
9
Analysis of Moving Average
Detrending
Year 1945 1946 1947 1948 1949 1950 1951 1952 1953
Price 3 6 2 10 7 9 14 12 15
in Rs.
Two Normal Equations:
a
Y
n
b
XY
X 2
Year Coded year Y XY X2 Trend
(t) (X) Yt 9 1.7 X
1945 -4 3 -12 16 2.2
1946 -3 6 -18 9 3.9
1947 -2 2 -4 4 5.6
1948 -1 10 -10 1 7.3
1949 0 7 0 0 9.0
1950 1 9 9 1 10.7
1951 2 14 28 4 12.4
1952 3 12 36 9 14.1
1953 4 18 72 16 15.8
Total 0 81 101 60 81.0
Two Normal Equations:
a
Y
81
9
n 9
b
XY 101
1.7.
X 602
Yt 9 1.7 X
Graph
20
18
16
14
12
Price
10
Original Values
Linear trend
8
0
1945 1946 1947 1948 1949 1950 1951 1952 1953
Year
The following time series are the annual profits in thousands of rupees in a
certain business.
Use the method of least-squares to fit a straight line trend and make an
estimate of the profits in 1985.
Fit a parabola trend.
Determine which is the better fitting trend.
1. The Equation of the straight line:
Yt a bX
Two Normal Equations:
Y na
XY b X 2
2. The Equation of the quadratic parabola line:
Yt a bX cX 2
Y na c X 2
XY b X 2
X 2
Y a X 2
c X 4
2.
Year Y X X2 X4 XY 2
X Y Y2
1977 88 -3 9 81 -264 792 7744
1978 101 -2 4 16 -202 404 10201
1979 105 -1 1 1 -105 105 11025
1980 91 0 0 0 0 0 8281
1981 113 1 1 1 113 113 12769
1982 120 2 4 16 240 480 14400
1983 132 3 9 81 396 1188 17424
Total 750 0 28 196 178 3082 81844
1. The Equation of the straight line:
Yt a bX
Two Normal Equations:
a
Y
750
107.14
n 7
b
XY 178
6.38
X 282
Yt 107.14 6.38 X
2. The Equation of the quadratic parabola line:
Yt a bX cX 2
Three Normal Equations:
b
XY
178
6.36
X 2
28
7a 28c 750
28a 196c 3082
7a 28c 750 (1)
28a 196c 3082 (2)
Multiply equ (1) by 4,and subtract from equ (2), we get
28a 112c 3000
82
28a 196c 3082 c 0.976
84
84c 82
put the value of c in equation (1), we get
7 a 28(0.976) 750
7 a 27.328 750
7 a 722.672
a 103.24
t aY b XY
(Y Y ) 2
Y 2
t
(Y Y ) 2
Y 2
a
Y b XY c Y
X 2
Year Production
1970-71 136
1971-72 162
1972-73 187
1973-74 225
1974-75 272
1975-76 277
1976-77 322
Fit a second degree parabola to the data and estimate the production for 1978-
79.
1. The Equation of the quadratic parabola line:
Yt a bX cX 2
Y na b X c X 2
XY a
X b X 2
c X 3
X 2
Y a X 2
b X 3
c X 4
Year Product X
ion Y X2 X3 X4 XY X 2Y
1970-71 136 0 0 0 0 0 0
Quarters
Year
I II III IV
1979 72 98 79 106
Quarters
Year I II III IV Total
1979 81.13 110.42 89.01 119.44
1980 71.01 109.66 90.79 128.54
1981 71.89 107.84 97.90 122.37
1982 84.75 96.65 91.53 126.78
Total 308.78 424.87 369.23 497.13
Mean 77.20 106.22 92.31 124.28 400.01