Home » date » 2009 » Dec » 02 »

TG 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: Wed, 02 Dec 2009 11:03:32 -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/02/t1259777034pixedkbe0j8lcz8.htm/, Retrieved Wed, 02 Dec 2009 19:03:59 +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/02/t1259777034pixedkbe0j8lcz8.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 «
101.3 106.3 94 102.8 102 105.1 92.4 81.4 105.8 120.3 100.7 88.8 94.3 99.9 103.4 103.3 98.8 104.2 91.2 74.7 108.5 114.5 96.9 89.6 97.1 100.3 122.6 115.4 109 129.1 102.8 96.2 127.7 128.9 126.5 119.8 113.2 114.1 134.1 130 121.8 132.1 105.3 103 117.1 126.3 138.1 119.5 138 135.5 178.6 162.2 176.9 204.9 132.2 142.5 164.3 174.9 175.4 143
 
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
1101.3NANA0.942724391828947NA
2106.3NANA0.954412978450807NA
394NANA1.11947962014922NA
4102.8NANA1.05783668893803NA
5102NANA1.02827152273714NA
6105.1NANA1.14065121022909NA
792.489.767513783676499.78333333333330.899624323871821.02932560015717
881.480.046035335208599.2250.8067123742525431.01691482481451
9105.8103.25265345257399.351.039281866659011.02467100323574
10120.3109.52056811928299.76251.097812987037031.09842381267579
11100.7100.75634106557599.651.011102268595840.999440818662337
1288.889.739138304609599.47916666666670.9020897672505250.989534796941979
1394.393.698948511198899.39166666666670.9427243918289471.00641470900529
1499.994.54653567778399.06250.9544129784508071.05662253284945
15103.4110.71186993434198.89583333333331.119479620149220.933955862739224
16103.3104.47900364411398.76666666666671.057836688938030.988715401152478
1798.8101.14764211991098.36666666666671.028271522737140.976789947143533
18104.2112.05947597825698.24166666666671.140651210229090.929863352388146
1991.288.515536599621498.39166666666670.899624323871821.03032759562337
2074.779.481336673231898.5250.8067123742525430.939843278015202
21108.5103.24399277035199.34166666666671.039281866659011.05090860096180
22114.5110.490302924498100.6458333333331.097812987037031.03629003604273
2396.9102.702712932622101.5751.011102268595840.943499906020702
2489.692.949074393076103.03750.9020897672505250.96396871711801
2597.198.569691202315104.5583333333330.9427243918289470.985089826452855
26100.3101.108124904632105.93750.9544129784508070.992007319833153
27122.6120.493323115395107.6333333333331.119479620149221.01748376449530
28115.4115.339460317210109.0333333333331.057836688938031.00052488266049
29109114.001036154124110.8666666666671.028271522737140.95613166052839
30129.1129.302320106219113.3583333333331.140651210229090.998435294076295
31102.8103.715439238372115.28750.899624323871820.99117354903865
3296.294.0088820128963116.5333333333330.8067123742525431.02330756350026
33127.7122.206556495767117.58751.039281866659011.04495211764210
34128.9130.282956236620118.6751.097812987037030.989384979612316
35126.5121.146903482258119.8166666666671.011102268595841.04418682082556
36119.8108.679264709507120.4750.9020897672505251.10232619184734
37113.2113.790762112053120.7041666666670.9427243918289470.994808347346584
38114.1115.571458248906121.0916666666670.9544129784508070.987267978866057
39134.1135.382402063379120.9333333333331.119479620149220.990527557172616
40130127.345906736656120.3833333333331.057836688938031.02084160638812
41121.8124.172355299866120.7583333333331.028271522737140.980894658121472
42132.1138.280195673397121.2291666666671.140651210229090.9553067187727
43105.3109.979073593330122.250.899624323871820.957454873545928
44103100.173509072809124.1750.8067123742525431.02821595203514
45117.1131.906520584584126.9208333333331.039281866659010.887749896525476
46126.3142.843766496635130.1166666666671.097812987037030.884182790034281
47138.1135.239141350812133.7541666666671.011102268595841.02115407285652
48119.5125.465651795094139.0833333333330.9020897672505250.952451912457787
49138135.033485074599143.23750.9427243918289471.02196873556039
50135.5139.348271574561146.0041666666670.9544129784508070.972383786816457
51178.6167.492809167993149.6166666666671.119479620149221.06631443395798
52162.2162.492530726622153.6083333333331.057836688938030.998199728164032
53176.9161.631429980244157.18751.028271522737141.09446535257172
54204.9182.185761840465159.7208333333331.140651210229091.12467625312798
55132.2NANA0.89962432387182NA
56142.5NANA0.806712374252543NA
57164.3NANA1.03928186665901NA
58174.9NANA1.09781298703703NA
59175.4NANA1.01110226859584NA
60143NANA0.902089767250525NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259777034pixedkbe0j8lcz8/18bxz1259777010.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259777034pixedkbe0j8lcz8/18bxz1259777010.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/02/t1259777034pixedkbe0j8lcz8/26ize1259777010.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259777034pixedkbe0j8lcz8/26ize1259777010.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/02/t1259777034pixedkbe0j8lcz8/33mkd1259777010.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259777034pixedkbe0j8lcz8/33mkd1259777010.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/02/t1259777034pixedkbe0j8lcz8/41n2i1259777010.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259777034pixedkbe0j8lcz8/41n2i1259777010.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