Home » date » 2008 » Jun » 01 »

Exponential smoothing Koers EUR in USD SVEN VAN LAERE 2MAR04B

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 01 Jun 2008 06:20:41 -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/Jun/01/t1212323009lw3pul3su478icp.htm/, Retrieved Sun, 01 Jun 2008 12:23:29 +0000
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,1591 1,1203 1,0886 1,0701 1,0630 1,0377 1,0370 1,0606 1,0497 1,0706 1,0328 1,0110 1,0131 0,9834 0,9643 0,9449 0,9059 0,9505 0,9386 0,9045 0,8695 0,8525 0,8552 0,8983 0,9376 0,9205 0,9083 0,8925 0,8753 0,8530 0,8615 0,9014 0,9114 0,9050 0,8883 0,8912 0,8832 0,8706 0,8766 0,8860 0,9170 0,9561 0,9935 0,9781 0,9806 0,9812 1,0013 1,0194 1,0622 1,0785 1,0805 1,0862 1,1556 1,1674 1,1365 1,1155 1,1266 1,1714 1,1710 1,2298 1,2638 1,2640 1,2261 1,1989 1,2000 1,2146 1,2266 1,2191 1,2224 1,2507 1,2997 1,3406
 
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 time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.926470202526935
beta0.0777052499017337
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
131.01311.06825441666667-0.0551544166666673
140.98340.986105876504275-0.00270587650427467
150.96430.966362878926515-0.00206287892651502
160.94490.949350422826513-0.0044504228265132
170.90590.910097252058817-0.0041972520588166
180.95050.9499848029113760.000515197088624464
190.93860.9335212206753070.00507877932469325
200.90450.8973762908403290.00712370915967131
210.86950.8619262747741810.00757372522581912
220.85250.8450009297704460.00749907022955365
230.85520.8471879558578120.00801204414218792
240.89830.8927062035225350.00559379647746538
250.93760.8970228967137160.0405771032862837
260.92050.912358815404970.00814118459503088
270.90830.9084290011099-0.000129001109899551
280.89250.898888317425963-0.00638831742596302
290.87530.8635744963844220.0117255036155782
300.8530.925422951711084-0.0724229517110838
310.86150.8433314136983990.0181685863016013
320.90140.8220180258270020.0793819741729983
330.91140.8613020793496070.050097920650393
340.9050.8945858803122080.0104141196877923
350.88830.910538426185757-0.022238426185757
360.89120.936702015956785-0.0455020159567849
370.88320.901423122437301-0.0182231224373013
380.87060.860835100831860.0097648991681405
390.87660.8588561217043330.0177438782956674
400.8860.8677551962003070.0182448037996932
410.9170.8607098255764370.0562901744235625
420.95610.964981675521665-0.00888167552166552
430.99350.9603178259300850.0331821740699146
440.97810.9703933519144770.00770664808552346
450.98060.9489373438723190.0316626561276810
460.98120.9687145384037160.0124854615962839
471.00130.9908253636374660.0104746363625339
481.01941.05458130760473-0.0351813076047325
491.06221.040608302207470.0215916977925279
501.07851.051570059130420.0269299408695782
511.08051.079920991582230.000579008417773919
521.08621.085558751332960.000641248667040628
531.15561.076338964517640.0792610354823593
541.16741.21009155354270-0.0426915535427048
551.13651.18775377229719-0.0512537722971858
561.11551.12220698746692-0.00670698746691989
571.12661.092599283112460.0340007168875387
581.17141.116741473888850.0546585261111547
591.1711.18442158535483-0.0134215853548254
601.22981.227606046614510.00219395338549022
611.26381.260050046192340.00374995380766419
621.2641.261205454980160.00279454501983722
631.22611.26985151398983-0.0437515139898315
641.19891.23582494737013-0.0369249473701265
651.21.196279650989170.00372034901082663
661.21461.24433815565131-0.0297381556513099
671.22661.22756352908810-0.00096352908809516
681.21911.209696942864220.00940305713577927
691.22241.19698000264570.0254199973542999
701.25071.213045695863670.037654304136328
711.29971.257096143298560.0426038567014435
721.34061.35449823349823-0.0138982334982334


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
731.372152730462201.313070680346521.43123478057789
741.369498719233861.286008319759891.45298911870783
751.371667060959661.266926792284471.47640732963486
761.381360533560651.256755144858291.505965922263
771.384355636181711.240568408469481.52814286389393
781.431581212520661.268942045113281.59422037992804
791.451688852125121.2703249040171.63305280023323
801.442761524490591.242673797324061.64284925165712
811.429118037892891.210224610725261.64801146506051
821.427309804366771.189472115235661.66514749349787
831.438905164323761.181944888562921.69586544008459
841.491680907480191.215391265410361.76797054955001
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212323009lw3pul3su478icp/1e3cr1212322835.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212323009lw3pul3su478icp/1e3cr1212322835.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212323009lw3pul3su478icp/2ekit1212322835.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212323009lw3pul3su478icp/2ekit1212322835.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212323009lw3pul3su478icp/3y1dt1212322835.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212323009lw3pul3su478icp/3y1dt1212322835.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Triple ; par3 = additive ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = additive ;
 
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