Home » date » 2009 » May » 31 »

Decomposition of Loess - Prijsevolutie slagroom - Van Hal Elien

*Unverified author*
R Software Module: rwasp_decomposeloess.wasp (opens new window with default values)
Title produced by software: Decomposition by Loess
Date of computation: Sun, 31 May 2009 05:45:41 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/May/31/t12437703808oryilmtnp5blof.htm/, Retrieved Sun, 31 May 2009 13:46:24 +0200
 
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/May/31/t12437703808oryilmtnp5blof.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 «
4.2 4.19 4.19 4.19 4.19 4.18 4.2 4.19 4.17 4.21 4.22 4.23 4.21 4.23 4.23 4.22 4.25 4.28 4.3 4.32 4.33 4.32 4.34 4.33 4.31 4.31 4.3 4.3 4.29 4.33 4.32 4.32 4.35 4.37 4.39 4.4 4.41 4.44 4.47 4.47 4.47 4.48 4.47 4.48 4.46 4.44 4.43 4.41 4.41 4.38 4.35 4.37 4.4 4.39 4.36 4.34 4.33 4.33 4.34 4.34 4.35 4.37 4.39 4.4 4.38 4.37 4.36 4.33 4.33 4.33 4.32 4.33 4.34
 
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
Seasonal731074
Trend1912
Low-pass1312


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
14.24.21637813521329-0.0004307551430201244.184052619929730.0163781352132872
24.194.193057622404180.0007235162716875874.186218861324140.00305762240417717
34.194.19383863649028-0.002223739208821394.188385102718540.00383863649028271
44.194.19563337397418-0.006456587385049764.190823213410880.00563337397417474
54.194.179492613318170.007246062578621694.19326132410321-0.0105073866818337
64.184.153041061932780.01111279570105594.19584614236617-0.0269589380672226
74.24.195854440023080.005714599347797524.19843096062912-0.00414555997691757
84.194.18606171747-0.007108019919757894.20104630244976-0.00393828253000184
94.174.14491832989752-0.008579974167925114.2036616442704-0.0250816701024750
104.214.21437689102759-0.001940267442150824.207563376414560.00437689102758654
114.224.226973810156590.001561081284685704.211465108558730.0069738101565866
124.234.241469041842420.0003812680828670184.218149690074720.0114690418424184
134.214.19559648355232-0.0004307551430201244.2248342715907-0.0144035164476826
144.234.225429854348610.0007235162716875874.23384662937970-0.00457014565139069
154.234.21936475204012-0.002223739208821394.24285898716871-0.0106352479598844
164.224.19321296710922-0.006456587385049764.25324362027582-0.0267870328907751
174.254.229125684038430.007246062578621694.26362825338294-0.0208743159615654
184.284.275993045209670.01111279570105594.27289415908928-0.00400695479033342
194.34.312125335856590.005714599347797524.282160064795610.0121253358565907
204.324.35732918994034-0.007108019919757894.289778829979420.0373291899403432
214.334.37118237900471-0.008579974167925114.297397595163220.0411823790047059
224.324.33880759951884-0.001940267442150824.303132667923310.0188075995188397
234.344.369571178031910.001561081284685704.30886774068340.0295711780319126
244.334.347844344910730.0003812680828670184.311774387006410.0178443449107277
254.314.30574972181361-0.0004307551430201244.31468103332941-0.00425027818638934
264.314.303207623537950.0007235162716875874.31606886019037-0.00679237646205433
274.34.28476705215750-0.002223739208821394.31745668705133-0.0152329478425042
284.34.285478372769-0.006456587385049764.32097821461605-0.0145216272310016
294.294.24825419524060.007246062578621694.32449974218078-0.0417458047594002
304.334.317546629660550.01111279570105594.33134057463839-0.0124533703394469
314.324.29610399355620.005714599347797524.33818140709600-0.0238960064438016
324.324.2984380676256-0.007108019919757894.34866995229416-0.0215619323743992
334.354.34942147667561-0.008579974167925114.35915849749231-0.00057852332438646
344.374.36915177659266-0.001940267442150824.37278849084949-0.000848223407343696
354.394.392020434508640.001561081284685704.386418484206680.00202043450863698
364.44.399495393646930.0003812680828670184.4001233382702-0.000504606353068482
374.414.40660256280929-0.0004307551430201244.41382819233373-0.00339743719070551
384.444.454516007526940.0007235162716875874.424760476201370.0145160075269413
394.474.5065309791398-0.002223739208821394.435692760069020.036530979139803
404.474.50480569646698-0.006456587385049764.441650890918070.0348056964669841
414.474.485144915654270.007246062578621694.447609021767110.0151449156542656
424.484.49993656745510.01111279570105594.448950636843840.0199365674551029
434.474.483993148731630.005714599347797524.450292251920570.0139931487316307
444.484.52060640547879-0.007108019919757894.446501614440970.0406064054787896
454.464.48586899720656-0.008579974167925114.442710976961370.0258689972065582
464.444.44715273769133-0.001940267442150824.434787529750820.00715273769132807
474.434.431574836175030.001561081284685704.426864082540280.00157483617503473
484.414.401615678437390.0003812680828670184.41800305347974-0.00838432156260538
494.414.41128873072382-0.0004307551430201244.40914202441920.00128873072382163
504.384.359546389931940.0007235162716875874.39973009379638-0.0204536100680635
514.354.31190557603527-0.002223739208821394.39031816317355-0.0380944239647327
524.374.36468194233013-0.006456587385049764.38177464505492-0.00531805766987148
534.44.419522810485090.007246062578621694.373231126936290.0195228104850900
544.394.401615329657150.01111279570105594.36727187464180.0116153296571486
554.364.35297277830490.005714599347797524.3613126223473-0.00702722169509862
564.344.32873617722858-0.007108019919757894.35837184269118-0.0112638227714212
574.334.31314891113287-0.008579974167925114.35543106303506-0.0168510888671323
584.334.30693981742511-0.001940267442150824.35500045001704-0.0230601825748940
594.344.323869081716280.001561081284685704.35456983699903-0.0161309182837162
604.344.324902290447950.0003812680828670184.35471644146918-0.0150977095520508
614.354.34556770920368-0.0004307551430201244.35486304593934-0.00443229079631724
624.374.384418279466480.0007235162716875874.354858204261830.0144182794664847
634.394.4273703766245-0.002223739208821394.354853362584320.0373703766245015
644.44.45305045231911-0.006456587385049764.353406135065940.0530504523191118
654.384.400795029873820.007246062578621694.351958907547560.0207950298738213
664.374.379267839873720.01111279570105594.349619364425230.00926783987371582
674.364.36700557934930.005714599347797524.34727982130290.00700557934930224
684.334.32241385544245-0.007108019919757894.34469416447731-0.00758614455755335
694.334.3264714665162-0.008579974167925114.34210850765172-0.00352853348379689
704.334.32285187237440-0.001940267442150824.33908839506775-0.00714812762559536
714.324.302370636231550.001561081284685704.33606828248377-0.0176293637684539
724.334.326898757838010.0003812680828670184.33271997407913-0.00310124216199448
734.344.35105908946853-0.0004307551430201244.329371665674490.0110590894685334
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t12437703808oryilmtnp5blof/1w5z01243770339.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t12437703808oryilmtnp5blof/1w5z01243770339.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t12437703808oryilmtnp5blof/250vy1243770339.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t12437703808oryilmtnp5blof/250vy1243770339.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t12437703808oryilmtnp5blof/34grd1243770339.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t12437703808oryilmtnp5blof/34grd1243770339.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t12437703808oryilmtnp5blof/4oub71243770339.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t12437703808oryilmtnp5blof/4oub71243770339.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = TRUE ;
 
Parameters (R input):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = TRUE ;
 
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