Home » date » 2011 » May » 19 »

Datareeks-exponential smoothing gokuitgaven per maand-sam dejonghe

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 19 May 2011 14:37:00 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/19/t1305815674ex6mrylvmlw4lg0.htm/, Retrieved Thu, 19 May 2011 16:34:47 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
5.81 5.76 5.99 6.12 6.03 6.25 5.80 5.67 5.89 5.91 5.86 6.07 6.27 6.68 6.77 6.71 6.62 6.50 5.89 6.05 6.43 6.47 6.62 6.77 6.70 6.95 6.73 7.07 7.28 7.32 6.76 6.93 6.99 7.16 7.28 7.08 7.34 7.87 6.28 6.30 6.36 6.28 5.89 6.04 5.96 6.10 6.26 6.02 6.25 6.41 6.22 6.57 6.18 6.26 6.10 6.02 6.06 6.35 6.21 6.48 6.74 6.53 6.80 6.75 6.56 6.66 6.18 6.40 6.43 6.54 6.44 6.64 6.82 6.97 7.00 6.91 6.74 6.98 6.37 6.56 6.63 6.87 6.68 6.75 6.84 7.15 7.09 6.97 7.15
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Herman Ole Andreas Wold' @ www.yougetit.org


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.747355048775388
beta0.0237084331610309
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
35.995.710.28
46.125.874220626479120.245779373520885
56.036.017221165627150.012778834372849
66.255.98631399875030.263686001249696
75.86.14759572113559-0.347595721135595
85.675.84587404654151-0.175874046541509
95.895.669373187529620.220626812470379
105.915.7931084493830.116891550617004
115.865.841387796196020.0186122038039809
126.075.816547359492830.253452640507168
136.275.97170693913730.298293060862697
146.686.165663573888930.514336426111071
156.776.530194638670660.239805361329338
166.716.693802545547130.0161974544528691
176.626.69058295076879-0.0705829507687863
186.56.62125694972623-0.121256949726231
195.896.51191097424355-0.62191097424355
206.056.017379283349690.0326207166503059
216.436.012593150220670.417406849779331
226.476.302774748581230.167225251418769
236.626.408944866515980.21105513348402
246.776.551611073222250.21838892677775
256.76.70362777717224-0.00362777717224194
266.956.689654897317660.260345102682343
276.736.87757643718208-0.147576437182083
287.076.758020904323270.311979095676734
297.286.987444357316540.29255564268346
307.327.207535276099320.112464723900678
316.767.2950270568849-0.535027056884906
326.936.889132646635750.0408673533642459
336.996.914359944438940.0756400555610552
347.166.966915033979580.19308496602042
357.287.110664368909130.169335631090873
367.087.23966491170327-0.159664911703271
377.347.11995619633620.220043803663798
387.877.28792357839180.582076421608201
396.287.73677145459763-1.45677145459763
406.36.6360641010529-0.336064101052899
416.366.3669684552111-0.00696845521109868
426.286.34370063042866-0.0637006304286558
435.896.27690504098203-0.386905040982032
446.045.961705581199660.0782944188003416
455.965.99556255521052-0.0355625552105243
466.15.943697825552890.15630217444711
476.266.037993628686720.222006371313278
486.026.18532744098824-0.165327440988238
496.256.040255999461730.209744000538274
506.416.179212467071550.230787532928451
516.226.33798516081268-0.117985160812681
526.576.234010287109140.335989712890864
536.186.47526910039816-0.295269100398162
546.266.23952169232440.020478307675603
556.16.24011255110735-0.14011255110735
566.026.1182024201307-0.098202420130697
576.066.025874026041770.0341259739582327
586.356.033046590441410.316953409558588
596.216.25720764291018-0.0472076429101804
606.486.20837464009440.271625359905596
616.746.402635917429020.337364082570978
626.536.652004986091-0.122004986090999
636.86.555900502389540.244099497610455
646.756.737731158523790.0122688414762138
656.566.74651939024106-0.18651939024106
666.666.603437367667240.0565626323327626
676.186.64302613356184-0.463026133561836
686.46.286093429154020.113906570845978
696.436.362352561116850.067647438883145
706.546.405238316330880.134761683669121
716.446.5006700319195-0.0606700319195008
726.646.448969879099740.191030120900264
736.826.588763895857360.231236104142642
746.976.762703241199230.207296758800766
7576.922424407855920.0775755921440808
766.916.98657233790162-0.0765723379016245
776.746.93416027822437-0.194160278224367
786.986.790428026022340.189571973977659
796.376.93683896312427-0.566838963124274
806.566.507898764820350.0521012351796468
816.636.542449810451820.087550189548181
826.876.605045079400690.264954920599312
836.686.8049193045963-0.124919304596299
846.756.711205661862860.0387943381371354
856.846.740531618607480.0994683813925157
867.156.816965070084160.333034929915841
877.097.073856579269340.0161434207306641
886.977.09420365824349-0.12420365824349
897.157.007460922087510.142539077912489


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
907.12259531188256.570553179596217.67463744416878
917.131202402151796.436125078243467.82627972606012
927.139809492421096.321352066686337.95826691815585
937.148416582690386.218275688585378.0785574767954
947.157023672959686.123006064729168.1910412811902
957.165630763228976.033307971815618.29795355464234
967.174237853498275.947762861972768.40071284502378
977.182844943767565.865407366778918.50028252075622
987.191452034036865.785554153781088.59734991429264
997.200059124306165.707694055478718.6924241931336
1007.208666214575455.631438561828878.78589386732204
1017.217273304844755.556484061146118.87806254854339
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/19/t1305815674ex6mrylvmlw4lg0/126ej1305815818.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305815674ex6mrylvmlw4lg0/126ej1305815818.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t1305815674ex6mrylvmlw4lg0/2wght1305815818.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305815674ex6mrylvmlw4lg0/2wght1305815818.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t1305815674ex6mrylvmlw4lg0/33fs81305815818.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305815674ex6mrylvmlw4lg0/33fs81305815818.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=F, beta=F)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=F)
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