Home » date » 2010 » Dec » 27 »

Exponential Smoothning - OPJV

*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: Mon, 27 Dec 2010 21:07:25 +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/27/t1293484124gsln8kkodhe3403.htm/, Retrieved Mon, 27 Dec 2010 22:08:45 +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/27/t1293484124gsln8kkodhe3403.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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.957106985347539
beta0.0213231419809721
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
132795124203.10657051283747.89342948717
142978129654.6202551851126.379744814931
153291432946.4121193041-32.412119304121
163348833593.0200307429-105.020030742926
173565235915.2410986995-263.241098699524
183648836895.8636472487-407.863647248749
193538734286.11804762081100.88195237923
203567636417.4957808125-741.495780812547
213484434291.6797450763552.320254923688
223244734813.0811183625-2366.08111836253
233106832676.8052514775-1608.80525147745
242901030941.1150593774-1931.11505937737
252981230347.5787971138-535.578797113765
263095131417.2352441557-466.235244155694
273297433996.147292809-1022.14729280899
283293633533.2865375478-597.286537547756
293401235208.4510334612-1196.45103346121
303294635101.5248152052-2155.52481520519
313194830659.96423633741288.0357636626
323059932671.431673882-2072.43167388201
332769129080.0894447363-1389.08944473627
342507327331.3798624231-2258.37986242307
352340625046.0703511278-1640.07035112784
362224822981.3960861211-733.39608612112
372289623333.2722700379-437.272270037862
382531724241.20771945481075.7922805452
392655828044.8456366513-1486.84563665127
402647126918.6438964953-447.643896495269
412754328477.5879114897-934.587911489689
422619828351.7548651241-2153.75486512409
432472523831.2288487044893.771151295619
442500525084.7917686993-79.7917686992987
452346223234.1860439703227.813956029706
462078022832.9944567295-2052.99445672949
471981520612.2284668615-797.228466861485
481976119251.7817676975509.218232302523
492145420689.6820866707764.31791332933
502389922721.09812873921177.90187126078
512493926423.1608238923-1484.16082389229
522358025254.7722664694-1674.77226646938
532456225503.9618002236-941.961800223642
542469625204.2520675701-508.252067570131
552378522308.42280145641476.57719854357
562381224008.98557568-196.985575680013
572191721987.966387298-70.9663872980345
581971321125.4410414512-1412.44104145119
591928219507.1512849837-225.151284983735
601878818697.490839573190.5091604269
612145319684.24828891661768.75171108344
622448222653.91832686281828.08167313724
632747426836.5214996775637.47850032249
642726427706.3251380422-442.32513804223
652734929207.4155870458-1858.41558704582
663063228071.34588779132560.6541122087
672942928282.73656923891146.26343076108
683008429673.4414532649410.558546735116
692629028329.7832894654-2039.7832894654
702437925575.6399447563-1196.63994475625
712333524269.5158481254-934.515848125386
722134622834.6746514593-1488.67465145932
732110622389.9577075273-1283.95770752727
742451422386.09035345792127.90964654207
752835326756.39873815781596.60126184223
763080528469.2500454382335.74995456201
773134832596.5922140573-1248.59221405726
783455632274.25857478892281.74142521108
793385532192.86292607461662.13707392537
803478734091.1161300116695.883869988422
813252932966.6240006514-437.624000651398
822999831865.9628984148-1867.96289841482
832925729998.7329284108-741.732928410791
842815528798.7492071099-643.749207109926
853046629262.85405756691203.14594243308
863570431927.87120402323776.12879597679
873932738028.66490604691298.33509395306
883935139657.4133971206-306.413397120574
894223441217.92216001091016.07783998913
904363043376.5081197734253.49188022656
914372241447.85179537372274.14820462626
924312144023.4776915288-902.477691528788
933798541421.0008466684-3436.00084666835
943713537428.4661847129-293.466184712874
953464637187.8839885004-2541.88398850035
963302634303.8060686304-1277.80606863038
973508734261.9695397591825.030460240945
983884636689.435898952156.56410105001
994201341114.7831357913898.216864208669
1004390842264.50760864071643.49239135932
1014286845760.5696005895-2892.56960058953
1024442344078.2415818128344.758418187237
1034416742258.26115630711908.73884369292
1044363644275.0906888205-639.090688820528
1054438241748.60282867082633.39717132922
1064214243756.3615625214-1614.36156252142
1074345242184.579595631267.42040437003
1083691243107.8557682617-6195.85576826174
1094241338455.96849597653957.03150402353
1104534444008.97993603311335.02006396692
1114487347648.0523369253-2775.05233692529
1124751045293.07130173952216.92869826049
1134955449134.1497955218419.850204478178
1144736950819.3642618564-3450.36426185641
1154599845415.0199694621582.980030537932
1164814046007.50633062882132.49366937119
1174844146284.48598636512156.51401363491
1184492847654.282754283-2726.28275428301
1194045445119.8543019029-4665.85430190292
1203866139901.1127273156-1240.11272731556
1213724640385.9124353144-3139.91243531439
1223684338847.1078568749-2004.10785687491
1233642438859.0220934936-2435.02209349359
1243759436795.5849014515798.415098548547
1253814438924.9396374962-780.939637496209
1263873738993.3858705731-256.385870573133
1273456036582.7285794758-2022.72857947585
1283608034458.26333806061621.73666193943
1293350833947.5273990163-439.52739901626
1303546232270.31873897053191.68126102947
1313337435084.7196646527-1710.71966465272
1323211032669.5071767577-559.507176757666
1333553333566.32993146371966.67006853631
1343553236910.1059105792-1378.10591057919
1353790337461.7802399504441.219760049586
1363676338307.6984169206-1544.69841692065
1374039938096.67238647962302.32761352043
1384416441171.53271452912992.46728547088
1394449641893.81379973282602.18620026722
1404311044545.7986950495-1435.79869504952
1414388041151.45047534652728.54952465348
1424393042858.02963940161071.97036059845
1434432743585.9473051438741.05269485616


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
14443769.344912836440271.368608504647267.3212171683
14545524.072640035840632.485042298350415.6602377733
14647015.971979834441006.586154146953025.3578055218
14749166.707124907342180.914599925256152.4996498895
14849698.173783598541823.93988586457572.407681333
14951355.149976849542652.86881189660057.431141803
15052433.601551324442947.300699852261919.9024027965
15150391.522025894440154.609833345160628.4342184437
15250443.119260207539481.673538798361404.5649816167
15348694.292262093837029.09360581460359.4909183737
15447755.303073924435403.166981381260107.4391664677
15547458.160157942934432.850026217260483.4702896685
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293484124gsln8kkodhe3403/1m43k1293484040.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293484124gsln8kkodhe3403/1m43k1293484040.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293484124gsln8kkodhe3403/2xw351293484040.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293484124gsln8kkodhe3403/2xw351293484040.ps (open in new window)


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