Home » date » 2008 » Jun » 01 »

Opgave 10-prijzen dieselbrandstof-Messelis Peter

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 08:10:44 -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/t1212329504ivvqggarusmuyjh.htm/, Retrieved Sun, 01 Jun 2008 14:11:48 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0,76 0,77 0,76 0,77 0,78 0,79 0,78 0,76 0,78 0,76 0,74 0,73 0,72 0,71 0,73 0,75 0,75 0,72 0,72 0,72 0,74 0,78 0,74 0,74 0,75 0,78 0,81 0,75 0,7 0,71 0,71 0,73 0,74 0,74 0,75 0,74 0,74 0,73 0,76 0,8 0,83 0,81 0,83 0,88 0,89 0,93 0,91 0,9 0,86 0,88 0,93 0,98 0,97 1,03 1,06 1,06 1,08 1,09 1,04 1
 
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 time5 seconds
R Server'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.0157312826556434
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
30.760.78-0.02
40.770.7696853743468870.00031462565311291
50.780.7796903238119670.000309676188033015
60.790.7896951954156130.000304804584387419
70.780.799699990382684-0.0196999903826844
80.760.789390084265661-0.0293900842656609
90.780.7689277405428050.0110722594571954
100.760.789101921385962-0.0291019213859625
110.740.768644110834818-0.0286441108348175
120.730.748193502230855-0.0181935022308554
130.720.737907295104766-0.0179072951047657
140.710.727625590383875-0.0176255903838747
150.730.7173483172395730.0126516827604267
160.750.7375473444371470.0124526555628529
170.750.75774324068162-0.00774324068161969
180.720.757621429573787-0.0376214295737866
190.720.727029596231252-0.00702959623125188
200.720.726919011665983-0.00691901166598297
210.740.7268101667377680.0131898332622322
220.780.7470176597329970.0329823402670033
230.740.787536514250382-0.0475365142503816
240.740.746788703908245-0.00678870390824482
250.750.7466819088881990.00331809111180126
260.780.7567341067173560.0232658932826444
270.810.7871001090608210.0228998909391791
280.750.817460353717969-0.0674603537179687
290.70.756399115825582-0.0563991158255815
300.710.7055118853930010.00448811460699905
310.710.715582489192475-0.00558248919247462
320.730.7154946694770660.0145053305229343
330.740.7357228569315350.00427714306846450
340.740.745790141878104-0.00579014187810412
350.750.7456990555196030.00430094448039664
360.740.755766714892911-0.0157667148929108
370.740.74551868424438-0.0055186842443794
380.730.745431868262644-0.0154318682626439
390.760.7351891051810990.0248108948189005
400.80.7655794123804350.0344205876195649
410.830.8061208923734520.0238791076265481
420.810.83649654136509-0.0264965413650895
430.830.8160797167834780.0139202832165215
440.880.8362987006934040.0437012993065959
450.890.8869861781852150.00301382181478493
460.930.8970335894680570.0329664105319428
470.910.937552193390277-0.0275521933902771
480.90.917118762048272-0.0171187620482718
490.860.906849461963776-0.0468494619637757
500.880.8661124598353590.0138875401646413
510.930.886330928655080.0436690713449197
520.980.9370178991597170.0429821008402832
530.970.987694062737169-0.0176940627371686
541.030.9774157124349230.0525842875650766
551.061.038242930725860.0217570692741447
561.061.06858519733237-0.0085851973323654
571.081.068450141166480.0115498588335246
581.091.088631835260420.00136816473958157
591.041.09865335824666-0.0586533582466562
6011.04773066568938-0.0477306656893755


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
611.006979801096070.9538862947559291.06007330743622
621.013959602192150.9382811448474731.08963805953682
631.020939403288220.9275246256213451.11435418095510
641.027919204384290.9192104606156641.13662794815293
651.034899005480370.9124145779947041.15738343296603
661.041878806576440.9066669435037831.17709066964910
671.048858607672520.9016905914331321.1960266239119
681.055838408768590.8973065146397591.21437030289742
691.062818209864660.8933913746610481.23224504506828
701.069798010960740.889856094466091.24973992745539
711.076777812056810.8866339740161021.26692165009752
721.083757613152880.8836736177879811.28384160851779
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212329504ivvqggarusmuyjh/14eax1212329438.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212329504ivvqggarusmuyjh/14eax1212329438.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212329504ivvqggarusmuyjh/20kyp1212329438.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212329504ivvqggarusmuyjh/20kyp1212329438.ps (open in new window)


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


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