Home » date » 2010 » Dec » 03 »

Exponential Smoothing Overlijdens Belgiƫ

*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, 03 Dec 2010 19:14:24 +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/03/t129140374334uubz0imogt6pp.htm/, Retrieved Fri, 03 Dec 2010 20:15:46 +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/03/t129140374334uubz0imogt6pp.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 «
12008 9169 8788 8417 8247 8197 8236 8253 7733 8366 8626 8863 10102 8463 9114 8563 8872 8301 8301 8278 7736 7973 8268 9476 11100 8962 9173 8738 8459 8078 8411 8291 7810 8616 8312 9692 9911 8915 9452 9112 8472 8230 8384 8625 8221 8649 8625 10443 10357 8586 8892 8329 8101 7922 8120 7838 7735 8406 8209 9451 10041 9411 10405 8467 8464 8102 7627 7513 7510 8291 8064 9383 9706 8579 9474 8318 8213 8059 9111 7708 7680 8014 8007 8718 9486 9113 9025 8476 7952 7759 7835 7600 7651 8319 8812 8630
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.0618419834147308
beta0
gamma0.322340313497252


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
131010210040.433760683861.5662393162402
1484638403.5284350717659.4715649282425
1591149059.0769039743354.9230960256718
1685638529.7607532051333.2392467948721
1788728874.1452968581-2.14529685809612
1883018294.424923482676.57507651732703
1983018164.41050195957136.589498040431
2082788300.72809680264-22.7280968026425
2177367797.19317558775-61.1931755877531
2279738408.77949760859-435.77949760859
2382688611.7423251823-343.742325182295
2494768799.14691404673676.853085953275
251110010093.61849008401006.38150991604
2689628514.50897235092447.491027649075
2791739192.6778494662-19.6778494661939
2887388652.1908989179685.8091010820353
2984598989.12596304143-530.125963041428
3080788379.39131259644-301.391312596435
3184118269.64879929562141.351200704379
3282918358.08224692338-67.082246923379
3378107840.17230073919-30.1723007391902
3486168340.39980801158275.600191988422
3583128615.1883734454-303.188373445406
3696929113.73522726881578.264772731187
37991110501.7613282095-590.761328209517
3889158654.86941101666260.130588983337
3994529180.17680584806271.823194151941
4091128689.61676050825422.383239491748
4184728861.103686033-389.103686032995
4282308329.26089772807-99.260897728067
4383848365.9065887149818.0934112850191
4486258383.68597391713241.314026082870
4582217896.00965962521324.990340374787
4686498510.66861110863138.331388891374
4786258601.9389802379923.0610197620117
48104439387.218595239581055.78140476042
491035710451.2545903467-94.2545903467144
5085868892.3825826454-306.382582645396
5188929386.19159501558-494.191595015576
5283298893.78995931962-564.789959319616
5381018758.82950000134-657.829500001344
5479228298.01841584362-376.018415843619
5581208353.0375376632-233.037537663193
5678388422.78977342329-584.78977342329
5777357909.32979364573-174.329793645733
5884068436.66298295507-30.6629829550675
5982098482.623936501-273.623936501006
6094519561.85696016096-110.856960160962
611004110205.9677681594-164.967768159438
6294118578.57390800513832.42609199487
63104059086.014507333541318.98549266646
6484678684.39395953467-217.393959534669
6584648542.78142865477-78.781428654771
6681028203.00123047686-101.001230476862
6776278318.266257289-691.266257289006
6875138253.30868108957-740.308681089573
6975107854.35672547885-344.356725478853
7082918414.62083907508-123.620839075076
7180648381.3602080626-317.360208062602
7293839507.11022847005-124.110228470046
73970610134.0379869939-428.037986993937
7485798791.99337919066-212.993379190664
7594749381.9217196230992.0782803769125
7683188439.81620253703-121.816202537029
7782138346.03167141113-133.031671411134
7880597996.1771259159762.8228740840332
7991117943.073586533741167.92641346626
8077087978.26144211615-270.261442116152
8176807728.11644621713-48.1164462171328
8280148373.45253564256-359.452535642564
8380078267.01962824298-260.019628242977
8487189454.75568599356-736.755685993556
8594869951.88661121125-465.886611211248
8691138672.53218116372440.467818836281
8790259395.12740395928-370.127403959275
8884768359.7551637003116.244836299706
8979528277.30117263641-325.301172636413
9077597974.78391873713-215.783918737132
9178358238.64088847943-403.640888479433
9276007741.72305384134-141.723053841341
9376517566.7051395867284.294860413278
9483198126.07985893804192.920141061962
9588128083.87589607805728.124103921947
9686309188.55280672682-558.552806726819


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
979778.616625284388954.414385688410602.8188648804
988802.160700299867976.383912443339627.93748815638
999252.38753968218425.0392001235610079.7358792406
1008386.986668442967558.069756697349215.90358018858
1018163.817637894167333.335116593728994.3001591946
1027914.536344737877082.491159791078746.58152968467
1038134.928717188237301.323797936448968.53363644002
1047742.178399454426907.016658826658577.3401400822
1057644.274127039496807.558461705068480.98979237392
1068231.284837855327393.018128374589069.55154733605
1078338.999280263667499.184391236759178.81416929058
1089009.548542370788168.188322584449850.90876215713
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/03/t129140374334uubz0imogt6pp/1slr51291403661.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t129140374334uubz0imogt6pp/1slr51291403661.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t129140374334uubz0imogt6pp/2slr51291403661.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t129140374334uubz0imogt6pp/2slr51291403661.ps (open in new window)


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