Home » date » 2010 » Dec » 29 »

*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: Wed, 29 Dec 2010 22:36:06 +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/29/t1293662182462hd8k0dbciot2.htm/, Retrieved Wed, 29 Dec 2010 23:36:26 +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/29/t1293662182462hd8k0dbciot2.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 «
20503 22885 26217 26583 27751 28158 27373 28367 26851 26733 26849 26733 27951 29781 32914 33488 35652 36488 35387 35676 34844 32447 31068 29010 29812 30951 32974 32936 34012 32946 31948 30599 27691 25073 23406 22248 22896 25317 26558 26471 27543 26198 24725 25005 23462 20780 19815 19761 21454 23899 24939 23580 24562 24696 23785 23812 21917 19713 19282 18788 21453 24482 27474 27264 27349 30632 29429 30084 26290 24379 23335 21346 21106 24514 28353 30805 31348 34556 33855 34787 32529 29998 29257 28155 30466 35704 39327 39351 42234 43630 43722 43121 37985 37135 34646 33026 35087 38846 42013 43908 42868 44423 44167 43636 44382 42142 43452 36912 42413 45344 44873 47510 49554 47369 45998 48140 48441 44928 40454 38661 37246 36843 36424 37594 38144 38737 34560 36080 33508 35462 33374 32110 35533 35532 37903 36763 40399 44164 44496 43110 43880 43930 44327
 
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'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.957106985347542
beta0.0213231419809285
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
132795124203.10657051283747.89342948717
142978129654.6202551849126.379744815073
153291432946.4121193040-32.4121193039537
163348833593.0200307428-105.020030742766
173565235915.2410986994-263.241098699371
183648836895.8636472486-407.86364724861
193538734286.11804762071100.88195237935
203567636417.4957808124-741.495780812395
213484434291.6797450762552.32025492382
223244734813.0811183624-2366.08111836240
233106832676.8052514774-1608.80525147740
242901030941.1150593774-1931.11505937738
252981230347.5787971139-535.578797113856
263095131417.2352441558-466.23524415584
273297433996.1472928091-1022.14729280914
283293633533.2865375479-597.286537547945
293401235208.4510334614-1196.45103346142
303294635101.5248152055-2155.52481520546
313194830659.96423633771288.03576366226
323059932671.4316738823-2072.43167388231
332769129080.0894447366-1389.08944473662
342507327331.3798624235-2258.37986242351
352340625046.0703511283-1640.07035112833
362224822981.3960861217-733.396086121684
372289623333.2722700384-437.272270038433
382531724241.20771945541075.79228054459
392655828044.8456366518-1486.84563665182
402647126918.6438964958-447.643896495847
412754328477.5879114903-934.58791149029
422619828351.7548651247-2153.75486512472
432472523831.2288487051893.771151294939
442500525084.7917687-79.791768699979
452346223234.1860439709227.813956029069
462078022832.9944567301-2052.99445673013
471981520612.2284668622-797.228466862165
481976119251.7817676982509.218232301817
492145420689.6820866713764.317913328661
502389922721.09812873991177.90187126014
512493926423.1608238929-1484.16082389287
522358025254.77226647-1674.77226646998
532456225503.9618002243-941.961800224315
542469625204.2520675708-508.252067570837
552378522308.42280145711476.57719854289
562381224008.9855756807-196.985575680679
572191721987.9663872987-70.9663872986566
581971321125.4410414518-1412.44104145183
591928219507.1512849844-225.151284984386
601878818697.490839573790.5091604262525
612145319684.24828891721768.75171108282
622448222653.91832686331828.08167313667
632747426836.521499678637.478500321988
642726427706.3251380426-442.325138042648
652734929207.4155870462-1858.41558704625
663063228071.34588779182560.65411220821
672942928282.73656923931146.26343076072
683008429673.4414532652410.558546734756
692629028329.7832894657-2039.7832894657
702437925575.6399447567-1196.63994475665
712333524269.5158481258-934.51584812579
722134622834.6746514598-1488.67465145977
732110622389.9577075278-1283.95770752776
742451422386.09035345852127.90964654151
752835326756.39873815831596.60126184173
763080528469.25004543842335.74995456163
773134832596.5922140575-1248.59221405754
783455632274.25857478922281.74142521078
793385532192.86292607481662.13707392518
803478734091.1161300118695.883869988247
813252932966.6240006515-437.624000651507
822999831865.9628984149-1867.96289841495
832925729998.7329284109-741.732928410947
842815528798.7492071101-643.749207110133
853046629262.85405756711203.14594243286
863570431927.87120402343776.12879597661
873932738028.6649060471298.33509395298
883935139657.4133971206-306.413397120552
894223441217.92216001091016.07783998913
904363043376.5081197733253.491880226655
914372241447.85179537362274.14820462636
924312144023.4776915287-902.477691528664
933798541421.0008466682-3436.00084666823
943713537428.4661847129-293.466184712888
953464637187.8839885004-2541.88398850036
963302634303.8060686305-1277.80606863050
973508734261.9695397592825.030460240792
983884636689.43589895012156.56410104987
994201341114.7831357914898.216864208553
1004390842264.50760864071643.49239135929
1014286845760.5696005895-2892.5696005895
1024442344078.2415818128344.758418187201
1034416742258.26115630711908.73884369290
1044363644275.0906888206-639.090688820557
1054438241748.60282867082633.39717132920
1064214243756.3615625213-1614.36156252131
1074345242184.57959562991267.42040437010
1083691243107.8557682616-6195.85576826164
1094241338455.96849597663957.03150402343
1104534444008.97993603311335.02006396691
1114487347648.0523369253-2775.05233692529
1124751045293.07130173962216.92869826043
1134955449134.1497955218419.850204478171
1144736950819.3642618563-3450.36426185632
1154599845415.0199694621582.980030537889
1164814046007.5063306292132.49366937105
1174844146284.48598636512156.51401363491
1184492847654.2827542829-2726.28275428293
1194045445119.8543019029-4665.85430190287
1203866139901.1127273158-1240.11272731575
1213724640385.9124353145-3139.91243531455
1223684338847.1078568753-2004.10785687529
1233642438859.0220934941-2435.02209349412
1243759436795.584901452798.415098547994
1253814438924.9396374968-780.939637496784
1263873738993.3858705737-256.385870573657
1273456036582.7285794763-2022.72857947634
1283608034458.26333806121621.73666193877
1293350833947.5273990168-439.527399016821
1303546232270.31873897113191.68126102889
1313337435084.7196646531-1710.71966465309
1323211032669.5071767581-559.507176758118
1333553333566.32993146411966.67006853594
1343553236910.1059105796-1378.10591057956
1353790337461.7802399509441.219760049113
1363676338307.698416921-1544.69841692103
1374039938096.67238648012302.32761351993
1384416441171.53271452952992.46728547053
1394449641893.8137997332602.18620026704
1404311044545.7986950497-1435.79869504966
1414388041151.45047534672728.54952465331
1424393042858.02963940161071.97036059837
1434432743585.9473051438741.052694856175


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
14443769.344912836440271.368608504647267.3212171682
14545524.072640035640632.485042298350415.6602377729
14647015.971979834141006.586154146953025.3578055213
14749166.707124907142180.914599925556152.4996498887
14849698.173783598241823.939885864457572.407681332
14951355.149976849242652.868811896760057.4311418018
15052433.60155132442947.300699853161919.9024027949
15150391.52202589440154.609833346260628.4342184417
15250443.11926020739481.673538799761404.5649816143
15348694.292262093337029.093605815760359.490918371
15447755.303073923935403.166981383360107.4391664646
15547458.160157942334432.850026219760483.4702896649
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293662182462hd8k0dbciot2/1kxbm1293662163.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293662182462hd8k0dbciot2/1kxbm1293662163.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293662182462hd8k0dbciot2/2kxbm1293662163.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293662182462hd8k0dbciot2/2kxbm1293662163.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293662182462hd8k0dbciot2/3kxbm1293662163.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293662182462hd8k0dbciot2/3kxbm1293662163.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