Home » date » 2010 » Dec » 29 »

LOESS - NWWZ

*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: Wed, 29 Dec 2010 21:43:05 +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/29/t12936588684b0yw31c2jnfmuv.htm/, Retrieved Wed, 29 Dec 2010 22:41:08 +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/29/t12936588684b0yw31c2jnfmuv.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 «
206010 198112 194519 185705 180173 176142 203401 221902 197378 185001 176356 180449 180144 173666 165688 161570 156145 153730 182698 200765 176512 166618 158644 159585 163095 159044 155511 153745 150569 150605 179612 194690 189917 184128 175335 179566 181140 177876 175041 169292 166070 166972 206348 215706 202108 195411 193111 195198 198770 194163 190420 189733 186029 191531 232571 243477 227247 217859 208679 213188 216234 213586 209465 204045 200237 203666 241476 260307 243324 244460 233575 237217 235243 230354 227184 221678 217142 219452 256446 265845 248624 241114 229245 231805 219277 219313 212610 214771 211142 211457 240048 240636 230580 208795 197922 194596 194581 185686 178106 172608 167302 168053 202300 202388 182516 173476 166444 171297 169701 164182 161914 159612 151001 158114 186530 187069 174330 169362 166827 178037 186413 189226 191563 188906 186005 195309 223532 226899 etc...
 
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
Seasonal14310144
Trend1912
Low-pass1312


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
1206010207466.670204550-278.167016693461204831.4968121441456.67020454956
2198112197788.980184734-4093.16961067616202528.189425942-323.019815265812
3194519196956.873667936-8143.75570767554200224.882039742437.87366793552
4185705185176.525741265-11724.4506993451197957.92495808-528.474258734816
5180173180989.178167715-16334.1460441350195690.967876420816.17816771532
6176142172992.538082139-14155.6645696925193447.126487553-3149.46191786067
7203401197205.06121080718393.6536905068191203.285098687-6195.93878919349
8221902227689.60679031227148.9477498811188965.4454598075787.60679031172
9197378196773.39926355411254.9949155187186727.605820928-604.600736446417
10185001182588.1549674932771.38997611633184642.455056391-2412.84503250718
11176356174907.246004055-4752.55029590935182557.304291854-1448.75399594457
12180449180322.124943311-87.0840112224144180662.959067911-126.875056688674
13180144181797.553172725-278.167016693461178768.6138439681653.55317272517
14173666174404.670375606-4093.16961067616177020.499235070738.670375606423
15165688164247.371081504-8143.75570767554175272.384626171-1440.62891849567
16161570161224.159464909-11724.4506993451173640.291234436-345.840535091149
17156145156615.948201434-16334.1460441350172008.197842701470.948201433814
18153730151116.353631337-14155.6645696925170499.310938355-2613.64636866277
19182698178011.92227548418393.6536905068168990.424034009-4686.07772451613
20200765206597.83361848627148.9477498811167783.2186316335832.83361848572
21176512175192.99185522411254.9949155187166576.013229257-1319.00814477578
22166618164599.5745810432771.38997611633165865.035442841-2018.42541895705
23158644156886.492639485-4752.55029590935165154.057656424-1757.50736051495
24159585154470.238820171-87.0840112224144164786.845191051-5114.76117982884
25163095162048.534291015-278.167016693461164419.632725678-1046.46570898479
26159044157557.678723512-4093.16961067616164623.490887164-1486.32127648804
27155511154338.406659025-8143.75570767554164827.349048650-1172.59334097465
28153745153324.816630088-11724.4506993451165889.634069257-420.183369912236
29150569150520.226954271-16334.1460441350166951.919089864-48.7730457294092
30150605146815.506467788-14155.6645696925168550.158101905-3789.49353221231
31179612170681.94919554818393.6536905068170148.397113945-8930.05080445201
32194690190408.03029890127148.9477498811171823.021951218-4281.96970109921
33189917195081.35829599011254.9949155187173497.6467884915164.35829599021
34184128190371.0460351692771.38997611633175113.5639887156243.04603516855
35175335178693.069106970-4752.55029590935176729.4811889393358.06910697019
36179566180957.136367289-87.0840112224144178261.9476439331391.13636728912
37181140182763.752917766-278.167016693461179794.4140989271623.75291776599
38177876178718.257423676-4093.16961067616181126.912187001842.257423675648
39175041175766.345432602-8143.75570767554182459.410275074725.345432601986
40169292166668.018241632-11724.4506993451183640.432457713-2623.9817583682
41166070163652.691403782-16334.1460441350184821.454640353-2417.30859621795
42166972161911.043992117-14155.6645696925186188.620577576-5060.9560078833
43206348206746.55979469518393.6536905068187555.786514799398.559794694535
44215706215179.03835647327148.9477498811189084.013893646-526.961643526622
45202108202348.76381198911254.9949155187190612.241272492240.763811988902
46195411195778.5109917542771.38997611633192272.09903213367.510991753516
47193111197042.593504141-4752.55029590935193931.9567917683931.59350414146
48195198194679.486309874-87.0840112224144195803.597701348-518.513690125925
49198770200142.928405765-278.167016693461197675.2386109291372.92840576466
50194163192731.085540410-4093.16961067616199688.084070266-1431.91445959022
51190420187282.826178072-8143.75570767554201700.929529604-3137.17382192842
52189733187596.222054355-11724.4506993451203594.228644990-2136.77794564524
53186029182904.618283758-16334.1460441350205487.527760377-3124.38171624165
54191531190054.630355666-14155.6645696925207163.034214027-1476.36964433425
55232571237909.80564181618393.6536905068208838.5406676775338.80564181632
56243477249420.14867662027148.9477498811210384.9035734995943.14867662027
57227247231307.73860516111254.9949155187211931.2664793204060.73860516085
58217859219786.7776142052771.38997611633213159.8324096791927.77761420491
59208679207722.151955872-4752.55029590935214388.398340037-956.848044127692
60213188211168.790521504-87.0840112224144215294.293489719-2019.20947849611
61216234216545.978377293-278.167016693461216200.1886394311.978377293475
62213586213918.824633782-4093.16961067616217346.344976894332.824633781653
63209465208581.254393286-8143.75570767554218492.501314389-883.74560671352
64204045199521.627831967-11724.4506993451220292.822867378-4523.37216803318
65200237194715.001623768-16334.1460441350222093.144420367-5521.9983762324
66203666197361.138860848-14155.6645696925224126.525708844-6304.86113915197
67241476238398.43931217218393.6536905068226159.906997322-3077.56068782837
68260307265469.12069579727148.9477498811227995.9315543225162.12069579668
69243324245561.04897315811254.9949155187229831.9561113232237.04897315835
70244460254791.4906100722771.38997611633231357.11941381210331.4906100718
71233575239020.267579609-4752.55029590935232882.2827163015445.26757960854
72237217240598.562147116-87.0840112224144233922.5218641073381.56214711576
73235243235801.406004781-278.167016693461234962.761011912558.406004780991
74230354229413.365899866-4093.16961067616235387.803710811-940.634100134455
75227184226698.909297967-8143.75570767554235812.846409709-485.090702033194
76221678219297.740997635-11724.4506993451235782.709701710-2380.25900236543
77217142214865.573050423-16334.1460441350235752.572993712-2276.42694957726
78219452217766.87833946-14155.6645696925235292.786230232-1685.12166053988
79256446259665.34684274118393.6536905068234832.9994667523219.34684274069
80265845270556.84234427627148.9477498811233984.2099058434711.84234427573
81248624252857.58473954711254.9949155187233135.4203449344233.58473954746
82241114247295.9882642292771.38997611633232160.6217596556181.98826422871
83229245232056.727121533-4752.55029590935231185.8231743762811.72712153327
84231805233678.56145647-87.0840112224144230018.5225547531873.56145646988
85219277209980.945081564-278.167016693461228851.221935129-9296.05491843552
86219313215499.736373526-4093.16961067616227219.433237150-3813.26362647422
87212610207776.111168504-8143.75570767554225587.644539172-4833.88883149627
88214771217769.088466773-11724.4506993451223497.3622325722998.08846677348
89211142217211.066118164-16334.1460441350221407.0799259716069.0661181637
90211457218120.427521818-14155.6645696925218949.2370478756663.42752181797
91240048245210.95213971518393.6536905068216491.3941697785162.9521397154
92240636240582.05132301827148.9477498811213541.000927101-53.9486769824289
93230580239314.39740005611254.9949155187210590.6076844258734.39740005636
94208795207748.875517742771.38997611633207069.734506144-1046.12448225988
95197922197047.688968047-4752.55029590935203548.861327862-874.31103195282
96194596189334.298929286-87.0840112224144199944.785081937-5261.70107071416
97194581193099.458180682-278.167016693461196340.708836011-1481.54181931756
98185686182461.980256939-4093.16961067616193003.189353738-3224.01974306148
99178106174690.085836211-8143.75570767554189665.669871464-3415.91416378875
100172608170170.110371967-11724.4506993451186770.340327379-2437.88962803347
101167302167063.135260842-16334.1460441350183875.010783293-238.864739157783
102168053168651.559748150-14155.6645696925181610.104821543598.55974814971
103202300206861.14744970018393.6536905068179345.1988597934561.14744970042
104202388200033.73713096427148.9477498811177593.315119155-2354.26286903585
105182516177935.57370596511254.9949155187175841.431378517-4580.42629403548
106173476169695.5199577822771.38997611633174485.090066101-3780.48004221782
107166444164511.801542223-4752.55029590935173128.748753686-1932.19845777683
108171297170609.237822003-87.0840112224144172071.84618922-687.762177997472
109169701168665.22339194-278.167016693461171014.943624754-1035.77660806014
110164182162276.012608613-4093.16961067616170181.157002063-1905.98739138679
111161914162624.385328303-8143.75570767554169347.370379372710.385328303208
112159612161996.551965578-11724.4506993451168951.8987337672384.55196557759
113151001149779.718955972-16334.1460441350168556.427088163-1221.28104402759
114158114161374.133545677-14155.6645696925169009.5310240153260.13354567735
115186530185203.71134962618393.6536905068169462.634959868-1326.28865037448
116187069175873.50406538127148.9477498811171115.548184738-11195.4959346192
117174330164636.54367487311254.9949155187172768.461409609-9693.4563251273
118169362160501.1901115862771.38997611633175451.419912297-8860.80988841379
119166827160272.171880923-4752.55029590935178134.378414986-6554.82811907693
120178037174617.566858656-87.0840112224144181543.517152566-3419.43314134405
121186413188151.511126547-278.167016693461184952.6558901471738.51112654683
122189226194035.884477418-4093.16961067616188509.2851332584809.884477418
123191563199203.841331306-8143.75570767554192065.9143763707640.84133130583
124188906194287.695773808-11724.4506993451195248.7549255375381.69577380797
125186005189912.550569431-16334.1460441350198431.5954747053907.55056943052
126195309203757.563973539-14155.6645696925201016.1005961548448.56397353881
127223532225069.74059189018393.6536905068203600.6057176031537.74059189027
128226899221208.1222460927148.9477498811205440.930004029-5690.8777539102
129214126209715.75079402611254.9949155187207281.254290455-4410.24920597399
130206903202577.2473880522771.38997611633208457.362635832-4325.75261194803
131204442204003.079314701-4752.55029590935209633.470981208-438.920685298712
132220375230456.056663188-87.0840112224144210381.02734803410081.0566631884
133214320217789.583301833-278.167016693461211128.583714863469.58330183339
134212588218320.430056142-4093.16961067616210948.7395545345732.43005614245
135205816209006.860313468-8143.75570767554210768.8953942073190.86031346818
136202196206210.366817123-11724.4506993451209906.0838822224014.36681712305
137195722198734.873673898-16334.1460441350209043.2723702373012.87367389837
138198563203186.429182857-14155.6645696925208095.2353868364623.42918285669
139229139232737.14790605818393.6536905068207147.1984034353598.14790605821
140229527225850.23820253527148.9477498811206054.814047584-3676.76179746469
141211868207518.57539274911254.9949155187204962.429691732-4349.42460725096
142203555200624.1834140152771.38997611633203714.426609868-2930.81658598469
143195770193826.126767905-4752.55029590935202466.423528004-1943.87323209509
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t12936588684b0yw31c2jnfmuv/161mu1293658980.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t12936588684b0yw31c2jnfmuv/161mu1293658980.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t12936588684b0yw31c2jnfmuv/2yb3f1293658980.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t12936588684b0yw31c2jnfmuv/2yb3f1293658980.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t12936588684b0yw31c2jnfmuv/3yb3f1293658980.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t12936588684b0yw31c2jnfmuv/3yb3f1293658980.ps (open in new window)


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