Home » date » 2011 » May » 15 »

KDGP2W92

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 15 May 2011 20:17:11 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/15/t1305490431vwei7l514p3pbmt.htm/, Retrieved Sun, 15 May 2011 22:13:57 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
41 39 50 40 43 38 44 35 39 35 29 49 50 59 63 32 39 47 53 60 57 52 70 90 74 62 55 84 94 70 108 139 120 97 126 149 158 124 140 109 114 77 120 133 110 92 97 78 99 107 112 90 98 125 155 190 236 189 174 178 136 161 171 149 184 155 276 224 213 279 268 287 238 213 257 293 212 246 353 339 308 247 257 322 298 273 312 249 286 279 309 401 309 328 353 354 327 324 285 243 241 287 355 460 364 487 452 391 500 451 375 372 302 316 398 394 431 431
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'George Udny Yule' @ 216.218.223.82


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
141NANA-0.513888888888886NA
239NANA-11.4722222222222NA
350NANA-6.37847222222222NA
440NANA-28.6753472222222NA
543NANA-30.8576388888889NA
638NANA-32.5920138888889NA
74459.199652777777840.541666666666718.6579861111111-15.1996527777778
83583.147569444444441.7541.3975694444444-48.1475694444444
93952.230902777777843.1259.10590277777779-13.2309027777778
103555.793402777777843.333333333333312.4600694444445-20.7934027777778
112955.402777777777842.833333333333312.5694444444445-26.4027777777778
124959.340277777777843.041666666666716.2986111111111-10.3402777777778
135043.277777777777843.7916666666667-0.5138888888888866.72222222222222
145933.736111111111145.2083333333333-11.472222222222225.2638888888889
156340.621527777777847-6.3784722222222222.3784722222222
163219.782986111111148.4583333333333-28.675347222222212.2170138888889
173920.017361111111150.875-30.857638888888918.9826388888889
184721.699652777777854.2916666666667-32.592013888888925.3003472222222
195375.65798611111115718.6579861111111-22.6579861111111
206099.522569444444458.12541.3975694444444-39.5225694444444
215767.022569444444457.91666666666679.10590277777779-10.0225694444444
225272.210069444444559.7512.4600694444445-20.2100694444444
237076.777777777777864.208333333333312.5694444444445-6.77777777777779
249083.756944444444467.458333333333316.29861111111116.24305555555556
257470.194444444444470.7083333333333-0.5138888888888863.80555555555556
266264.819444444444476.2916666666667-11.4722222222222-2.81944444444444
275575.829861111111182.2083333333333-6.37847222222222-20.8298611111111
288458.032986111111186.7083333333333-28.675347222222225.9670138888889
299460.059027777777890.9166666666667-30.857638888888933.9409722222222
307063.116319444444495.7083333333333-32.59201388888896.88368055555554
31108120.324652777778101.66666666666718.6579861111111-12.3246527777778
32139149.147569444444107.7541.3975694444444-10.1475694444444
33120122.980902777778113.8759.10590277777779-2.98090277777777
3497130.918402777778118.45833333333312.4600694444445-33.9184027777778
35126132.902777777778120.33333333333312.5694444444445-6.90277777777777
36149137.756944444444121.45833333333316.298611111111111.2430555555556
37158121.736111111111122.25-0.51388888888888636.2638888888889
38124111.027777777778122.5-11.472222222222212.9722222222222
39140115.454861111111121.833333333333-6.3784722222222224.5451388888889
4010992.5329861111111121.208333333333-28.675347222222216.4670138888889
4111488.9340277777778119.791666666667-30.857638888888925.0659722222222
427783.0329861111111115.625-32.5920138888889-6.0329861111111
43120128.866319444444110.20833333333318.6579861111111-8.86631944444443
44133148.439236111111107.04166666666741.3975694444444-15.4392361111111
45110114.272569444444105.1666666666679.10590277777779-4.27256944444444
4692115.668402777778103.20833333333312.4600694444445-23.6684027777778
4797114.319444444444101.7512.5694444444445-17.3194444444445
4878119.381944444444103.08333333333316.2986111111111-41.3819444444444
4999106.027777777778106.541666666667-0.513888888888886-7.02777777777777
5010798.9027777777778110.375-11.47222222222228.0972222222222
51112111.621527777778118-6.378472222222220.378472222222243
529098.6163194444444127.291666666667-28.6753472222222-8.61631944444441
5398103.684027777778134.541666666667-30.8576388888889-5.68402777777774
54125109.324652777778141.916666666667-32.592013888888915.6753472222222
55155166.282986111111147.62518.6579861111111-11.2829861111111
56190192.814236111111151.41666666666741.3975694444444-2.81423611111111
57236165.230902777778156.1259.1059027777777970.7690972222222
58189173.501736111111161.04166666666712.460069444444515.4982638888889
59174179.652777777778167.08333333333312.5694444444445-5.65277777777777
60178188.215277777778171.91666666666716.2986111111111-10.2152777777778
61136177.694444444444178.208333333333-0.513888888888886-41.6944444444444
62161173.194444444444184.666666666667-11.4722222222222-12.1944444444444
63171178.746527777778185.125-6.37847222222222-7.7465277777778
64149159.241319444444187.916666666667-28.6753472222222-10.2413194444445
65184164.725694444444195.583333333333-30.857638888888919.2743055555556
66155171.449652777778204.041666666667-32.5920138888889-16.4496527777778
67276231.491319444444212.83333333333318.657986111111144.5086805555556
68224260.647569444444219.2541.3975694444444-36.6475694444444
69213234.1059027777782259.10590277777779-21.1059027777778
70279247.043402777778234.58333333333312.460069444444531.9565972222222
71268254.319444444444241.7512.569444444444513.6805555555556
72287263.006944444444246.70833333333316.298611111111123.9930555555555
73238253.194444444444253.708333333333-0.513888888888886-15.1944444444444
74213250.236111111111261.708333333333-11.4722222222222-37.2361111111111
75257264.079861111111270.458333333333-6.37847222222222-7.07986111111109
76293244.407986111111273.083333333333-28.675347222222248.5920138888889
77212240.434027777778271.291666666667-30.8576388888889-28.4340277777778
78246239.699652777778272.291666666667-32.59201388888896.30034722222229
79353294.907986111111276.2518.657986111111158.092013888889
80339322.647569444444281.2541.397569444444416.3524305555556
81308295.147569444444286.0416666666679.1059027777777912.8524305555556
82247298.960069444444286.512.4600694444445-51.9600694444444
83257300.319444444444287.7512.5694444444445-43.3194444444444
84322308.506944444444292.20833333333316.298611111111113.4930555555555
85298291.236111111111291.75-0.5138888888888866.76388888888897
86273281.027777777778292.5-11.4722222222222-8.02777777777777
87312288.746527777778295.125-6.3784722222222223.2534722222223
88249269.866319444444298.541666666667-28.6753472222222-20.8663194444445
89286275.059027777778305.916666666667-30.857638888888910.9409722222223
90279278.657986111111311.25-32.59201388888890.342013888888914
91309332.449652777778313.79166666666718.6579861111111-23.4496527777778
92401358.522569444444317.12541.397569444444442.4774305555555
93309327.230902777778318.1259.10590277777779-18.2309027777777
94328329.210069444444316.7512.4600694444445-1.2100694444444
95353327.194444444444314.62512.569444444444525.8055555555555
96354329.381944444444313.08333333333316.298611111111124.6180555555555
97327314.819444444444315.333333333333-0.51388888888888612.1805555555556
98324308.236111111111319.708333333333-11.472222222222215.763888888889
99285318.079861111111324.458333333333-6.37847222222222-33.0798611111111
100243304.699652777778333.375-28.6753472222222-61.6996527777778
101241313.267361111111344.125-30.8576388888889-72.2673611111111
102287317.199652777778349.791666666667-32.5920138888889-30.1996527777777
103355377.199652777778358.54166666666718.6579861111111-22.1996527777778
104460412.439236111111371.04166666666741.397569444444447.5607638888889
105364389.189236111111380.0833333333339.10590277777779-25.1892361111111
106487401.668402777778389.20833333333312.460069444444585.3315972222222
107452409.694444444444397.12512.569444444444542.3055555555556
108391417.173611111111400.87516.2986111111111-26.173611111111
109500NA403.875NANA
110451NA402.916666666667NANA
111375NA402.958333333333NANA
112372NA403.416666666667NANA
113302NANANANA
114316NANANANA
115398NANANANA
116394NANANANA
117431NANANANA
118431NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/15/t1305490431vwei7l514p3pbmt/1oxmd1305490626.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/15/t1305490431vwei7l514p3pbmt/1oxmd1305490626.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/15/t1305490431vwei7l514p3pbmt/2b0kt1305490626.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/15/t1305490431vwei7l514p3pbmt/2b0kt1305490626.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/15/t1305490431vwei7l514p3pbmt/33q0w1305490626.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/15/t1305490431vwei7l514p3pbmt/33q0w1305490626.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/15/t1305490431vwei7l514p3pbmt/4k0fh1305490626.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/15/t1305490431vwei7l514p3pbmt/4k0fh1305490626.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