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:15:58 +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/t129277881232rnzy222kyeki5.htm/, Retrieved Sun, 19 Dec 2010 18:13: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/t129277881232rnzy222kyeki5.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 «
104,31 103,88 103,88 103,86 103,89 103,98 103,98 104,29 104,29 104,24 103,98 103,54 103,44 103,32 103,30 103,26 103,14 103,11 102,91 103,23 103,23 103,14 102,91 102,42 102,10 102,07 102,06 101,98 101,83 101,75 101,56 101,66 101,65 101,61 101,52 101,31 101,19 101,11 101,10 101,07 100,98 100,93 100,92 101,02 101,01 100,97 100,89 100,62 100,53 100,48 100,48 100,47 100,52 100,49 100,47 100,44
 
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
1104.31104.490988967297-0.108601448885124104.2376124815880.180988967296940
2103.88103.751118549874-0.186629043565102104.195510493691-0.128881450125789
3103.88103.737248252849-0.130656758642150104.153408505794-0.142751747151451
4103.86103.716177454676-0.104390456085661104.10821300141-0.143822545324340
5103.89103.815106736767-0.0981242337938852104.063017497026-0.0748932632325392
6103.98104.002746289755-0.0572213003464507104.0144750105910.022746289755176
7103.98104.074385873243-0.080318397399617103.9659325241560.094385873243482
8104.29104.5224268452510.139993422489252103.917579732260.232426845250799
9104.29104.4548704542190.255902605417038103.8692269403640.164870454219226
10104.24104.3878720673510.276111130103410103.8160168025460.147872067350519
11103.98104.0108736713550.186319663916319103.7628066647280.0308736713553088
12103.54103.487221342351-0.0923852068603536103.685163864510-0.0527786576491849
13103.44103.381080384594-0.108601448885124103.607521064291-0.0589196154055855
14103.32103.307297852164-0.186629043565102103.519331191402-0.0127021478364640
15103.3103.299515440130-0.130656758642150103.431141318512-0.00048455987027296
16103.26103.281885162052-0.104390456085661103.3425052940340.0218851620516745
17103.14103.124254964238-0.0981242337938852103.253869269556-0.0157450357616966
18103.11103.117539416938-0.0572213003464507103.1596818834080.00753941693841398
19102.91102.834823900139-0.080318397399617103.065494497260-0.0751760998608688
20103.23103.3581488086970.139993422489252102.9618577688130.128148808697460
21103.23103.3458763542170.255902605417038102.8582210403660.115876354216880
22103.14103.2551445257740.276111130103410102.7487443441230.115144525774070
23102.91102.9944126882050.186319663916319102.6392676478790.0844126882047505
24102.42102.409224127546-0.0923852068603536102.523161079314-0.0107758724538201
25102.1101.901546938136-0.108601448885124102.407054510749-0.198453061864299
26102.07102.044254256134-0.186629043565102102.282374787431-0.025745743866068
27102.06102.092961694529-0.130656758642150102.1576950641130.0329616945292202
28101.98102.027074935412-0.104390456085661102.0373155206730.047074935412482
29101.83101.841188256560-0.0981242337938852101.9169359772330.0111882565604162
30101.75101.740912766201-0.0572213003464507101.816308534145-0.00908723379889409
31101.56101.484637306342-0.080318397399617101.715681091057-0.0753626936576239
32101.66101.5473081701990.139993422489252101.632698407312-0.112691829801449
33101.65101.4943816710160.255902605417038101.549715723567-0.155618328984161
34101.61101.4661055063540.276111130103410101.477783363542-0.143894493645746
35101.52101.4478293325660.186319663916319101.405851003518-0.0721706674338662
36101.31101.366165279420-0.0923852068603536101.3462199274400.0561652794202274
37101.19101.202012597522-0.108601448885124101.2865888513630.0120125975223999
38101.11101.173090568097-0.186629043565102101.2335384754680.0630905680968397
39101.1101.150168659068-0.130656758642150101.1804880995740.0501686590683477
40101.07101.118823506120-0.104390456085661101.1255669499650.0488235061203568
41100.98100.987478433437-0.0981242337938852101.0706458003570.0074784334370861
42100.93100.904446345007-0.0572213003464507101.012774955339-0.0255536549930042
43100.92100.965414287077-0.080318397399617100.9549041103220.0454142870774774
44101.02100.9997015418660.139993422489252100.900305035645-0.0202984581343202
45101.01100.9183914336150.255902605417038100.845705960968-0.0916085663850055
46100.97100.8647803562760.276111130103410100.799108513621-0.105219643724169
47100.89100.8411692698100.186319663916319100.752511066274-0.0488307301898487
48100.62100.614730479620-0.0923852068603536100.717654727241-0.00526952038033812
49100.53100.485803060677-0.108601448885124100.682798388208-0.0441969393227311
50100.48100.500326720633-0.186629043565102100.6463023229320.0203267206330224
51100.48100.480850500986-0.130656758642150100.6098062576560.000850500985848157
52100.47100.470110797864-0.104390456085661100.5742796582210.000110797864337542
53100.52100.599371175008-0.0981242337938852100.5387530587860.0793711750075232
54100.49100.532972151409-0.0572213003464507100.5042491489370.042972151409316
55100.47100.550573158312-0.080318397399617100.4697452390880.0805731583117222
56100.44100.3044313438900.139993422489252100.435575233621-0.135568656110252
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t129277881232rnzy222kyeki5/1bhz61292778955.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t129277881232rnzy222kyeki5/1bhz61292778955.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t129277881232rnzy222kyeki5/2bhz61292778955.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t129277881232rnzy222kyeki5/2bhz61292778955.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t129277881232rnzy222kyeki5/33qyr1292778955.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t129277881232rnzy222kyeki5/33qyr1292778955.ps (open in new window)


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