Home » date » 2010 » Nov » 26 »

*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, 26 Nov 2010 10:00:41 +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/Nov/26/t1290765557cyuh85edxaz3wwt.htm/, Retrieved Fri, 26 Nov 2010 10:59: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/2010/Nov/26/t1290765557cyuh85edxaz3wwt.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 «
101,76 102,37 102,38 102,86 102,87 102,92 102,95 103,02 104,08 104,16 104,24 104,33 104,73 104,86 105,03 105,62 105,63 105,63 105,94 106,61 107,69 107,78 107,93 108,48 108,14 108,48 108,48 108,89 108,93 109,21 109,47 109,80 111,73 111,85 112,12 112,15 112,17 112,67 112,80 113,44 113,53 114,53 114,51 115,05 116,67 117,07 116,92 117,00 117,02 117,35 117,36 117,82 117,88 118,24 118,50 118,80 119,76 120,09
 
Output produced by software:


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


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1101.76NANA-0.0784606481481486NA
2102.37NANA-0.0827662037037097NA
3102.38NANA-0.324710648148157NA
4102.86NANA-0.132210648148147NA
5102.87NANA-0.440960648148146NA
6102.92NANA-0.366377314814809NA
7102.95102.755706018519103.285416666667-0.5297106481481360.194293981481493
8103.02103.152372685185103.512916666667-0.360543981481481-0.132372685185189
9104.08104.565150462963103.7270833333330.838067129629629-0.485150462962977
10104.16104.653206018519103.95250.700706018518515-0.493206018518507
11104.24104.633622685185104.18250.451122685185191-0.393622685185193
12104.33104.736261574074104.4104166666670.325844907407399-0.406261574074051
13104.73104.569456018518104.647916666667-0.07846064814814860.16054398148151
14104.86104.839317129630104.922083333333-0.08276620370370970.0206828703703934
15105.03104.897372685185105.222083333333-0.3247106481481570.132627314814826
16105.62105.391122685185105.523333333333-0.1322106481481470.228877314814838
17105.63105.386956018518105.827916666667-0.4409606481481460.24304398148152
18105.63105.788206018518106.154583333333-0.366377314814809-0.158206018518499
19105.94105.939872685185106.469583333333-0.5297106481481360.000127314814832857
20106.61106.401956018518106.7625-0.3605439814814810.208043981481509
21107.69107.895150462963107.0570833333330.838067129629629-0.205150462962948
22107.78108.037789351852107.3370833333330.700706018518515-0.257789351851841
23107.93108.061956018519107.6108333333330.451122685185191-0.131956018518508
24108.48108.223344907407107.89750.3258449074073990.256655092592609
25108.14108.115289351852108.19375-0.07846064814814860.0247106481481580
26108.48108.390983796296108.47375-0.08276620370370970.0890162037037072
27108.48108.450289351852108.775-0.3247106481481570.0297106481481535
28108.89108.980706018519109.112916666667-0.132210648148147-0.0907060185185173
29108.93109.016122685185109.457083333333-0.440960648148146-0.0861226851851882
30109.21109.418206018519109.784583333333-0.366377314814809-0.208206018518524
31109.47109.575706018519110.105416666667-0.529710648148136-0.105706018518518
32109.8110.087372685185110.447916666667-0.360543981481481-0.28737268518519
33111.73111.640567129630110.80250.8380671296296290.0894328703703735
34111.85111.872789351852111.1720833333330.700706018518515-0.0227893518518272
35112.12112.004456018519111.5533333333330.4511226851851910.115543981481494
36112.15112.292511574074111.9666666666670.325844907407399-0.142511574074078
37112.17112.319872685185112.398333333333-0.0784606481481486-0.149872685185187
38112.67112.744317129630112.827083333333-0.0827662037037097-0.0743171296296197
39112.8112.926956018519113.251666666667-0.324710648148157-0.126956018518513
40113.44113.542789351852113.675-0.132210648148147-0.102789351851854
41113.53113.651539351852114.0925-0.440960648148146-0.121539351851851
42114.53114.128206018518114.494583333333-0.3663773148148090.401793981481504
43114.51114.369039351852114.89875-0.5297106481481360.140960648148166
44115.05114.935289351852115.295833333333-0.3605439814814810.114710648148161
45116.67116.518900462963115.6808333333330.8380671296296290.151099537037027
46117.07116.754039351852116.0533333333330.7007060185185150.315960648148135
47116.92116.868206018519116.4170833333330.4511226851851910.0517939814814667
48117117.078761574074116.7529166666670.325844907407399-0.0787615740740648
49117.02NA117.07375NANA
50117.35NA117.39625NANA
51117.36NA117.68125NANA
52117.82NA117.935833333333NANA
53117.88NANANANA
54118.24NANANANA
55118.5NANANANA
56118.8NANANANA
57119.76NANANANA
58120.09NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290765557cyuh85edxaz3wwt/1ooa71290765638.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290765557cyuh85edxaz3wwt/1ooa71290765638.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t1290765557cyuh85edxaz3wwt/2hy9a1290765638.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290765557cyuh85edxaz3wwt/2hy9a1290765638.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t1290765557cyuh85edxaz3wwt/3hy9a1290765638.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290765557cyuh85edxaz3wwt/3hy9a1290765638.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t1290765557cyuh85edxaz3wwt/4979d1290765638.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290765557cyuh85edxaz3wwt/4979d1290765638.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