Home » date » 2008 » May » 30 »

evolutie prijzen middagmaal voorspellen tijdsreeks(Van Puymbroeck Bram)

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 30 May 2008 06:35:20 -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/30/t1212151364u4d7pwj76xtijz8.htm/, Retrieved Fri, 30 May 2008 12:42:48 +0000
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2,9 2,9 2,9 2,9 2,9 2,9 2,9 2,9 2,95 2,96 2,96 2,96 2,96 2,96 2,96 2,96 2,96 2,96 2,96 2,96 3,04 3,04 3,04 3,04 3,04 3,04 3,04 3,04 3,04 3,03 3,03 3,03 3,15 3,15 3,15 3,15 3,15 3,15 3,15 3,15 3,15 3,15 3,15 3,15 3,26 3,26 3,27 3,27 3,27 3,27 3,27 3,27 3,27 3,27 3,27 3,27 3,32 3,32 3,32 3,32 3,32 3,32 3,32 3,32 3,32 3,32 3,32 3,33 3,41 3,42 3,42 3,42
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.973951087962422
beta0.0274509287970910
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
32.92.90
42.92.90
52.92.90
62.92.90
72.92.90
82.92.90
92.952.90.0500000000000003
102.962.950034347496500.00996565250350345
112.962.96134363900266-0.00134363900266399
122.962.96160231039541-0.00160231039540637
132.962.9615662093542-0.00156620935420149
142.962.96152339500425-0.00152339500424858
152.962.96148155045846-0.00148155045845710
162.962.96144084992501-0.00144084992500959
172.962.96140126735568-0.00140126735568291
182.962.96136277218222-0.00136277218221537
192.962.96132533453587-0.00132533453587103
202.962.9612889253647-0.00128892536470238
213.042.961253516414770.0787464835852316
223.043.0412740362027-0.00127403620270128
233.043.0433244212278-0.00332442122780163
243.043.04328895025989-0.00328895025989473
253.043.04320009335961-0.00320009335960592
263.043.04311222147968-0.0031122214796806
273.043.04302672458892-0.00302672458891662
283.043.04294357539711-0.00294357539710655
293.043.04286271042562-0.00286271042561514
303.033.04278406695029-0.0127840669502941
313.033.03270071444433-0.00270071444433206
323.033.03236584815326-0.00236584815326335
333.153.032293872261040.117706127738959
343.153.15231310270680-0.00231310270680440
353.153.15537763028882-0.00537763028881821
363.153.15531368231713-0.00531368231712515
373.153.15516995066507-0.00516995066506531
383.153.15502798352454-0.00502798352454414
393.153.1548898579615-0.00488985796150088
403.153.15475552537336-0.00475552537335977
413.153.15462488308562-0.00462488308562259
423.153.15449782976037-0.00449782976036772
433.153.15437426680385-0.00437426680384734
443.153.15425409832979-0.00425409832978518
453.263.154137231086030.105862768913966
463.263.26409913887453-0.00409913887452928
473.273.266853932926860.00314606707313914
483.273.27674931600944-0.00674931600944406
493.273.27682663119174-0.00682663119173688
503.273.27664612929887-0.0066461292988742
513.273.27646373742539-0.00646373742539152
523.273.27628617272392-0.0062861727239234
533.273.27611348111038-0.00611348111038312
543.273.27594553349462-0.00594553349462412
553.273.27578219967912-0.00578219967911853
563.273.27562335291844-0.00562335291843619
573.323.275468869945720.0445311300542817
583.323.32535297837686-0.00535297837685977
593.323.32650928863846-0.00650928863845701
603.323.32636537782020-0.00636537782020508
613.323.32619144523719-0.0061914452371874
623.323.32602138085739-0.00602138085739101
633.323.32585596405786-0.00585596405786415
643.323.32569509088347-0.00569509088346587
653.323.32553863714854-0.00553863714854375
663.323.32538648146067-0.00538648146067366
673.323.32523850574572-0.00523850574572116
683.333.325094595172800.00490540482719526
693.413.334961507564930.075038492435072
703.423.41514083571090.0048591642890985
713.423.42709884480234-0.00709884480234191
723.423.42722054419455-0.00722054419454565


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
733.427030666858393.378721760323733.47533957339305
743.43387324639623.365530665658693.50221582713371
753.440715825934003.356251574343253.52518007752476
763.447558405471813.348929853954193.54618695698943
773.454400985009613.342802647952043.56599932206719
783.461243564547423.337480326327973.58500680276687
793.468086144085233.332733351593803.60343893657665
803.474928723623033.328413730891493.62144371635457
813.481771303160843.324419882851473.6391227234702
823.488613882698643.320678794259383.6565489711379
833.495456462236453.317136096541943.67377682793096
843.502299041774253.313750155515383.69084792803312
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/30/t1212151364u4d7pwj76xtijz8/1eh2z1212150915.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/30/t1212151364u4d7pwj76xtijz8/1eh2z1212150915.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/30/t1212151364u4d7pwj76xtijz8/250pt1212150915.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/30/t1212151364u4d7pwj76xtijz8/250pt1212150915.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/30/t1212151364u4d7pwj76xtijz8/3ngli1212150915.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/30/t1212151364u4d7pwj76xtijz8/3ngli1212150915.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