Home » date » 2008 » Jun » 01 »

Goudprijs opgave 10 verbeterd - Elke Van Buggenhout

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 03:49:05 -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/t1212313822091tm7nt4r4hs1b.htm/, Retrieved Sun, 01 Jun 2008 09:50:22 +0000
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
10.893 10.756 10.940 10.997 10.827 10.166 10.186 10.457 10.368 10.244 10.511 10.812 10.738 10.171 9.721 9.897 9.828 9.924 10.371 10.846 10.413 10.709 10.662 10.570 10.297 10.635 10.872 10.296 10.383 10.431 10.574 10.653 10.805 10.872 10.625 10.407 10.463 10.556 10.646 10.702 11.353 11.346 11.451 11.964 12.574 13.031 13.812 14.544 14.931 14.886 16.005 17.064 15.168 16.050 15.839 15.137 14.954 15.648 15.305 15.579 16.348 15.928 16.171 15.937 15.713 15.594 15.683 16.438 17.032 17.696 17.745 19.394
 
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 time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.994007474033322
beta0
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
210.75610.893-0.137000000000000
310.9410.75682097605740.183179023942564
410.99710.93890229494250.0580977050575271
510.82710.9966518479938-0.169651847993839
610.16610.8280166431044-0.662016643104398
710.18610.16996715192420.0160328480758238
810.45710.18590392274160.271096077258415
910.36810.4553754497176-0.0873754497175643
1010.24410.3685235996513-0.124523599651283
1110.51110.24474621090440.266253789095625
1210.81210.50940446725510.302595532744881
1310.73810.8101866884126-0.072186688412625
1410.17110.7384325806048-0.567432580604761
159.72110.1744003544736-0.453400354473612
169.8979.723717013397480.173282986602516
179.8289.8959615972032-0.067961597203201
189.9249.828407261635980.0955927383640223
1910.3719.923427158033130.447572841966872
2010.84610.36831790812250.477682091877465
2110.41310.8431374776606-0.430137477660606
2210.70910.41557761000410.293422389995877
2310.66210.7072416587087-0.0452416587087434
2410.5710.6622711118146-0.092271111814588
2510.29710.5705529370335-0.273552937033523
2610.63510.29863927307840.336360726921566
2710.87210.63298434960980.239015650390249
2810.29610.8705676925086-0.574567692508595
2910.38310.29944311181700.0835568881830273
3010.43110.38249928317790.0485007168221312
3110.57410.43070935819500.143290641804960
3210.65310.57314132710820.079858672891799
3310.80510.65252144482900.152478555170967
3410.87210.80408626829880.067913731701223
3510.62510.8715930251993-0.246593025199287
3610.40710.6264777151067-0.219477715106708
3710.46310.40831522590690.0546847740931149
3810.55610.46267230007130.093327699928734
3910.64610.55544073133480.0905592686652348
4010.70210.6454573212310.0565426787689987
4111.35310.70166116652930.651338833470749
4211.34611.3490968351273-0.00309683512732128
4311.45111.34601855786490.104981442135086
4411.96411.45037089598200.513629104018014
4512.57411.96092206425690.613077935743069
4613.03112.57032611455050.460673885449538
4713.81213.02823939977930.783760600220726
4814.54413.80730329425150.736696705748482
4914.93114.53958532586120.391414674138762
5014.88614.9286544374015-0.0426544374014846
5116.00514.88625560782371.11874439217628
5217.06415.99829589517981.06570410482019
5315.16817.0576137404791-1.88961374047907
5416.0515.17932355940680.87067644059319
5515.83916.0447824488212-0.205782448821170
5615.13715.8402331566680-0.703233156668047
5714.95415.1412141429520-0.187214142951962
5815.64814.95512188561300.69287811438703
5915.30515.6438479099078-0.338847909907793
6015.57915.30703055489890.271969445101124
6116.34815.57737021603810.77062978396191
6215.92816.3433819810089-0.41538198100891
6316.17115.93048918730730.240510812692712
6415.93716.1695587327097-0.232558732709672
6515.71315.9383936142445-0.22539361424454
6615.59415.7143506770861-0.120350677086083
6715.68315.59472120455750.088278795442454
6816.43815.6824709870260.755529012973994
6917.03216.43347247277120.598527527228825
7017.69617.02841330825130.667586691748692
7117.74517.69199946941470.0530005305853116
7219.39417.74468239294421.64931760705578


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7319.384116421412418.406441369244920.3617914735800
7419.384116421412418.005611635012220.7626212078127
7519.384116421412417.697491867865921.0707409749589
7619.384116421412417.437547819198921.3306850236260
7719.384116421412417.208442672519621.5597901703052
7819.384116421412417.001264516631321.7669683261935
7919.384116421412416.810712034493021.9575208083319
8019.384116421412416.633327974964022.1349048678608
8119.384116421412416.466709350808222.3015234920166
8219.384116421412416.309105697185722.4591271456391
8319.384116421412416.159195043672122.6090377991528
8419.384116421412416.015950031356222.7522828114686
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212313822091tm7nt4r4hs1b/1kcha1212313740.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212313822091tm7nt4r4hs1b/1kcha1212313740.ps (open in new window)


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


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


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