Home » date » 2010 » Dec » 19 »

*The author of this computation has been verified*
R Software Module: /rwasp_decomposeloess.wasp (opens new window with default values)
Title produced by software: Decomposition by Loess
Date of computation: Sun, 19 Dec 2010 13:57:42 +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/19/t1292766938mgkzasu2yi8sgp3.htm/, Retrieved Sun, 19 Dec 2010 14:55:40 +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/19/t1292766938mgkzasu2yi8sgp3.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 «
41,85 41,75 41,75 41,75 41,58 41,61 41,42 41,37 41,37 41,33 41,37 41,34 41,33 41,29 41,29 41,27 41,04 40,90 40,89 40,72 40,72 40,58 40,24 40,07 40,12 40,10 40,10 40,08 40,06 39,99 40,05 39,66 39,66 39,67 39,56 39,64 39,73 39,70 39,70 39,68 39,76 40,00 39,96 40,01 40,01 40,01 40,00 39,91 39,86 39,79 39,79 39,80 39,64 39,55 39,36 39,28
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Seasonal Decomposition by Loess - Parameters
ComponentWindowDegreeJump
Seasonal561057
Trend1912
Low-pass1312


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
141.8541.90533984353880.02463705988911341.77002309657210.0553398435387749
241.7541.76093681835350.011798721455919841.72726446019060.0109368183534713
341.7541.76453383008990.050960346100961841.68450582380910.0145338300899311
441.7541.7795884984070.077469319423238741.64294218216970.0295884984070227
541.5841.54464307522230.013978384247286441.6013785405304-0.0353569247776662
641.6141.61308408349460.046346698020572441.56056921848480.00308408349458489
741.4241.30952497136970.010715132190950941.5197598964393-0.110475028630255
841.3741.3362403595337-0.07510030578670541.478859946253-0.0337596404663216
941.3741.3135148034084-0.011474799475193341.4379599960668-0.0564851965915594
1041.3341.271116476759-0.0086151066631195641.3974986299041-0.0588835232409579
1141.3741.4512182094321-0.068255473173518441.35703726374140.0812182094321088
1241.3441.441264252957-0.072459932833368541.31119567987630.101264252957037
1341.3341.37000884409960.02463705988911341.26535409601130.0400088440996171
1441.2941.3577475445780.011798721455919841.2104537339660.0677475445780473
1541.2941.37348628197820.050960346100961841.15555337192080.0834862819782387
1641.2741.37988836762480.077469319423238741.0826423129520.109888367624755
1741.0441.05629036176950.013978384247286441.00973125398320.0162903617694852
1840.940.83857182573160.046346698020572440.9150814762478-0.0614281742683929
1940.8940.94885316929660.010715132190950940.82043169851240.0588531692966257
2040.7240.7975279679358-0.07510030578670540.71757233785090.0775279679358007
2140.7240.8367618222858-0.011474799475193340.61471297718940.11676182228581
2240.5840.6503776413878-0.0086151066631195640.51823746527530.0703776413878003
2340.2440.1264935198123-0.068255473173518440.4217619533613-0.113506480187738
2440.0739.8750839976828-0.072459932833368540.3373759351506-0.194916002317193
2540.1239.9623730231710.02463705988911340.2529899169399-0.157626976828986
2640.140.0124915903290.011798721455919840.1757096882151-0.0875084096710239
2740.140.05061019440870.050960346100961840.0984294594903-0.0493898055913107
2840.0840.04889797997270.077469319423238740.033632700604-0.0311020200272694
2940.0640.1371856740350.013978384247286439.96883594171770.0771856740350074
3039.9940.01129622062540.046346698020572439.92235708135410.0212962206253664
3140.0540.21340664681860.010715132190950939.87587822099040.163406646818622
3239.6639.5561082085815-0.07510030578670539.8389920972052-0.103891791418476
3339.6639.5293688260553-0.011474799475193339.8021059734199-0.130631173944735
3439.6739.5757311360573-0.0086151066631195639.7728839706058-0.0942688639426663
3539.5639.4445935053819-0.068255473173518439.7436619677917-0.115406494618135
3639.6439.6174392051926-0.072459932833368539.7350207276407-0.0225607948073758
3739.7339.7089834526210.02463705988911339.7263794874898-0.0210165473789559
3839.739.64416863308710.011798721455919839.744032645457-0.0558313669129262
3939.739.58735385047480.050960346100961839.7616858034242-0.112646149525155
4039.6839.48888943877570.077469319423238739.7936412418011-0.191110561224335
4139.7639.68042493557470.013978384247286439.825596680178-0.079575064425292
424040.09988641515480.046346698020572439.85376688682460.0998864151548275
4339.9640.02734777433780.010715132190950939.88193709347120.067347774337847
4440.0140.1975140440147-0.07510030578670539.8975862617720.187514044014684
4540.0140.1182393694024-0.011474799475193339.91323543007280.108239369402355
4640.0140.1195224181911-0.0086151066631195639.90909268847210.109522418191062
474040.1633055263022-0.068255473173518439.90494994687130.163305526302238
4839.9140.0355707856087-0.072459932833368539.85688914722470.125570785608701
4939.8639.88653459253280.02463705988911339.8088283475780.0265345925328333
5039.7939.81168237730770.011798721455919839.75651890123640.0216823773076698
5139.7939.82483019900430.050960346100961839.70420945489480.0348301990042614
5239.839.873605314840.077469319423238739.64892536573680.0736053148400018
5339.6439.6723803391740.013978384247286439.59364127657870.0323803391739759
5439.5539.51840091498660.046346698020572439.5352523869929-0.0315990850134256
5539.3639.23242137040210.010715132190950939.476863497407-0.12757862959792
5639.2839.2189620814925-0.07510030578670539.4161382242942-0.0610379185075232
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292766938mgkzasu2yi8sgp3/19v5j1292767057.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292766938mgkzasu2yi8sgp3/19v5j1292767057.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292766938mgkzasu2yi8sgp3/29v5j1292767057.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292766938mgkzasu2yi8sgp3/29v5j1292767057.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292766938mgkzasu2yi8sgp3/3knnm1292767057.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292766938mgkzasu2yi8sgp3/3knnm1292767057.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292766938mgkzasu2yi8sgp3/4knnm1292767057.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292766938mgkzasu2yi8sgp3/4knnm1292767057.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = FALSE ;
 
