Home » date » 2010 » Jun » 02 »

exponential smoothing wijnprijzen

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 02 Jun 2010 11:54:57 +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/Jun/02/t1275479910076ssvw7qlm8sym.htm/, Retrieved Wed, 02 Jun 2010 13:58:31 +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/Jun/02/t1275479910076ssvw7qlm8sym.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 «
2.17 2.18 2.18 2.18 2.17 2.17 2.18 2.17 2.18 2.17 2.17 2.17 2.17 2.17 2.17 2.17 2.17 2.17 2.18 2.18 2.18 2.18 2.18 2.18 2.18 2.18 2.18 2.18 2.18 2.18 2.18 2.19 2.19 2.19 2.20 2.20 2.21 2.21 2.21 2.20 2.21 2.20 2.21 2.21 2.22 2.22 2.23 2.24 2.24 2.25 2.25 2.32 2.36 2.37 2.37 2.37 2.38 2.38 2.41 2.42 2.43 2.44 2.44 2.44 2.43 2.43 2.43 2.42 2.42 2.42 2.42 2.42
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.217390091297997
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
32.182.19-0.0100000000000002
42.182.18782609908702-0.00782609908702003
52.172.18612478269199-0.0161247826919859
62.172.17261941471041-0.0026194147104146
72.182.172049979907370.0079500200926299
82.172.18377823550113-0.0137782355011282
92.182.170782983627610.00921701637238792
102.172.1827866716583-0.0127866716583012
112.172.17000697593911-6.97593910548022e-06
122.172.17000545943907-5.45943906615776e-06
132.172.17000427261111-4.27261110935717e-06
142.172.17000334378779-3.34378779021094e-06
152.172.17000261688146-2.61688145730687e-06
162.172.17000204799736-2.04799735836758e-06
172.172.17000160278303-1.60278302541172e-06
182.172.17000125435388-1.2543538772114e-06
192.182.170000981669770.00999901833022676
202.182.18217466917747-0.00217466917747178
212.182.18170191764644-0.00170191764643812
222.182.1813319376139-0.00133193761389716
232.182.18104238757441-0.001042387574409
242.182.18081578284444-0.000815782844440172
252.182.18063843973741-0.00063843973740818
262.182.1804996492646-0.000499649264604773
272.182.18039103046536-0.000391030465355158
282.182.18030602431679-0.000306024316791387
292.182.18023949766262-0.000239497662624544
302.182.18018743324388-0.000187433243881152
312.182.18014668711388-0.000146687113881327
322.192.18011479878880.00988520121119718
332.192.1922637435826-0.00226374358260362
342.192.19177162815851-0.00177162815850629
352.22.191386493751380.00861350624861767
362.22.20325898466117-0.00325898466116525
372.212.202550513688140.00744948631186393
382.212.2141699581976-0.00416995819759514
392.212.21326345060431-0.00326345060431121
402.22.21255400877949-0.0125540087794933
412.212.199824891664760.0101751083352362
422.22.21203685939473-0.0120368593947275
432.212.199420165431970.0105798345680332
442.212.21172011663463-0.00172011663462923
452.222.211346180322380.00865381967761625
462.222.22322743497218-0.00322743497217726
472.232.222525822588920.00747417741108247
482.242.234150634698690.00584936530131008
492.242.24542222875558-0.00542222875557696
502.252.244243489951360.00575651004863609
512.252.25549489819639-0.00549489819639426
522.322.254300361775810.0656996382241926
532.362.338582812127610.0214171878723906
542.372.38323869655453-0.0132386965545348
552.372.39036073510188-0.0203607351018782
562.372.38593451303919-0.0159345130391864
572.382.38247050779481-0.00247050779480906
582.382.39193344387974-0.0119334438797427
592.412.389339231425230.0206607685747744
602.422.42383067779198-0.00383067779198321
612.432.43299792639705-0.00299792639705032
622.442.44234620690389-0.00234620690389109
632.442.45183616477085-0.01183616477085
642.442.4492630998307-0.00926309983069684
652.432.4472493937128-0.0172493937127989
662.432.43349954643874-0.00349954643873884
672.432.43273877971892-0.00273877971891956
682.422.43214339614578-0.0121433961457789
692.422.419503542148980.000496457851019816
702.422.419611467166540.000388532833460964
712.422.419695930354680.000304069645322702
722.422.419762032082630.000237967917365189


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
732.419813763949922.397443870984962.44218365691487
742.419627527899832.384384908909852.45487014688982
752.419441291849752.371773822341672.46710876135784
762.419255055799672.358938011088982.47957210051036
772.419068819749582.345671174715632.49246646478354
782.41888258369952.331895858883152.50586930851585
792.418696347649422.317583186888112.51980950841073
802.418510111599342.302725593401072.53429462979761
812.418323875549252.287325639594182.54932211150433
822.418137639499172.271390856947652.56488442205069
832.417951403449092.254931180300762.58097162659741
842.4177651673992.237957603250742.59757273154726
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275479910076ssvw7qlm8sym/1v6er1275479693.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275479910076ssvw7qlm8sym/1v6er1275479693.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/02/t1275479910076ssvw7qlm8sym/2oxvt1275479693.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275479910076ssvw7qlm8sym/2oxvt1275479693.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/02/t1275479910076ssvw7qlm8sym/3oxvt1275479693.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275479910076ssvw7qlm8sym/3oxvt1275479693.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