Home » date » 2010 » Dec » 04 »

CD CPI

*The author of this computation has been verified*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 04 Dec 2010 10:36:15 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/04/t1291458896avpexnqskojoo9a.htm/, Retrieved Sat, 04 Dec 2010 11:34:56 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/04/t1291458896avpexnqskojoo9a.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
115.65 116.00 115.92 116.10 116.44 116.65 117.45 117.58 117.43 117.24 117.25 117.29 117.83 118.22 118.11 118.23 118.15 118.23 119.03 119.38 118.97 118.78 118.97 118.94 119.86 120.09 120.13 120.15 119.90 120.00 120.84 121.17 120.81 121.00 121.12 121.29 122.09 121.88 121.31 121.33 121.45 121.67 122.78 122.84 122.34 122.37 122.72 122.68 122.78 123.08 122.92 123.51 124.18 124.05 124.36 123.87 123.84 123.85 123.83 123.84 124.27 124.56 124.57 124.87 125.08 124.86 124.89 124.58 124.83 124.97 125.19 125.42 125.74 126.07 126.35 126.69 126.85 127.12 127.43 127.49 128.05 127.85 128.35 128.29 128.38 128.80 129.18 130.14 130.77 131.19 131.32 131.41 131.61 131.69 131.94 131.70 132.54 132.74 133.02 132.76 133.05 132.74 133.16 133.10 133.37 133.15 133.18 133.29 133.76 134.51 134.82 134.71 134.52 134.86 135.11 135.28 135.61 135.22 135.47 135.42 135.85 136.27 136.30 136.85 137.05 137.03 137.45 137.49 etc...
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1115.65NANA-0.0545833333333374NA
2116NANA0.211666666666670NA
3115.92NANA0.0686111111111097NA
4116.1NANA0.135361111111109NA
5116.44NANA0.133833333333333NA
6116.65NANA-0.00411111111110611NA
7117.45117.110083333333116.8408333333330.2692500000000060.339916666666682
8117.58117.109777777778117.0241666666670.08561111111111030.470222222222262
9117.43117.118472222222117.207916666667-0.08944444444444240.311527777777798
10117.24117.151083333333117.387916666667-0.2368333333333310.0889166666666767
11117.25117.347472222222117.547916666667-0.200444444444451-0.0974722222221942
12117.29117.366083333333117.685-0.318916666666669-0.0760833333333153
13117.83117.762083333333117.816666666667-0.05458333333333740.0679166666667044
14118.22118.169166666667117.95750.2116666666666700.0508333333333439
15118.11118.165277777778118.0966666666670.0686111111111097-0.0552777777777607
16118.23118.360361111111118.2250.135361111111109-0.130361111111100
17118.15118.494666666667118.3608333333330.133833333333333-0.344666666666654
18118.23118.497138888889118.50125-0.00411111111110611-0.26713888888888
19119.03118.923833333333118.6545833333330.2692500000000060.106166666666695
20119.38118.902694444444118.8170833333330.08561111111111030.477305555555574
21118.97118.889722222222118.979166666667-0.08944444444444240.0802777777777948
22118.78118.9065119.143333333333-0.236833333333331-0.126499999999993
23118.97119.095805555556119.29625-0.200444444444451-0.125805555555544
24118.94119.124119.442916666667-0.318916666666669-0.184000000000012
25119.86119.5375119.592083333333-0.05458333333333740.322500000000005
26120.09119.95375119.7420833333330.2116666666666700.136250000000018
27120.13119.961944444444119.8933333333330.06861111111110970.168055555555554
28120.15120.197861111111120.06250.135361111111109-0.0478611111111178
29119.9120.378416666667120.2445833333330.133833333333333-0.478416666666661
30120120.427972222222120.432083333333-0.00411111111110611-0.427972222222238
31120.84120.892166666667120.6229166666670.269250000000006-0.0521666666666647
32121.17120.876027777778120.7904166666670.08561111111111030.293972222222237
33120.81120.824722222222120.914166666667-0.0894444444444424-0.0147222222222325
34121120.775666666667121.0125-0.2368333333333310.224333333333348
35121.12120.925805555556121.12625-0.2004444444444510.194194444444463
36121.29120.9415121.260416666667-0.3189166666666690.348500000000016
37122.09121.35625121.410833333333-0.05458333333333740.733750000000029
38121.88121.772916666667121.561250.2116666666666700.107083333333335
39121.31121.763194444444121.6945833333330.0686111111111097-0.453194444444435
40121.33121.950777777778121.8154166666670.135361111111109-0.620777777777789
41121.45122.073121.9391666666670.133833333333333-0.62299999999999
42121.67122.059638888889122.06375-0.00411111111110611-0.389638888888896
43122.78122.419666666667122.1504166666670.2692500000000060.360333333333330
44122.84122.314777777778122.2291666666670.08561111111111030.525222222222226
45122.34122.256805555556122.34625-0.08944444444444240.0831944444444446
46122.37122.267333333333122.504166666667-0.2368333333333310.102666666666678
47122.72122.508305555556122.70875-0.2004444444444510.211694444444433
48122.68122.60275122.921666666667-0.3189166666666690.0772500000000207
49122.78123.032083333333123.086666666667-0.0545833333333374-0.252083333333331
50123.08123.407083333333123.1954166666670.211666666666670-0.327083333333363
51122.92123.369444444444123.3008333333330.0686111111111097-0.449444444444438
52123.51123.560361111111123.4250.135361111111109-0.0503611111111155
53124.18123.66675123.5329166666670.1338333333333330.513250000000014
54124.05123.623388888889123.6275-0.004111111111106110.426611111111129
55124.36124.007166666667123.7379166666670.2692500000000060.352833333333365
56123.87123.947277777778123.8616666666670.0856111111111103-0.077277777777752
57123.84123.902638888889123.992083333333-0.0894444444444424-0.062638888888884
58123.85123.880666666667124.1175-0.236833333333331-0.0306666666666615
59123.83124.011222222222124.211666666667-0.200444444444451-0.181222222222203
60123.84123.964124.282916666667-0.318916666666669-0.123999999999981
61124.27124.284166666667124.33875-0.0545833333333374-0.0141666666666538
62124.56124.602083333333124.3904166666670.211666666666670-0.0420833333332951
63124.57124.529861111111124.461250.06861111111110970.0401388888889045
64124.87124.684527777778124.5491666666670.1353611111111090.185472222222245
65125.08124.786333333333124.65250.1338333333333330.293666666666667
66124.86124.770888888889124.775-0.004111111111106110.0891111111111229
67124.89125.171333333333124.9020833333330.269250000000006-0.281333333333308
68124.58125.111861111111125.026250.0856111111111103-0.531861111111084
69124.83125.073888888889125.163333333333-0.0894444444444424-0.243888888888875
70124.97125.0765125.313333333333-0.236833333333331-0.106499999999983
71125.19125.262472222222125.462916666667-0.200444444444451-0.072472222222217
72125.42125.311916666667125.630833333333-0.3189166666666690.108083333333354
73125.74125.77625125.830833333333-0.0545833333333374-0.0362499999999955
74126.07126.269583333333126.0579166666670.211666666666670-0.199583333333351
75126.35126.381944444444126.3133333333330.0686111111111097-0.0319444444444628
76126.69126.702861111111126.56750.135361111111109-0.012861111111107
77126.85126.953126.8191666666670.133833333333333-0.103000000000009
78127.12127.066305555556127.070416666667-0.004111111111106110.0536944444444742
79127.43127.56925127.30.269250000000006-0.13924999999999
80127.49127.609361111111127.523750.0856111111111103-0.119361111111118
81128.05127.665972222222127.755416666667-0.08944444444444240.384027777777774
82127.85127.78025128.017083333333-0.2368333333333310.0697499999999707
83128.35128.123722222222128.324166666667-0.2004444444444510.226277777777767
84128.29128.338166666667128.657083333333-0.318916666666669-0.048166666666674
85128.38128.934166666667128.98875-0.0545833333333374-0.554166666666646
86128.8129.525833333333129.3141666666670.211666666666670-0.725833333333327
87129.18129.694444444444129.6258333333330.0686111111111097-0.514444444444422
88130.14130.069527777778129.9341666666670.1353611111111090.0704722222222358
89130.77130.377583333333130.243750.1338333333333330.392416666666662
90131.19130.531305555556130.535416666667-0.004111111111106110.658694444444421
91131.32131.120083333333130.8508333333330.2692500000000060.199916666666667
92131.41131.273944444444131.1883333333330.08561111111111030.136055555555544
93131.61131.423055555556131.5125-0.08944444444444240.186944444444464
94131.69131.544833333333131.781666666667-0.2368333333333310.145166666666682
95131.94131.785388888889131.985833333333-0.2004444444444510.154611111111137
96131.7131.8265132.145416666667-0.318916666666669-0.126499999999993
97132.54132.232083333333132.286666666667-0.05458333333333740.307916666666671
98132.74132.645416666667132.433750.2116666666666700.0945833333333326
99133.02132.646111111111132.57750.06861111111110970.373888888888928
100132.76132.847027777778132.7116666666670.135361111111109-0.0870277777777915
101133.05132.958132.8241666666670.1338333333333330.092000000000013
102132.74132.937972222222132.942083333333-0.00411111111110611-0.197972222222205
103133.16133.328416666667133.0591666666670.269250000000006-0.168416666666673
104133.1133.269361111111133.183750.0856111111111103-0.169361111111130
105133.37133.243055555556133.3325-0.08944444444444240.126944444444462
106133.15133.251916666667133.48875-0.236833333333331-0.101916666666654
107133.18133.430805555556133.63125-0.200444444444451-0.250805555555502
108133.29133.461916666667133.780833333333-0.318916666666669-0.171916666666675
109133.76133.895833333333133.950416666667-0.0545833333333374-0.135833333333323
110134.51134.334166666667134.12250.2116666666666700.175833333333344
111134.82134.375277777778134.3066666666670.06861111111110970.444722222222225
112134.71134.621611111111134.486250.1353611111111090.0883888888888862
113134.52134.80175134.6679166666670.133833333333333-0.281749999999988
114134.86134.847972222222134.852083333333-0.004111111111106110.0120277777778028
115135.11135.297166666667135.0279166666670.269250000000006-0.187166666666627
116135.28135.273944444444135.1883333333330.08561111111111030.00605555555554815
117135.61135.233888888889135.323333333333-0.08944444444444240.376111111111101
118135.22135.237333333333135.474166666667-0.236833333333331-0.0173333333333687
119135.47135.468305555556135.66875-0.2004444444444510.00169444444446754
120135.42135.545666666667135.864583333333-0.318916666666669-0.125666666666689
121135.85135.997916666667136.0525-0.0545833333333374-0.147916666666646
122136.27136.45375136.2420833333330.211666666666670-0.183749999999975
123136.3136.483611111111136.4150.0686111111111097-0.183611111111105
124136.85136.748694444444136.6133333333330.1353611111111090.101305555555570
125137.05136.971333333333136.83750.1338333333333330.0786666666666633
126137.03137.037138888889137.04125-0.00411111111110611-0.00713888888890324
127137.45137.508416666667137.2391666666670.269250000000006-0.058416666666659
128137.49137.538944444444137.4533333333330.0856111111111103-0.0489444444444587
129137.55137.620555555556137.71-0.0894444444444424-0.0705555555555577
130138.04137.73525137.972083333333-0.2368333333333310.304750000000013
131138.03138.012055555556138.2125-0.2004444444444510.0179444444444528
132137.75138.14775138.466666666667-0.318916666666669-0.397750000000002
133138.27138.683333333333138.737916666667-0.0545833333333374-0.413333333333298
134138.99139.22625139.0145833333330.211666666666670-0.236249999999984
135139.74139.349861111111139.281250.06861111111110970.390138888888913
136139.7139.644527777778139.5091666666670.1353611111111090.055472222222221
137139.97139.859666666667139.7258333333330.1338333333333330.110333333333358
138140.21139.972972222222139.977083333333-0.004111111111106110.237027777777797
139140.78140.4955140.226250.2692500000000060.284500000000008
140140.8140.540611111111140.4550.08561111111111030.259388888888907
141140.64140.556388888889140.645833333333-0.08944444444444240.0836111111111109
142140.42140.586916666667140.82375-0.236833333333331-0.166916666666680
143140.85140.832888888889141.033333333333-0.2004444444444510.0171111111111202
144140.96140.9215141.240416666667-0.3189166666666690.0385000000000275
145141.04141.37625141.430833333333-0.0545833333333374-0.336250000000007
146141.71141.834166666667141.62250.211666666666670-0.124166666666667
147141.6141.894861111111141.826250.0686111111111097-0.294861111111061
148142.11142.177861111111142.04250.135361111111109-0.0678611111110854
149142.59142.396333333333142.26250.1338333333333330.193666666666672
150142.56142.476305555556142.480416666667-0.004111111111106110.0836944444444327
151143142.97925142.710.2692500000000060.0207500000000209
152143.18143.038527777778142.9529166666670.08561111111111030.141472222222205
153143.15143.100555555556143.19-0.08944444444444240.0494444444444184
154143.1143.18025143.417083333333-0.236833333333331-0.0802500000000066
155143.45143.408722222222143.609166666667-0.2004444444444510.0412777777777649
156143.59143.4465143.765416666667-0.3189166666666690.143500000000017
157143.92143.870833333333143.925416666667-0.05458333333333740.0491666666666219
158144.66144.29375144.0820833333330.2116666666666700.366249999999980
159144.34144.301527777778144.2329166666670.06861111111110970.0384722222222251
160144.82144.552027777778144.4166666666670.1353611111111090.267972222222227
161144.49144.79175144.6579166666670.133833333333333-0.301749999999998
162144.41144.946305555556144.950416666667-0.00411111111110611-0.536305555555543
163144.99145.545083333333145.2758333333330.269250000000006-0.555083333333329
164144.95145.714777777778145.6291666666670.0856111111111103-0.764777777777795
165145145.959305555556146.04875-0.0894444444444424-0.959305555555545
166145.66146.269416666667146.50625-0.236833333333331-0.609416666666647
167146.68146.807472222222147.007916666667-0.200444444444451-0.127472222222195
168147.38147.272333333333147.59125-0.3189166666666690.107666666666631
169147.94148.1575148.212083333333-0.0545833333333374-0.217500000000001
170149.12149.036666666667148.8250.2116666666666700.0833333333333428
171149.95149.501944444444149.4333333333330.06861111111110970.448055555555584
172150.19150.171194444444150.0358333333330.1353611111111090.0188055555555593
173151.16150.698833333333150.5650.1338333333333330.461166666666657
174151.74151.015472222222151.019583333333-0.004111111111106110.724527777777837
175152.56151.71175151.44250.2692500000000060.848250000000007
176152.09151.907694444444151.8220833333330.08561111111111030.182305555555558
177152.46152.006388888889152.095833333333-0.08944444444444240.453611111111115
178152.66152.054833333333152.291666666667-0.2368333333333310.605166666666662
179152.38152.230388888889152.430833333333-0.2004444444444510.149611111111113
180152.59152.148166666667152.467083333333-0.3189166666666690.441833333333335
181152.88152.363333333333152.417916666667-0.05458333333333740.51666666666668
182153.29152.575152.3633333333330.2116666666666700.714999999999975
183152.35152.380277777778152.3116666666670.0686111111111097-0.0302777777777692
184152.49152.370361111111152.2350.1353611111111090.119638888888915
185152.2152.312166666667152.1783333333330.133833333333333-0.112166666666695
186151.57152.138805555556152.142916666667-0.00411111111110611-0.568805555555542
187151.55152.3905152.121250.269250000000006-0.840499999999992
188151.79152.209777777778152.1241666666670.0856111111111103-0.419777777777767
189151.52152.102638888889152.192083333333-0.0894444444444424-0.58263888888888
190151.76152.081916666667152.31875-0.236833333333331-0.321916666666652
191151.92152.286222222222152.486666666667-0.200444444444451-0.366222222222206
192152.2152.396916666667152.715833333333-0.318916666666669-0.196916666666652
193152.75NA152.98NANA
194153.49NA153.24625NANA
195153.78NA153.538333333333NANA
196154.1NA153.86125NANA
197154.62NA154.1825NANA
198154.65NANANANA
199154.81NANANANA
200154.92NANANANA
201155.4NANANANA
202155.63NANANANA
203155.76NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/04/t1291458896avpexnqskojoo9a/1hj9q1291458970.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/04/t1291458896avpexnqskojoo9a/1hj9q1291458970.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/04/t1291458896avpexnqskojoo9a/2aa8t1291458970.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/04/t1291458896avpexnqskojoo9a/2aa8t1291458970.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/04/t1291458896avpexnqskojoo9a/3aa8t1291458970.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/04/t1291458896avpexnqskojoo9a/3aa8t1291458970.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/04/t1291458896avpexnqskojoo9a/43jqw1291458970.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/04/t1291458896avpexnqskojoo9a/43jqw1291458970.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
Parameters (R input):
par1 = additive ; par2 = 12 ;
 
R code (references can be found in the software module):
par2 <- as.numeric(par2)
x <- ts(x,freq=par2)
m <- decompose(x,type=par1)
m$figure
bitmap(file='test1.png')
plot(m)
dev.off()
mylagmax <- length(x)/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(as.numeric(m$trend),na.action=na.pass,lag.max = mylagmax,main='Trend')
acf(as.numeric(m$seasonal),na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(as.numeric(m$random),na.action=na.pass,lag.max = mylagmax,main='Random')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
spectrum(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
spectrum(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
cpgram(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
cpgram(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Classical Decomposition by Moving Averages',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observations',header=TRUE)
a<-table.element(a,'Fit',header=TRUE)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Random',header=TRUE)
a<-table.row.end(a)
for (i in 1:length(m$trend)) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
if (par1 == 'additive') a<-table.element(a,m$trend[i]+m$seasonal[i]) else a<-table.element(a,m$trend[i]*m$seasonal[i])
a<-table.element(a,m$trend[i])
a<-table.element(a,m$seasonal[i])
a<-table.element(a,m$random[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by