Home » date » 2008 » May » 25 »

Bierprijzen - Quinten Bollaerts - triple

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 25 May 2008 11:52: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/2008/May/25/t1211738212qeuc2k34huhw7nk.htm/, Retrieved Sun, 25 May 2008 19:56:56 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,43 0,43 0,43 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,45 0,45 0,46 0,46 0,46 0,46 0,46 0,46 0,46 0,46 0,47 0,47 0,47 0,47 0,47 0,47 0,47 0,47 0,47 0,47 0,47
 
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 time6 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.910118454309823
beta0.000748304930753182
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
130.410.4078902777777780.00210972222222183
140.410.410350036361519-0.000350036361519312
150.410.410570884874142-0.000570884874142252
160.410.410173679614221-0.000173679614221101
170.410.4097211932410080.000278806758992112
180.410.4096807129466430.000319287053356931
190.410.4096772919644270.000322708035573382
200.410.4096772042603150.000322795739684967
210.410.4096774162161220.000322583783877783
220.420.4196776549614740.000322345038525573
230.420.4196778959521160.000322104047884297
240.420.4196781369804410.000321863019558666
250.420.4177846696089790.00221533039102056
260.420.420121945245926-0.000121945245926514
270.420.420533176840395-0.000533176840395111
280.420.42020866081545-0.000208660815449846
290.420.419767652791130.000232347208870221
300.420.4196911408042080.000308859195791766
310.420.4196811431876610.00031885681233923
320.420.4196801621424410.000319837857558902
330.420.4196802648550180.000319735144982181
340.420.429680489433479-0.00968048943347943
350.420.420572732014195-0.000572732014194943
360.430.4197537226392710.0102462773607287
370.430.4270647727403650.0029352272596353
380.430.4298495891970380.000150410802962131
390.440.430474347754780.00952565224521962
400.440.43934318906630.000656810933700125
410.440.439739554116610.000260445883389582
420.440.439705564185210.000294435814789828
430.440.4396934002793310.000306599720668654
440.440.4396914057536660.000308594246334448
450.440.439691312305810.000308687694190513
460.440.448792685318849-0.00879268531884875
470.440.441322197324049-0.00132219732404926
480.440.440803647806101-0.000803647806101315
490.440.4374034358825620.00259656411743775
500.440.4396321017830630.000367898216937002
510.440.441299985587779-0.00129998558777922
520.450.439514220949420.0104857790505797
530.450.4488223313341830.00117766866581731
540.460.4496286484902150.0103713515097847
550.460.4587980983148030.00120190168519702
560.460.4596210571254850.000378942874515287
570.460.4596949887974710.000305011202529348
580.460.467984958925288-0.00798495892528828
590.460.461931595366267-0.00193159536626680
600.460.460915153179023-0.000915153179023076
610.460.4577291222236490.0022708777763506
620.470.4594708849938790.0105291150061207
630.470.470253513954647-0.000253513954647178
640.470.470496944112175-0.000496944112174658
650.470.4689828272858530.00101717271414709
660.470.470479286400635-0.000479286400634993
670.470.4689516861752350.00104831382476461
680.470.4695632685061010.000436731493899445
690.470.4696855644070630.000314435592936646
700.470.477241417769122-0.00724141776912202
710.470.472411778048425-0.00241177804842480
720.470.471052272746296-0.00105227274629632


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
730.4680303193551290.4605798457564870.475480792953771
740.4684485381339360.4583709477575820.47852612851029
750.468673055702920.4565208958432760.480825215562563
760.4691192962053010.4551958953018010.483042697108801
770.4681878494839290.4526921665469720.483683532420886
780.4686176650775030.4516931168815540.485542213273451
790.4676575099312790.4494137830621420.485901236800417
800.4672532532006360.4477777312181010.48672877518317
810.4669600027920530.4463244135739140.487595592010192
820.4735432598211950.4518078421985280.495278677443862
830.4757359043523890.4529521707132020.498519637991576
840.4766928805514820.4529055307242710.500480230378693
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211738212qeuc2k34huhw7nk/16tk61211737967.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211738212qeuc2k34huhw7nk/16tk61211737967.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211738212qeuc2k34huhw7nk/2nsx01211737967.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211738212qeuc2k34huhw7nk/2nsx01211737967.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211738212qeuc2k34huhw7nk/367jt1211737967.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211738212qeuc2k34huhw7nk/367jt1211737967.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