Home » date » 2009 » Dec » 06 »

WS9

*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, 06 Dec 2009 08:07:47 -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/06/t12601121324jopem2csrditwj.htm/, Retrieved Sun, 06 Dec 2009 16:08:58 +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/06/t12601121324jopem2csrditwj.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 «
10414,9 12476,8 12384,6 12266,7 12919,9 11497,3 12142 13919,4 12656,8 12034,1 13199,7 10881,3 11301,2 13643,9 12517 13981,1 14275,7 13435 13565,7 16216,3 12970 14079,9 14235 12213,4 12581 14130,4 14210,8 14378,5 13142,8 13714,7 13621,9 15379,8 13306,3 14391,2 14909,9 14025,4 12951,2 14344,3 16093,4 15413,6 14705,7 15972,8 16241,4 16626,4 17136,2 15622,9 18003,9 16136,1 14423,7 16789,4 16782,2 14133,8 12607 12004,5 12175,4 13268 12299,3 11800,6 13873,3 12269,6
 
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


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


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
110414.910247.0018017559-1457.2490575287612040.0472557728-167.898198244071
212476.812386.4227946853478.05630181273412089.120903502-90.3772053147313
312384.612039.5633951958591.44205357300712138.1945512312-345.036604804163
412266.712135.3454047883213.78364760243712184.2709476093-131.354595211722
512919.913914.9884325209-305.53577650827812230.3473439874995.088432520864
611497.311240.9134019336-524.4521509964412278.1387490629-256.386598066412
71214212271.6592912118-313.58944535012512325.9301541383129.659291211834
813919.414231.89966570591227.5307790809912379.3695552131312.499665705869
912656.813053.1004626671-172.30941895509712432.808956288396.300462667103
1012034.111781.9792980923-219.42669225177412505.6473941595-252.120701907679
1113199.712740.85903696711080.0551310019912578.4858320309-458.840963032901
1210881.39655.46866995175-598.30487821408812705.4362082623-1225.83133004825
1311301.211227.262473035-1457.2490575287612832.3865844938-73.937526964999
1413643.913822.3672503528478.05630181273412987.3764478345178.467250352805
151251711300.1916352518591.44205357300713142.3663111752-1216.80836474816
1613981.114462.8109752447213.78364760243713285.6053771528481.710975244730
1714275.715428.0913333778-305.53577650827813428.84444313051152.39133337777
181343513855.5220312167-524.4521509964413538.9301197797420.522031216733
1913565.713795.9736489212-313.58944535012513649.0157964289230.273648921226
2016216.317499.07288563341227.5307790809913705.99633528561282.77288563344
211297012349.3325448129-172.30941895509713762.9768741422-620.667455187146
2214079.914608.4331941257-219.42669225177413770.7934981261528.533194125668
231423513611.33474688801080.0551310019913778.6101221100-623.665253111958
2412213.411264.4912810460-598.30487821408813760.6135971681-948.908718954019
251258112876.6319853025-1457.2490575287613742.6170722262295.631985302522
2614130.414035.8471584663478.05630181273413746.8965397210-94.5528415336958
2714210.814078.9819392113591.44205357300713751.1760072157-131.818060788688
2814378.514748.2094465924213.78364760243713795.0069058052369.709446592407
2913142.812752.2979721136-305.53577650827813838.8378043946-390.502027886350
3013714.714049.0674644436-524.4521509964413904.7846865528334.367464443591
3113621.913586.6578766391-313.58944535012513970.7315687111-35.2421233609475
3215379.815487.38092159321227.5307790809914044.6882993258107.580921593219
3313306.312666.2643890146-172.30941895509714118.6450299405-640.035610985416
3414391.214775.0222943416-219.42669225177414226.8043979102383.822294341591
3514909.914404.78110311821080.0551310019914334.9637658799-505.118896881842
3614025.414152.093997748-598.30487821408814497.0108804661126.693997747991
3712951.212700.5910624764-1457.2490575287614659.0579950523-250.608937523575
3814344.313351.9661537261478.05630181273414858.5775444612-992.33384627391
3916093.416537.2608525570591.44205357300715058.09709387443.860852556985
4015413.615341.9799275424213.78364760243715271.4364248552-71.6200724576083
4114705.714232.1600206679-305.53577650827815484.7757558403-473.539979332054
4215972.816793.6052274390-524.4521509964415676.4469235575820.80522743897
4316241.416928.2713540755-313.58944535012515868.1180912746686.871354075522
4416626.416037.99969580701227.5307790809915987.2695251120-588.400304193035
4517136.218338.2884600056-172.30941895509716106.42095894951202.08846000560
4615622.915417.0191949916-219.42669225177416048.2074972602-205.880805008377
4718003.918937.75083342721080.0551310019915989.9940355708933.850833427208
4816136.117131.2523028599-598.30487821408815739.2525753542995.15230285989
4914423.714816.1379423912-1457.2490575287615488.5111151376392.437942391176
5016789.417977.983509633478.05630181273415122.76018855431188.58350963300
5116782.218215.9486844560591.44205357300714757.00926197101433.74868445604
5214133.813662.9854852249213.78364760243714390.8308671727-470.814514775118
531260711494.8833041339-305.53577650827814024.6524723744-1112.11669586613
5412004.510858.3634959954-524.4521509964413675.0886550011-1146.13650400461
5512175.411338.8646077224-313.58944535012513325.5248376277-836.535392277568
561326812337.35021592821227.5307790809912971.1190049908-930.649784071773
5712299.312154.1962466012-172.30941895509712616.7131723539-145.103753398784
5811800.611549.1626217067-219.42669225177412271.4640705451-251.437378293283
5913873.314740.32990026181080.0551310019911926.2149687362867.029900261778
6012269.613541.8707181037-598.30487821408811595.63416011041272.27071810368
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/06/t12601121324jopem2csrditwj/1fcfo1260112065.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t12601121324jopem2csrditwj/1fcfo1260112065.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/06/t12601121324jopem2csrditwj/2onzp1260112065.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t12601121324jopem2csrditwj/2onzp1260112065.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/06/t12601121324jopem2csrditwj/3jgil1260112065.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t12601121324jopem2csrditwj/3jgil1260112065.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/06/t12601121324jopem2csrditwj/4x9rt1260112065.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t12601121324jopem2csrditwj/4x9rt1260112065.ps (open in new window)


 
Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
 
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