Home » date » 2008 » May » 31 »

Classical decomposition ruwe aardolie_Jan De Cleermaecker

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 31 May 2008 07:56:15 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/31/t12122422328u5oz0a47z4yp8m.htm/, Retrieved Sat, 31 May 2008 13:57:17 +0000
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
68,4 70,6 83,9 90,1 90,6 87,1 90,8 94,1 99,8 96,8 87 96,3 107,1 115,2 106,1 89,5 91,3 97,6 100,7 104,6 94,7 101,8 102,5 105,3 110,3 109,8 117,3 118,8 131,3 125,9 133,1 147 145,8 164,4 149,8 137,7 151,7 156,8 180 180,4 170,4 191,6 199,5 218,2 217,5 205 194 199,3 219,3 211,1 215,2 240,2 242,2 240,7 255,4 253 218,2 203,7 205,6 215,6 188,5 202,9 214 230,3 230 241 259,6 247,8 270,3 289,7 322,7 315 320,2
 
Text written by user:
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
168.4NANA1.00303776605987NA
270.6NANA0.999525670381087NA
383.9NANA1.01224647878114NA
490.1NANA0.985604024462152NA
590.6NANA0.98701818727222NA
687.1NANA1.00337907906274NA
790.892.95266682962189.57083333333331.037755967768020.976841257996752
894.1100.71923429984493.04166666666671.082517520464060.934280335371314
999.896.069900308539695.8251.002555703715521.03882693413318
1096.896.93079304628196.7251.002127609679820.998650655357595
118791.784906886911796.72916666666670.9488855331836660.947868260161693
1296.390.911778554382297.19583333333330.9353464591697051.05926868367661
13107.198.343673638144698.04583333333331.003037766059871.08903802388016
14115.298.848924110396398.89583333333330.9995256703810871.16541480887888
15106.1100.33471451551999.12083333333331.012246478781141.05746052612319
1689.597.689785557940399.11666666666660.9856040244621520.916165385038307
1791.398.673030696759899.97083333333330.987018187272220.925278157114496
1897.6101.332925493012100.9916666666671.003379079062740.963161771212566
19100.7105.332230728454101.51.037755967768020.956022665651167
20104.6109.776297554393101.4083333333331.082517520464060.952846856109095
2194.7101.909787282682101.651.002555703715520.92925323980234
22101.8103.557361865289103.33751.002127609679820.983030063400273
23102.5100.795365762435106.2250.9488855331836661.01691183145843
24105.3102.019017757022109.0708333333330.9353464591697051.03216049629876
25110.3111.939014692281111.61.003037766059870.985357967489827
26109.8114.662253153884114.7166666666670.9995256703810870.95759499730606
27117.3120.065085464428118.61251.012246478781140.976970112054376
28118.8121.574256417407123.350.9856040244621520.977180560266957
29131.3126.268414182579127.9291666666670.987018187272221.03984833301340
30125.9131.693504126985131.251.003379079062740.956007669737463
31133.1139.396570370439134.3251.037755967768020.95482980425052
32147149.396438803378138.0083333333331.082517520464060.983959197270212
33145.8142.943556772672142.5791666666671.002555703715521.01998301491735
34164.4148.072705393608147.7583333333331.002127609679821.11026538998521
35149.8144.187110456980151.9541666666670.9488855331836661.03892781764772
36137.7146.214137952791156.3208333333330.9353464591697050.941769393356886
37151.7162.316586492638161.8251.003037766059870.934593335640906
38156.8167.478855452938167.5583333333330.9995256703810870.936237589968852
39180175.637417149512173.51251.012246478781141.02483857324533
40180.4175.626423792285178.1916666666670.9856040244621521.02718028474668
41170.4179.365880082044181.7250.987018187272220.950013458089448
42191.6186.762292582879186.1333333333331.003379079062741.02590302009157
43199.5198.747563760371191.5166666666671.037755967768021.00378588912182
44218.2212.818434033566196.5958333333331.082517520464061.02528712322723
45217.5200.836971346811200.3251.002555703715521.08296793434718
46205204.71796853076204.2833333333331.002127609679821.00137765859667
47194199.044555344160209.7666666666670.9488855331836660.974656150049228
48199.3200.916316706566214.8041666666670.9353464591697050.991955274051104
49219.3219.844981700196219.1791666666671.003037766059870.997521063724167
50211.1222.85257759205222.9583333333330.9995256703810870.94726299458127
51215.2227.186069081441224.43751.012246478781140.947241179312167
52240.2221.181863139613224.41250.9856040244621521.08598416068311
53242.2221.922814256598224.8416666666670.987018187272221.09137044251772
54240.7226.767852614343226.0041666666671.003379079062741.06143792969346
55255.4233.910195134911225.41.037755967768021.09187203171155
56253242.240358141846223.7751.082517520464061.04441721412851
57218.2223.954234948318223.3833333333331.002555703715520.974306201668183
58203.7223.395121856168222.9208333333331.002127609679820.911837278752897
59205.6210.6525883667742220.9488855331836660.976014591579683
60215.6207.183137983003221.5041666666670.9353464591697051.04062522702831
61188.5222.365114087422221.6916666666671.003037766059870.8477049143864
62202.9221.544864839968221.650.9995256703810870.915841584261337
63214226.342530349124223.6041666666671.012246478781140.945469681150574
64230.3226.056496377265229.3583333333330.9856040244621521.01877187203527
65230234.733487812235237.8208333333330.987018187272220.97983462923696
66241247.675764174313246.8416666666671.003379079062740.973046356810211
67259.6266.154137850103256.4708333333331.037755967768020.975374653563364
68247.8NANA1.08251752046406NA
69270.3NANA1.00255570371552NA
70289.7NANA1.00212760967982NA
71322.7NANA0.948885533183666NA
72315NANA0.935346459169705NA
73320.2NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t12122422328u5oz0a47z4yp8m/1vmjx1212242166.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t12122422328u5oz0a47z4yp8m/1vmjx1212242166.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t12122422328u5oz0a47z4yp8m/2kbmk1212242167.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t12122422328u5oz0a47z4yp8m/2kbmk1212242167.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t12122422328u5oz0a47z4yp8m/3lb781212242167.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t12122422328u5oz0a47z4yp8m/3lb781212242167.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t12122422328u5oz0a47z4yp8m/443f81212242167.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t12122422328u5oz0a47z4yp8m/443f81212242167.ps (open in new window)


 
Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
 
Parameters (R input):
par1 = multiplicative ; 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