Home » date » 2010 » Dec » 21 »

*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: Tue, 21 Dec 2010 15:53:05 +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/21/t12929469817ik2wh4yicbv2nw.htm/, Retrieved Tue, 21 Dec 2010 16:56:21 +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/21/t12929469817ik2wh4yicbv2nw.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 «
13.193 15.234 14.718 16.961 13.945 15.876 16.226 18.316 16.748 17.904 17.209 18.950 17.225 18.710 17.236 18.687 17.580 19.568 17.381 19.580 17.260 18.661 15.658 18.674 15.908 17.475 17.725 19.562 16.368 19.555 17.743 19.867 15.703 19.324 18.162 19.074 15.323 19.704 18.375 18.352 13.927 17.795 16.761 18.902 16.239 19.158 18.279 15.698 16.239 18.431 18.414 19.801 14.995 18.706 18.232 19.409 16.263 19.017 20.298 19.891 15.203 17.845 17.502 18.532 15.737 17.770 17.224 17.601 14.940 18.507 17.635 19.392 15.699 17.661 18.243 19.643 15.770 17.344 17.229 17.322 16.152 17.919 16.918 18.114 16.308 17.759 16.021 17.952 15.954 17.762 16.610 17.751 15.458 18.106 15.990 15.349 13.185 15.409 16.007 16.633 14.800 15.974 15.693
 
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.29732040102439
beta0.0796850294543876
gamma0.343463420691937


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
513.94513.555856250.389143749999999
615.87615.52103871366010.35496128633987
716.22615.55421777095750.671782229042499
818.31618.12338501242740.192614987572554
916.74815.29506728555161.45293271444844
1017.90417.63159803617210.272401963827942
1117.20917.7780494792103-0.569049479210292
1218.9519.8946057697566-0.944605769756588
1317.22517.03735526959420.187644730405818
1418.7118.68781312585180.0221868741482361
1517.23618.5259004693103-1.28990046931032
1618.68720.2895259586921-1.60252595869208
1717.5817.44636906914960.133630930850373
1819.56818.97599944756670.592000552433277
1917.38118.6155029721445-1.23450297214455
2019.5820.2701255540762-0.690125554076211
2117.2618.0888496297511-0.828849629751115
2218.66119.3917303036948-0.730730303694774
2315.65818.1145941295205-2.4565941295205
2418.67419.4257451246555-0.751745124655493
2515.90817.079706649638-1.17170664963801
2617.47518.1832450872427-0.708245087242666
2717.72516.3757143591471.34928564085300
2819.56219.19950452419430.362495475805666
2916.36817.0794127110294-0.711412711029414
3019.55518.43858091798281.11641908201720
3117.74317.72028518561720.022714814382784
3219.86719.9302239672163-0.0632239672162811
3315.70317.4330106503664-1.73001065036636
3419.32418.91496955160270.40903044839731
3518.16217.69013659105260.47186340894735
3619.07419.9912603765896-0.917260376589631
3715.32316.7960054342244-1.47300543422443
3819.70418.83486352692060.86913647307938
3918.37517.73713468603480.637865313965168
4018.35219.7314302295545-1.3794302295545
4113.92716.2327606163285-2.30576061632854
4217.79518.5376816086575-0.742681608657453
4316.76116.8151174998679-0.0541174998679175
4418.90218.01062153143570.89137846856428
4516.23914.91115743286081.32784256713923
4619.15818.70736367439710.450636325602876
4718.27917.56775072662910.711249273370886
4815.69819.2991095189821-3.60110951898208
4916.23914.94294457393671.29605542606332
5018.43118.4909068080669-0.0599068080669376
5118.41417.22321682390871.19078317609126
5219.80118.02856712159591.77243287840412
5314.99516.5514622356321-1.55646223563213
5418.70618.9559679026148-0.249967902614841
5518.23217.96102287952150.270977120478491
5619.40918.63888869060020.770111309399816
5716.26316.04222936807130.220770631928687
5819.01719.3144318674623-0.297431867462297
5920.29818.45395137432761.84404862567244
6019.89119.78010522748560.110894772514438
6115.20316.8993671302384-1.69636713023842
6217.84519.4755794482686-1.63057944826864
6317.50218.7030565532131-1.20105655321313
6418.53218.6009008849753-0.0689008849753279
6515.73715.1216229384220.615377061577998
6617.7718.3469015054496-0.576901505449644
6717.22417.9621453996123-0.738145399612318
6817.60118.2526535090336-0.651653509033636
6914.9414.73324266833590.206757331664102
7018.50717.50758354920800.999416450791983
7117.63517.54823312103700.0867668789629548
7219.39218.12007220820621.27192779179382
7315.69915.44052109602880.258478903971151
7417.66118.4835361749248-0.82253617492475
7518.24317.78104542626460.461954573735373
7619.64318.77818329863640.864816701363612
7715.7715.75106940543790.0189305945621268
7817.34418.4743594168996-1.13035941689960
7917.22917.9954535127495-0.766453512749543
8017.32218.7005877194464-1.37858771944638
8116.15214.72516152336271.42683847663727
8217.91917.54588006630420.373119933695754
8316.91817.5936403239496-0.675640323949565
8418.11418.1720156218748-0.0580156218748336
8516.30815.29156012560151.01643987439847
8617.75917.75148902952990.00751097047010418
8716.02117.4443111756237-1.42331117562367
8817.95217.93861300427160.0133869957284318
8915.95415.32955666947650.624443330523471
9017.76217.41100567044590.350994329554119
9116.6116.8503371815392-0.240337181539221
9217.75118.0608340112344-0.309834011234361
9315.45815.5132281152180-0.0552281152180303
9418.10617.32057409277300.785425907226966
9515.9916.7506214131922-0.76062141319222
9615.34917.7815930535876-2.43259305358758
9713.18514.6059416273707-1.42094162737071
9815.40916.1194103233798-0.71041032337981
9916.00714.60543508202871.4015649179713
10016.63315.80082420951020.832175790489819
10114.813.84243770729980.957562292700159
10215.97416.2933444064655-0.319344406465540
10315.69315.47339755285030.219602447149711


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
10416.219985416982214.208148105789618.2318227281749
10514.064760914031611.951805897029516.1777159310337
10615.920427009657513.696577631674718.1442763876402
10715.330702568469012.986600476693517.6748046602446
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929469817ik2wh4yicbv2nw/1xt831292946781.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929469817ik2wh4yicbv2nw/1xt831292946781.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t12929469817ik2wh4yicbv2nw/2xt831292946781.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929469817ik2wh4yicbv2nw/2xt831292946781.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t12929469817ik2wh4yicbv2nw/3xt831292946781.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929469817ik2wh4yicbv2nw/3xt831292946781.ps (open in new window)


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