Home » date » 2009 » Jun » 07 »

Koers € t.o.v. £

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 07 Jun 2009 12:44:53 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/07/t1244400366fbq1mz6op51g5rl.htm/, Retrieved Sun, 07 Jun 2009 20:46:10 +0200
 
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/Jun/07/t1244400366fbq1mz6op51g5rl.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:
Wesley De Bondt
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
Wesley De Bondt
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.63709 0.64218 0.65711 0.66977 0.68255 0.68902 0.71322 0.70224 0.70045 0.69919 0.69693 0.69763 0.69278 0.70196 0.69215 0.6769 0.67124 0.66533 0.67157 0.66428 0.66576 0.66942 0.68130 0.69144 0.69862 0.695 0.69867 0.68968 0.69233 0.68293 0.68399 0.66895 0.68756 0.68527 0.6776 0.68137 0.67933 0.67922 0.68598 0.68297 0.68935 0.69463 0.6833 0.68666 0.68782 0.67669 0.67511 0.67254 0.67397 0.67286 0.66341 0.668 0.68021 0.67934 0.68136 0.67562 0.6744 0.67766 0.68887 0.69614 0.70896 0.72064 0.74725 0.75094 0.77494 0.79487 0.79209 0.79152 0.79308 0.79279 0.79924 0.78668
 
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'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.72935033359918
beta0.0377512556596677
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
130.692780.691127657585470.00165234241453005
140.701960.703796493163842-0.00183649316384238
150.692150.694590179546828-0.00244017954682751
160.67690.679095129427552-0.00219512942755229
170.671240.672514199573662-0.00127419957366226
180.665330.665337366543871-7.36654387079039e-06
190.671570.706308462444023-0.0347384624440232
200.664280.6629773535945150.00130264640548461
210.665760.6560191230983690.00974087690163095
220.669420.6582072730715430.0112127269284572
230.68130.6627088973528330.0185911026471672
240.691440.6773479944848190.0140920055151814
250.698620.6852550539551810.0133649460448186
260.6950.706232946549341-0.0112329465493407
270.698670.6904619359164830.00820806408351704
280.689680.6835446930664550.00613530693354469
290.692330.6842633729274610.00806662707253869
300.682930.685473885985115-0.00254388598511468
310.683990.716356913935967-0.0323669139359671
320.668950.685737209697161-0.0167872096971613
330.687560.6685980575904610.0189619424095386
340.685270.6788929590023580.00637704099764214
350.67760.682714492330424-0.00511449233042383
360.681370.6790433827201580.00232661727984240
370.679330.6780457830375670.00128421696243308
380.679220.683095760028459-0.00387576002845902
390.685980.6776955704601640.00828442953983555
400.682970.670018287967080.0129517120329192
410.689350.6761641626840660.0131858373159340
420.694630.6783105297689630.0163194702310372
430.68330.715473230042995-0.0321732300429954
440.686660.689810033582268-0.00315003358226784
450.687820.693266743646834-0.00544674364683362
460.676690.682655083403595-0.00596508340359514
470.675110.6743268988453850.000783101154615329
480.672540.677095712864942-0.00455571286494183
490.673970.670731438790150.00323856120985
500.672860.67579916275295-0.0029391627529497
510.663410.674387911531543-0.0109779115315426
520.6680.6534091449657020.0145908550342980
530.680210.660343339455690.0198666605443096
540.679340.6679238773003560.0114161226996443
550.681360.687964171434894-0.00660417143489378
560.675620.68908729568047-0.0134672956804704
570.67440.684395829850682-0.0099958298506816
580.677660.6701990760131660.00746092398683396
590.688870.6737322909747150.0151377090252846
600.696140.6861636756583710.00997632434162932
610.708960.6935459698316890.015414030168311
620.720640.7071952196309340.0134447803690663
630.747250.717382374238130.0298676257618705
640.750940.7360635847546620.0148764152453376
650.774940.7475909029548740.0273490970451258
660.794870.7615045989730850.0333654010269148
670.792090.796443744881027-0.00435374488102658
680.791520.801180004095212-0.00966000409521206
690.793080.8041390561715-0.0110590561715009
700.792790.797796345156746-0.00500634515674592
710.799240.7978758427824840.00136415721751582
720.786680.802046886608035-0.0153668866080353


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
730.7949013482736780.7678579441906260.82194475235673
740.7988355185861660.764919232741560.832751804430771
750.8053514940167850.765347493310450.84535549472312
760.799058941889250.7534248376033950.844693046175105
770.8035698295356780.7526004510973710.854539207973985
780.798869696811450.7427658007411030.854973592881797
790.7980513564262390.7369539816042240.859148731248254
800.8034330135056590.7374427672982780.86942325971304
810.8122310471825820.7414198461202230.88304224824494
820.8150690329078990.7394876932610940.890650372554703
830.8201385347627520.739821913794480.900455155731024
840.8183632684572250.7333338783190220.903392658595428
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244400366fbq1mz6op51g5rl/1zfm41244400291.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244400366fbq1mz6op51g5rl/1zfm41244400291.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244400366fbq1mz6op51g5rl/2b3vr1244400291.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244400366fbq1mz6op51g5rl/2b3vr1244400291.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244400366fbq1mz6op51g5rl/3zb671244400291.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244400366fbq1mz6op51g5rl/3zb671244400291.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