Home » date » 2008 » Aug » 11 »

jan-pieter onzea-voorspellen van tijdsreeksen-aardappelprijs

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Mon, 11 Aug 2008 12:37:56 -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/Aug/11/t1218479943nmio0xkcvot036a.htm/, Retrieved Mon, 11 Aug 2008 18:39:03 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0,31 0,32 0,31 0,32 0,31 0,91 0,68 0,48 0,43 0,39 0,44 0,5 0,56 0,59 0,6 0,59 0,59 0,78 0,64 0,47 0,4 0,36 0,36 0,36 0,36 0,35 0,35 0,35 0,33 0,78 0,71 0,62 0,52 0,46 0,43 0,43 0,42 0,42 0,42 0,42 0,43 0,99 1,03 0,83 0,64 0,6 0,58 0,58 0,58 0,57 0,57 0,56 0,56 0,88 0,84 0,69 0,59 0,54 0,52 0,52 0,51 0,52 0,51 0,51 0,53 0,95 0,98 0,88 0,81 0,77 0,76 0,75 0,73 0,74 0,73 0,75 0,77 1,09 1,03 0,9 0,76 0,66 0,63 0,61 0,61 0,61 0,61 0,61 0,62 0,76 0,83 0,81 0,77 0,75 0,76 0,76
 
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 time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
130.560.5351796497584540.0248203502415458
140.590.592083333333333-0.00208333333333333
150.60.601666666666667-0.00166666666666671
160.590.5925-0.00250000000000006
170.590.594583333333333-0.00458333333333327
180.780.789166666666667-0.00916666666666677
190.640.654166666666667-0.0141666666666667
200.470.488333333333333-0.0183333333333334
210.40.420416666666667-0.0204166666666667
220.360.380416666666667-0.0204166666666667
230.360.380833333333333-0.0208333333333333
240.360.370833333333333-0.0108333333333334
250.360.435-0.0749999999999999
260.350.392083333333333-0.0420833333333333
270.350.361666666666667-0.0116666666666667
280.350.34250.00749999999999995
290.330.354583333333333-0.0245833333333332
300.780.5291666666666670.250833333333333
310.710.6541666666666670.0558333333333333
320.620.5583333333333330.0616666666666668
330.520.570416666666667-0.0504166666666668
340.460.500416666666667-0.0404166666666667
350.430.480833333333333-0.0508333333333332
360.430.440833333333333-0.0108333333333334
370.420.505-0.0849999999999999
380.420.452083333333333-0.0320833333333332
390.420.431666666666667-0.0116666666666667
400.420.41250.00749999999999995
410.430.4245833333333330.00541666666666674
420.990.6291666666666670.360833333333333
431.030.8641666666666670.165833333333333
440.830.878333333333333-0.0483333333333333
450.640.780416666666667-0.140416666666667
460.60.620416666666667-0.0204166666666669
470.580.620833333333333-0.0408333333333332
480.580.590833333333333-0.0108333333333334
490.580.655-0.075
500.570.612083333333333-0.0420833333333333
510.570.581666666666667-0.0116666666666667
520.560.5625-0.00249999999999995
530.560.564583333333333-0.00458333333333327
540.880.7591666666666670.120833333333333
550.840.7541666666666670.0858333333333333
560.690.6883333333333330.00166666666666671
570.590.640416666666667-0.0504166666666667
580.540.570416666666667-0.0304166666666668
590.520.560833333333333-0.0408333333333333
600.520.530833333333333-0.0108333333333333
610.510.595-0.085
620.520.542083333333333-0.0220833333333332
630.510.531666666666667-0.0216666666666667
640.510.50250.00749999999999995
650.530.5145833333333330.0154166666666667
660.950.7291666666666670.220833333333333
670.980.8241666666666670.155833333333333
680.880.8283333333333330.0516666666666667
690.810.830416666666667-0.0204166666666666
700.770.790416666666667-0.0204166666666669
710.760.790833333333333-0.0308333333333333
720.750.770833333333333-0.0208333333333333
730.730.825-0.095
740.740.762083333333333-0.0220833333333332
750.730.751666666666667-0.0216666666666667
760.750.72250.0275000000000000
770.770.7545833333333330.0154166666666667
781.090.9691666666666670.120833333333333
791.030.9641666666666670.0658333333333333
800.90.8783333333333330.0216666666666667
810.760.850416666666667-0.0904166666666667
820.660.740416666666667-0.0804166666666668
830.630.680833333333333-0.0508333333333333
840.610.640833333333333-0.0308333333333333
850.610.685-0.075
860.610.642083333333333-0.0320833333333332
870.610.621666666666667-0.0116666666666667
880.610.60250.00749999999999995
890.620.6145833333333330.00541666666666674
900.760.819166666666667-0.0591666666666668
910.830.6341666666666670.195833333333333
920.810.6783333333333330.131666666666667
930.770.7604166666666670.00958333333333328
940.750.750416666666667-0.000416666666666843
950.760.770833333333333-0.0108333333333333
960.760.770833333333333-0.0108333333333333


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
970.8350.6809019474014150.989098052598585
980.8670833333333330.6491557774131321.08501088925353
990.878750.6118443435518291.14565565644817
1000.871250.563053894802831.17944610519717
1010.8758333333333330.5312596125225591.22040705414411
1021.0750.6975384007769031.45246159922310
1030.9491666666666670.541461541971461.35687179136187
1040.79750.3616448881595971.23335511184040
1050.7479166666666670.2856225088709121.21021082446242
1060.7283333333333330.2410325041253761.21563416254129
1070.7491666666666670.2380812452727091.26025208806062
1080.760.2261886871036591.29381131289634
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/11/t1218479943nmio0xkcvot036a/1l1py1218479870.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/11/t1218479943nmio0xkcvot036a/1l1py1218479870.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/11/t1218479943nmio0xkcvot036a/24k461218479870.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/11/t1218479943nmio0xkcvot036a/24k461218479870.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/11/t1218479943nmio0xkcvot036a/3tusj1218479870.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/11/t1218479943nmio0xkcvot036a/3tusj1218479870.ps (open in new window)


 
Parameters (Session):
 
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