Home » date » 2008 » May » 29 »

module Exponential Smoothing -Time Series Analysis (new) - goudkoers te brussel

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 29 May 2008 12:59:02 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/29/t1212087600w6kp7yi0pfypf7t.htm/, Retrieved Thu, 29 May 2008 19:00:04 +0000
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
10236 10893 10756 10940 10997 10827 10166 10186 10457 10368 10244 10511 10812 10738 10171 9721 9897 9828 9924 10371 10846 10413 10709 10662 10570 10297 10635 10872 10296 10383 10431 10574 10653 10805 10872 10625 10407 10463 10556 10646 10702 11353 11346 11451 11964 12574 13031 13812 14544 14931 14886 16005 17064 15168 16050 15839 15137 14954 15648 15305 15579 16348 15928 16171 15937 15713 15594 15683 16438 17032 17696 17745
 
Text written by user:
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.7740580389191
beta0.0233317689039484
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
131081210920.0551455554-108.055145555360
141073810768.0070828160-30.007082816026
151017110156.293648508014.7063514919719
1697219703.4515027169217.54849728308
1798979875.6450406951621.3549593048374
1898289802.2394481574925.7605518425116
1999249925.69474894115-1.69474894114501
201037110404.1371366797-33.137136679743
211084610856.4696915348-10.4696915348159
221041310350.990744823062.0092551770394
231070910632.920996277276.0790037228471
241066210610.335240159351.6647598406635
251057011021.3949629194-451.394962919412
261029710617.5002892705-320.500289270507
27106359801.84290402755833.15709597245
28108729975.9195173201896.080482679901
291029610865.8636989703-569.863698970299
301038310341.702600136741.2973998633333
311043110487.3761114264-56.3761114263925
321057410951.6135144414-377.613514441362
331065311160.4413436224-507.441343622368
341080510285.9948531293519.005146870748
351087210935.1365574079-63.1365574079264
361062510799.4126465267-174.412646526654
371040710916.1111901584-509.111190158443
381046310491.9685123756-28.9685123755607
391055610147.4295947097408.570405290346
40106469995.5940031531650.405996846908
411070210353.7617773491348.238222650894
421135310685.5011588257667.498841174334
431134611317.119959690928.8800403091282
441145111828.4726973284-377.472697328396
451196412066.1079164284-102.107916428353
461257411728.1716539189845.82834608114
471303112547.4314616023483.56853839774
481381212829.1155601624982.884439837619
491454413872.7694725202671.23052747978
501493114588.8458552917342.154144708347
511488614625.9389543208260.061045679249
521600514320.41672967401684.58327032598
531706415402.56655288911661.43344711093
541516817001.7396022744-1833.73960227444
551605015610.0889008407439.911099159297
561583916582.5158785322-743.515878532206
571513716910.8253601221-1773.82536012207
581495415515.8897181854-561.889718185401
591564815199.6018931586448.398106841354
601530515576.9985206996-271.998520699552
611557915596.8681645326-17.8681645326051
621634815701.9913755013646.008624498674
631592815927.40805282170.591947178261762
641617115685.9521902165485.047809783482
651593715778.5474661450158.452533854954
661571315380.3011200495332.698879950489
671559416176.9310734336-582.93107343364
681568316046.9900869157-363.990086915701
691643816371.85428606866.14571393199
701703216691.2449586921340.755041307923
711769617358.3267908446337.673209155368
721774517479.5206287904265.479371209582


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7318035.807316473716851.607228851519220.0074040958
7418360.585007204916842.892180529619878.2778338802
7517896.222643947416131.733659289719660.7116286052
7617752.219106261415752.776178523519751.6620339993
7717360.616021834615170.200717072519551.0313265967
7816832.681687572714484.091780865919181.2715942795
7917177.572544050814583.459400938019771.6856871637
8017585.923118363014744.360346884120427.4858898418
8118382.465816061915240.585058605021524.3465735188
8218756.844900252515380.71919185522132.9706086501
8319200.146441623315579.758747463222820.5341357834
8419025.739641694015462.998426066422588.4808573215
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t1212087600w6kp7yi0pfypf7t/18ibg1212087536.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t1212087600w6kp7yi0pfypf7t/18ibg1212087536.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t1212087600w6kp7yi0pfypf7t/277c51212087536.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t1212087600w6kp7yi0pfypf7t/277c51212087536.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t1212087600w6kp7yi0pfypf7t/3tjsl1212087536.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t1212087600w6kp7yi0pfypf7t/3tjsl1212087536.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ;
 
R code (references can be found in the software module):
par1 <- as.numeric(par1)
if (par2 == 'Single') K <- 1
if (par2 == 'Double') K <- 2
if (par2 == 'Triple') K <- par1
nx <- length(x)
nxmK <- nx - K
x <- ts(x, frequency = par1)
if (par2 == 'Single') fit <- HoltWinters(x, gamma=0, beta=0)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=0)
if (par2 == 'Triple') fit <- HoltWinters(x, seasonal=par3)
fit
myresid <- x - fit$fitted[,'xhat']
bitmap(file='test1.png')
op <- par(mfrow=c(2,1))
plot(fit,ylab='Observed (black) / Fitted (red)',main='Interpolation Fit of Exponential Smoothing')
plot(myresid,ylab='Residuals',main='Interpolation Prediction Errors')
par(op)
dev.off()
bitmap(file='test2.png')
p <- predict(fit, par1, prediction.interval=TRUE)
np <- length(p[,1])
plot(fit,p,ylab='Observed (black) / Fitted (red)',main='Extrapolation Fit of Exponential Smoothing')
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(myresid),lag.max = nx/2,main='Residual ACF')
spectrum(myresid,main='Residals Periodogram')
cpgram(myresid,main='Residal Cumulative Periodogram')
qqnorm(myresid,main='Residual Normal QQ Plot')
qqline(myresid)
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Estimated Parameters of Exponential Smoothing',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'Value',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'alpha',header=TRUE)
a<-table.element(a,fit$alpha)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'beta',header=TRUE)
a<-table.element(a,fit$beta)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'gamma',header=TRUE)
a<-table.element(a,fit$gamma)
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,'Interpolation Forecasts of Exponential Smoothing',4,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,'Residuals',header=TRUE)
a<-table.row.end(a)
for (i in 1:nxmK) {
a<-table.row.start(a)
a<-table.element(a,i+K,header=TRUE)
a<-table.element(a,x[i+K])
a<-table.element(a,fit$fitted[i,'xhat'])
a<-table.element(a,myresid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Extrapolation Forecasts of Exponential Smoothing',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Forecast',header=TRUE)
a<-table.element(a,'95% Lower Bound',header=TRUE)
a<-table.element(a,'95% Upper Bound',header=TRUE)
a<-table.row.end(a)
for (i in 1:np) {
a<-table.row.start(a)
a<-table.element(a,nx+i,header=TRUE)
a<-table.element(a,p[i,'fit'])
a<-table.element(a,p[i,'lwr'])
a<-table.element(a,p[i,'upr'])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.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