Home » date » 2009 » Dec » 21 »

*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 01:12:17 -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/t1261383602jffv4ihmko2agyl.htm/, Retrieved Mon, 21 Dec 2009 09:20:08 +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/t1261383602jffv4ihmko2agyl.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 «
43.9 51 51.9 54.3 50.3 57.2 48.8 41.1 58 63 53.8 54.7 55.5 56.1 69.6 69.4 57.2 68 53.3 47.9 60.8 61.7 57.8 51.4 50.5 48.1 58.7 54 56.1 60.4 51.2 50.7 56.4 53.3 52.6 47.7 49.5 48.5 55.3 49.8 57.4 64.6 53 41.5 55.9 58.4 53.5 50.6 58.5 49.1 61.1 52.3 58.4 65.5 61.7 45.1 52.1 59.3 57.9 45 64.9 63.8 69.4 71.1 62.9 73.5 62.7 51.9 73.3 66.7 62.5 70.3
 
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
143.9NANA0.98637144227593NA
251NANA0.93494232384568NA
351.9NANA1.10265600726763NA
454.3NANA1.03489917282345NA
550.3NANA1.02461027121193NA
657.2NANA1.15941232296446NA
748.851.582070528763452.81666666666670.9766248758995920.94606516372366
841.143.922685219096653.51250.8207929963858270.935735139939274
95855.71775955796254.46251.023048144282071.04096073604079
106359.259268729229155.82916666666671.061439248825661.06312483010655
1153.855.921842943461556.74583333333330.9854792794207180.962056991834
1254.751.144296368917757.48333333333330.889723914797061.06952297486770
1355.557.328730201278958.12083333333330.986371442275930.96810098191852
1456.154.779828991324858.59166666666670.934942323845681.02409958251027
1569.665.047515628729358.99166666666671.102656007267631.06998705987873
1669.461.115108235111559.05416666666671.034899172823451.13556208937758
1757.260.622774380039259.16666666666671.024610271211930.943539793171092
186868.632378634817359.19583333333331.159412322964460.99078600148507
1953.357.47437394669158.850.9766248758995920.927369823104766
2047.947.859071630930258.30833333333330.8207929963858271.0008551851859
2160.858.846581799224657.52083333333331.023048144282071.03319510056574
2261.759.891709614987756.4251.061439248825661.03019266600731
2357.854.928151336712355.73750.9854792794207181.05228373053524
2451.449.268461781887255.3750.889723914797061.04326374603594
2550.554.221660158109754.97083333333330.986371442275930.93136211345692
2648.151.4218278115124550.934942323845680.935400432989496
2758.760.572569999234954.93333333333331.102656007267630.969085511820639
285456.298515001595754.41.034899172823450.95917272415568
2956.155.158186266908953.83333333333331.024610271211931.01707477705184
3060.461.985081316487753.46251.159412322964460.97442801908423
3151.252.021551722918253.26666666666670.9766248758995920.984207473716008
3250.743.700387115908753.24166666666670.8207929963858271.16017278898528
3356.454.340907263782453.11666666666671.023048144282071.03789213025506
3453.356.043992337994752.81.061439248825660.95103859979414
3552.651.914227207150652.67916666666670.9854792794207181.01320972746282
3647.747.073809458721152.90833333333330.889723914797061.01330231286737
3749.552.433861918984653.15833333333330.986371442275930.944046427029965
3848.549.411701815244252.850.934942323845680.981548868349988
3955.357.829713181156752.44583333333331.102656007267630.956255823485894
4049.854.474505209494452.63751.034899172823450.914189120368924
4157.454.18907571872152.88751.024610271211931.05925408836914
4264.661.501992848585853.04583333333331.159412322964461.05037246775143
435352.290123563790653.54166666666670.9766248758995921.01357572688355
4441.544.274942213378853.94166666666670.8207929963858270.937324769392013
4555.955.457734821290354.20833333333331.023048144282071.00797481505754
4658.457.905933686976454.55416666666671.061439248825661.00853222254725
4753.553.905716584313354.70.9854792794207180.992473588887763
4850.648.738334615987354.77916666666670.889723914797061.03819714807001
4958.554.427154208583955.17916666666670.986371442275931.07483113623408
5049.152.068496252172455.69166666666670.934942323845680.942988631017964
5161.161.399562004685655.68333333333331.102656007267630.995121105185364
5252.357.50158529000355.56251.034899172823450.909540141132295
5358.457.156176295772255.78333333333331.024610271211931.02176184246111
5465.564.617913466552855.73333333333331.159412322964461.01365080495680
5561.754.463113912667255.76666666666670.9766248758995921.13287683291369
5645.146.494503274438856.64583333333330.8207929963858270.970007136839217
5752.158.931835811248157.60416666666671.023048144282070.884072238422544
5859.362.341865214360358.73333333333331.061439248825660.95120670188643
5957.958.837219145081159.70416666666670.9854792794207180.984070981621852
604553.583622768652960.2250.889723914797060.839808838500661
6164.959.774109401921360.60.986371442275931.08575436170219
6263.856.961361080298160.9250.934942323845681.12005750547396
6369.468.46574925125962.09166666666671.102656007267631.01364551997105
6471.165.491869320177463.28333333333331.034899172823451.08563094530720
6562.965.353058465467663.78333333333331.024610271211930.962464519288507
6673.575.395617185443365.02916666666671.159412322964460.97485772706415
6762.7NANA0.976624875899592NA
6851.9NANA0.820792996385827NA
6973.3NANA1.02304814428207NA
7066.7NANA1.06143924882566NA
7162.5NANA0.985479279420718NA
7270.3NANA0.88972391479706NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/21/t1261383602jffv4ihmko2agyl/1hd1q1261383134.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/21/t1261383602jffv4ihmko2agyl/1hd1q1261383134.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Dec/21/t1261383602jffv4ihmko2agyl/3e2gx1261383134.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/21/t1261383602jffv4ihmko2agyl/3e2gx1261383134.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/21/t1261383602jffv4ihmko2agyl/4m1ub1261383134.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/21/t1261383602jffv4ihmko2agyl/4m1ub1261383134.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