Home » date » 2010 » Dec » 27 »

Paper Statistiek

*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, 27 Dec 2010 13:47:55 +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/27/t1293457606zbg28gecv0vt1vg.htm/, Retrieved Mon, 27 Dec 2010 14:46:51 +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/27/t1293457606zbg28gecv0vt1vg.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:
Decomposition by Loess - Handelsbalans Belgiƫ (1995-2009)
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2540,9 2370,3 1807,5 1834,8 786,8 1561,4 1347,2 1549,8 1553,8 1822,5 3078,7 1589,1 1791,5 2558,1 2111,8 2083,1 2052,1 2243,5 2622 1952,6 808,9 1709,8 1582,1 865,6 1116,1 1119,4 2350 1975,6 2536,5 2785 2819,7 1829,5 758,3 2921,6 2482 1892,7 1855,1 2151,3 1642,2 1640,5 1366,1 1532,8 824,4 -518,7 -978,5 1162,5 1243,4 1199,5 883,1 1437,2 534,5 -1901,9 -2521,1 -1721,1 -3094,5 -3694,8 -2492,1 -464,6 -626,1 -1711,4
 
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'Gwilym Jenkins' @ 72.249.127.135


Seasonal Decomposition by Loess - Parameters
ComponentWindowDegreeJump
Seasonal601061
Trend711
Low-pass511


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
12540.92880.02732339672-398.6831620801542600.45583868343339.127323396724
22370.32054.99149348091421.2672003466182264.34130617247-315.308506519086
31807.51377.05303409893306.8765465933961931.07041930767-430.446965901069
41834.82379.89671672659-329.4617918273521619.16507510076545.096716726588
5786.8530.476221608482-398.6831620801541441.80694047167-256.323778391518
61561.41398.94021212128421.2672003466181302.59258753210-162.459787878720
71347.21000.72919002207306.8765465933961386.79426338453-346.470809977926
81549.81867.90208983971-329.4617918273521561.15970198764318.102089839709
91553.81723.19346995828-398.6831620801541783.08969212187169.393469958283
101822.51230.17713463162421.2672003466181993.55566502176-592.322865368381
113078.73789.036938585306.8765465933962061.48651482161710.336938584998
121589.11330.61969741937-329.4617918273522177.04209440798-258.480302580628
131791.51855.17033263248-398.6831620801542126.5128294476763.6703326324823
142558.12623.76883427618421.2672003466182071.163965377265.6688342761836
152111.81767.74561938603306.8765465933962148.97783402057-344.054380613969
162083.12315.74409098944-329.4617918273522179.91770083792232.644090989435
172052.12301.24565051652-398.6831620801542201.63751156364249.145650516518
182243.51850.90572669130421.2672003466182214.82707296208-392.594273308695
1926222854.08684143253306.8765465933962083.03661197408232.086841432525
201952.62365.01949764427-329.4617918273521869.64229418308412.419497644267
21808.9395.084205603886-398.6831620801541621.39895647627-413.815794396114
221709.81643.91203547041421.2672003466181354.42076418297-65.8879645295924
231582.11582.03855317312306.8765465933961275.28490023348-0.0614468268772725
24865.6803.444028334514-329.4617918273521257.21776349284-62.1559716654856
251116.11378.55644703613-398.6831620801541252.32671504403262.456447036126
261119.4354.687124609232421.2672003466181462.84567504415-764.712875390768
2723502591.28727890290306.8765465933961801.83617450371241.287278902896
281975.62036.11295824872-329.4617918273522244.5488335786360.5129582487207
292536.52976.07926539425-398.6831620801542495.60389668591439.579265394248
3027852626.622409509421.2672003466182522.11039014438-158.377590490999
312819.73042.04808433743306.8765465933962290.47536906918222.348084337427
321829.51941.02429185059-329.4617918273522047.43749997677111.524291850585
33758.3-80.5338373597629-398.6831620801541995.81699943992-838.833837359763
342921.63411.38266486958421.2672003466182010.5501347838489.782664869581
3524822480.55981825065306.8765465933962176.56363515595-1.44018174934945
361892.71918.05988551401-329.4617918273522196.8019063133425.3598855140076
371855.12097.25568413316-398.6831620801542011.62747794699242.155684133160
382151.32044.97128368617421.2672003466181836.36151596721-106.328716313827
391642.21243.42546373594306.8765465933961734.09798967066-398.774536264057
401640.51965.7116024689-329.4617918273521644.75018935845325.211602468898
411366.11648.74214230281-398.6831620801541482.14101977734282.642142302815
421532.81561.87065184999421.2672003466181082.4621478033929.0706518499890
43824.4838.308144216057306.876546593396503.61530919054813.9081442160567
44-518.7-823.010105517499-329.461791827352115.071897344851-304.310105517499
45-978.5-1678.84538899553-398.683162080154120.528551075688-700.345388995534
461162.51465.41165203573421.267200346618438.32114761765302.911652035732
471243.41258.74850123841306.876546593396921.17495216819715.3485012384079
481199.51544.91068791836-329.4617918273521183.55110390899345.410687918363
49883.11027.90511159386-398.6831620801541136.97805048630144.805111593856
501437.21778.79881504442421.267200346618674.333984608964341.598815044418
51534.5923.556928221235306.876546593396-161.433474814630389.056928221235
52-1901.9-2424.35766572906-329.461791827352-1049.98054244359-522.457665729055
53-2521.1-2764.15704080058-398.683162080154-1879.35979711927-243.057040800580
54-1721.1-1338.08178074098421.267200346618-2525.38541960563383.018219259016
55-3094.5-3685.36280761438306.876546593396-2810.51373897902-590.862807614378
56-3694.8-4382.10815696718-329.461791827352-2678.03005120547-687.308156967177
57-2492.1-2460.8357329274-398.683162080154-2124.6811049924531.2642670726023
58-464.6293.905241180022421.267200346618-1644.37244152664758.505241180022
59-626.1-346.63271595239306.876546593396-1212.44383064101279.46728404761
60-1711.4-2265.006843383-329.461791827352-828.33136478965-553.606843382998
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293457606zbg28gecv0vt1vg/1bi8x1293457672.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293457606zbg28gecv0vt1vg/1bi8x1293457672.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293457606zbg28gecv0vt1vg/2bi8x1293457672.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293457606zbg28gecv0vt1vg/2bi8x1293457672.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293457606zbg28gecv0vt1vg/3y70b1293457672.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293457606zbg28gecv0vt1vg/3y70b1293457672.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293457606zbg28gecv0vt1vg/4y70b1293457672.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293457606zbg28gecv0vt1vg/4y70b1293457672.ps (open in new window)


 
Parameters (Session):
par1 = 4 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = FALSE ;
 
Parameters (R input):
par1 = 4 ; 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