Home » date » 2009 » Dec » 21 »

Paper

*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: Mon, 21 Dec 2009 15:08:02 -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/21/t1261433330czdgder54880y4b.htm/, Retrieved Mon, 21 Dec 2009 23:08:56 +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/21/t1261433330czdgder54880y4b.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 «
25.6 23.7 22 21.3 20.7 20.4 20.3 20.4 19.8 19.5 23.1 23.5 23.5 22.9 21.9 21.5 20.5 20.2 19.4 19.2 18.8 18.8 22.6 23.3 23 21.4 19.9 18.8 18.6 18.4 18.6 19.9 19.2 18.4 21.1 20.5 19.1 18.1 17 17.1 17.4 16.8 15.3 14.3 13.4 15.3 22.1 23.7 22.2 19.5 16.6 17.3 19.8 21.2 21.5 20.6 19.1 19.6 23.5 24
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
125.6NANA1.12034415488227NA
223.7NANA1.04253957080632NA
322NANA0.960252958391418NA
421.3NANA0.953716807272655NA
520.7NANA0.974840929211212NA
620.4NANA0.976292136523275NA
720.319.937761882068021.60416666666670.9228665094881991.01816844438582
820.419.936749511993721.48333333333330.9280100626218961.02323600884525
919.819.28722758907821.44583333333330.8993461475381221.02658611293685
1019.519.663919788859821.450.9167328572895010.99166393116836
1123.124.436377780458621.451.139225071350050.945311952840766
1223.524.987682898130921.43333333333331.165832794625080.940463351316094
1323.523.961360612544621.38751.120344154882270.980745642119212
1422.922.206092858174721.31.042539570806321.03124850221321
1521.920.365364825884621.20833333333330.9602529583914181.07535515259539
1621.520.159189013725721.13750.9537168072726551.06651115703917
1720.520.556958094741421.08750.9748409292112120.997229254713712
1820.220.559085241619321.05833333333330.9762921365232750.982533987412418
1919.419.407113639112321.02916666666670.9228665094881990.999633451978252
2019.219.437944103334520.94583333333330.9280100626218960.987758782406744
2118.818.706399868792920.80.8993461475381221.00500364216865
2218.818.888516580402420.60416666666670.9167328572895010.995313735727968
2322.623.254431768932920.41251.139225071350050.971857761331877
2423.323.617829364446420.25833333333331.165832794625080.986542820699483
252322.574934720877820.151.120344154882271.01882908120789
2621.421.002828436869020.14583333333331.042539570806321.01891038458581
2719.919.389107651520020.19166666666670.9602529583914181.02634945133434
2818.819.257131866847020.19166666666670.9537168072726550.976261684761373
2918.619.606488188760520.11250.9748409292112120.94866555504124
3018.419.460756588030619.93333333333330.9762921365232750.945492530918195
3118.618.138172188566019.65416666666670.9228665094881991.02546165107668
3219.917.960861420327919.35416666666670.9280100626218961.10796467576312
3319.217.173764142363419.09583333333330.8993461475381221.11798437668294
3418.417.330070723010318.90416666666670.9167328572895011.06173830990598
3521.121.398444256858418.78333333333331.139225071350050.986052992765454
3620.521.762212166334818.66666666666671.165832794625080.94199982259674
3719.120.684353959513918.46251.120344154882270.923403265936417
3818.118.861278401837718.09166666666671.042539570806320.95963802741157
391716.916456283662117.61666666666670.9602529583914181.00493860622680
4017.116.44764110542317.24583333333330.9537168072726551.03966276321301
4117.416.726645610382417.15833333333330.9748409292112121.04025639122764
4216.816.922397033070117.33333333333330.9762921365232750.992767157464105
4315.316.238605289869417.59583333333330.9228665094881990.94219914376175
4414.316.503112280292717.78333333333330.9280100626218960.866503224187381
4513.416.030845079867017.8250.8993461475381220.835888559414058
4615.316.333123740707917.81666666666670.9167328572895010.936746714400196
4722.120.420609403949717.9251.139225071350051.08223998426440
4823.721.227872135465018.20833333333331.165832794625081.11645669659018
4922.220.894418488554318.651.120344154882271.06248470193898
5019.519.986352355332919.17083333333331.042539570806320.975665776991913
5116.618.888975902357819.67083333333330.9602529583914180.878819481045973
5217.319.157786366089520.08750.9537168072726550.903027086188942
5319.819.813641886217920.3250.9748409292112120.99931149021991
5421.219.912291701172620.39583333333330.9762921365232751.06466901540778
5521.5NANA0.922866509488199NA
5620.6NANA0.928010062621896NA
5719.1NANA0.899346147538122NA
5819.6NANA0.916732857289501NA
5923.5NANA1.13922507135005NA
6024NANA1.16583279462508NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/21/t1261433330czdgder54880y4b/16lez1261433280.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/21/t1261433330czdgder54880y4b/16lez1261433280.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/21/t1261433330czdgder54880y4b/2ofxg1261433280.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/21/t1261433330czdgder54880y4b/2ofxg1261433280.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/21/t1261433330czdgder54880y4b/37ceu1261433280.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/21/t1261433330czdgder54880y4b/37ceu1261433280.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/21/t1261433330czdgder54880y4b/4tj2m1261433280.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/21/t1261433330czdgder54880y4b/4tj2m1261433280.ps (open in new window)


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