Home » date » 2010 » Jun » 07 »

Exp smoothing megaliters bier

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 06 Jun 2010 22:35:04 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jun/07/t1275863782120dki9vk140wgp.htm/, Retrieved Mon, 07 Jun 2010 00:36:26 +0200
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Jun/07/t1275863782120dki9vk140wgp.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W62
 
Dataseries X:
» Textbox « » Textfile « » CSV «
93.2 96 95.2 77.1 70.9 64.8 70.1 77.3 79.5 100.6 100.7 107.1 95.9 82.8 83.3 80 80.4 67.5 75.7 71.1 89.3 101.1 105.2 114.1 96.3 84.4 91.2 81.9 80.5 70.4 74.8 75.9 86.3 98.7 100.9 113.8 89.8 84.4 87.2 85.6 72 69.2 77.5 78.1 94.3 97.7 100.2 116.4 97.1 93 96 80.5 76.1 69.9 73.6 92.6 94.2 93.5 108.5 109.4 105.1 92.5 97.1 81.4 79.1 72.1 78.7 87.1 91.4 109.9 116.3 113 100 84.8 94.3 87.1 90.3 72.4 84.9 92.7 92.2 114.9 112.5 118.3 106 91.2 96.6 96.3 88.2 70.2 86.5 88.2 102.8 119.1 119.2 125.1
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.0248177025009365
beta0.0705169005484752
gamma0.299825872359443


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1395.995.23283596705040.667164032949628
1482.882.38472054383180.415279456168221
1583.382.87135140618230.428648593817712
168079.32127150482320.67872849517677
1780.479.66303332246670.736966677533331
1867.566.62942188118120.870578118818798
1975.769.93229768408165.76770231591844
2071.177.7982686267752-6.69826862677525
2189.380.95180026333418.34819973666589
22101.1103.332512310900-2.23251231089969
23105.2102.9215545532682.27844544673231
24114.1109.0559535633785.04404643662184
2596.397.741984652808-1.44198465280812
2684.484.4835199637877-0.0835199637877224
2791.284.99454234949986.20545765050016
2881.981.60086745924240.299132540757626
2980.581.9883718385475-1.48837183854752
3070.468.62509539385021.77490460614980
3174.873.52720899117121.27279100882878
3275.977.751492159424-1.85149215942394
3386.385.65324035093240.646759649067619
3498.7105.237888480149-6.53788848014867
35100.9106.071178136997-5.1711781369971
36113.8112.9767618348120.82323816518823
3789.899.3696110725818-9.56961107258182
3884.486.0426835940844-1.64268359408436
3987.288.3698923658617-1.16989236586168
4085.682.9484104555162.65158954448397
417282.8390669991697-10.8390669991697
4269.269.9986789971331-0.798678997133095
4377.574.69766104430872.80233895569133
4478.178.03785980741170.0621401925883163
4594.386.76935006455557.53064993544446
4697.7104.602732780584-6.90273278058403
47100.2105.79895602503-5.59895602502995
48116.4114.5028042340351.89719576596470
4997.197.6451719437032-0.545171943703224
509386.69393654956156.30606345043854
519689.38828467412286.61171532587724
5280.585.2070359491507-4.70703594915069
5376.180.88964954136-4.7896495413600
5469.970.9717658399781-1.07176583997810
5573.676.8181494442719-3.21814944427189
5692.679.237428301689813.3625716983101
5794.290.70615967879053.49384032120948
5893.5104.472917853241-10.9729178532409
59108.5105.9815584750442.51844152495588
60109.4117.312514017756-7.91251401775617
61105.199.19173239494385.90826760505617
6292.590.24161072856182.25838927143825
6397.192.97369033079564.12630966920439
6481.485.286514512536-3.88651451253594
6579.180.8902705288784-1.79027052887841
6672.171.97773704630870.122262953691290
6778.777.3339513618121.36604863818798
6887.184.86862977467392.23137022532609
6991.493.3148786061067-1.91487860610665
70109.9102.8450047408477.05499525915283
71116.3108.8782793924397.4217206075613
72113117.481029004066-4.48102900406599
73100103.203314309358-3.20331430935849
7484.892.7650016690649-7.96500166906486
7594.395.839837380656-1.53983738065592
7687.185.49106720210261.60893279789741
7790.381.77508259834848.5249174016516
7872.473.517929041401-1.11792904140100
7984.979.33482296494145.5651770350586
8092.787.41624043297035.28375956702973
8192.294.9180146596084-2.71801465960839
82114.9107.3583147305797.5416852694213
83112.5113.677822389135-1.17782238913462
84118.3118.709212124037-0.409212124036799
85106104.6121834483031.3878165516971
8691.292.6327162683265-1.43271626832654
8796.697.9209706617054-1.32097066170536
8896.388.28299920593238.01700079406768
8988.286.73617632906431.46382367093568
9070.275.2051326429617-5.00513264296166
9186.583.10393995207393.39606004792611
9288.291.2696948551364-3.06969485513638
93102.896.34869099718226.45130900281777
94119.1112.4421433885166.65785661148428
95119.2116.3073060482542.89269395174632
96125.1121.8400644039803.25993559602045


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
97108.011178298607105.045621419736110.976735177477
9894.838385029740891.864853153498697.811916905983
99100.38101399375797.3938105159789103.368217471535
10093.329178099093790.33364735405596.3247088441323
10189.582535617105286.576547421988492.588523812222
10275.765158480445872.759875173623478.7704417872683
10386.572202711955983.535724507811389.6086809161005
10492.956355434532689.888523299318896.0241875697463
105101.15141620781998.0404853469597104.262347068678
106117.606294843281114.412876470844120.799713215718
107120.278326729567117.041626761403123.51502669773
108125.99020071115108.028689666140143.951711756160
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/07/t1275863782120dki9vk140wgp/1pyue1275863701.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/07/t1275863782120dki9vk140wgp/1pyue1275863701.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/07/t1275863782120dki9vk140wgp/2h8ch1275863701.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/07/t1275863782120dki9vk140wgp/2h8ch1275863701.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/07/t1275863782120dki9vk140wgp/3h8ch1275863701.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/07/t1275863782120dki9vk140wgp/3h8ch1275863701.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