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 17:16:53 +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/t1292778932vauf51turg643k8.htm/, Retrieved Sun, 19 Dec 2010 18:15:37 +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/t1292778932vauf51turg643k8.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'George Udny Yule' @ 72.249.76.132


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


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
141.8541.90533984353880.024637059889112841.77002309657210.0553398435388033
241.7541.76093681835350.011798721455918141.72726446019060.0109368183534855
341.7541.76453383008990.050960346100957341.68450582380910.0145338300899311
441.7541.7795884984070.077469319423235641.64294218216970.0295884984070298
541.5841.54464307522240.013978384247289041.6013785405303-0.0353569247776377
641.6141.61308408349460.046346698020567941.56056921848480.00308408349461331
741.4241.30952497136980.010715132190946541.5197598964393-0.110475028630233
841.3741.3362403595337-0.075100305786686741.478859946253-0.0337596404663429
941.3741.3135148034084-0.011474799475193541.4379599960668-0.0564851965915594
1041.3341.2711164767590-0.0086151066631215541.3974986299041-0.0588835232409508
1141.3741.4512182094321-0.068255473173518641.35703726374140.081218209432123
1241.3441.4412642529571-0.072459932833368741.31119567987630.101264252957051
1341.3341.37000884409960.024637059889112841.26535409601130.0400088440996313
1441.2941.35774754457810.011798721455918141.2104537339660.0677475445780686
1541.2941.37348628197830.050960346100957341.15555337192080.0834862819782671
1641.2741.37988836762480.077469319423235641.0826423129520.109888367624777
1741.0441.05629036176950.013978384247289041.00973125398320.0162903617694994
1840.940.83857182573160.046346698020567940.9150814762478-0.0614281742683858
1940.8940.94885316929660.010715132190946540.82043169851240.0588531692966399
2040.7240.7975279679358-0.075100305786686740.71757233785090.0775279679357865
2140.7240.8367618222858-0.011474799475193540.61471297718940.116761822285817
2240.5840.6503776413878-0.0086151066631215540.51823746527530.0703776413878074
2340.2440.1264935198123-0.068255473173518640.4217619533612-0.113506480187731
2440.0739.8750839976828-0.072459932833368740.3373759351506-0.194916002317186
2540.1239.9623730231710.024637059889112840.2529899169399-0.157626976828979
2640.140.0124915903290.011798721455918140.1757096882151-0.0875084096710168
2740.140.05061019440870.050960346100957340.0984294594903-0.0493898055912965
2840.0840.04889797997270.077469319423235640.033632700604-0.0311020200272552
2940.0640.1371856740350.013978384247289039.96883594171770.0771856740350145
3039.9940.01129622062540.046346698020567939.92235708135410.0212962206253806
3140.0540.21340664681860.010715132190946539.87587822099040.163406646818643
3239.6639.5561082085815-0.075100305786686739.8389920972052-0.103891791418484
3339.6639.5293688260553-0.011474799475193539.8021059734199-0.130631173944735
3439.6739.5757311360573-0.0086151066631215539.7728839706058-0.0942688639426592
3539.5639.4445935053819-0.068255473173518639.7436619677916-0.115406494618121
3639.6439.6174392051926-0.072459932833368739.7350207276407-0.0225607948073687
3739.7339.7089834526210.024637059889112839.7263794874898-0.0210165473789559
3839.739.64416863308710.011798721455918139.744032645457-0.0558313669129262
3939.739.58735385047490.050960346100957339.7616858034242-0.112646149525141
4039.6839.48888943877570.077469319423235639.7936412418011-0.191110561224320
4139.7639.68042493557470.013978384247289039.825596680178-0.0795750644252777
424040.09988641515480.046346698020567939.85376688682460.0998864151548347
4339.9640.02734777433790.010715132190946539.88193709347120.0673477743378541
4440.0140.1975140440147-0.075100305786686739.8975862617720.187514044014669
4540.0140.1182393694024-0.011474799475193539.91323543007280.108239369402369
4640.0140.1195224181911-0.0086151066631215539.9090926884720.109522418191077
474040.1633055263023-0.068255473173518639.90494994687130.163305526302253
4839.9140.0355707856087-0.072459932833368739.85688914722470.125570785608708
4939.8639.88653459253280.024637059889112839.80882834757800.0265345925328333
5039.7939.81168237730770.011798721455918139.75651890123640.0216823773076769
5139.7939.82483019900430.050960346100957339.70420945489480.0348301990042756
5239.839.873605314840.077469319423235639.64892536573680.0736053148400018
5339.6439.6723803391740.013978384247289039.59364127657870.0323803391739688
5439.5539.51840091498650.046346698020567939.5352523869929-0.031599085013454
5539.3639.2324213704020.010715132190946539.476863497407-0.12757862959797
5639.2839.2189620814925-0.075100305786686739.4161382242942-0.0610379185075018
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292778932vauf51turg643k8/17g001292779010.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292778932vauf51turg643k8/17g001292779010.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292778932vauf51turg643k8/27g001292779010.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292778932vauf51turg643k8/27g001292779010.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292778932vauf51turg643k8/4i8i31292779010.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292778932vauf51turg643k8/4i8i31292779010.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