Home » date » 2010 » Dec » 08 »

*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, 08 Dec 2010 15:32:21 +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/08/t1291822793gcadgceay2vo03o.htm/, Retrieved Wed, 08 Dec 2010 16:39:54 +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/08/t1291822793gcadgceay2vo03o.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 «
186448 190530 194207 190855 200779 204428 207617 212071 214239 215883 223484 221529 225247 226699 231406 232324 237192 236727 240698 240688 245283 243556 247826 245798 250479 249216 251896 247616 249994 246552 248771 247551 249745 245742 249019 245841 248771 244723 246878 246014 248496 244351 248016 246509 249426 247840 251035 250161 254278 250801 253985 249174 251287 247947 249992 243805 255812 250417 253033 248705 253950 251484 251093 245996 252721 248019 250464 245571 252690 250183 253639 254436 265280 268705 270643 271480
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


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


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
1186448185050.8246000831690.03762222191186155.137777695-1397.17539991738
2190530192770.117494401-950.9576102756189240.8401158752240.11749440077
3194207194747.8997111091227.03858932125192439.06169957540.899711109174
4190855188084.924561974-1966.12424123113195591.199679257-2770.07543802614
5200779200654.0538710071690.03762222191199213.908506771-124.94612899315
6204428206171.632339207-950.9576102756203635.3252710681743.63233920737
7207617206029.8509346081227.03858932125207977.110476071-1587.14906539235
8212071214999.618670542-1966.12424123113211108.5055706892928.61867054229
9214239212403.7537022671690.03762222191214384.208675511-1835.2462977331
10215883215204.58744744-950.9576102756217512.370162836-678.412552560214
11223484225398.1908521331227.03858932125220342.7705585461914.19085213268
12221529222081.364653109-1966.12424123113222942.759588122552.364653109282
13225247223680.9820337111690.03762222191225122.980344067-1566.01796628867
14226699226851.316018484-950.9576102756227497.641591792152.316018483893
15231406231130.3310665771227.03858932125230454.630344102-275.668933423178
16232324233392.757069822-1966.12424123113233221.3671714091068.75706982211
17237192237080.2772623011690.03762222191235613.685115477-111.722737698932
18236727236666.273405189-950.9576102756237738.684205087-60.7265948111308
19240698240326.2782187191227.03858932125239842.68319196-371.721781281201
20240688241575.917374155-1966.12424123113241766.206867076887.917374154757
21245283245401.0301076251690.03762222191243474.932270153118.030107625294
22243556243113.46579255-950.9576102756244949.491817725-442.534207449731
23247826248145.2753759661227.03858932125246279.686034712319.275375966303
24245798245919.459485265-1966.12424123113247642.664755967121.459485264611
25250479250419.4732217931690.03762222191248848.489155986-59.5267782074225
26249216249739.51913421-950.9576102756249643.438476066523.519134209782
27251896252728.0871875691227.03858932125249836.87422311832.087187568832
28247616247814.569507334-1966.12424123113249383.554733897198.569507333857
29249994249711.0784149351690.03762222191248586.883962843-282.921585064731
30246552245926.566874364-950.9576102756248128.390735912-625.433125636075
31248771248148.4553716131227.03858932125248166.506039066-622.54462838688
32247551248915.86459789-1966.12424123113248152.2596433411364.86459789029
33249745249796.7645381611690.03762222191248003.19783961751.7645381612529
34245742244716.987333436-950.9576102756247717.970276839-1025.01266656377
35249019249341.7065221211227.03858932125247469.254888557322.706522121327
36245841246355.975816114-1966.12424123113247292.148425117514.975816114369
37248771249017.4990618951690.03762222191246834.463315883246.499061894894
38244723243923.987883825-950.9576102756246472.969726451-799.012116175203
39246878246016.3014941981227.03858932125246512.659916481-861.69850580176
40246014247410.90632744-1966.12424123113246583.2179137911396.90632744011
41248496248697.8325382641690.03762222191246604.129839514201.832538263698
42244351242998.700394303-950.9576102756246654.257215973-1352.29960569739
43248016247868.4866082091227.03858932125246936.47480247-147.513391790882
44246509247416.707697809-1966.12424123113247567.416543422907.707697809237
45249426248853.4459732051690.03762222191248308.516404573-572.554026795289
46247840247547.545415393-950.9576102756249083.412194883-292.45458460736
47251035250630.3066324351227.03858932125250212.654778243-404.693367564527
48250161251008.782987628-1966.12424123113251279.341253604847.78298762755
49254278254871.6357213631690.03762222191251994.326656415593.635721363244
50250801250352.416664365-950.9576102756252200.540945911-448.583335635223
51253985254990.9938688921227.03858932125251751.9675417871005.99386889176
52249174249317.97717815-1966.12424123113250996.147063081143.977178150439
53251287250837.548005371690.03762222191250046.414372408-449.451994630072
54247947247890.399958032-950.9576102756248954.557652243-56.6000419677584
55249992250106.2429188351227.03858932125248650.718491843114.242918835458
56243805240023.552781595-1966.12424123113249552.571459636-3781.44721840532
57255812259426.8393829251690.03762222191250507.1229948533614.83938292469
58250417250228.323721118-950.9576102756251556.633889158-188.676278882456
59253033253159.1023286471227.03858932125251679.859082032126.102328646666
60248705247760.490630309-1966.12424123113251615.633610922-944.50936969096
61253950254597.4467641551690.03762222191251612.515613623647.446764155437
62251484252811.525721479-950.9576102756251107.4318887971327.52572147909
63251093250566.3683289791227.03858932125250392.5930817-526.631671020936
64245996244172.716300125-1966.12424123113249785.407941106-1823.28369987471
65252721254332.2818961781690.03762222191249419.6804816011611.28189617753
66248019247666.33355966-950.9576102756249322.624050616-352.666440340428
67250464250612.3747491331227.03858932125249088.586661546148.374749132665
68245571243744.127198889-1966.12424123113249363.997042343-1826.87280111149
69252690253578.5910847691690.03762222191250111.371293009888.591084769025
70250183249722.472466656-950.9576102756251594.48514362-460.527533344226
71253639251966.5110167071227.03858932125254084.450393972-1672.48898329321
72254436252817.165038397-1966.12424123113258020.959202834-1618.83496160287
73265280266103.1182305391690.03762222191262766.844147239823.1182305392
74268705271706.25859601-950.9576102756266654.6990142653001.25859601033
75270643269552.8591575321227.03858932125270506.102253147-1090.14084246795
76271480270784.232181658-1966.12424123113274141.892059573-695.767818342312
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/08/t1291822793gcadgceay2vo03o/19qru1291822336.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/08/t1291822793gcadgceay2vo03o/19qru1291822336.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/08/t1291822793gcadgceay2vo03o/2jirw1291822336.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/08/t1291822793gcadgceay2vo03o/2jirw1291822336.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/08/t1291822793gcadgceay2vo03o/3jirw1291822336.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/08/t1291822793gcadgceay2vo03o/3jirw1291822336.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/08/t1291822793gcadgceay2vo03o/4ur8z1291822336.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/08/t1291822793gcadgceay2vo03o/4ur8z1291822336.ps (open in new window)


 
Parameters (Session):
par1 = multiplicative ; par2 = 4 ;
 
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