Home » date » 2009 » Dec » 04 »

Decompositie 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: Fri, 04 Dec 2009 12:24:32 -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/04/t1259954710w2epr5d741btwe1.htm/, Retrieved Fri, 04 Dec 2009 20:25:15 +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/04/t1259954710w2epr5d741btwe1.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 «
7.3 7.6 7.5 7.6 7.9 7.9 8.1 8.2 8 7.5 6.8 6.5 6.6 7.6 8 8.1 7.7 7.5 7.6 7.8 7.8 7.8 7.5 7.5 7.1 7.5 7.5 7.6 7.7 7.7 7.9 8.1 8.2 8.2 8.2 7.9 7.3 6.9 6.6 6.7 6.9 7 7.1 7.2 7.1 6.9 7 6.8 6.4 6.7 6.6 6.4 6.3 6.2 6.5 6.8 6.8 6.4 6.1 5.8 6.1 7.2 7.3 6.9 6.1 5.8 6.2 7.1 7.7 7.9 7.7 7.4 7.5
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 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
17.37.18763782620637-0.4099833718860727.8223455456797-0.112362173793626
27.67.3929945236310.01797252894394627.78903294742506-0.207005476369005
37.57.208028525049880.03625112577969507.75572034917042-0.291971474950116
47.67.476015378643790.005466670234712397.7185179511215-0.123984621356211
57.98.22733551499535-0.1086510680679287.681315553072570.327335514995354
67.98.35115213959081-0.1970402231072537.645888083516440.451152139590811
78.18.57496891591320.01457047012649517.610460613960310.474968915913196
88.28.50708763377480.3091493279015887.583763038323610.307087633774803
988.072539619221410.3703949180916817.55706546268690.0725396192214127
107.57.240567122045820.2203753856208587.53905749233332-0.259432877954179
116.86.09192775590101-0.01297727788074777.52104952197974-0.708072244098989
126.55.73701764597318-0.2455283953039837.50851074933081-0.762982354026824
136.66.11401139520419-0.4099833718860727.49597197668188-0.485988604795807
147.67.684839782659820.01797252894394627.497187688396230.0848397826598202
1588.465345474109720.03625112577969507.498403400110590.465345474109716
168.18.663806557371630.005466670234712397.530726772393650.563806557371635
177.77.94560092339121-0.1086510680679287.563050144676720.245600923391212
187.57.60059888472877-0.1970402231072537.596441338378490.100598884728766
197.67.555596997793250.01457047012649517.62983253208026-0.0444030022067521
207.87.666865950532170.3091493279015887.62398472156624-0.13313404946783
217.87.611468170856090.3703949180916817.61813691105223-0.188531829143908
227.87.780132729495760.2203753856208587.59949188488338-0.0198672705042355
237.57.43213041916622-0.01297727788074777.58084685871453-0.067869580833782
247.57.65592425991431-0.2455283953039837.589604135389680.155924259914308
257.17.01162195982125-0.4099833718860727.59836141206482-0.0883780401787497
267.57.35524597847570.01797252894394627.62678149258035-0.144754021524298
277.57.308547301124420.03625112577969507.65520157309588-0.191452698875578
287.67.501030600160660.005466670234712397.69350272960463-0.0989693998393442
297.77.77684718195455-0.1086510680679287.731803886113380.0768471819545473
307.77.83383444583998-0.1970402231072537.763205777267270.133834445839981
317.97.990821861452340.01457047012649517.794607668421160.0908218614523415
328.18.113315944881180.3091493279015887.777534727217230.0133159448811844
338.28.269143295895030.3703949180916817.760461786013290.069143295895028
348.28.48666990067930.2203753856208587.692954713699840.286669900679301
358.28.78752963649436-0.01297727788074777.625447641386390.587529636494356
367.98.5045535046128-0.2455283953039837.540974890691190.604553504612792
377.37.55348123189008-0.4099833718860727.4565021399960.253481231890077
386.96.419102129807580.01797252894394627.36292534124848-0.480897870192424
396.65.894400331719340.03625112577969507.26934854250096-0.705599668280657
406.76.223482026097470.005466670234712397.17105130366781-0.476517973902526
416.96.83589700323326-0.1086510680679287.07275406483467-0.0641029967667377
4277.19316861063133-0.1970402231072537.003871612475920.193168610631334
437.17.250440369756330.01457047012649516.934989160117170.150440369756334
447.27.185138951093530.3091493279015886.90571172100488-0.0148610489064662
457.16.953170800015730.3703949180916816.87643428189259-0.146829199984267
466.96.734982937138220.2203753856208586.84464167724092-0.165017062861778
4777.20012820529149-0.01297727788074776.812849072589250.200128205291493
486.87.08156441494437-0.2455283953039836.763963980359620.281564414944365
496.46.49490448375609-0.4099833718860726.715078888129980.09490448375609
506.76.712405108921610.01797252894394626.669622362134450.0124051089216088
516.66.53958303808140.03625112577969506.62416583613891-0.0604169619186035
526.46.221775079521250.005466670234712396.57275825024403-0.178224920478746
536.36.18730040371877-0.1086510680679286.52135066434916-0.112699596281232
546.26.12169394191127-0.1970402231072536.47534628119598-0.0783060580887316
556.56.55608763183070.01457047012649516.429341898042810.056087631830696
566.86.857108621291170.3091493279015886.433742050807250.0571086212911665
576.86.791462878336640.3703949180916816.43814220357168-0.00853712166336162
586.46.11593350061610.2203753856208586.46369111376304-0.284066499383894
596.15.72373725392635-0.01297727788074776.48924002395439-0.376262746073645
605.85.34927158384708-0.2455283953039836.4962568114569-0.450728416152917
616.16.10670977292666-0.4099833718860726.503273598959410.00670977292666208
627.27.85017802808520.01797252894394626.531849442970850.650178028085209
637.38.003323587238020.03625112577969506.560425286982280.703323587238024
646.97.138316915827470.005466670234712396.656216413937820.238316915827467
656.15.55664352717457-0.1086510680679286.75200754089336-0.543356472825432
665.84.92915458195128-0.1970402231072536.86788564115597-0.870845418048721
676.25.401665788454920.01457047012649516.98376374141859-0.798334211545082
687.16.795436451274450.3091493279015887.09541422082396-0.304563548725552
697.77.822540381678980.3703949180916817.207064700229340.122540381678980
707.98.25463029555150.2203753856208587.324994318827640.354630295551503
717.77.9700533404548-0.01297727788074777.442923937425940.270053340454808
727.47.47499462352625-0.2455283953039837.570533771777730.0749946235262522
737.57.71183976575655-0.4099833718860727.698143606129520.211839765756548
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259954710w2epr5d741btwe1/1f50l1259954670.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259954710w2epr5d741btwe1/1f50l1259954670.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259954710w2epr5d741btwe1/2t81b1259954670.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259954710w2epr5d741btwe1/2t81b1259954670.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259954710w2epr5d741btwe1/3axw31259954670.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259954710w2epr5d741btwe1/3axw31259954670.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259954710w2epr5d741btwe1/4o4mh1259954670.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259954710w2epr5d741btwe1/4o4mh1259954670.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