Home » date » 2010 » Dec » 12 »

ws 8

*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: Sun, 12 Dec 2010 19:09:25 +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/12/t129218086781a0fbfzrpc39by.htm/, Retrieved Sun, 12 Dec 2010 20:07:47 +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/12/t129218086781a0fbfzrpc39by.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 «
1.3031 1.3241 1.2961 1.2865 1.2305 1.2101 1.2125 1.2350 1.2014 1.1992 1.1791 1.1832 1.2159 1.1922 1.2114 1.2614 1.2812 1.2786 1.2772 1.2815 1.2679 1.2765 1.3247 1.3191 1.3029 1.3234 1.3354 1.3651 1.3453 1.3534 1.3706 1.3638 1.4268 1.4485 1.4635 1.4587 1.4876 1.5189 1.5783 1.5633 1.5554 1.5757 1.5593 1.4660 1.4065 1.2759 1.2705 1.3954 1.2793 1.2694 1.3282 1.3230 1.4135 1.4042 1.4253 1.4322 1.4632 1.4713 1.5016 1.4318
 
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
11.3031NANA-0.0232435763888889NA
21.3241NANA-0.0229644097222223NA
31.2961NANA0.00960434027777772NA
41.2865NANA0.0189178819444445NA
51.2305NANA0.0333741319444444NA
61.2101NANA0.0315501736111112NA
71.21251.255112673611111.234766666666670.0203460069444443-0.0426126736111114
81.2351.228476215277781.22563750.002838715277777780.00652378472222237
91.20141.208761631944441.2166125-0.00785086805555547-0.0073616319444445
101.19921.177847048611111.2120375-0.03419045138888880.0213529513888888
111.17911.186052256944441.21310416666667-0.0270519097222222-0.00695225694444446
121.18321.216740798611111.21807083333333-0.00133003472222216-0.0335407986111109
131.21591.200377256944441.22362083333333-0.02324357638888890.0155227430555556
141.19221.205289756944441.22825416666667-0.0229644097222223-0.0130897569444444
151.21141.242566840277781.23296250.00960434027777772-0.0311668402777778
161.26141.257872048611111.238954166666670.01891788194444450.00352795138888906
171.28121.281615798611111.248241666666670.0333741319444444-0.000415798611111073
181.27861.291521006944441.259970833333330.0315501736111112-0.0129210069444445
191.27721.289604340277781.269258333333330.0203460069444443-0.0124043402777780
201.28151.281188715277781.278350.002838715277777780.000311284722222194
211.26791.281132465277781.28898333333333-0.00785086805555547-0.0132324652777778
221.27651.264280381944441.29847083333333-0.03419045138888880.0122196180555558
231.32471.278410590277781.3054625-0.02705190972222220.0462894097222224
241.31911.309919965277781.31125-0.001330034722222160.0091800347222224
251.30291.295014756944441.31825833333333-0.02324357638888890.00788524305555582
261.32341.302614756944441.32557916666667-0.02296440972222230.0207852430555555
271.33541.345233506944441.335629166666670.00960434027777772-0.0098335069444444
281.36511.368334548611111.349416666666670.0189178819444445-0.00323454861111094
291.34531.395740798611111.362366666666670.0333741319444444-0.0504407986111113
301.35341.405516840277781.373966666666670.0315501736111112-0.0521168402777781
311.37061.407825173611111.387479166666670.0203460069444443-0.0372251736111111
321.36381.406159548611111.403320833333330.00283871527777778-0.0423595486111112
331.42681.413736631944441.4215875-0.007850868055555470.0130633680555559
341.44851.405776215277781.43996666666667-0.03419045138888880.0427237847222226
351.46351.429927256944441.45697916666667-0.02705190972222220.0335727430555557
361.45871.473665798611111.47499583333333-0.00133003472222216-0.0149657986111109
371.48761.468877256944441.49212083333333-0.02324357638888890.0187227430555557
381.51891.481277256944441.50424166666667-0.02296440972222230.0376227430555556
391.57831.517258506944441.507654166666670.009604340277777720.0610414930555556
401.56331.518534548611111.499616666666670.01891788194444450.0447654513888889
411.55541.517757465277781.484383333333330.03337413194444440.0376425347222222
421.57571.505254340277781.473704166666670.03155017361111120.0704456597222227
431.55931.482733506944441.46238750.02034600694444430.076566493055556
441.4661.446151215277781.44331250.002838715277777780.0198487847222224
451.40651.414644965277781.42249583333333-0.00785086805555547-0.00814496527777742
461.27591.367872048611111.4020625-0.0341904513888888-0.0919720486111113
471.27051.359085590277781.3861375-0.0270519097222222-0.0885855902777779
481.39541.371749131944441.37307916666667-0.001330034722222160.0236508680555556
491.27931.337106423611111.36035-0.0232435763888889-0.0578064236111111
501.26941.330393923611111.35335833333333-0.0229644097222223-0.0609939236111108
511.32821.363916840277781.35431250.00960434027777772-0.0357168402777774
521.3231.383734548611111.364816666666670.0189178819444445-0.060734548611111
531.41351.415961631944441.38258750.0333741319444444-0.00246163194444438
541.40421.425283506944441.393733333333330.0315501736111112-0.0210835069444446
551.4253NANA0.0203460069444443NA
561.4322NANA0.00283871527777778NA
571.4632NANA-0.00785086805555547NA
581.4713NANA-0.0341904513888888NA
591.5016NANA-0.0270519097222222NA
601.4318NANA-0.00133003472222216NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/12/t129218086781a0fbfzrpc39by/1frw91292180962.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t129218086781a0fbfzrpc39by/1frw91292180962.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t129218086781a0fbfzrpc39by/2frw91292180962.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t129218086781a0fbfzrpc39by/2frw91292180962.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t129218086781a0fbfzrpc39by/3q0vb1292180962.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t129218086781a0fbfzrpc39by/3q0vb1292180962.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t129218086781a0fbfzrpc39by/4q0vb1292180962.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t129218086781a0fbfzrpc39by/4q0vb1292180962.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = 0 ; par3 = 0 ; par4 = 1 ; par5 = 1 ; par6 = 0 ; par7 = 0 ; par8 = 1 ;
 
Parameters (R input):
par1 = additive ; par2 = 12 ; par3 = 0 ; par4 = 1 ; par5 = 1 ; par6 = 0 ; par7 = 0 ; par8 = 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