Home » date » 2010 » Dec » 09 »

TUM

*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: Thu, 09 Dec 2010 17:41:47 +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/09/t1291916692scxk40n76ovqf57.htm/, Retrieved Thu, 09 Dec 2010 18:44:57 +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/09/t1291916692scxk40n76ovqf57.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 «
10 10 10 10 10 9,94 10,06 10,06 10,06 10,06 10,06 10,06 10,06 10,06 10,06 10,06 10,06 10,06 10,06 10,06 9,94 9,94 9,94 9,94 9,94 9,94 10,06 10,06 9,94 10,06 10,06 10,06 10,18 10,28 10,28 10,18 10,28 10,28 10,28 10,18 10,28 10,28 10,18 10,18 10,18 10,28 10,28 10,18 10,18 10,18 10,18 10,18 10,18 10,28 10,28 10,28 10,18 10,18 10,18 10,28 10,18 10,18 10,28 10,18 10,18 10,18 10,28 10,28 10,28 10,28 10,28 10,28 10,18 10,18 10,18 10,18 10,18 10,18 10,18 10,18 10,18 10,28 10,28 10,28 10,28 10,28 10,28 10,28 10,28 10,18 10,28 10,28 10,28 10,28 10,18 10,28 10,28 10,28 10,18 10,18 10,28 10,28 10,28 10,28 10,28 10,28 10,28 10,18 10,28 10,28 10,28 10,42 10,42 10,42 10,42 10,42 10,42 10,42 10,42 10,42 10,42 10,34 10,34 10,34 10,42 10,42 10,42 10,42 10,34 10,42 10,42 10,42 10,42 10,42 10,42 10,42 10,42 10,42 10,42 10,42 10,42 10,42 10,42 10,42 10,42 10,42 10,34 10,34 10,34 10 etc...
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time9 seconds
R Server'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
110NANA-0.00525252525252532NA
210NANA-0.0152525252525256NA
310NANA-0.00707070707070742NA
410NANA-0.0152525252525251NA
510NANA-0.00343434343434338NA
69.94NANA0.00474747474747511NA
710.0610.038611111111110.02750.01111111111111170.0213888888888896
810.0610.040883838383810.03250.008383838383838830.0191161616161626
910.0610.027095959596010.0375-0.01040404040404010.0329040404040413
1010.0610.064520202020210.04250.0220202020202017-0.00452020202019909
1110.0610.058308080808110.04750.01080808080808070.00169191919192180
1210.0610.054595959596010.055-0.0004040404040410060.00540404040404319
1310.0610.054747474747510.06-0.005252525252525320.0052525252525264
1410.0610.044747474747510.06-0.01525252525252560.0152525252525280
1510.0610.047929292929310.055-0.007070707070707420.0120707070707091
1610.0610.029747474747510.045-0.01525252525252510.0302525252525268
1710.0610.031565656565710.035-0.003434343434343380.0284343434343448
1810.0610.029747474747510.0250.004747474747475110.0302525252525268
1910.0610.026111111111110.0150.01111111111111170.0338888888888906
2010.0610.013383838383810.0050.008383838383838830.0466161616161624
219.949.9895959595959610-0.0104040404040401-0.0495959595959583
229.9410.0220202020202100.0220202020202017-0.0820202020201997
239.9410.00580808080819.9950.0108080808080807-0.0658080808080808
249.949.989595959595969.99-0.000404040404041006-0.0495959595959601
259.949.984747474747489.99-0.00525252525252532-0.0447474747474761
269.949.974747474747479.99-0.0152525252525256-0.0347474747474745
2710.069.992929292929310-0.007070707070707420.0670707070707088
2810.0610.008914141414110.0241666666667-0.01525252525252510.0510858585858589
299.9410.049065656565710.0525-0.00343434343434338-0.109065656565656
3010.0610.081414141414110.07666666666670.00474747474747511-0.0214141414141391
3110.0610.111944444444410.10083333333330.0111111111111117-0.051944444444441
3210.0610.137550505050510.12916666666670.00838383838383883-0.0775505050505032
3310.1810.142095959596010.1525-0.01040404040404010.0379040404040403
3410.2810.188686868686910.16666666666670.02202020202020170.0913131313131323
3510.2810.196641414141410.18583333333330.01080808080808070.083358585858587
3610.1810.208762626262610.2091666666667-0.000404040404041006-0.0287626262626262
3710.2810.218080808080810.2233333333333-0.005252525252525320.0619191919191913
3810.2810.218080808080810.2333333333333-0.01525252525252560.0619191919191913
3910.2810.231262626262610.2383333333333-0.007070707070707420.0487373737373726
4010.1810.223080808080810.2383333333333-0.0152525252525251-0.0430808080808092
4110.2810.234898989899010.2383333333333-0.003434343434343380.0451010101010088
4210.2810.243080808080810.23833333333330.004747474747475110.0369191919191909
4310.1810.245277777777810.23416666666670.0111111111111117-0.0652777777777782
4410.1810.234217171717210.22583333333330.00838383838383883-0.0542171717171716
4510.1810.207095959596010.2175-0.0104040404040401-0.0270959595959592
4610.2810.235353535353510.21333333333330.02202020202020170.0446464646464637
4710.2810.219974747474710.20916666666670.01080808080808070.0600252525252536
4810.1810.204595959596010.205-0.000404040404041006-0.0245959595959580
4910.1810.203914141414110.2091666666667-0.00525252525252532-0.0239141414141404
5010.1810.202247474747510.2175-0.0152525252525256-0.0222474747474752
5110.1810.214595959596010.2216666666667-0.00707070707070742-0.0345959595959613
5210.1810.202247474747510.2175-0.0152525252525251-0.0222474747474752
5310.1810.205732323232310.2091666666667-0.00343434343434338-0.0257323232323223
5410.2810.213914141414110.20916666666670.004747474747475110.0660858585858595
5510.2810.224444444444410.21333333333330.01111111111111170.0555555555555571
5610.2810.221717171717210.21333333333330.008383838383838830.0582828282828292
5710.1810.207095959596010.2175-0.0104040404040401-0.0270959595959575
5810.1810.243686868686910.22166666666670.0220202020202017-0.063686868686867
5910.1810.232474747474710.22166666666670.0108080808080807-0.0524747474747489
6010.2810.217095959596010.2175-0.0004040404040410060.0629040404040389
6110.1810.208080808080810.2133333333333-0.00525252525252532-0.0280808080808086
6210.1810.198080808080810.2133333333333-0.0152525252525256-0.0180808080808053
6310.2810.210429292929310.2175-0.007070707070707420.0695707070707066
6410.1810.210580808080810.2258333333333-0.0152525252525251-0.0305808080808081
6510.1810.230732323232310.2341666666667-0.00343434343434338-0.0507323232323245
6610.1810.243080808080810.23833333333330.00474747474747511-0.063080808080807
6710.2810.249444444444410.23833333333330.01111111111111170.030555555555555
6810.2810.246717171717210.23833333333330.008383838383838830.0332828282828288
6910.2810.223762626262610.2341666666667-0.01040404040404010.0562373737373765
7010.2810.252020202020210.230.02202020202020170.0279797979798015
7110.2810.240808080808110.230.01080808080808070.0391919191919197
7210.2810.229595959596010.23-0.0004040404040410060.0504040404040396
7310.1810.220580808080810.2258333333333-0.00525252525252532-0.0405808080808097
7410.1810.202247474747510.2175-0.0152525252525256-0.0222474747474752
7510.1810.202095959596010.2091666666667-0.00707070707070742-0.022095959595962
7610.1810.189747474747510.205-0.0152525252525251-0.00974747474747772
7710.1810.201565656565710.205-0.00343434343434338-0.0215656565656577
7810.1810.209747474747510.2050.00474747474747511-0.0297474747474737
7910.1810.220277777777810.20916666666670.0111111111111117-0.0402777777777761
8010.1810.225883838383810.21750.00838383838383883-0.0458838383838387
8110.1810.215429292929310.2258333333333-0.0104040404040401-0.0354292929292921
8210.2810.256186868686910.23416666666670.02202020202020170.0238131313131333
8310.2810.253308080808110.24250.01080808080808070.0266919191919204
8410.2810.246262626262610.2466666666667-0.0004040404040410060.0337373737373756
8510.2810.245580808080810.2508333333333-0.005252525252525320.0344191919191932
8610.2810.243914141414110.2591666666667-0.01525252525252560.0360858585858601
8710.2810.260429292929310.2675-0.007070707070707420.0195707070707059
8810.2810.256414141414110.2716666666667-0.01525252525252510.0235858585858573
8910.2810.264065656565710.2675-0.003434343434343380.0159343434343420
9010.1810.268080808080810.26333333333330.00474747474747511-0.0880808080808091
9110.2810.274444444444410.26333333333330.01111111111111170.00555555555555465
9210.2810.271717171717210.26333333333330.008383838383838830.00828282828282667
9310.2810.248762626262610.2591666666667-0.01040404040404010.0312373737373743
9410.2810.272853535353510.25083333333330.02202020202020170.00714646464646584
9510.1810.257474747474710.24666666666670.0108080808080807-0.0774747474747475
9610.2810.250429292929310.2508333333333-0.0004040404040410060.0295707070707056
9710.2810.249747474747510.255-0.005252525252525320.0302525252525232
9810.2810.239747474747510.255-0.01525252525252560.0402525252525265
9910.1810.247929292929310.255-0.00707070707070742-0.0679292929292927
10010.1810.239747474747510.255-0.0152525252525251-0.0597474747474749
10110.2810.255732323232310.2591666666667-0.003434343434343380.0242676767676748
10210.2810.263914141414110.25916666666670.004747474747475110.0160858585858570
10310.2810.266111111111110.2550.01111111111111170.0138888888888893
10410.2810.263383838383810.2550.008383838383838830.0166161616161631
10510.2810.248762626262610.2591666666667-0.01040404040404010.0312373737373743
10610.2810.295353535353510.27333333333330.0220202020202017-0.015353535353535
10710.2810.299974747474710.28916666666670.0108080808080807-0.0199747474747483
10810.1810.300429292929310.3008333333333-0.000404040404041006-0.120429292929293
10910.2810.307247474747510.3125-0.00525252525252532-0.027247474747476
11010.2810.308914141414110.3241666666667-0.0152525252525256-0.0289141414141412
11110.2810.328762626262610.3358333333333-0.00707070707070742-0.0487626262626275
11210.4210.332247474747510.3475-0.01525252525252510.087752525252526
11310.4210.355732323232310.3591666666667-0.003434343434343380.0642676767676775
11410.4210.379747474747510.3750.004747474747475110.0402525252525248
11510.4210.401944444444410.39083333333330.01111111111111170.0180555555555557
11610.4210.407550505050510.39916666666670.008383838383838830.0124494949494931
11710.4210.393762626262610.4041666666667-0.01040404040404010.0262373737373736
11810.4210.425353535353510.40333333333330.0220202020202017-0.00535353535353522
11910.4210.410808080808110.40.01080808080808070.00919191919191853
12010.4210.399595959596010.4-0.0004040404040410060.0204040404040402
12110.4210.394747474747510.4-0.005252525252525320.0252525252525242
12210.3410.384747474747510.4-0.0152525252525256-0.0447474747474743
12310.3410.389595959596010.3966666666667-0.00707070707070742-0.0495959595959601
12410.3410.378080808080810.3933333333333-0.0152525252525251-0.0380808080808084
12510.4210.389898989899010.3933333333333-0.003434343434343380.0301010101010100
12610.4210.398080808080810.39333333333330.004747474747475110.0219191919191921
12710.4210.404444444444410.39333333333330.01111111111111170.015555555555558
12810.4210.405050505050510.39666666666670.008383838383838830.0149494949494944
12910.3410.392929292929310.4033333333333-0.0104040404040401-0.0529292929292939
13010.4210.432020202020210.410.0220202020202017-0.0120202020202029
13110.4210.424141414141410.41333333333330.0108080808080807-0.00414141414141511
13210.4210.412929292929310.4133333333333-0.0004040404040410060.00707070707070656
13310.4210.408080808080810.4133333333333-0.005252525252525320.0119191919191923
13410.4210.398080808080810.4133333333333-0.01525252525252560.0219191919191939
13510.4210.409595959596010.4166666666667-0.007070707070707420.0104040404040386
13610.4210.404747474747510.42-0.01525252525252510.0152525252525244
13710.4210.416565656565710.42-0.003434343434343380.00343434343434268
13810.4210.424747474747510.420.00474747474747511-0.00474747474747517
13910.4210.431111111111110.420.0111111111111117-0.0111111111111111
14010.4210.428383838383810.420.00838383838383883-0.00838383838383905
14110.4210.406262626262610.4166666666667-0.01040404040404010.0137373737373725
14210.4210.432020202020210.410.0220202020202017-0.0120202020202012
14310.4210.414141414141410.40333333333330.01080808080808070.00585858585858468
14410.4210.396262626262610.3966666666667-0.0004040404040410060.0237373737373741
14510.42NANANANA
14610.42NANANANA
14710.34NANANANA
14810.34NANANANA
14910.34NANANANA
15010.34NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/09/t1291916692scxk40n76ovqf57/1qutm1291916497.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/09/t1291916692scxk40n76ovqf57/1qutm1291916497.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/09/t1291916692scxk40n76ovqf57/2qutm1291916497.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/09/t1291916692scxk40n76ovqf57/2qutm1291916497.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/09/t1291916692scxk40n76ovqf57/313a71291916497.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/09/t1291916692scxk40n76ovqf57/313a71291916497.ps (open in new window)


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