Home » date » 2010 » Dec » 28 »

*The author of this computation has been verified*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 28 Dec 2010 22:16:05 +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/Dec/28/t1293574505hkgbdjvvziqpedq.htm/, Retrieved Tue, 28 Dec 2010 23:15:06 +0100
 
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/Dec/28/t1293574505hkgbdjvvziqpedq.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 20.1 21.64 20.95 19.46 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.39 19.94 20.69 20.69 21.64 20.86 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.7 20.67 20.67 20.67 20.67 23.42 30.02 42.03 32.52 29.13 28.57 28.88 27.49 23.75 23.09 23.24 23.52 22.99 23.75 23.05 21.66 20.84 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 20.67 24.44 34.94 35 35 35 35 35 etc...
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.999949133676386
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
219.3919.390
319.3919.390
419.3919.390
519.3919.390
619.3919.390
719.3919.390
819.3919.390
919.3919.390
1019.3919.390
1119.3919.390
1219.3919.390
1319.3919.390
1419.3919.390
1519.3919.390
1619.3919.390
1719.3919.390
1819.3919.390
1919.3919.390
2019.3919.390
2119.3919.390
2219.3919.390
2319.3919.390
2420.119.390.710000000000001
2521.6420.09996388491021.54003611508977
2620.9521.6399216640246-0.689921664024595
2719.4620.9500350937786-1.49003509377863
2819.3919.4600757926073-0.0700757926072768
2919.3919.3900035644979-3.56449794480795e-06
3019.3919.3900000001813-1.81312742597584e-10
3119.3919.39-1.06581410364015e-14
3219.3919.390
3319.3919.390
3419.3919.390
3519.3919.390
3619.3919.390
3719.3919.390
3819.3919.390
3919.3919.390
4019.3919.390
4119.3919.390
4219.3919.390
4319.3919.390
4419.9419.390.550000000000001
4520.6919.9399720235220.750027976477988
4620.6920.68996184883423.81511657714384e-05
4721.6420.68999999805940.950000001940609
4820.8621.6399516769925-0.779951676992468
4920.6720.8600396732744-0.190039673274402
5020.6720.6700096666195-9.66661951906644e-06
5120.6720.6700000004917-4.91706231287026e-10
5220.6720.67-2.48689957516035e-14
5320.6720.670
5420.6720.670
5520.6720.670
5620.6720.670
5720.6720.670
5820.6720.670
5920.6720.670
6020.6720.670
6120.6720.670
6220.6720.670
6320.6720.670
6420.6720.670
6520.6720.670
6620.6720.670
6720.720.670.0299999999999976
6820.6720.6999984740103-0.0299984740102879
6920.6720.6700015259121-1.52591208646413e-06
7020.6720.6700000000776-7.76161357407545e-11
7120.6720.67-3.5527136788005e-15
7223.4220.672.75
7330.0223.41986011761016.60013988238994
7442.0330.019664275148812.0103357248512
7532.5242.0293890783763-9.5093890783763
7629.1332.5204837076622-3.39048370766224
7728.5729.1301724614415-0.560172461441482
7828.8828.57002849391370.309971506086296
7927.4928.8799842328891-1.38998423288906
8023.7527.4900707033878-3.74007070338781
8123.0923.7501902436467-0.660190243646738
8223.2423.09003358145060.149966418549418
8323.5223.23999237175960.28000762824038
8422.9923.5199857570414-0.52998575704137
8523.7522.9900269584270.759973041572973
8623.0523.7499613429653-0.699961342965327
8721.6623.0500356044602-1.39003560446019
8820.8421.6600707060009-0.820070706000891
8920.6720.8400417139819-0.170041713981917
9020.6720.6700086493969-8.64939685030208e-06
9120.6720.67000000044-4.39964509268975e-10
9220.6720.67-2.1316282072803e-14
9320.6720.670
9420.6720.670
9520.6720.670
9620.6720.670
9720.6720.670
9820.6720.670
9920.6720.670
10020.6720.670
10120.6720.670
10220.6720.670
10320.6720.670
10420.6720.670
10520.6720.670
10620.6720.670
10720.6720.670
10820.6720.670
10920.6720.670
11020.6720.670
11120.6720.670
11220.6720.670
11320.6720.670
11420.6720.670
11520.6720.670
11620.6720.670
11720.6720.670
11820.6720.670
11920.6720.670
12020.6720.670
12120.6720.670
12220.6720.670
12320.6720.670
12420.6720.670
12520.6720.670
12620.6720.670
12720.6720.670
12820.6720.670
12920.6720.670
13020.6720.670
13120.6720.670
13220.6720.670
13320.6720.670
13420.6720.670
13520.6720.670
13620.6720.670
13720.6720.670
13820.6720.670
13920.6720.670
14020.6720.670
14120.6720.670
14220.6720.670
14324.4420.673.77
14434.9424.4398082339610.50019176604
1453534.93946589384760.0605341061523816
1463534.99999692085263.07914743302717e-06
1473534.99999999984341.56624935243599e-10
14835357.105427357601e-15
14935350
15035350
15135350
15235350
15335350
15435350
15535350
15635350
15735350
15835350
15935350
16035350
16135350
16235350
16335350
16435350
16535350
16635350
16735350
16835350
16935350
17035350
17135350
17235350
17335350
17435350
17535350
17635350
17735350
17839.26354.26
17941.5139.25978330946142.25021669053859
18036.4141.5098855397496-5.09988553974962
18141.2536.41025941242834.83974058757175
18258.641.249753820189117.3502461798109
18397.8158.59911745676339.210882543237
184159.7497.808005486559461.9319945134406
185161.49159.7368497471251.75315025287497
186125.32161.489910823692-36.1699108236919
187148.31125.32183983038922.988160169611
188193.55148.30883067680645.2411693231945
189307.5193.547698748041113.952301251959
190612.56307.494203665368305.065796334632
191459.64612.54448242448-152.90448242448
192375.91459.647777688885-83.737777688885
193424375.91425943289948.0857405671013
194360.66423.997554055159-63.337554055159
195317.66360.663221748521-43.0032217485215
196368.24317.66218741579450.5778125842061
197447.95368.23742729261779.7125727073825
198438.31447.945945314481-9.63594531448058
199382.58438.310490145113-55.7304901451127
200384.93382.5828348051472.34716519485312
201363.29384.929880608336-21.6398806083356
202344.97363.29110074117-18.32110074117
203360.91344.97093192703915.9390680729607
204385.42360.90918923820524.5108107617947
205385.5385.4187532251680.0812467748322092
206389.09385.4999958672753.59000413272474
207332.39389.089817389688-56.699817389688
208295.24332.39288411126-37.1528841112602
209279.91295.241889830626-15.3318898306264
210280.1279.910779876870.189220123130269
211272.22280.099990375068-7.87999037506796
212311.33272.22040082614139.1095991738595
213364.8311.32801063847253.471989361528
214410.52364.79728007648545.7227199235151
215446410.51767425333235.4823257466682
216606445.998195144536160.001804855464
217699605.99186129641593.0081387035846
218768698.99526901791869.004730982082
219950767.996489983023182.003510016977


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
220949.99074215056883.5606828057271016.42080149539
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293574505hkgbdjvvziqpedq/1itpm1293574560.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293574505hkgbdjvvziqpedq/1itpm1293574560.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293574505hkgbdjvvziqpedq/2tkpp1293574560.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293574505hkgbdjvvziqpedq/2tkpp1293574560.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293574505hkgbdjvvziqpedq/3tkpp1293574560.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293574505hkgbdjvvziqpedq/3tkpp1293574560.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = 1 ; par3 = 1 ; par4 = 1 ;
 
Parameters (R input):
par1 = 1 ; par2 = Single ; par3 = additive ; par4 = 1 ;
 
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