Home » date » 2010 » Dec » 24 »

*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: Fri, 24 Dec 2010 16:04:11 +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/24/t1293206515saocbugbdf498vu.htm/, Retrieved Fri, 24 Dec 2010 17:01:55 +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/24/t1293206515saocbugbdf498vu.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 «
14.458 13.594 17.814 20.235 21.811 21.439 21.393 19.831 20.468 21.080 21.600 17.390 17.848 19.592 21.092 20.899 25.890 24.965 22.225 20.977 22.897 22.785 22.769 19.637 20.203 20.450 23.083 21.738 26.766 25.280 22.574 22.729 21.378 22.902 24.989 21.116 15.169 15.846 20.927 18.273 22.538 15.596 14.034 11.366 14.861 15.149 13.577 13.026 13.190 13.196 15.826 14.733 16.307 15.703 14.589 12.043 15.057 14.053 12.698 10.888 10.045 11.549 13.767 12.434 13.116 14.211 12.266 12.602 15.714 13.742 12.745 10.491 10.057 10.900 11.771 11.992 11.933 14.504 11.727 11.477 13.578 11.555 11.846 11.397 10.066 10.269 14.279 13.870 13.695 14.420 11.424 9.704 12.464 14.301 13.464 9.893 11.572 12.380 16.692 16.052 16.459 14.761 13.654 13.480 18.068 16.560 14.530 10.650 11.651 13.735 13.360 17.818 20.613 16.231 13.862 12.004 17.734 15.034 12.609 12.320 10.833 11.350 13.648 14.890 16.325 18.045 15.616 11.926 16 etc...
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.447201661696798
beta0
gamma0.474929455987073


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1317.84816.05864362373741.78935637626262
1419.59218.52043010190311.07156989809688
1521.09220.35067960762300.74132039237702
1620.89920.31694931894370.582050681056295
1725.8925.44849335070380.441506649296159
1824.96524.57860252458590.386397475414068
1922.22523.4831084509999-1.25810845099988
2020.97720.96731359445130.00968640554871314
2122.89721.22214537110851.67485462889146
2222.78522.41889314424940.36610685575063
2322.76922.9049917384996-0.135991738499648
2419.63718.31730100706561.31969899293444
2520.20319.65366726240310.549332737596895
2620.4521.3724652931722-0.922465293172213
2723.08322.22427517194280.858724828057163
2821.73822.2012336378836-0.463233637883551
2926.76626.8284263250821-0.0624263250820825
3025.2825.7187074611296-0.438707461129585
3122.57423.8224761508690-1.24847615086896
3222.72921.64383600799381.08516399200619
3321.37822.8167967702696-1.43879677026962
3422.90222.27751554322280.624484456777235
3524.98922.74733995757322.24166004242681
3621.11619.60511640977211.51088359022795
3715.16920.8247286131131-5.65572861311307
3815.84619.3822067268321-3.53620672683214
3920.92719.53278112897061.39421887102939
4018.27319.4021461621031-1.12914616210312
4122.53823.8367696996340-1.29876969963403
4215.59622.0753670941416-6.47936709414157
4314.03417.2651459130930-3.23114591309303
4411.36614.8125269406535-3.44652694065349
4514.86113.29626678868791.56473321131210
4615.14914.64186345541850.507136544581474
4713.57715.4837833129012-1.90678331290119
4813.02610.29451079693682.73148920306324
4913.1910.17845595651423.01154404348576
5013.19613.16841253441690.0275874655831316
5115.82616.2071566133214-0.381156613321352
5214.73314.62008598371360.112914016286412
5316.30719.5656278970912-3.2586278970912
5415.70315.56765829998480.135341700015152
5514.58914.56833456757820.0206654324217919
5612.04313.5133848512927-1.47038485129271
5715.05714.19651603855040.860483961449637
5814.05314.9495096151991-0.896509615199067
5912.69814.5299655414359-1.83196554143592
6010.88810.59188471650210.296115283497945
6110.0459.46025227015580.584747729844194
6211.54910.58153290522760.967467094772395
6313.76713.9332809581206-0.166280958120614
6412.43412.5720164874451-0.138016487445114
6513.11616.5201765268627-3.40417652686269
6614.21113.34817084527320.862829154726803
6712.26612.6440735796332-0.378073579633224
6812.60211.01934645388161.58265354611840
6915.71413.67974828277752.03425171722251
7013.74214.4963712805018-0.754371280501832
7112.74513.8947969070686-1.14979690706864
7210.49110.8204898243408-0.329489824340847
7310.0579.484863358457520.572136641542476
7410.910.70098351788610.199016482113857
7511.77113.411424723346-1.640424723346
7611.99211.39834127146380.593658728536237
7711.93314.8162093273194-2.8832093273194
7814.50412.99744162818411.50655837181589
7911.72712.2554342685767-0.528434268576699
8011.47711.07823531222470.398764687775271
8113.57813.32776275692550.250237243074533
8211.55512.6144458385062-1.05944583850623
8311.84611.77262648714010.0733735128598703
8411.3979.460686845854171.93631315414583
8510.0669.375044442401650.690955557598347
8610.26910.5463415719972-0.277341571997182
8714.27912.56082737622531.71817262377473
8813.8712.63625098667761.23374901332236
8913.69515.4275507978102-1.73255079781023
9014.4215.2758500566134-0.855850056613422
9111.42412.9431023187442-1.51910231874418
929.70411.5663019766636-1.86230197666362
9312.46412.7656822246914-0.301682224691426
9414.30111.46170152654812.83929847345190
9513.46412.66081774504330.803182254956747
969.89311.1643463581869-1.27134635818687
9711.5729.317276840656782.25472315934321
9812.3810.93367650456231.44632349543769
9916.69214.24289091531542.44910908468457
10016.05214.51800984728741.53399015271255
10116.45916.6648050074222-0.205805007422200
10214.76117.4260367209542-2.6650367209542
10313.65414.1100873095826-0.456087309582628
10413.4813.11856533434510.361434665654912
10518.06815.72212974777552.34587025222454
10616.5616.42677266165290.133227338347059
10714.5315.8811669839622-1.35116698396216
10810.6512.8766198513743-2.22661985137434
10911.65111.52808548631240.122914513687613
11013.73511.97889936063641.75610063936356
11113.3615.689918168187-2.32991816818701
11217.81813.58759265107124.23040734892884
11320.61316.48346386818304.12953613181703
11416.23118.5378201226600-2.30682012266002
11513.86215.9620038206483-2.10000382064834
11612.00414.4499520443661-2.44595204436612
11717.73416.31904259977731.41495740022269
11815.03416.0264719950507-0.992471995050687
11912.60914.5877385017339-1.97873850173393
12012.3211.07269876033691.24730123966314
12110.83311.8945549349842-1.06155493498421
12211.3512.2444491387021-0.894449138702052
12313.64813.6973934286187-0.0493934286186999
12414.8914.33727163028240.552728369717578
12516.32515.56199594576840.763004054231564
12618.04514.42103111204243.62396888795764
12715.61614.55177110695761.06422889304242
12811.92614.3639441375175-2.43794413751746
12916.85517.2502598343074-0.395259834307392
13015.08315.516110045447-0.433110045447014
13112.5214.0685895256775-1.54858952567754
13212.35511.59287828548990.762121714510064


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
13311.59159377589378.1070577759371415.0761297758502
13412.46008910204898.6429881391318616.2771900649660
13514.53489364013210.411966477640318.6578208026237
13615.354941850988910.947357817380219.7625258845975
13716.387690944298511.712750769341121.062631119256
13815.656627749563110.728815429116920.5844400700092
13913.49468814958978.3263612547763618.6630150444030
14011.91147499356376.5133390636560317.3096109234714
14116.424330134039910.805776926685722.0428833413940
14214.85700399734819.0263600560686520.6876479386276
14313.31031278805767.2750267636765619.3455988124386
14412.13378798071725.9005748428405418.3670011185939
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293206515saocbugbdf498vu/1jlsi1293206647.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293206515saocbugbdf498vu/1jlsi1293206647.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293206515saocbugbdf498vu/2jlsi1293206647.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293206515saocbugbdf498vu/2jlsi1293206647.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293206515saocbugbdf498vu/3tcrl1293206647.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293206515saocbugbdf498vu/3tcrl1293206647.ps (open in new window)


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