Home » date » 2009 » Dec » 11 »

WS9

*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, 11 Dec 2009 05:47:20 -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/11/t1260535686rhojp057lyt6qo6.htm/, Retrieved Fri, 11 Dec 2009 13:48:11 +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/11/t1260535686rhojp057lyt6qo6.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 «
7.55 7.55 7.59 7.59 7.59 7.57 7.57 7.59 7.6 7.64 7.64 7.76 7.76 7.76 7.77 7.83 7.94 7.94 7.94 8.09 8.18 8.26 8.28 8.28 8.28 8.29 8.3 8.3 8.31 8.33 8.33 8.34 8.48 8.59 8.67 8.67 8.67 8.71 8.72 8.72 8.72 8.74 8.74 8.74 8.74 8.79 8.85 8.86 8.87 8.92 8.96 8.97 8.99 8.98 8.98 9.01 9.01 9.03 9.05 9.05
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 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
17.557.55365324602313-0.003670288607271907.550017042584140.00365324602313244
27.557.54866754914876-0.00927735485524037.56060980570648-0.00133245085124400
37.597.62168186273052-0.01288443155934337.571202568828830.0316818627305153
47.597.61631703774549-0.01912801867079207.58281098092530.0263170377454909
57.597.59695220622538-0.01137159924715857.594419393021770.0069522062253835
67.577.56056721045888-0.02782197994091097.60725476948203-0.00943278954111992
77.577.56618223037658-0.04627237631886687.62009014594229-0.00381776962342162
87.597.56989393346754-0.02368294882965997.63378901536212-0.0201060665324642
97.67.5476055999620.004906515256041247.64748788478196-0.0523944000380014
107.647.572217570378490.04140167935002637.66638075027149-0.0677824296215146
117.647.540829544716020.05389683952296067.68527361576102-0.0991704552839767
127.767.74981447796040.05390393345065077.71628158858895-0.0101855220396043
137.767.77638072719038-0.003670288607271907.747289561416890.0163807271903815
147.767.74019361884409-0.00927735485524037.78908373601115-0.0198063811559122
157.777.72200652095393-0.01288443155934337.83087791060541-0.0479934790460712
167.837.79934689585813-0.01912801867079207.87978112281266-0.0306531041418694
177.947.96268726422725-0.01137159924715857.92868433501990.0226872642272493
187.947.93056133940415-0.02782197994091097.97726064053676-0.0094386605958503
197.947.90043543026525-0.04627237631886688.02583694605361-0.0395645697347469
208.098.13333721637362-0.02368294882965998.070345732456040.043337216373617
218.188.240238965885490.004906515256041248.114854518858470.060238965885489
228.268.325067640716190.04140167935002638.153530679933790.0650676407161885
238.288.313896319467940.05389683952296068.19220684100910.0338963194679369
248.288.283235379357480.05390393345065078.222860687191870.00323537935748064
258.288.31015575523264-0.003670288607271908.253514533374630.0301557552326361
268.298.31058755162883-0.00927735485524038.27868980322640.0205875516288341
278.38.30901935848117-0.01288443155934338.303865073078180.00901935848116509
288.38.2890550260394-0.01912801867079208.3300729926314-0.0109449739606049
298.318.27509068706254-0.01137159924715858.35628091218462-0.0349093129374562
308.338.30011391324243-0.02782197994091098.38770806669848-0.0298860867575659
318.338.28713715510653-0.04627237631886688.41913522121233-0.0428628448934685
328.348.2490507991701-0.02368294882965998.45463214965957-0.0909492008299075
338.488.464964406637160.004906515256041248.4901290781068-0.015035593362839
348.598.611367040256060.04140167935002638.527231280393910.0213670402560613
358.678.7217696777960.05389683952296068.564333482681030.0517696777960097
368.678.68624208095140.05390393345065078.599853985597950.0162420809513968
378.678.7082958000924-0.003670288607271908.635374488514880.0382958000923921
388.718.76549708021783-0.00927735485524038.663780274637410.0554970802178314
398.728.7606983707994-0.01288443155934338.692186060759940.0406983707994026
408.728.74815296831509-0.01912801867079208.71097505035570.0281529683150890
418.728.72160755929569-0.01137159924715858.729764039951470.00160755929569234
428.748.76379875903365-0.02782197994091098.744023220907260.0237987590336513
438.748.76798997445581-0.04627237631886688.758282401863050.0279899744558136
448.748.72909979009003-0.02368294882965998.77458315873963-0.0109002099099715
458.748.684209569127750.004906515256041248.79088391561621-0.0557904308722499
468.798.727562271793340.04140167935002638.81103604885663-0.0624377282066586
478.858.814914978379980.05389683952296068.83118818209705-0.0350850216200147
488.868.811919165068480.05390393345065078.85417690148087-0.04808083493152
498.878.86650466774258-0.003670288607271908.87716562086469-0.00349533225741716
508.928.94848383172275-0.00927735485524038.900793523132490.0284838317227525
518.969.00846300615905-0.01288443155934338.924421425400290.0484630061590519
528.979.01939147984129-0.01912801867079208.93973653882950.0493914798412849
538.999.03631994698844-0.01137159924715858.955051652258720.0463199469884383
548.989.01866334351904-0.02782197994091098.969158636421870.0386633435190422
558.989.02300675573385-0.04627237631886688.983265620585020.0430067557338525
569.019.04724143636939-0.02368294882965998.996441512460270.0372414363693867
579.019.005476080408430.004906515256041249.00961740433553-0.00452391959157161
589.038.9972419744240.04140167935002639.02135634622597-0.0327580255759941
599.059.013007872360630.05389683952296069.0330952881164-0.0369921276393672
609.059.002457416832680.05390393345065079.04363864971667-0.0475425831673224
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535686rhojp057lyt6qo6/1omed1260535638.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535686rhojp057lyt6qo6/1omed1260535638.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535686rhojp057lyt6qo6/264fl1260535638.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535686rhojp057lyt6qo6/264fl1260535638.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535686rhojp057lyt6qo6/34q8m1260535638.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535686rhojp057lyt6qo6/34q8m1260535638.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535686rhojp057lyt6qo6/41jnw1260535638.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535686rhojp057lyt6qo6/41jnw1260535638.ps (open in new window)


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