Home » date » 2010 » Dec » 28 »

Paper Loess

*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 22:59:07 +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/t1293577067exnmtgp31uflb6o.htm/, Retrieved Tue, 28 Dec 2010 23:57:52 +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/t1293577067exnmtgp31uflb6o.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 «
1203 1319 1328 1260 1286 1274 1389 1255 1244 1336 1214 1239 1174 1061 1116 1123 1086 1074 965 1035 1016 941 1003 998 891 828 833 887 842 793 778 699 686 727 641 619 627 593 535 536 504 487 477 435 433 393 389 377 339 370 350 341 367 396 408 405 391 396 368 356
 
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
Seasonal601061
Trend1912
Low-pass1312


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
112031115.80157383313-19.99875593734201310.19718210421-87.1984261668697
213191350.27041191349-16.27522933237611304.0048174188831.2704119134912
313281359.93917209564-1.751624829201841297.8124527335631.9391720956437
412601220.581857745108.857222438969051290.56091981593-39.4181422549027
512861278.6246130585610.06600004313021283.30938689831-7.3753869414395
612741263.333083053229.717689869340241274.94922707744-10.6669169467843
713891491.2415846776720.16934806575041266.58906725658102.241584677671
812551258.87909984246-6.110484461951551257.231384619493.87909984245948
912441246.71663343618-6.590335418581011247.873701982412.71663343617547
1013361426.8791035647511.80570099002761233.3151954452390.8791035647457
1112141219.24151971354-9.998208621591061218.756688908055.24151971354331
1212391280.833188132180.1086387790416621197.0581730887841.8331881321781
1311741192.63909866783-19.99875593734201175.3596572695118.6390986678296
141061987.719265718444-16.27522933237611150.55596361393-73.2807342815556
1511161107.99935487085-1.751624829201841125.75226995835-8.00064512914923
1611231135.161199035588.857222438969051101.9815785254512.1611990355786
1710861083.7231128643210.06600004313021078.21088709255-2.27688713568386
1810741081.111792427839.717689869340241057.170517702837.11179242782873
19965873.70050362114120.16934806575041036.13014831311-91.2994963788585
2010351060.36505208456-6.110484461951551015.7454323773925.3650520845588
2110161043.22961897690-6.59033541858101995.36071644167727.2296189769036
22941895.40840321238611.8057009900276974.785895797586-45.5915967876141
2310031061.78713346810-9.99820862159106954.21107515349558.7871334680956
249981062.942880499060.108638779041662932.94848072190364.9428804990553
25891890.312869647031-19.9987559373420911.68588629031-0.687130352968552
26828784.307973135654-16.2752293323761887.967256196722-43.6920268643462
27833803.502998726068-1.75162482920184864.248626103134-29.4970012739323
28887927.0554760671978.85722243896905838.08730149383440.0554760671965
29842862.00802307233510.0660000431302811.92597688453520.0080230723352
30793790.086012966139.71768986934024786.19629716453-2.91398703387006
31778775.36403448972520.1693480657504760.466617444525-2.63596551027535
32699668.169630970257-6.11048446195155735.940853491695-30.8303690297433
33686667.175245879716-6.59033541858101711.415089538865-18.8247541202837
34727756.44938548546811.8057009900276685.74491352450529.4493854854677
35641631.923471111446-9.99820862159106660.074737510145-9.07652888855364
36619603.4671324005480.108638779041662634.42422882041-15.5328675994522
37627665.225035806666-19.9987559373420608.77372013067638.2250358066656
38593617.710673616548-16.2752293323761584.56455571582824.7106736165483
39535511.396233528223-1.75162482920184560.355391300979-23.6037664717774
40536526.4669682973798.85722243896905536.675809263652-9.5330317026212
41504484.93777273054510.0660000431302512.996227226325-19.0622272694551
42487473.3539250687689.71768986934024490.928385061891-13.6460749312316
43477464.97010903679220.1693480657504468.860542897458-12.0298909632082
44435426.025144466959-6.11048446195155450.085339994993-8.9748555330412
45433441.280198326053-6.59033541858101431.3101370925288.28019832605327
46393357.09559553945511.8057009900276417.098703470517-35.9044044605449
47389385.110938773084-9.99820862159106402.887269848507-3.88906122691589
48377360.0654768547950.108638779041662393.825884366163-16.9345231452048
49339313.234257053523-19.9987559373420384.764498883819-25.7657429464774
50370375.436731149212-16.2752293323761380.8384981831645.43673114921177
51350324.839127346693-1.75162482920184376.912497482509-25.1608726533074
52341295.8906658322758.85722243896905377.252111728755-45.1093341677246
53367346.34227398186810.0660000431302377.591725975002-20.6577260181319
54396404.8356234021679.71768986934024377.4466867284938.83562340216679
55408418.52900445226520.1693480657504377.30164748198410.5290044522654
56405438.461061897656-6.11048446195155377.64942256429633.4610618976558
57391410.593137771974-6.59033541858101377.99719764660719.5931377719737
58396401.46338887541411.8057009900276378.7309101345585.46338887541407
59368366.533585999082-9.99820862159106379.464622622509-1.46641400091823
60356331.6056842792060.108638779041662380.285676941752-24.3943157207935
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293577067exnmtgp31uflb6o/1g9p61293577144.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293577067exnmtgp31uflb6o/1g9p61293577144.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293577067exnmtgp31uflb6o/38i691293577144.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293577067exnmtgp31uflb6o/38i691293577144.ps (open in new window)


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