Home » date » 2009 » Dec » 16 »

*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: Wed, 16 Dec 2009 07:24:13 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/16/t12609735169z33xriusdmzy9g.htm/, Retrieved Wed, 16 Dec 2009 15:25:22 +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/2009/Dec/16/t12609735169z33xriusdmzy9g.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
19915 19843 19761 20858 21968 23061 22661 22269 21857 21568 21274 20987 19683 19381 19071 20772 22485 24181 23479 22782 22067 21489 20903 20330 19736 19483 19242 20334 21423 22523 21986 21462 20908 20575 20237 19904 19610 19251 18941 20450 21946 23409 22741 22069 21539 21189 20960 20704 19697 19598 19456 20316 21083 22158 21469 20892 20578 20233 19947 20049
 
Output produced by software:


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


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
119915NANA0.935037164241845NA
219843NANA0.924230234259409NA
319761NANA0.913587492962456NA
420858NANA0.976177171134057NA
521968NANA1.03771212449783NA
623061NANA1.10244455450293NA
72266122929.239676686221325.51.075202910913520.988301414243624
82226922327.401981881721296.58333333331.048403005891320.997384291198362
92185721727.090057469121248.58333333331.022519464786391.00597916896314
102156821314.37584990421216.251.004625032694471.01189920605145
112127420983.482638247421234.20833333330.9881923690702261.01384504978325
122098720703.147200618221302.41666666670.971868475045551.01371061107914
131968319994.055522510721383.16666666670.9350371642418450.984442599843712
141938119814.225405949621438.6250.9242302342594090.9781356375496
151907119613.581489537721468.750.9135874929624560.97233643993948
162077220962.631943176721474.20833333330.9761771711340570.990906106461561
172248522264.589249158021455.45833333331.037712124497831.00989961002089
182418123606.231828863321412.6251.102444554502931.02434815413589
192347922995.857457041621387.45833333331.075202910913521.02100998163956
202278222429.446541121821393.91666666671.048403005891321.01571833073241
212206721887.327378596721405.29166666671.022519464786391.00820897948367
222148921493.115386970921394.16666666671.004625032694470.999808525339543
232090321079.790219549721331.66666666670.9881923690702260.991613283732504
242033020621.429259674821218.33333333330.971868475045550.985867649812
251973619717.167642249621087.04166666670.9350371642418451.00095512489887
261948319380.953974047420969.83333333330.9242302342594091.00526527363355
271924219063.411488046620866.54166666670.9135874929624561.00936812973194
282033420285.124312360920780.16666666670.9761771711340571.00240943495768
292142321495.514850889520714.33333333331.037712124497830.996626512489116
302252322786.242756262020668.83333333331.102444554502930.988447294313599
312198622198.460098235320645.83333333331.075202910913520.990429061417093
322146221629.515047626720630.91666666671.048403005891320.992255256428178
332090821072.805414938920608.70833333331.022519464786390.992179237092843
342057520696.2802985387206011.004625032694470.994139995362003
352023720384.061617042220627.6250.9881923690702260.992785460532592
361990420104.395230950620686.33333333330.971868475045550.990032267638567
371961019406.423624666620754.70833333330.9350371642418451.01049015415054
381925119234.579010696620811.45833333330.9242302342594091.00085372231408
391894119060.213931821320863.04166666670.9135874929624560.993745404314575
402045020416.664186171220914.91666666670.9761771711340571.00163277475325
412194621761.471820797320970.6251.037712124497831.00847958174531
422340923188.910629794221034.08333333331.102444554502931.00949114745921
432274122655.6453359821071.04166666671.075202910913521.00376747882279
442206922109.902041617921089.1251.048403005891320.998150057764125
452153921600.766298590321125.04166666671.022519464786390.997140550583416
462118921238.69409744121140.91666666671.004625032694470.997660209370076
472096020850.241367151121099.3750.9881923690702261.00526414207472
482070420420.211990820621011.29166666670.971868475045551.01389740759337
491969719548.042795167420906.16666666670.9350371642418451.00762005722995
501959819227.80132231220804.1250.9242302342594091.01925330262584
511945618925.002982862820715.04166666670.9135874929624561.02805796213707
522031620143.578622546520635.16666666670.9761771711340571.00855961995058
532108321328.227008819420553.1251.037712124497830.98850223186775
542215822582.060837730120483.6251.102444554502930.981221340214372
5521469NANA1.07520291091352NA
5620892NANA1.04840300589132NA
5720578NANA1.02251946478639NA
5820233NANA1.00462503269447NA
5919947NANA0.988192369070226NA
6020049NANA0.97186847504555NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/16/t12609735169z33xriusdmzy9g/1h9mt1260973451.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t12609735169z33xriusdmzy9g/1h9mt1260973451.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t12609735169z33xriusdmzy9g/2zjkz1260973451.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t12609735169z33xriusdmzy9g/2zjkz1260973451.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t12609735169z33xriusdmzy9g/3ejn91260973451.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t12609735169z33xriusdmzy9g/3ejn91260973451.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t12609735169z33xriusdmzy9g/49b1j1260973451.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t12609735169z33xriusdmzy9g/49b1j1260973451.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