Home » date » 2010 » Nov » 29 »

exponential smoothing - Baby's

*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, 29 Nov 2010 09:42:21 +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/Nov/29/t1291023722ddjw8qwaplthfaz.htm/, Retrieved Mon, 29 Nov 2010 10:42:03 +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/Nov/29/t1291023722ddjw8qwaplthfaz.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 time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.158806071446012
beta0
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
290819700-619
390849601.69904177492-517.699041774918
497439519.48529075928223.514709240721
585879554.9807836442-967.980783644196
697319401.25955815843329.740441841572
795639453.62434232416109.375657675839
899989470.99386083148527.006139168516
994379554.68563542077-117.685635420767
10100389535.99644199397502.003558006032
1199189615.71765489283302.282345107174
1292529663.72192658678-411.721926586784
1397379598.33798489735138.662015102645
1490359620.3583547746-585.358354774593
1591339527.39989406474-394.39989406474
1694879464.766796309622.2332036904045
1787009468.29756404333-768.297564043327
1896279346.28724619607280.712753803935
1989479390.86613583246-443.866135832459
2092839320.37749855298-37.3774985529835
2188299314.4417248473-485.441724847306
2299479237.35063160833709.64936839167
2396289350.04725990675277.952740093246
2493189394.18784260862-76.1878426086168
2596059382.088750632222.911249368004
2686409417.48841042525-777.48841042525
2792149294.01853037081-80.0185303708113
2895679281.31110191974285.688898080261
2985479326.6802334796-779.680233479605
3091859202.8622786166-17.8622786165997
3194709200.02564032242269.974359677577
3291239242.89920777397-119.899207773971
3392789223.858485617954.1415143821014
34101709232.45648681906937.543513180943
3594349381.3440889570252.6559110429844
3696559389.70616732816265.293832671838
3794299431.83643867363-2.83643867363207
3887399431.38599499097-692.385994990975
3995529321.43089520222230.56910479778
4096879358.04666893198328.95333106802
4190199410.28645512797-391.286455127971
4296729348.14779037906323.852209620938
4392069399.57748751807-193.577487518074
4490699368.83620720494-299.836207204939
4597889321.22039706145466.77960293855
46103129395.34783203525916.65216796475
47101059540.9177617122564.082238287798
4898639630.49744594716232.502554052839
4996569667.42026315746-11.4202631574572
5092959665.60665603054-370.606656030543
5199469606.75206893459339.247931065411
5297019660.6267001132740.3732998867254
5390499667.0382252596-618.038225259597
54101909568.89000270266621.109997297344
5597069667.5260413092938.4739586907108
5697659673.6359395419491.3640604580632
5798939688.14510705464204.854892945363
5899949720.67730781978273.322692180216
59104339764.08261080197668.917389198028
60100739870.31075350243202.689246497566
61101129902.49903646306209.500963536935
6292669935.76906144652-669.769061446519
6398209829.40566802211-9.4056680221147
64100979827.9119908342269.088009165802
6591159870.64480044305-755.644800443048
66104119750.64381827608660.356181723919
6796789855.51238925075-177.512389250745
68104089827.32234408084580.67765591916
69101539919.53748139384233.462518606158
70103689956.61274680358411.387253196423
711058110021.9435403267559.056459673333
721059710110.7251004039486.274899596096
731068010187.9485068516492.051493148436
74973810266.0892714276-528.089271427612
75955610182.2254888594-626.225488859407


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7610082.77707913439200.1100086341310965.4441496344
7710082.77707913439189.049158345610976.5049999230
7810082.77707913439178.1235347045810987.430623564
7910082.77707913439167.3282960223210998.2258622463
8010082.77707913439156.658882815311008.8952754533
8110082.77707913439146.110995300211019.4431629684
8210082.77707913439135.6805731450411029.8735851235
8310082.77707913439125.3637772061211040.1903810625
8410082.77707913439115.1569730177711050.3971852508
8510082.77707913439105.0567158335611060.4974424350
8610082.77707913439095.0597370445311070.4944212240
8710082.77707913439085.162931822411080.3912264462
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291023722ddjw8qwaplthfaz/10y3g1291023737.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291023722ddjw8qwaplthfaz/10y3g1291023737.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291023722ddjw8qwaplthfaz/20y3g1291023737.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291023722ddjw8qwaplthfaz/20y3g1291023737.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/29/t1291023722ddjw8qwaplthfaz/3b7l11291023737.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/29/t1291023722ddjw8qwaplthfaz/3b7l11291023737.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Single ; par3 = additive ;
 
Parameters (R input):
par1 = 12 ; par2 = Single ; 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=0, beta=0)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=0)
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