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 19:27:54 +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/t12927867323hfx2ix4541oait.htm/, Retrieved Sun, 19 Dec 2010 20:25:32 +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/t12927867323hfx2ix4541oait.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 «
8.7000 8.9000 8.9000 8.1000 8.0000 8.3000 8.5000 8.7000 8.6000 8.3000 7.9000 7.9000 8.1000 8.3000 8.1000 7.4000 7.3000 7.7000 8.0000 8.0000 7.7000 6.9000 6.6000 6.9000 7.5000 7.9000 7.7000 6.5000 6.1000 6.4000 6.8000 7.1000 7.3000 7.2000 7.0000 7.0000 7.0000 7.3000 7.5000 7.2000 7.7000 8.0000 7.9000 8.0000 8.0000 7.9000 7.9000 8.0000 8.1000 8.1000 8.2000 8.0000 8.3000 8.5000 8.6000 8.7000 8.7000 8.5000 8.4000 8.5000 8.7000 8.7000 8.6000 7.9000 8.1000 8.2000 8.5000 8.6000 8.5000 8.3000 8.2000 8.7000 9.3000 9.3000 8.8000 7.4000 7.2000 7.5000 8.3000 8.8000 8.9000 8.6000 8.4000 8.4000 8.4000 8.4000 8.3000 7.6000 7.6000 7.9000 8.0000 8.2000 8.3000 8.2000 8.1000 8.0000 7.8000 7.6000 7.5000 6.8000 6.9000 7.1000 7.3000 7.4000 7.6000 7.6000 7.5000 7.5000 6.8000 6.4000 6.2000 6.0000 6.3000 6.3000 6.1000 6.1000 6.3000
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


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


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
18.78.502260597336340.1511794016035138.74656000106015-0.197739402663663
28.98.888015496057720.2250054578530078.68697904608928-0.0119845039422852
38.99.033770470095820.1388314387857688.62739809111840.133770470095824
48.18.16333840350676-0.5303240697985758.566985666291820.0633384035067568
587.94290621403236-0.4494794554975888.50657324146522-0.0570937859676359
68.38.3401357190917-0.1862764290419078.44614070995020.0401357190917047
78.58.567365121085910.04692670047890718.385708178435180.0673651210859116
88.78.838940643683160.2357291772468838.325330179069960.138940643683158
98.68.640516241597240.2945315786980268.264952179704740.0405162415972367
108.38.317488606602060.07947905158698598.203032341810950.0174886066020630
117.97.72320107226537-0.0643135761825368.14111250391717-0.176798927734629
127.97.654216139377260.05871075446860738.08707310615414-0.245783860622745
138.18.015786890005380.1511794016035138.03303370839111-0.0842131099946242
148.38.40025581354190.2250054578530077.974738728605090.100255813541904
158.18.144724812395160.1388314387857687.916443748819070.0447248123951614
167.47.4939088021461-0.5303240697985757.836415267652470.093908802146105
177.37.29309266901172-0.4494794554975887.75638678648587-0.00690733098828211
187.77.91532245289672-0.1862764290419077.670953976145190.215322452896715
1988.367552133716580.04692670047890717.585521165804510.367552133716578
2088.246385337967160.2357291772468837.517885484785960.246385337967163
217.77.655218617534580.2945315786980267.4502498037674-0.0447813824654215
226.96.34115012607750.07947905158698597.37937082233552-0.558849873922503
236.65.9558217352789-0.0643135761825367.30849184090364-0.644178264721102
246.96.515485808858780.05871075446860737.22580343667261-0.384514191141217
257.57.70570556595490.1511794016035137.143115032441580.205705565954903
267.98.487406871353630.2250054578530077.087587670793370.587406871353626
277.78.229108252069080.1388314387857687.032060309145150.52910825206908
286.56.51058790129715-0.5303240697985757.019736168501430.0105879012971455
296.15.64206742763988-0.4494794554975887.0074120278577-0.457932572360119
306.45.99253530671158-0.1862764290419076.99374112233033-0.407464693288424
316.86.573003082718140.04692670047890716.98007021680296-0.226996917281864
327.16.995142985627540.2357291772468836.96912783712558-0.104857014372461
337.37.347282963853770.2945315786980266.95818545744820.0472829638537737
347.27.309793927187830.07947905158698597.010727021225180.109793927187832
3577.00104499118037-0.0643135761825367.063268585002160.00104499118037182
3676.776161790280320.05871075446860737.16512745525107-0.223838209719680
3776.58183427289650.1511794016035137.26698632549998-0.418165727103494
387.37.015681316630520.2250054578530077.35931322551647-0.284318683369476
397.57.409528435681270.1388314387857687.45164012553296-0.090471564318726
407.27.39832457951408-0.5303240697985757.53199949028450.198324579514082
417.78.23712060046156-0.4494794554975887.612358855036030.537120600461559
4288.49660702882084-0.1862764290419077.689669400221070.496607028820836
437.97.986093354114980.04692670047890717.766979945406110.0860933541149791
4487.937965582869390.2357291772468837.82630523988373-0.0620344171306098
4587.819837886940630.2945315786980267.88563053436134-0.180162113059366
467.97.78798663133870.07947905158698597.93253431707431-0.112013368661296
477.97.88487547639526-0.0643135761825367.97943809978728-0.0151245236047446
4887.905571690056540.05871075446860738.03571755547485-0.0944283099434555
498.17.956823587234070.1511794016035138.09199701116242-0.143176412765929
508.17.8171389077910.2250054578530078.157855634356-0.282861092209007
518.28.037454303664650.1388314387857688.22371425754958-0.162545696335352
5288.24909673960108-0.5303240697985758.28122733019750.249096739601079
538.38.71073905265218-0.4494794554975888.33874040284540.410739052652181
548.58.80132427182254-0.1862764290419078.384952157219360.301324271822542
558.68.721909387927770.04692670047890718.431163911593320.121909387927770
568.78.705020711787740.2357291772468838.459250110965380.00502071178773811
578.78.618132110964540.2945315786980268.48733631033743-0.0818678890354594
588.58.432404943209940.07947905158698598.48811600520308-0.067595056790065
598.48.37541787611381-0.0643135761825368.48889570006873-0.0245821238861890
608.58.463671943830270.05871075446860738.47761730170112-0.0363280561697277
618.78.782481695062970.1511794016035138.466338903333510.0824816950629739
628.78.718916203471830.2250054578530078.456078338675170.0189162034718269
638.68.615350787197410.1388314387857688.445817774016820.0153507871974128
647.97.89626808765296-0.5303240697985758.43405598214562-0.00373191234704073
658.18.22718526522317-0.4494794554975888.422294190274410.127185265223174
668.28.15697751872669-0.1862764290419078.42929891031521-0.043022481273308
678.58.516769669165080.04692670047890718.436303630356010.0167696691650789
688.68.506016432647850.2357291772468838.45825439010527-0.0939835673521543
698.58.225263271447450.2945315786980268.48020514985453-0.274736728552554
708.38.047610357761780.07947905158698598.47291059065123-0.252389642238217
718.27.9986975447346-0.0643135761825368.46561603144793-0.201302455265399
728.78.90567486077560.05871075446860738.435614384755790.205674860775604
739.310.04320786033280.1511794016035138.405612738063640.743207860332847
749.39.979943534499320.2250054578530078.395051007647680.679943534499317
758.89.076679283982520.1388314387857688.384489277231710.276679283982521
767.46.94807974932132-0.5303240697985758.38224432047725-0.451920250678677
777.26.4694800917748-0.4494794554975888.3799993637228-0.730519908225206
787.56.83155448414625-0.1862764290419078.35472194489565-0.668445515853746
798.38.223628773452580.04692670047890718.32944452606851-0.076371226547419
808.89.061080256952620.2357291772468838.30319056580050.261080256952622
818.99.22853181576950.2945315786980268.276936605532480.328531815769495
828.68.8412402057910.07947905158698598.2792807426220.241240205791007
838.48.582688696471-0.0643135761825368.281624879711530.182688696471006
848.48.464742905245650.05871075446860738.276546340285740.0647429052456499
858.48.377352797536530.1511794016035138.27146780085995-0.0226472024634656
868.48.340663996779840.2250054578530078.23433054536715-0.0593360032201602
878.38.263975271339880.1388314387857688.19719328987435-0.0360247286601201
887.67.57171324096232-0.5303240697985758.15861082883625-0.0282867590376785
897.67.52945108769944-0.4494794554975888.12002836779815-0.0705489123005627
907.97.9017118469381-0.1862764290419078.084564582103810.00171184693809501
9187.903972503111620.04692670047890718.04910079640948-0.0960274968883832
928.28.165297353035370.2357291772468837.99897346971775-0.0347026469646341
938.38.356622278275950.2945315786980267.948846143026030.0566222782759489
948.28.435511045037830.07947905158698597.885009903375180.235511045037829
958.18.4431399124582-0.0643135761825367.821173663724340.343139912458195
9688.189242199437350.05871075446860737.752047046094040.189242199437351
977.87.765900169932750.1511794016035137.68292042846374-0.0340998300672544
987.67.362313120516590.2250054578530077.6126814216304-0.237686879483414
997.57.318726146417160.1388314387857687.54244241479707-0.181273853582842
1006.86.645628001655-0.5303240697985757.48469606814358-0.154371998345004
1016.96.8225297340075-0.4494794554975887.42694972149008-0.0774702659924955
1027.17.01010743885044-0.1862764290419077.37616899019147-0.0898925611495631
1037.37.227685040628240.04692670047890717.32538825889286-0.0723149593717647
1047.47.308420784184360.2357291772468837.25585003856876-0.0915792158156403
1057.67.719156603057310.2945315786980267.186311818244660.119156603057315
1067.68.015127504471720.07947905158698597.105393443941290.415127504471721
1077.58.03983850654461-0.0643135761825367.024475069637920.539838506544611
1087.58.011525109832790.05871075446860736.92976413569860.51152510983279
1096.86.61376739663720.1511794016035136.83505320175928-0.186232603362796
1106.45.852674673726770.2250054578530076.72231986842023-0.547325326273233
1116.25.651582026133060.1388314387857686.60958653508117-0.54841797386694
11266.03845310611077-0.5303240697985756.49187096368780.0384531061107722
1136.36.67532406320316-0.4494794554975886.374155392294430.375324063203156
1146.36.52975833040326-0.1862764290419076.256518098638640.229758330403264
1156.16.014192494538240.04692670047890716.13888080498285-0.0858075054617613
1166.15.942124817186230.2357291772468836.02214600556689-0.157875182813775
1176.36.400057215151040.2945315786980265.905411206150930.100057215151042
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927867323hfx2ix4541oait/1puj21292786869.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927867323hfx2ix4541oait/1puj21292786869.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927867323hfx2ix4541oait/30lin1292786869.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927867323hfx2ix4541oait/30lin1292786869.ps (open in new window)


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