Home » date » 2010 » Dec » 28 »

Paper

*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: Tue, 28 Dec 2010 17:08:24 +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/28/t1293555980vitmktculffpcbd.htm/, Retrieved Tue, 28 Dec 2010 18:06:21 +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/28/t1293555980vitmktculffpcbd.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 «
9.3 14.2 17.3 23 16.3 18.4 14.2 9.1 5.9 7.2 6.8 8 14.3 14.6 17.5 17.2 17.2 14.1 10.4 6.8 4.1 6.5 6.1 6.3 9.3 16.4 16.1 18 17.6 14 10.5 6.9 2.8 0.7 3.6 6.7 12.5 14.4 16.5 18.7 19.4 15.8 11.3 9.7 2.9 0.1 2.5 6.7 10.3 11.2 17.4 20.5 17 14.2 10.6 6.1
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


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


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
19.37.277875512215260.020650018964245311.3014744688205-2.02212448778474
214.213.82299437664533.0537508409326511.5232547824221-0.377005623354743
317.316.98811629113575.8668486128406211.7450350960237-0.311883708864309
42325.63910238990788.4228057561261511.9380918539662.63910238990784
516.313.99008331963336.478768068458412.1311486119083-2.30991668036671
618.420.19479150508854.3068514526466912.29835704226481.79479150508853
714.215.49949761971420.43493690766454812.46556547262121.29949761971421
89.18.84112869650511-3.2451599649695112.6040312684644-0.258871303494887
95.96.29236914128705-7.234866205594612.74249706430760.392369141287048
107.29.24471900437253-7.5279770159890212.68325801161652.04471900437253
116.87.37206906519959-6.39608802412512.62401895892540.57206906519959
1287.81805337693192-4.1805205006707512.3624671237388-0.181946623068075
1314.316.47843469248350.020650018964245312.10091528855222.17843469248351
1414.614.31140310591023.0537508409326511.8348460531572-0.28859689408981
1517.517.56437456939735.8668486128406211.56877681776210.0643745693973088
1617.214.57455932332138.4228057561261511.4026349205526-2.62544067667874
1717.216.68473890819856.478768068458411.2364930233431-0.515261091801497
1814.112.75947273214674.3068514526466911.1336758152066-1.34052726785329
1910.49.334204485265370.43493690766454811.0308586070701-1.06579551473463
206.85.84079317473804-3.2451599649695111.0043667902315-0.959206825261957
214.14.45699123220176-7.234866205594610.97787497339280.356991232201755
226.59.51763148669913-7.5279770159890211.01034552928993.01763148669913
236.17.55327193893807-6.39608802412511.04281608518691.45327193893807
246.35.74605472505955-4.1805205006707511.0344657756112-0.55394527494045
259.37.553234515000280.020650018964245311.0261154660355-1.74676548499972
2616.418.8383339390983.0537508409326510.90791521996942.43833393909797
2716.115.54343641325615.8668486128406210.7897149739033-0.556563586743907
281816.97861965814088.4228057561261510.598574585733-1.02138034185915
2917.618.31379773397896.478768068458410.40743419756270.713797733978899
301413.36426314724664.3068514526466910.3288854001067-0.635736852753443
3110.510.31472648968470.43493690766454810.2503366026508-0.185273510315341
326.96.76913710495947-3.2451599649695110.27602286001-0.130862895040531
332.82.53315708822532-7.234866205594610.3017091173693-0.266842911774685
340.7-1.46205745039481-7.5279770159890210.3900344663838-2.16205745039481
353.63.11772820872663-6.39608802412510.4783598153984-0.482271791273369
366.76.96228908572192-4.1805205006707510.61823141494880.262289085721925
3712.514.22124696653650.020650018964245310.75810301449931.72124696653647
3814.414.85752471648623.0537508409326510.88872444258120.457524716486168
3916.516.11380551649635.8668486128406211.0193458706631-0.386194483503695
4018.717.95902838770518.4228057561261511.0181658561687-0.740971612294889
4119.421.30424608986726.478768068458411.01698584167441.90424608986721
4215.816.39398730013454.3068514526466910.89916124721880.593987300134513
4311.311.38372643957230.43493690766454810.78133665276320.0837264395722528
449.711.9919239800575-3.2451599649695110.6532359849122.29192398005752
452.92.50973088853383-7.234866205594610.5251353170608-0.39026911146617
460.1-2.72100995822563-7.5279770159890210.4489869742146-2.82100995822563
472.51.02324939275649-6.39608802412510.3728386313685-1.47675060724351
486.77.24593107457508-4.1805205006707510.33458942609570.545931074575078
4910.310.28300976021290.020650018964245310.2963402208228-0.0169902397870842
5011.29.100863236331623.0537508409326510.2453859227357-2.09913676366837
5117.418.73871976251085.8668486128406210.19443162464861.33871976251077
5220.522.41364627257018.4228057561261510.16354797130381.91364627257008
531717.38856761358276.478768068458410.13266431795890.388567613582685
5414.213.97609478743134.3068514526466910.117053759922-0.223905212568681
5510.610.66361989045040.43493690766454810.10144320188510.0636198904503988
566.15.35565354904449-3.2451599649695110.089506415925-0.744346450955506
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293555980vitmktculffpcbd/1rfe61293556100.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293555980vitmktculffpcbd/1rfe61293556100.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293555980vitmktculffpcbd/2rfe61293556100.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293555980vitmktculffpcbd/2rfe61293556100.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293555980vitmktculffpcbd/3k7d91293556100.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293555980vitmktculffpcbd/3k7d91293556100.ps (open in new window)


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