Home » date » 2010 » Dec » 01 »

*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, 01 Dec 2010 08:03:33 +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/01/t1291190490zps5veeotz3y2qa.htm/, Retrieved Wed, 01 Dec 2010 09:01:30 +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/01/t1291190490zps5veeotz3y2qa.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 «
9700 9081 9084 9743 8587 9731 9563 9998 9437 10038 9918 9252 9737 9035 9133 9487 8700 9627 8947 9283 8829 9947 9628 9318 9605 8640 9214 9567 8547 9185 9470 9123 9278 10170 9434 9655 9429 8739 9552 9687 9019 9672 9206 9069 9788 10312 10105 9863 9656 9295 9946 9701 9049 10190 9706 9765 9893 9994 10433 10073 10112 9266 9820 10097 9115 10411 9678 10408 10153 10368 10581 10597 10680 9738 9556
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.53660045409414
beta0.263284283989569
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
390848462622
497438264.640688512931478.35931148707
585878735.6645086708-148.664508670796
697318312.623514325081418.37648567492
795638930.84348372488632.156516275123
899989216.48756363599781.51243636401
994379692.68697652723-255.686976527229
10100389576.20164956678461.798350433215
1199189909.96143756898.0385624311075
12925210001.3691930513-749.36919305129
1397379580.4818726872156.518127312806
1490359667.80674077049-632.806740770488
1591339242.17756038388-109.177560383876
1694879082.10359767938404.896402320623
1787009255.08509954841-555.085099548412
1896278834.51852003758792.481479962422
1989479249.01734710998-302.017347109977
2092839033.53905896064249.460941039355
2188299149.22772981824-320.227729818236
2299478913.97991865161033.02008134839
2396289550.8289902550277.1710097449777
2493189685.67161789362-367.671617893622
2596059529.8674072464575.1325927535509
2686409622.28675458407-982.286754584067
2792149008.51843377409205.481566225913
2895679061.13725380787505.86274619213
2985479346.40826437578-799.408264375776
3091858818.33108438278366.668915617223
3194708967.7738707375502.226129262506
3291239260.91045679043-137.910456790425
3392789191.0656822568486.934317743162
34101709254.15466292214915.845337077859
3594349891.42689759734-457.426897597339
3696559727.1760569936-72.1760569936087
3794299759.45406975913-330.454069759127
3887399606.45393941922-867.453939419218
3995529042.74687298543509.253127014566
4096879289.72794432047397.272055679534
4190199532.74590867517-513.745908675166
4296729214.32998560075457.670014399253
4392069481.8352056886-275.835205688600
4490699316.77161677334-247.771616773343
4597889131.76216839205656.23783160795
46103129524.55687492446787.443125075537
471010510099.00515855555.994841444548
48986310254.9748803442-391.974880344231
49965610142.0162587648-486.016258764772
5092959909.93135916436-614.931359164359
5199469521.79399881996424.206001180039
5297019751.18939116347-50.1893911634688
5390499718.93332034494-669.933320344935
54101909259.47522365403930.524776345974
5597069790.28678170396-84.2867817039605
5697659764.642089632060.357910367942168
5798939784.46834279047108.531657209531
5899949877.67386370555116.326136294452
59104339991.4962837685441.5037162315
601007310342.1841088016-269.184108801557
611011210273.4866061469-161.486606146864
62926610239.7650522699-973.765052269851
6398209632.60248218766187.397517812344
64100979674.995508402422.004491597991
6591159902.89889064691-787.898890646911
66104119370.254421663911040.74557833609
6796789965.89634427623-287.896344276229
68104089807.91485390069600.085146099313
691015310211.2037436050-58.2037436049723
701036810253.0315805368114.968419463217
711058110404.0262407873176.973759212720
721059710613.2955757884-16.2955757884429
731068010716.5542839099-36.5542839099126
74973810803.7778268849-1065.77782688492
75955610188.1480924887-632.148092488724


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
769715.895357468748605.8465242500810825.9441906874
779582.853575932968241.7970472392510923.9101046267
789449.811794397177829.544022336311070.0795664580
799316.770012861387377.2076089390911256.3324167837
809183.72823132566890.7987958133111476.6576668379
819050.68644978986374.6211157095411726.7517838701
828917.644668254025831.7911504588912003.4981860491
838784.602886718235264.6294541759512304.5763192605
848651.561105182444674.9196131305912628.2025972343
858518.519323646654064.0749709466912972.9636763466
868385.477542110863433.2464734633413337.7086107584
878252.435760575082783.3937475039413721.4777736462
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291190490zps5veeotz3y2qa/1ubci1291190605.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291190490zps5veeotz3y2qa/1ubci1291190605.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291190490zps5veeotz3y2qa/2n2b31291190605.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291190490zps5veeotz3y2qa/2n2b31291190605.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291190490zps5veeotz3y2qa/3n2b31291190605.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291190490zps5veeotz3y2qa/3n2b31291190605.ps (open in new window)


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