Home » date » 2010 » Dec » 29 »

*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 13:44:44 +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/t1293630161r47sedpbeja5z8l.htm/, Retrieved Wed, 29 Dec 2010 14:42:41 +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/t1293630161r47sedpbeja5z8l.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 «
1203.6 1180.59 1156.85 1191.5 1191.33 1234.18 1220.33 1228.81 1207.01 1249.48 1248.29 1280.08 1280.66 1294.87 1310.61 1270.09 1270.2 1276.66 1303.82 1335.85 1377.94 1400.63 1418.3 1438.24 1406.82 1420.86 1482.37 1530.62 1503.35 1455.27 1473.99 1526.75 1549.38 1481.14 1468.36 1378.55 1330.63 1322.7 1385.59 1400.38 1280 1267.38 1282.83 1166.36 968.75 896.24 903.25 825.88 735.09 797.87 872.81 919.14 919.32 987.48 1020.62 1057.08 1036.19 1095.63 1115.1 1073.87 1104.49 1169.43 1186.69 1089.41 1030.71 1101.6 1049.33 1141.2 1183.26 1180.55
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


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


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
11203.61268.27550820852-38.06117826056981176.9856700520564.6755082085224
21180.591194.21882430945-16.99208436092891183.9532600514713.6288243094539
31156.851104.7737652959918.00538465310781190.92085005090-52.0762347040104
41191.51166.1476605809518.57803807295171198.2743013461-25.3523394190527
51191.331193.28993890089-16.25769154218571205.62775264131.95993890088675
61234.181249.943033683855.191897771198321213.2250685449615.7630336838454
71220.331209.7477226537410.08989289764591220.82238444861-10.5822773462598
81228.811200.4421719609728.35660893032431228.82121910871-28.3678280390302
91207.011170.351626537126.848319694077011236.82005376880-36.658373462875
101249.481248.496434888594.574878931240381245.88868618017-0.983565111409234
111248.291237.138236085894.484445322572021254.95731859154-11.1517639141118
121280.081322.90894586064-24.81849409966591262.0695482390242.8289458606412
131280.661330.19940037406-38.06117826056981269.1817778865149.5394003740605
141294.871329.07141696694-16.99208436092891277.6606673939934.2014169669364
151310.611317.0750584454218.00538465310781286.139556901486.46505844541707
161270.091224.8497046236318.57803807295171296.75225730342-45.2402953763687
171270.21249.29273383683-16.25769154218571307.36495770536-20.9072661631728
181276.661228.494691094705.191897771198321319.63341113410-48.1653089052966
191303.821265.6482425395210.08989289764591331.90186456284-38.1717574604838
201335.851296.5167162467728.35660893032431346.82667482290-39.3332837532282
211377.941387.280195222956.848319694077011361.751485082979.34019522295353
221400.631416.553285027014.574878931240381380.1318360417515.9232850270125
231418.31433.603367676904.484445322572021398.5121870005315.3033676769028
241438.241485.53809836218-24.81849409966591415.7603957374847.2980983621812
251406.821418.69257378613-38.06117826056981433.0086044744411.8725737861255
261420.861412.31665859773-16.99208436092891446.39542576320-8.54334140226706
271482.371486.9523682949518.00538465310781459.782247051954.58236829494513
281530.621575.6179231547418.57803807295171467.0440387723144.9979231547388
291503.351548.65186104951-16.25769154218571474.3058304926745.3018610495144
301455.271431.746274675835.191897771198321473.60182755297-23.5237253241655
311473.991464.9922824890910.08989289764591472.89782461326-8.99771751090907
321526.751560.0305413425828.35660893032431465.1128497271033.2805413425779
331549.381634.583805464996.848319694077011457.3278748409385.2038054649909
341481.141513.334434027424.574878931240381444.3706870413432.1944340274160
351468.361500.822055435674.484445322572021431.4134992417632.4620554356727
361378.551369.11020189526-24.81849409966591412.80829220440-9.4397981047373
371330.631305.11809309352-38.06117826056981394.20308516705-25.5119069064815
381322.71298.42940556296-16.99208436092891363.96267879797-24.2705944370377
391385.591419.4523429180118.00538465310781333.7222724288833.8623429180104
401400.381491.1870851107718.57803807295171290.9948768162890.807085110772
4112801327.99021033851-16.25769154218571248.2674812036747.9902103385148
421267.381330.256471905065.191897771198321199.3116303237462.8764719050621
431282.831405.2143276585510.08989289764591150.35577944381122.384327658546
441166.361203.0736684600128.35660893032431101.2897226096736.7136684600082
45968.75878.4280145303976.848319694077011052.22366577553-90.3219854696033
46896.24777.2534456522084.574878931240381010.65167541655-118.986554347792
47903.25832.935869619854.48444532257202969.079685057578-70.3141303801499
48825.88732.498732338044-24.8184940996659944.079761761622-93.3812676619564
49735.09589.161339794903-38.0611782605698919.079838465667-145.928660205097
50797.87697.964483179182-16.9920843609289914.767601181747-99.9055168208182
51872.81817.15925144906518.0053846531078910.455363897828-55.6507485509354
52919.14894.6956401521918.5780380729517925.006321774857-24.4443598478092
53919.32915.340411890299-16.2576915421857939.557279651887-3.97958810970147
54987.481005.627144447355.19189777119832964.1409577814518.1471444473508
551020.621042.4254711913410.0898928976459988.72463591101421.8054711913397
561057.081070.6347698212828.35660893032431015.1686212483913.5547698212820
571036.191023.919073720156.848319694077011041.61260658577-12.2709262798501
581095.631126.756089958864.574878931240381059.929031109931.1260899588603
591115.11147.470099043404.484445322572021078.2454556340332.3700990434024
601073.871085.19840840656-24.81849409966591087.3600856931111.3284084065579
611104.491150.56646250838-38.06117826056981096.4747157521946.0764625083791
621169.431255.48973238964-16.99208436092891100.3623519712986.0597323896407
631186.691251.1246271565118.00538465310781104.2499881903964.4346271565068
641089.411050.8479301071718.57803807295171109.39403181988-38.5620698928292
651030.71963.139616092817-16.25769154218571114.53807544937-67.5703839071834
661101.61079.330885250565.191897771198321118.67721697824-22.2691147494377
671049.33965.75374859524410.08989289764591122.81635850711-83.5762514047556
681141.21127.7424032255228.35660893032431126.30098784415-13.4575967744786
691183.261229.886063124726.848319694077011129.785617181246.6260631247237
701180.551223.249628243694.574878931240381133.2754928250742.6996282436924
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630161r47sedpbeja5z8l/13s5e1293630280.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630161r47sedpbeja5z8l/13s5e1293630280.ps (open in new window)


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


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


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