Home » date » 2010 » Nov » 29 »

*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: Mon, 29 Nov 2010 20:28:46 +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/Nov/29/t1291062400sxeebnw4waas5tc.htm/, Retrieved Mon, 29 Nov 2010 21:26:40 +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/Nov/29/t1291062400sxeebnw4waas5tc.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 «
9700 9081 9084 9743 8587 9731 9563 9998 9437 10038 9918 9252 9737 9035 9133 9487 8700 9627 8947 9283 8829 9947 9628 9318 9605 8640 9214 9567 8547 9185 9470 9123 9278 10170 9434 9655 9429 8739 9552 9687 9019 9672 9206 9069 9788 10312 10105 9863 9656 9295 9946 9701 9049 10190 9706 9765 9893 9994 10433 10073 10112 9266 9820 10097 9115 10411 9678 10408 10153 10368 10581 10597 10680 9738 9556
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


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


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
197009665.38145341098216.6597249533499517.95882163567-34.6185465890176
290819165.77198053845-524.3262785862899520.5542980478484.7719805384459
390848819.30488240033-174.4546568603519523.14977446002-264.695117599666
497439815.13667288808148.1342581676299522.7290689442972.1366728880821
585878390.3144979431-738.6228613716629522.30836342856-196.6855020569
697319725.13807465836217.6548137857959519.20711155584-5.86192534164002
795639776.79463081457-166.9004904976979516.10585968313213.794630814569
8999810477.39159839494.899093226310659513.70930837882479.391598394865
994379409.98788403842-47.30064111293539511.31275707452-27.0121159615846
101003810051.5200681786519.3361529156119505.1437789057613.5200681786318
1199189947.88590851772389.1392907452929498.97480073729.8859085177173
1292528874.86319978722155.7816679040919473.35513230869-377.136800212778
1397379809.60481116626216.6597249533499447.7354638803972.604811166264
1490359183.97766975103-524.3262785862899410.34860883526148.977669751028
1591339067.49290307022-174.4546568603519372.96175379013-65.5070969297831
1694879479.52410990384148.1342581676299346.34163192853-7.47589009615695
1787008818.90135130474-738.6228613716629319.72151006692118.901351304738
1896279732.83020877482217.6548137857959303.51497743939105.830208774818
1989478773.59204568585-166.9004904976979287.30844481185-173.407954314151
2092839285.245003453764.899093226310659275.855903319932.24500345375782
2188298440.89727928492-47.30064111293539264.40336182801-388.102720715076
22994710115.1181643594519.3361529156119259.545682725168.118164359379
2396289612.1727056327389.1392907452929254.688003622-15.8272943672982
2493189223.30241590876155.7816679040919256.91591618715-94.6975840912437
2596059734.19644629435216.6597249533499259.1438287523129.196446294351
2686408534.35586053479-524.3262785862899269.9704180515-105.644139465212
2792149321.65764950965-174.4546568603519280.7970073507107.657649509651
2895679693.8923956418148.1342581676299291.97334619057126.892395641802
2985478529.47317634122-738.6228613716629303.14968503044-17.5268236587763
3091858843.67047554607217.6548137857959308.67471066814-341.329524453935
3194709792.70075419186-166.9004904976979314.19973630584322.700754191856
3291238918.073575426254.899093226310659323.02733134744-204.926424573749
3392789271.4457147239-47.30064111293539331.85492638903-6.55428527609729
341017010468.1371071333519.3361529156119352.52673995109298.137107133300
3594349105.66215574156389.1392907452929373.19855351315-328.337844258438
3696559760.51674400656155.7816679040919393.70158808935105.516744006558
3794299227.13565238109216.6597249533499414.20462266556-201.86434761891
3887398573.70419384917-524.3262785862899428.62208473712-165.295806150829
3995529835.41511005168-174.4546568603519443.03954680867283.415110051677
4096879758.56511370315148.1342581676299467.3006281292271.5651137031509
4190199285.0611519219-738.6228613716629491.56170944977266.061151921895
4296729605.97213280895217.6548137857959520.37305340526-66.027867191051
4392069029.71609313695-166.9004904976979549.18439736074-176.283906863047
4490698558.394271843354.899093226310659574.70663493034-510.605728156654
45978810023.071768613-47.30064111293539600.22887249994235.071768612996
461031210480.8282002468519.3361529156119623.8356468376168.828200246791
471010510173.4182880795389.1392907452929647.4424211752568.418288079456
4898639890.35914461412155.7816679040919679.8591874817927.3591446141236
4996569383.06432125833216.6597249533499712.27595378832-272.935678741669
5092959374.16734837944-524.3262785862899740.1589302068579.167348379442
51994610298.4127502350-174.4546568603519768.04190662537352.41275023498
5297019472.4536957728148.1342581676299781.41204605957-228.546304227199
5390499041.8406758779-738.6228613716629794.78218549377-7.15932412210896
541019010354.4579532181217.6548137857959807.88723299606164.457953218145
5597069757.90820999935-166.9004904976979820.9922804983551.9082099993484
5697659692.770733741144.899093226310659832.33017303255-72.2292662588588
5798939989.63257554619-47.30064111293539843.6680655667596.6325755461894
5899949615.54519313482519.3361529156119853.11865394957-378.454806865182
591043310614.2914669223389.1392907452929862.5692423324181.291466922314
601007310111.7158882826155.7816679040919878.5024438133138.7158882825988
611011210112.9046297524216.6597249533499894.435645294230.904629752423716
6292669136.50938088752-524.3262785862899919.81689769877-129.490619112477
6398209869.25650675705-174.4546568603519945.198150103349.2565067570467
641009710071.7159847449148.1342581676299974.14975708747-25.2840152550998
6591158965.52149730002-738.62286137166210003.1013640716-149.478502699976
661041110567.8772587978217.65481378579510036.4679274164156.877258797791
6796789453.0659997365-166.90049049769710069.8344907612-224.934000263493
681040810720.29864439034.8990932263106510090.8022623834312.298644390328
691015310241.5306071074-47.300641112935310111.770034005588.5306071074046
701036810087.1032512669519.33615291561110129.5605958175-280.896748733076
711058110625.5095516253389.13929074529210147.351157629444.5095516253114
721059710873.4076819219155.78166790409110164.8106501741276.407681921859
731068010961.0701323279216.65972495334910182.2701427187281.070132327946
7497389801.4948913326-524.32627858628910198.831387253763.4948913325934
7595569071.06202507167-174.45465686035110215.3926317887-484.937974928334
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291062400sxeebnw4waas5tc/17rsm1291062522.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291062400sxeebnw4waas5tc/17rsm1291062522.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291062400sxeebnw4waas5tc/27rsm1291062522.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291062400sxeebnw4waas5tc/27rsm1291062522.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291062400sxeebnw4waas5tc/3ijap1291062522.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291062400sxeebnw4waas5tc/3ijap1291062522.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291062400sxeebnw4waas5tc/4ijap1291062522.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291062400sxeebnw4waas5tc/4ijap1291062522.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