Home » date » 2010 » Dec » 26 »

LOESS Dollar

*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, 26 Dec 2010 13:01:50 +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/26/t1293368396iqgc172lsef40ug.htm/, Retrieved Sun, 26 Dec 2010 14:00:00 +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/26/t1293368396iqgc172lsef40ug.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 «
0,8973 0,9383 0,9217 0,9095 0,892 0,8742 0,8532 0,8607 0,9005 0,9111 0,9059 0,8883 0,8924 0,8833 0,87 0,8758 0,8858 0,917 0,9554 0,9922 0,9778 0,9808 0,9811 1,0014 1,0183 1,0622 1,0773 1,0807 1,0848 1,1582 1,1663 1,1372 1,1139 1,1222 1,1692 1,1702 1,2286 1,2613 1,2646 1,2262 1,1985 1,2007 1,2138 1,2266 1,2176 1,2218 1,249 1,2991 1,3408 1,3119 1,3014 1,3201 1,2938 1,2694 1,2165 1,2037 1,2292 1,2256 1,2015 1,1786 1,1856 1,2103 1,1938 1,202 1,2271 1,277 1,265 1,2684 1,2811 1,2727 1,2611 1,2881 1,3213 1,2999 1,3074 1,3242 1,3516 1,3511 1,3419 1,3716 1,3622 1,3896 1,4227 1,4684 1,457 1,4718 1,4748 1,5527 1,575 1,5557 1,5553 1,577 1,4975 1,4369 1,3322 1,2732 1,3449 1,3239 1,2785 1,305 1,319 1,365 1,4016 1,4088 1,4268 1,4562 1,4816 1,4914 1,4614 1,4272 1,3686 1,3569 1,3406 1,2565 1,2208 1,277 1,2894 1,3067 1,3898 1,3661
 
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
Seasonal12010121
Trend1912
Low-pass1312


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
10.89730.878267073169820.007752036327524580.908580890502655-0.0190329268301795
20.93830.9620041827870660.008589669804546870.9060061474083870.0237041827870664
30.92170.9479912771159-0.008022681430019080.9034314043141190.0262912771159005
40.90950.91979580081931-0.001964066054488960.9011682652351780.0102958008193107
50.8920.888990325529938-0.003895451686175770.898905126156238-0.00300967447006228
60.87420.852782792587538-0.001142755842568030.89675996325503-0.0214172074124621
70.85320.819335284208058-0.007550084561880780.894614800353822-0.0338647157919415
80.86070.8259275677852840.003390236018755750.89208219619596-0.0347724322147160
90.90050.913179849079709-0.001729441117807530.8895495920380980.0126798490797091
100.91110.935880909782224-0.001542959291259250.8878620495090350.0247809097822242
110.90590.9226919815384170.002933511481611160.8861745069799720.0167919815384171
120.88830.884297977374630.003182000347286680.889120022278083-0.00400202262536997
130.89240.884982426096280.007752036327524580.892065537576195-0.00741757390371933
140.88330.85948476291710.008589669804546870.898525567278353-0.0238152370828996
150.870.843037084449508-0.008022681430019080.90498559698051-0.0269629155504916
160.87580.840664612086668-0.001964066054488960.912899453967821-0.0351353879133325
170.88580.854682140731044-0.003895451686175770.920813310955132-0.0311178592689565
180.9170.903949834554846-0.001142755842568030.931192921287722-0.0130501654451540
190.95540.976777552941569-0.007550084561880780.9415725316203120.0213775529415688
200.99221.025365815851120.003390236018755750.9556439481301230.0331658158511213
210.97780.987614076477874-0.001729441117807530.9697153646399340.00981407647787358
220.98080.97715540473648-0.001542959291259250.985987554554779-0.00364459526351957
230.98110.9570067440487650.002933511481611161.00225974446962-0.0240932559512349
241.00140.9805709668939740.003182000347286681.01904703275874-0.0208290331060259
251.01830.993013642624620.007752036327524581.03583432104786-0.0252863573753797
261.06221.064648502297890.008589669804546871.051161827897560.00244850229788907
271.07731.09613334668275-0.008022681430019081.066489334747270.0188333466827459
281.08071.08255586169858-0.001964066054488961.080808204355910.00185586169858087
291.08481.07836837772163-0.003895451686175771.09512707396454-0.00643162227836713
301.15821.20810873412947-0.001142755842568031.109434021713100.0499087341294655
311.16631.21640911510022-0.007550084561880781.123740969461660.0501091151002186
321.13721.132782550801490.003390236018755751.13822721317975-0.00441744919850806
331.11391.07681598421996-0.001729441117807531.15271345689784-0.0370840157800354
341.12221.08136764237426-0.001542959291259251.164575316917-0.0408323576257406
351.16921.159029311582230.002933511481611161.17643717693616-0.0101706884177684
361.17021.152376250487310.003182000347286681.18484174916540-0.0178237495126898
371.22861.256201642277830.007752036327524581.193246321394650.0276016422778267
381.26131.313557341244380.008589669804546871.200452988951070.0522573412443839
391.26461.32956302492253-0.008022681430019081.207659656507490.0649630249225288
401.22621.23975630970790-0.001964066054488961.214607756346590.0135563097079032
411.19851.17933959550049-0.003895451686175771.22155585618568-0.0191604044995055
421.20071.17476967771972-0.001142755842568031.22777307812285-0.0259303222802774
431.21381.20115978450187-0.007550084561880781.23399030006001-0.0126402154981289
441.22661.209371761306810.003390236018755751.24043800267444-0.0172282386931912
451.21761.19004373582895-0.001729441117807531.24688570528886-0.0275562641710536
461.22181.19063618535194-0.001542959291259251.25450677393932-0.0311638146480571
471.2491.232938645928620.002933511481611161.26212784258977-0.0160613540713828
481.29911.326944440691970.003182000347286681.268073558960740.0278444406919731
491.34081.399828688340770.007752036327524581.274019275331710.0590286883407667
501.31191.339893129417710.008589669804546871.275317200777740.0279931294177103
511.30141.33420755520624-0.008022681430019081.276615126223780.0328075552062419
521.32011.36924607188081-0.001964066054488961.272917994173680.0491460718808117
531.29381.32227458956260-0.003895451686175771.269220862123580.0284745895625980
541.26941.27972304383652-0.001142755842568031.260219712006050.0103230438365212
551.21651.18933152267336-0.007550084561880781.25121856188852-0.0271684773266354
561.20371.163616335190890.003390236018755751.24039342879035-0.0400836648091101
571.22921.23056114542561-0.001729441117807531.229568295692190.00136114542561483
581.22561.23062341665358-0.001542959291259251.222119542637680.00502341665358341
591.20151.185395698935230.002933511481611161.21467078958316-0.0161043010647699
601.17861.140278433544730.003182000347286681.21373956610799-0.0383215664552727
611.18561.150639621039660.007752036327524581.21280834263281-0.0349603789603383
621.21031.194894046523450.008589669804546871.21711628367200-0.0154059534765498
631.19381.17419845671883-0.008022681430019081.22142422471119-0.0196015432811729
641.2021.17802585745309-0.001964066054488961.2279382086014-0.0239741425469111
651.22711.22364325919457-0.003895451686175771.23445219249161-0.00345674080543268
661.2771.31224957731953-0.001142755842568031.242893178523040.0352495773195254
671.2651.28621592000740-0.007550084561880781.251334164554480.0212159200074040
681.26841.273136257026540.003390236018755751.260273506954710.00473625702653813
691.28111.29471659176287-0.001729441117807531.269212849354940.0136165917628717
701.27271.26925875140074-0.001542959291259251.27768420789052-0.00344124859925921
711.26111.233110922092290.002933511481611161.2861555664261-0.0279890779077121
721.28811.279075867350090.003182000347286681.29394213230263-0.00902413264991497
731.32131.333119265493320.007752036327524581.301728698179160.0118192654933198
741.29991.281234197233930.008589669804546871.30997613296152-0.0186658027660653
751.30741.30459911368614-0.008022681430019081.31822356774388-0.00280088631386244
761.32421.32190944190828-0.001964066054488961.32845462414621-0.00229055809171674
771.35161.36840977113765-0.003895451686175771.338685680548530.0168097711376456
781.35111.35213297902282-0.001142755842568031.351209776819750.00103297902281874
791.34191.32761621147091-0.007550084561880781.36373387309097-0.0142837885290874
801.37161.362001052830170.003390236018755751.37780871115108-0.0095989471698339
811.36221.33424589190662-0.001729441117807531.39188354921119-0.0279541080933805
821.38961.37216434584800-0.001542959291259251.40857861344326-0.0174356541520031
831.42271.417192810843050.002933511481611161.42527367767534-0.00550718915694737
841.46841.489996718075650.003182000347286681.443621281577060.0215967180756518
851.4571.444279078193690.007752036327524581.46196888547879-0.0127209218063109
861.47181.457413095533540.008589669804546871.47759723466191-0.0143869044664597
871.47481.46439709758498-0.008022681430019081.49322558384504-0.0104029024150198
881.55271.60943270876027-0.001964066054488961.497931357294220.056732708760268
891.5751.65125832094277-0.003895451686175771.502637130743400.0762583209427734
901.55571.61827839442782-0.001142755842568031.494264361414750.0625783944278173
911.55531.63225849247578-0.007550084561880781.48589159208610.0769584924757811
921.5771.681952899613150.003390236018755751.468656864368100.104952899613146
931.49751.54530730446771-0.001729441117807531.451422136650100.0478073044677112
941.43691.44568092984733-0.001542959291259251.429662029443930.00878092984732537
951.33221.253564566280620.002933511481611161.40790192223777-0.0786354337193829
961.27321.154525511666640.003182000347286681.38869248798607-0.118674488333357
971.34491.312564909938110.007752036327524581.36948305373437-0.0323350900618937
981.32391.278892766004160.008589669804546871.36031756419130-0.0450072339958449
991.27851.21387060678179-0.008022681430019081.35115207464823-0.064629393218208
1001.3051.25639510072518-0.001964066054488961.35556896532931-0.0486048992748245
1011.3191.28190959567578-0.003895451686175771.3599858560104-0.0370904043242237
1021.3651.35807883132040-0.001142755842568031.37306392452217-0.00692116867959713
1031.40161.42460809152795-0.007550084561880781.386141993033930.02300809152795
1041.40881.416563783820430.003390236018755751.397645980160810.00776378382043186
1051.42681.44617947383011-0.001729441117807531.409149967287690.0193794738301132
1061.45621.50058960115251-0.001542959291259251.413353358138740.0443896011525149
1071.48161.542709739528590.002933511481611161.417556748989790.0611097395285944
1081.49141.568695150905500.003182000347286681.410922848747210.0772951509055015
1091.46141.510759015167850.007752036327524581.404288948504630.049359015167846
1101.42721.455499716817930.008589669804546871.390310613377520.0282997168179329
1111.36861.36889040317961-0.008022681430019081.376332278250410.000290403179607823
1121.35691.35052462391047-0.001964066054488961.36523944214402-0.00637537608953442
1131.34061.33094884564854-0.003895451686175771.35414660603764-0.00965115435145991
1141.25651.16956625543929-0.001142755842568031.34457650040328-0.086933744560713
1151.22081.11414368979295-0.007550084561880781.33500639476893-0.106656310207045
1161.2771.225231402057760.003390236018755751.32537836192348-0.0517685979422375
1171.28941.26477911203977-0.001729441117807531.31575032907804-0.0246208879602297
1181.30671.30786948655402-0.001542959291259251.307073472737240.00116948655401528
1191.38981.478269872121940.002933511481611161.298396616396450.0884698721219381
1201.36611.438060706842120.003182000347286681.290957292810590.0719607068421186
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293368396iqgc172lsef40ug/1he341293368506.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293368396iqgc172lsef40ug/1he341293368506.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293368396iqgc172lsef40ug/2r5k71293368506.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293368396iqgc172lsef40ug/2r5k71293368506.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293368396iqgc172lsef40ug/3r5k71293368506.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293368396iqgc172lsef40ug/3r5k71293368506.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293368396iqgc172lsef40ug/42xja1293368506.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293368396iqgc172lsef40ug/42xja1293368506.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