Home » date » 2009 » Dec » 04 »

*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: Fri, 04 Dec 2009 12:50:57 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/04/t125995633657twig41dfmcoa6.htm/, Retrieved Fri, 04 Dec 2009 20:52:22 +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/2009/Dec/04/t125995633657twig41dfmcoa6.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
6802.96 7132.68 7073.29 7264.5 7105.33 7218.71 7225.72 7354.25 7745.46 8070.26 8366.33 8667.51 8854.34 9218.1 9332.9 9358.31 9248.66 9401.2 9652.04 9957.38 10110.63 10169.26 10343.78 10750.21 11337.5 11786.96 12083.04 12007.74 11745.93 11051.51 11445.9 11924.88 12247.63 12690.91 12910.7 13202.12 13654.67 13862.82 13523.93 14211.17 14510.35 14289.23 14111.82 13086.59 13351.54 13747.69 12855.61 12926.93 12121.95 11731.65 11639.51 12163.78 12029.53 11234.18 9852.13 9709.04 9332.75 7108.6 6691.49 6143.05
 
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'Gwilym Jenkins' @ 72.249.127.135


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


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
16802.967047.998195560895.20134279081546462.72046164838245.038195560802
27132.687398.40910271792221.7188741621406645.23202311994265.729102717917
37073.297178.66613023296140.1702851755376827.7435845915105.376130232960
47264.57122.3315014571392.5209186344407014.14757990846-142.168498542904
57105.336708.94272607836301.1656986962147200.55157522542-396.387273921638
67218.717039.5446883700610.98713649381577386.88817513612-179.165311629939
77225.727049.85616631122-171.6409413580457573.22477504682-175.863833688777
87354.257161.91328977108-210.7173818387947757.30409206771-192.336710228918
97745.467597.06231302596-47.52572211456587941.3834090886-148.397686974036
108070.268233.17685292282-225.8881632392398133.23131031642162.916852922819
118366.338735.33606932375-327.7552808679878325.07921154424369.00606932375
128667.518999.94847293375-178.2369579732968513.30848503955332.438472933751
138854.348911.9408986743395.20134279081548701.5377585348657.6008986743273
149218.19329.24804991451221.7188741621408885.23307592334111.148049914515
159332.99456.70132151263140.1702851755379068.92839331183123.801321512630
169358.319077.8110999521392.5209186344409246.28798141346-280.498900047902
179248.668772.5067317887301.1656986962149423.64756951509-476.153268211303
189401.29181.3455248533510.98713649381579610.06733865284-219.854475146651
199652.049679.23383356746-171.6409413580459796.4871077905827.193833567464
209957.3810111.0188179484-210.71738183879410014.4585638904153.638817948437
2110110.6310036.3557021244-47.525722114565810232.4300199901-74.2742978755668
2210169.2610113.8561375643-225.88816323923910450.5520256750-55.4038624357272
2310343.7810346.6412495082-327.75528086798710668.67403135982.86124950818885
2410750.2110829.8689224344-178.23695797329610848.788035538979.6589224343734
2511337.511550.896617491195.201342790815411028.9020397180213.396617491138
2611786.9612163.777366734221.71887416214011188.4237591039376.817366733992
2712083.0412677.9642363348140.17028517553711347.9454784897594.924236334778
2812007.7412097.6996924060392.52091863444011525.259388959589.9596924060224
2911745.9311488.1210018744301.16569869621411702.5732994294-257.808998125600
3011051.5110201.358530370210.987136493815711890.674333136-850.151469629813
3111445.910984.6655745154-171.64094135804512078.7753668426-461.234425484563
3211924.8811794.0084906326-210.71738183879412266.4688912062-130.871509367367
3312247.6312088.6233065449-47.525722114565812454.1624155697-159.006693455149
3412690.9112945.1036190797-225.88816323923912662.6045441595254.193619079690
3512910.713278.1086081186-327.75528086798712871.0466727494367.408608118601
3613202.1213496.1172438692-178.23695797329613086.3597141041293.997243869202
3713654.6713912.465901750495.201342790815413301.6727554588257.795901750382
3813862.8214056.1681123165221.71887416214013447.7530135214193.348112316495
3913523.9313313.8564432405140.17028517553713593.8332715839-210.073556759458
4014211.1714379.9439681536392.52091863444013649.8751132119168.773968153630
4114510.3515013.6173464638301.16569869621413705.9169548399503.267346463848
4214289.2314901.426458943410.987136493815713666.0464045628612.196458943403
4314111.8214769.1050870724-171.64094135804513626.1758542856657.285087072423
4413086.5912896.9659265421-210.71738183879413486.9314552967-189.624073457904
4513351.5413402.9186658068-47.525722114565813347.687056307851.3786658067911
4613747.6914582.5661237739-225.88816323923913138.7020394654834.876123773884
4712855.6113109.2582582451-327.75528086798712929.7170226229253.648258245054
4812926.9313368.7079975166-178.23695797329612663.3889604567441.777997516607
4912121.9511751.637758918795.201342790815412397.0608982904-370.312241081261
5011731.6511178.3983661700221.71887416214012063.1827596679-553.251633830012
5111639.5111409.5450937792140.17028517553711729.3046210453-229.964906220828
5212163.7812698.7994763662392.52091863444011236.2396049994535.019476366198
5312029.5313014.7197123504301.16569869621410743.1745889534985.189712350357
5411234.1812223.443795113910.987136493815710233.9290683923989.263795113886
559852.1310151.2173935269-171.6409413580459724.68354783117299.087393526879
569709.0410418.7661444101-210.7173818387949210.03123742865709.726144410148
579332.7510017.6467950884-47.52572211456588695.37892702613684.896795088434
587108.66277.58327167398-225.8881632392398165.50489156526-831.016728326023
596691.496075.10442476359-327.7552808679877635.63085610439-616.385575236407
606143.055374.41278905665-178.2369579732967089.92416891664-768.637210943346
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t125995633657twig41dfmcoa6/162oi1259956255.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t125995633657twig41dfmcoa6/162oi1259956255.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t125995633657twig41dfmcoa6/20av61259956255.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t125995633657twig41dfmcoa6/20av61259956255.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t125995633657twig41dfmcoa6/33oum1259956255.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t125995633657twig41dfmcoa6/33oum1259956255.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t125995633657twig41dfmcoa6/4yek01259956255.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t125995633657twig41dfmcoa6/4yek01259956255.ps (open in new window)


 
Parameters (Session):
par1 = Aandelenkoers ; par2 = belgostat ; par3 = euronext brussel ;
 
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