Home » date » 2008 » May » 25 »

Classical Decomposition - Olieprijzen in constante dollar - Bram Op de Beeck

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 25 May 2008 09:43:40 -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/25/t1211730298262hzcsr860132b.htm/, Retrieved Sun, 25 May 2008 17:45:03 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
23.11 18.64 14.94 16.90 15.46 11.15 13.13 12.48 12.95 12.59 10.58 10.58 12.39 15.53 13.06 10.22 16.33 19.72 21.31 18.84 24.84 15.67 15.57 12.73 13.56 15.54 17.22 12.14 11.07 12.02 11.55 6.92 10.33 8.38 12.11 11.46 12.75 13.32 13.00 11.90 11.79 12.55 11.84 11.25 11.15 10.99 11.70 14.01 17.51 17.27 16.90 15.79 15.45 16.24 16.71 16.77 16.64 17.80 16.87 16.13 15.76 15.66 15.54 15.30 15.05 14.69 14.39 14.18 13.70 13.66 13.27 13.56 13.14 14.19 22.57 23.09 23.31 22.91 22.36 43.06 64.67 64.68 56.90 48.79 45.21 41.40 22.17 25.52 20.28 22.87 27.63 22.95 21.35 18.38 17.15 18.27 19.40 20.52
 
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 time6 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
123.11NANA-0.948049768518519NA
218.64NANA-0.157841435185185NA
314.94NANA0.400630787037037NA
416.9NANA-1.96193865740741NA
515.46NANA-1.88534143518519NA
611.15NANA-1.61735532407407NA
713.1311.823547453703713.9291666666667-2.105619212962961.30645254629630
812.4812.983061342592613.3529166666667-0.369855324074075-0.503061342592591
912.9517.583894675925913.1454.43889467592593-4.63389467592593
1012.5915.366047453703712.78833333333332.57771412037037-2.77604745370370
1110.5814.196950231481512.546251.65070023148148-3.61695023148148
1210.5812.917644675925912.9395833333333-0.0219386574074081-2.33764467592592
1312.3912.689450231481513.6375-0.948049768518519-0.299450231481476
1415.5314.085491898148114.2433333333333-0.1578414351851851.44450810185186
1513.0615.404380787037015.003750.400630787037037-2.34438078703703
1610.2213.665561342592615.6275-1.96193865740741-3.44556134259259
1716.3314.078408564814815.96375-1.885341435185192.25159143518519
1819.7214.643894675925916.26125-1.617355324074075.07610532407408
1921.3114.293964120370416.3995833333333-2.105619212962967.01603587962963
2018.8416.078894675925916.44875-0.3698553240740752.76110532407408
2124.8421.061394675925916.62254.438894675925933.77860532407407
2215.6719.453547453703716.87583333333332.57771412037037-3.7835474537037
2315.5718.387366898148116.73666666666671.65070023148148-2.81736689814815
2412.7316.174728009259316.1966666666667-0.0219386574074081-3.44472800925926
2513.5614.521116898148115.4691666666667-0.948049768518519-0.961116898148148
2615.5414.407991898148114.5658333333333-0.1578414351851851.13200810185185
2717.2213.865214120370413.46458333333330.4006307870370373.35478587962963
2812.1410.594311342592612.55625-1.961938657407411.54568865740741
2911.0710.222991898148112.1083333333333-1.885341435185190.847008101851854
3012.0210.293894675925911.91125-1.617355324074071.72610532407407
3111.559.7189641203703711.8245833333333-2.105619212962961.83103587962963
326.9211.328478009259311.6983333333333-0.369855324074075-4.40847800925926
3310.3315.868894675925911.434.43889467592593-5.53889467592592
348.3813.821880787037011.24416666666672.57771412037037-5.44188078703704
3512.1112.914866898148111.26416666666671.65070023148148-0.804866898148148
3611.4611.294311342592611.31625-0.02193865740740810.165688657407411
3712.7510.402366898148111.3504166666667-0.9480497685185192.34763310185185
3813.3211.385075231481511.5429166666667-0.1578414351851851.93492476851852
391312.158130787037011.75750.4006307870370370.841869212962962
4011.99.9384780092592611.9004166666667-1.961938657407411.96152199074074
4111.7910.106741898148111.9920833333333-1.885341435185191.68325810185185
4212.5510.463894675925912.08125-1.617355324074072.08610532407407
4311.8410.280214120370412.3858333333333-2.105619212962961.55978587962963
4411.2512.378894675925912.74875-0.369855324074075-1.12889467592593
4511.1517.514728009259313.07583333333334.43889467592593-6.36472800925926
4610.9915.978130787037013.40041666666672.57771412037037-4.98813078703704
4711.715.365700231481513.7151.65070023148148-3.66570023148148
4814.0113.999311342592614.02125-0.02193865740740810.0106886574074085
4917.5113.429866898148114.3779166666667-0.9480497685185194.08013310185185
5017.2714.652991898148114.8108333333333-0.1578414351851852.61700810185185
5116.915.670214120370415.26958333333330.4006307870370371.22978587962963
5215.7913.820144675925915.7820833333333-1.961938657407411.96985532407408
5315.4514.395908564814816.28125-1.885341435185191.05409143518519
5416.2414.967644675925916.585-1.617355324074071.27235532407407
5516.7114.494797453703716.6004166666667-2.105619212962962.21520254629630
5616.7716.090561342592616.4604166666667-0.3698553240740750.679438657407406
5716.6420.775561342592616.33666666666674.43889467592593-4.1355613425926
5817.818.837297453703716.25958333333332.57771412037037-1.03729745370370
5916.8717.873200231481516.22251.65070023148148-1.00320023148148
6016.1316.119311342592616.14125-0.02193865740740810.0106886574074032
6115.7615.031950231481515.98-0.9480497685185190.728049768518517
6215.6615.617575231481515.7754166666667-0.1578414351851850.0424247685185204
6315.5415.945630787037015.5450.400630787037037-0.405630787037039
6415.313.288061342592615.25-1.961938657407412.01193865740741
6515.0513.042158564814814.9275-1.885341435185192.00784143518519
6614.6913.053061342592614.6704166666667-1.617355324074071.63693865740741
6714.3912.348547453703714.4541666666667-2.105619212962962.0414525462963
6814.1813.913894675925914.28375-0.3698553240740750.266105324074076
6913.718.954311342592614.51541666666674.43889467592593-5.25431134259259
7013.6617.710630787037015.13291666666672.57771412037037-4.05063078703704
7113.2717.452366898148115.80166666666671.65070023148148-4.18236689814815
7213.5616.466394675925916.4883333333333-0.0219386574074081-2.90639467592592
7313.1416.214866898148117.1629166666667-0.948049768518519-3.07486689814815
7414.1918.540491898148118.6983333333333-0.157841435185185-4.35049189814815
7522.5722.426047453703722.02541666666670.4006307870370370.143952546296301
7623.0924.313061342592626.275-1.96193865740741-1.22306134259259
7723.3128.333408564814830.21875-1.88534143518519-5.02340856481482
7822.9131.887228009259333.5045833333333-1.61735532407407-8.97722800925926
7922.3634.20313078703736.30875-2.10561921296296-11.8431307870370
8043.0638.408894675925938.77875-0.3698553240740754.65110532407407
8164.6744.334728009259339.89583333333334.4388946759259320.3352719907408
8264.6842.55813078703739.98041666666672.5777141203703722.1218692129630
8356.941.606116898148139.95541666666671.6507002314814815.2938831018519
8448.7939.805561342592639.8275-0.02193865740740818.98443865740741
8545.2139.097366898148140.0454166666667-0.9480497685185196.11263310185186
8641.439.269241898148239.4270833333333-0.1578414351851852.13075810185184
8722.1737.184797453703736.78416666666670.400630787037037-15.0147974537037
8825.5231.088061342592633.05-1.96193865740741-5.56806134259259
8920.2827.579241898148229.4645833333333-1.88534143518519-7.29924189814815
9022.8724.919311342592626.5366666666667-1.61735532407407-2.04931134259259
9127.6322.083964120370424.1895833333333-2.105619212962965.54603587962963
9222.9521.874311342592622.2441666666667-0.3698553240740751.07568865740740
9321.35NANA4.43889467592593NA
9418.38NANA2.57771412037037NA
9517.15NANA1.65070023148148NA
9618.27NANA-0.0219386574074081NA
9719.4NANANANA
9820.52NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211730298262hzcsr860132b/1m3mj1211730213.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211730298262hzcsr860132b/1m3mj1211730213.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211730298262hzcsr860132b/2yend1211730213.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211730298262hzcsr860132b/2yend1211730213.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211730298262hzcsr860132b/3go261211730213.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211730298262hzcsr860132b/3go261211730213.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211730298262hzcsr860132b/4dq861211730213.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211730298262hzcsr860132b/4dq861211730213.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