Home » date » 2010 » Dec » 03 »

ws 9

*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: Fri, 03 Dec 2010 14:45:00 +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/Dec/03/t1291387391k9u6i57i3dm18ca.htm/, Retrieved Fri, 03 Dec 2010 15:43:11 +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/2010/Dec/03/t1291387391k9u6i57i3dm18ca.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
46 62 66 59 58 61 41 27 58 70 49 59 44 36 72 45 56 54 53 35 61 52 47 51 52 63 74 45 51 64 36 30 55 64 39 40 63 45 59 55 40 64 27 28 45 57 45 69 60 56 58 50 51 53 37 22 55 70 62 58 39 49 58 47 42 62 39 40 72 70 54 65
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
146NANA1.15902777777777NA
262NANA-0.732638888888892NA
366NANA13.4423611111111NA
459NANA-2.47430555555555NA
558NANA-2.91597222222222NA
661NANA8.39236111111111NA
74142.067361111111154.5833333333333-12.5159722222222-1.06736111111111
82730.667361111111153.4166666666667-22.7493055555556-3.66736111111111
95856.409027777777852.58333333333333.825694444444451.59097222222223
107064.042361111111152.2511.79236111111115.9576388888889
114949.409027777777851.5833333333333-2.17430555555556-0.409027777777773
125956.159027777777851.20833333333334.950694444444442.84097222222222
134452.575694444444551.41666666666671.15902777777777-8.57569444444445
143651.517361111111152.25-0.732638888888892-15.5173611111111
157266.150694444444452.708333333333313.44236111111115.84930555555556
164549.609027777777852.0833333333333-2.47430555555555-4.60902777777778
175648.334027777777851.25-2.915972222222227.66597222222223
185459.225694444444450.83333333333338.39236111111111-5.22569444444444
195338.317361111111150.8333333333333-12.515972222222214.6826388888889
203529.542361111111152.2916666666667-22.74930555555565.45763888888889
216157.325694444444453.53.825694444444453.67430555555556
225265.375694444444453.583333333333311.7923611111111-13.3756944444444
234751.200694444444453.375-2.17430555555556-4.20069444444444
245158.534027777777853.58333333333334.95069444444444-7.53402777777777
255254.450694444444453.29166666666671.15902777777777-2.45069444444444
266351.642361111111152.375-0.73263888888889211.3576388888889
277465.359027777777851.916666666666713.44236111111118.64097222222222
284549.692361111111152.1666666666667-2.47430555555555-4.69236111111111
295149.417361111111152.3333333333333-2.915972222222221.58263888888889
306459.934027777777851.54166666666678.392361111111114.06597222222222
313639.025694444444451.5416666666667-12.5159722222222-3.02569444444444
323028.500694444444451.25-22.74930555555561.49930555555556
335553.700694444444449.8753.825694444444451.29930555555556
346461.459027777777849.666666666666711.79236111111112.54097222222223
353947.450694444444449.625-2.17430555555556-8.45069444444444
364054.117361111111149.16666666666674.95069444444444-14.1173611111111
376349.950694444444448.79166666666671.1590277777777713.0493055555556
384547.600694444444448.3333333333333-0.732638888888892-2.60069444444444
395961.275694444444447.833333333333313.4423611111111-2.27569444444445
405544.650694444444447.125-2.4743055555555510.3493055555556
414044.167361111111147.0833333333333-2.91597222222222-4.16736111111111
426456.934027777777848.54166666666678.392361111111117.06597222222223
432737.109027777777849.625-12.5159722222222-10.1090277777778
442827.209027777777849.9583333333333-22.74930555555560.790972222222216
454554.200694444444550.3753.82569444444445-9.20069444444445
465761.917361111111150.12511.7923611111111-4.91736111111111
474548.200694444444450.375-2.17430555555556-3.20069444444444
486955.325694444444450.3754.9506944444444413.6743055555556
496051.492361111111150.33333333333331.159027777777778.50763888888889
505649.767361111111150.5-0.7326388888888926.2326388888889
515864.109027777777850.666666666666713.4423611111111-6.10902777777778
525049.150694444444451.625-2.474305555555550.849305555555553
535149.959027777777852.875-2.915972222222221.04097222222222
545361.517361111111153.1258.39236111111111-8.5173611111111
553739.275694444444451.7916666666667-12.5159722222222-2.27569444444444
562227.875694444444450.625-22.7493055555556-5.87569444444445
575554.159027777777850.33333333333333.825694444444450.840972222222234
587062.000694444444450.208333333333311.79236111111117.99930555555556
596247.534027777777849.7083333333333-2.1743055555555614.4659722222222
605854.659027777777849.70833333333334.950694444444443.34097222222221
613951.325694444444450.16666666666671.15902777777777-12.3256944444444
624950.267361111111151-0.732638888888892-1.26736111111111
635865.900694444444452.458333333333313.4423611111111-7.90069444444444
644750.692361111111153.1666666666667-2.47430555555555-3.69236111111111
654249.917361111111152.8333333333333-2.91597222222222-7.91736111111111
666261.184027777777852.79166666666678.392361111111110.815972222222221
6739NANA-12.5159722222222NA
6840NANA-22.7493055555556NA
6972NANA3.82569444444445NA
7070NANA11.7923611111111NA
7154NANA-2.17430555555556NA
7265NANA4.95069444444444NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291387391k9u6i57i3dm18ca/1jegm1291387496.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291387391k9u6i57i3dm18ca/1jegm1291387496.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291387391k9u6i57i3dm18ca/2jegm1291387496.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291387391k9u6i57i3dm18ca/2jegm1291387496.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291387391k9u6i57i3dm18ca/3b5g71291387496.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291387391k9u6i57i3dm18ca/3b5g71291387496.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291387391k9u6i57i3dm18ca/4b5g71291387496.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291387391k9u6i57i3dm18ca/4b5g71291387496.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])
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