Parameters (R input):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = FALSE ;
 
R code (references can be found in the software module):
par1 <- as.numeric(par1) #seasonal period
if (par2 != 'periodic') par2 <- as.numeric(par2) #s.window
par3 <- as.numeric(par3) #s.degree
if (par4 == '') par4 <- NULL else par4 <- as.numeric(par4)#t.window
par5 <- as.numeric(par5)#t.degree
if (par6 != '') par6 <- as.numeric(par6)#l.window
par7 <- as.numeric(par7)#l.degree
if (par8 == 'FALSE') par8 <- FALSE else par9 <- TRUE #robust
nx <- length(x)
x <- ts(x,frequency=par1)
if (par6 != '') {
m <- stl(x,s.window=par2, s.degree=par3, t.window=par4, t.degre=par5, l.window=par6, l.degree=par7, robust=par8)
} else {
m <- stl(x,s.window=par2, s.degree=par3, t.window=par4, t.degre=par5, l.degree=par7, robust=par8)
}
m$time.series
m$win
m$deg
m$jump
m$inner
m$outer
bitmap(file='test1.png')
plot(m,main=main)
dev.off()
mylagmax <- nx/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(as.numeric(m$time.series[,'trend']),na.action=na.pass,lag.max = mylagmax,main='Trend')
acf(as.numeric(m$time.series[,'seasonal']),na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(as.numeric(m$time.series[,'remainder']),na.action=na.pass,lag.max = mylagmax,main='Remainder')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'trend']),'trend']),main='Trend')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'seasonal']),'seasonal']),main='Seasonal')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'remainder']),'remainder']),main='Remainder')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'trend']),'trend']),main='Trend')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'seasonal']),'seasonal']),main='Seasonal')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'remainder']),'remainder']),main='Remainder')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Seasonal Decomposition by Loess - Parameters',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Component',header=TRUE)
a<-table.element(a,'Window',header=TRUE)
a<-table.element(a,'Degree',header=TRUE)
a<-table.element(a,'Jump',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,m$win['s'])
a<-table.element(a,m$deg['s'])
a<-table.element(a,m$jump['s'])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,m$win['t'])
a<-table.element(a,m$deg['t'])
a<-table.element(a,m$jump['t'])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Low-pass',header=TRUE)
a<-table.element(a,m$win['l'])
a<-table.element(a,m$deg['l'])
a<-table.element(a,m$jump['l'])
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Seasonal Decomposition by Loess - Time Series Components',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observed',header=TRUE)
a<-table.element(a,'Fitted',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,'Remainder',header=TRUE)
a<-table.row.end(a)
for (i in 1:nx) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]+m$time.series[i,'remainder'])
a<-table.element(a,m$time.series[i,'seasonal'])
a<-table.element(a,m$time.series[i,'trend'])
a<-table.element(a,m$time.series[i,'remainder'])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.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