Home » date » 2010 » Aug » 15 »

tijdreeks B - stap 24

*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 Aug 2010 13:40:30 +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/Aug/15/t1281879650glsoryy9anwyaqt.htm/, Retrieved Sun, 15 Aug 2010 15:40:55 +0200
 
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/Aug/15/t1281879650glsoryy9anwyaqt.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:
Vanhille Olivier
 
Dataseries X:
» Textbox « » Textfile « » CSV «
31 30 29 27 25 24 25 27 28 28 29 31 31 27 25 16 20 21 25 24 28 27 23 36 37 30 27 22 22 25 33 35 35 29 25 34 31 29 21 19 18 25 23 22 20 15 17 25 26 26 23 24 24 42 40 45 47 40 39 49 55 54 48 44 48 62 57 60 56 57 54 62 65 68 69 67 72 82 72 77 79 78 76 79
 
Output produced by software:


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


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
131NANA4.50810185185185NA
230NANA2.00115740740741NA
329NANA-2.20023148148148NA
427NANA-6.40162037037037NA
525NANA-5.07523148148148NA
624NANA3.09837962962963NA
72529.001157407407427.83333333333331.16782407407407-4.00115740740741
82730.042824074074127.70833333333332.33449074074074-3.04282407407407
92829.376157407407427.41666666666671.95949074074074-1.37615740740740
102825.195601851851826.7916666666667-1.596064814814822.80439814814816
112922.424768518518526.125-3.700231481481486.57523148148148
123129.695601851851825.79166666666673.903935185185181.30439814814816
133130.174768518518525.66666666666674.508101851851850.82523148148148
142727.542824074074125.54166666666672.00115740740741-0.542824074074069
152523.216435185185225.4166666666667-2.200231481481481.78356481481482
161618.973379629629625.375-6.40162037037037-2.97337962962963
172020.008101851851825.0833333333333-5.07523148148148-0.00810185185184764
182128.140046296296325.04166666666673.09837962962963-7.14004629629629
192526.667824074074125.51.16782407407407-1.66782407407407
202428.209490740740725.8752.33449074074074-4.20949074074074
212828.042824074074126.08333333333331.95949074074074-0.0428240740740726
222724.820601851851926.4166666666667-1.596064814814822.17939814814815
232323.049768518518526.75-3.70023148148148-0.0497685185185155
243630.9039351851852273.903935185185185.09606481481482
253732.008101851851927.54.508101851851854.99189814814815
263030.292824074074128.29166666666672.00115740740741-0.292824074074073
272726.841435185185229.0416666666667-2.200231481481480.158564814814817
282223.015046296296329.4166666666667-6.40162037037037-1.01504629629630
292224.508101851851929.5833333333333-5.07523148148148-2.50810185185185
302532.681712962963029.58333333333333.09837962962963-7.68171296296296
313330.417824074074129.251.167824074074072.58217592592593
323531.292824074074128.95833333333332.334490740740743.70717592592593
333530.626157407407428.66666666666671.959490740740744.3738425925926
342926.695601851851828.2916666666667-1.596064814814822.30439814814815
352524.299768518518528-3.700231481481480.70023148148148
363431.737268518518527.83333333333333.903935185185182.26273148148148
373131.924768518518527.41666666666674.50810185185185-0.924768518518523
382928.459490740740726.45833333333332.001157407407410.540509259259263
392123.091435185185225.2916666666667-2.20023148148148-2.09143518518518
401917.681712962963024.0833333333333-6.401620370370371.31828703703704
411818.091435185185223.1666666666667-5.07523148148148-0.0914351851851833
422525.556712962963022.45833333333333.09837962962963-0.556712962962962
432323.042824074074121.8751.16782407407407-0.0428240740740762
442223.876157407407421.54166666666672.33449074074074-1.87615740740741
452023.459490740740721.51.95949074074074-3.45949074074074
461520.195601851851821.7916666666667-1.59606481481482-5.19560185185185
471718.549768518518522.25-3.70023148148148-1.54976851851852
482527.112268518518523.20833333333333.90393518518518-2.11226851851852
492629.133101851851924.6254.50810185185185-3.13310185185185
502628.292824074074126.29166666666672.00115740740741-2.29282407407407
512326.174768518518528.375-2.20023148148148-3.17476851851852
522424.140046296296330.5416666666667-6.40162037037037-0.140046296296298
532427.424768518518532.5-5.07523148148148-3.42476851851852
544237.515046296296334.41666666666673.098379629629634.48495370370371
554037.792824074074136.6251.167824074074072.20717592592592
564541.3344907407407392.334490740740743.66550925925926
574743.167824074074141.20833333333331.959490740740743.83217592592592
584041.487268518518543.0833333333333-1.59606481481482-1.48726851851852
593941.216435185185244.9166666666667-3.70023148148148-2.21643518518518
604950.653935185185246.753.90393518518518-1.65393518518518
615552.799768518518548.29166666666674.508101851851852.20023148148148
625451.626157407407449.6252.001157407407412.37384259259260
634848.424768518518550.625-2.20023148148148-0.424768518518526
644445.30671296296351.7083333333333-6.40162037037037-1.30671296296296
654847.966435185185253.0416666666667-5.075231481481480.0335648148148167
666257.30671296296354.20833333333333.098379629629634.69328703703705
675756.334490740740755.16666666666671.167824074074070.665509259259267
686058.501157407407456.16666666666672.334490740740741.49884259259260
695659.584490740740757.6251.95949074074074-3.58449074074073
705757.862268518518559.4583333333333-1.59606481481482-0.862268518518512
715457.716435185185261.4166666666667-3.70023148148148-3.71643518518518
726267.153935185185263.253.90393518518518-5.15393518518518
736569.216435185185264.70833333333334.50810185185185-4.21643518518517
746868.04282407407466.04166666666672.00115740740741-0.042824074074062
756965.508101851851867.7083333333333-2.200231481481483.49189814814815
766763.140046296296369.5416666666667-6.401620370370373.85995370370371
777266.258101851851871.3333333333333-5.075231481481485.74189814814815
788276.05671296296372.95833333333333.098379629629635.94328703703702
7972NANA1.16782407407407NA
8077NANA2.33449074074074NA
8179NANA1.95949074074074NA
8278NANA-1.59606481481482NA
8376NANA-3.70023148148148NA
8479NANA3.90393518518518NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281879650glsoryy9anwyaqt/1is9u1281879628.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281879650glsoryy9anwyaqt/1is9u1281879628.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/15/t1281879650glsoryy9anwyaqt/2sjqx1281879628.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281879650glsoryy9anwyaqt/2sjqx1281879628.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/15/t1281879650glsoryy9anwyaqt/3sjqx1281879628.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281879650glsoryy9anwyaqt/3sjqx1281879628.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/15/t1281879650glsoryy9anwyaqt/4la701281879628.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281879650glsoryy9anwyaqt/4la701281879628.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