Home » date » 2010 » May » 26 »

Exponential Smoothing (double) - Verhandelde kapitalen Euronext

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 26 May 2010 13:24:47 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/May/26/t1274880545q3oq5tj4bebhy74.htm/, Retrieved Wed, 26 May 2010 15:29:09 +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/2010/May/26/t1274880545q3oq5tj4bebhy74.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W62
 
Dataseries X:
» Textbox « » Textfile « » CSV «
3592,21 5955,74 4652,25 4211,65 4787,85 3599,73 4174,27 5106,33 5325,75 6604,61 5711,90 6919,30 7048,76 8655,98 6658,53 7247,03 8779,57 6602,49 9832,48 9369,49 8582,76 8206,94 6515,83 8618,10 8505,39 9881,64 9375,29 15642,50 12232,73 6288,93 12473,94 11142,82 10236,32 10581,51 8763,71 10819,04 11636,25 14650,13 10671,38 17468,63 13873,19 13077,58 16866,81 14186,64 19919,87 17681,78 9984,28 17423,09 13514,45 12334,57 12274,56 11752,23 13054,00 12460,98 8626,68 13722,62 12066,22 6798,83 6593,82 6606,19 6315,28 7232,95 6747,44 7803,61 6700,31 5369,53 8081,19 10718,39 9447,21 6815,10 5497,80 6805,31
 
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'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.46970488241959
beta0.220607460394909
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
34652.258319.27-3667.02
44211.658580.4047182938-4368.7547182938
54787.858059.23909638813-3271.38909638813
63599.737714.5288140925-4114.79881409250
74174.276547.2877653495-2373.0177653495
85106.335952.27672629837-845.946726298374
95325.755986.88107087961-661.131070879613
106604.616039.78756431809564.822435681908
115711.96727.05753282585-1015.15753282585
126919.36567.01216512138352.287834878615
137048.767085.76676987385-37.0067698738485
148655.987417.833141731341238.14685826866
156658.538477.1426728173-1818.61267281729
167247.037912.23195290176-665.201952901763
178779.577820.15538629656959.414613703439
186602.498590.58408031849-1988.09408031849
199832.487770.546443467372061.93355653262
209369.499066.48494404933303.005055950665
218582.769567.64364555806-984.883645558057
228206.949361.82069742208-1154.88069742208
236515.838956.48010277087-2440.65010277087
248618.17694.30619781219923.793802187813
258505.398108.1519060904397.238093909603
269881.648315.83379800541565.80620199459
279375.299234.6473026514140.642697348596
2815642.59498.62800365056143.8719963495
2912232.7313218.9852981385-986.255298138454
306288.9313488.0908204085-7199.16082040846
3112473.9410092.98435201372380.95564798626
3211142.8211444.4209425648-301.600942564832
3310236.3211504.5955944826-1268.27559448258
3410581.5110979.2992166929-397.789216692929
358763.7110821.6554623859-2057.94546238590
3610819.049670.983079343361148.05692065665
3711636.2510145.14778743611491.10221256395
3814650.1310934.95115359293715.17884640715
3910671.3813154.3824963053-2483.00249630528
4017468.6312205.20808526255263.42191473749
4113873.1915439.9649321112-1566.7749321112
4213077.5815304.1951249811-2226.61512498115
4316866.8114627.77240497322239.03759502684
4414186.6416280.8985447441-2094.25854474408
4519919.8715681.64641997614238.22358002393
4617681.7818495.9584949773-814.178494977332
479984.2818852.7671450685-8868.48714506849
4817423.0914507.47150128342915.61849871662
4913514.4515999.3453720487-2484.89537204871
5012334.5714697.0856546356-2362.51565463564
5112274.5613207.5034679181-932.943467918087
5211752.2312292.7263405878-540.496340587813
531305411506.27709737261547.72290262742
5412460.9811861.0502964455599.929703554539
558626.6811832.8053589912-3206.12535899124
5613722.629684.617779758874038.00222024113
5712066.2211357.4517036547708.768296345341
586798.8311539.9710540372-4741.14105403718
596593.828671.36243541919-2077.54243541919
606606.196838.58331200908-232.393312009085
616315.285848.39905241974466.88094758026
627232.955235.045717832081997.90428216792
636747.445547.845161967261199.59483803274
647803.615609.977260959672193.63273904033
656700.316366.31891997047333.991080029528
665369.536283.78610191817-914.256101918173
678081.195520.209903916482560.98009608352
6810718.396654.338900815834064.05109918417
699447.218915.58629207526531.62370792474
706815.19572.72235279432-2757.62235279431
715497.88399.13754463364-2901.33754463364
726805.316857.41124866409-52.1012486640857


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
736648.586399786561465.4681705797411831.7046289934
746464.23376178672489.68802263024212438.7795009432
756279.88112378688-648.76224519510713208.5244927689
766095.52848578704-1927.8326535213914118.8896250955
775911.17584778719-3328.7795016171215151.1311971915
785726.82320978735-4836.8103769210216290.4567964957
795542.47057178751-6440.5159514270117525.4570950020
805358.11793378766-8131.0819016711218847.3177692465
815173.76529578782-9901.6085326937620249.1391242694
824989.41265778798-11746.597039154521725.4223547304
834805.06001978813-13661.579866288323271.6999058645
844620.70738178829-15642.858527106624884.2732906832
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/26/t1274880545q3oq5tj4bebhy74/1sp1g1274880283.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/26/t1274880545q3oq5tj4bebhy74/1sp1g1274880283.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/26/t1274880545q3oq5tj4bebhy74/23hij1274880283.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/26/t1274880545q3oq5tj4bebhy74/23hij1274880283.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/26/t1274880545q3oq5tj4bebhy74/33hij1274880283.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/26/t1274880545q3oq5tj4bebhy74/33hij1274880283.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Double ; par3 = multiplicative ;
 
Parameters (R input):
par1 = 12 ; par2 = Double ; 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=F, beta=F)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=F)
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