Home » date » 2011 » May » 18 »

Ann-Sophie Coeman smoothing verkochte ton koffie per maand

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 18 May 2011 14:30:21 +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/18/t1305728791bu0z0h4f62x8b0w.htm/, Retrieved Wed, 18 May 2011 16:26:34 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
600 425 398 582 458 455 621 635 589 220 351 379 683 524 536 598 581 632 645 722 689 645 354 486 423 479 684 601 608 463 602 485 563 645 486 435 479 579 563 202 389 467 466 706 546 689 531 528 579 684 651 637 548 496 582 467 693 615 708 648 899 852 745 689 582 674 684 542 489 472 398 486 549 766 654 628 689 648 578 536 548 496 475 687 642 584 596 609 678 694 485 489 537 706 489 598
 
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'Gwilym Jenkins' @ www.wessa.org


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.102723846750587
beta0.0340175164889182
gamma0.50686474160226


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13683610.1381758938172.8618241061897
14524479.46673680843544.5332631915651
15536497.97460667445838.0253933255424
16598549.054661229648.9453387704002
17581532.19639103052748.8036089694732
18632591.16115225931840.8388477406818
19645729.658622663509-84.6586226635087
20722739.362973822626-17.3629738226256
21689682.88563466146.11436533859955
22645256.602963515161388.397036484839
23354476.997965622894-122.997965622894
24486498.767626701021-12.7676267010207
25423947.082145169763-524.082145169763
26479683.494731547057-204.494731547057
27684674.2252481113749.77475188862627
28601740.071117509099-139.071117509099
29608695.09744888087-87.0974488808699
30463744.564947816607-281.564947816607
31602801.14831659405-199.14831659405
32485832.454778639389-347.454778639389
33563744.339694678477-181.339694678477
34645430.305762185496214.694237814504
35486398.26420308092787.7357969190726
36435488.602564406121-53.6025644061212
37479678.172154738252-199.172154738252
38579586.773157239927-7.77315723992717
39563694.869138127748-131.869138127748
40202673.648360753349-471.648360753349
41389614.01379803094-225.013798030941
42467554.751022690543-87.751022690543
43466653.405619433389-187.405619433389
44706609.08783253887696.9121674611237
45546636.021533068656-90.0215330686558
46689507.229770687397181.770229312603
47531416.008185786757114.991814213243
48528441.7761864360586.22381356395
49579572.2454942477366.75450575226432
50684587.3858174784896.61418252152
51651648.2041108316812.79588916831869
52637460.891552133065176.108447866935
53548592.48774980799-44.48774980799
54496619.640641855753-123.640641855753
55582679.550607004092-97.5506070040924
56467797.193773178553-330.193773178553
57693684.3647197268538.63528027314658
58615686.968240860749-71.9682408607486
59708520.973475514394187.026524485606
60648540.058158972345107.941841027655
61899647.03632273249251.963677267511
62852737.085895624876114.914104375124
63745758.87680124095-13.8768012409498
64689627.39270459163561.6072954083651
65582648.307551540508-66.3075515405077
66674635.12223045612538.8777695438753
67684736.630252879207-52.6302528792074
68542749.375383720764-207.375383720764
69489818.101760276982-329.101760276982
70472743.94473633468-271.944736334681
71398666.818447517795-268.818447517795
72486599.398719650655-113.398719650655
73549738.342798272456-189.342798272456
74766715.53748954191550.4625104580851
75654672.91159799633-18.9115979963302
76628581.69290213525746.3070978647434
77689544.290750695768144.709249304232
78648594.11911610791453.8808838920863
79578647.527191025146-69.5271910251463
80536587.830021981531-51.8300219815306
81548605.900260290522-57.900260290522
82496579.890039983033-83.8900399830329
83475518.708453726366-43.7084537263661
84687542.978851488934144.021148511066
85642675.867165716623-33.8671657166227
86584784.80647889131-200.806478891309
87596682.126276186204-86.1262761862039
88609611.885449999294-2.88544999929354
89678611.65819042061366.3418095793871
90694610.91419809834483.085801901656
91485609.959056543955-124.959056543955
92489552.216077041558-63.2160770415579
93537564.49793121961-27.4979312196098
94706528.92431163553177.07568836447
95489511.597224588999-22.5972245889991
96598624.972270032514-26.9722700325143


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
97658.508422317156488.452028936849828.564815697464
98691.951977283666518.538513659586865.365440907746
99660.589070868376484.559585203199836.618556533552
100636.24588328311457.58099258753814.91077397869
101668.990136424608485.716385501104852.263887348111
102668.471446579923481.665443935433855.277449224413
103561.065488829984376.385502518933745.745475141036
104543.332928722381356.151514586947730.514342857815
105580.392652666636386.796854305303773.988451027968
106641.736950065045438.672154444971844.801745685119
107512.340330388093317.766873490839706.913787285348
108628.893827061907485.317236132536772.470417991277
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/18/t1305728791bu0z0h4f62x8b0w/1co3m1305729018.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305728791bu0z0h4f62x8b0w/1co3m1305729018.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/18/t1305728791bu0z0h4f62x8b0w/2c9pe1305729018.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305728791bu0z0h4f62x8b0w/2c9pe1305729018.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/18/t1305728791bu0z0h4f62x8b0w/3k49r1305729018.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305728791bu0z0h4f62x8b0w/3k49r1305729018.ps (open in new window)


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