Home » date » 2009 » Jun » 06 »

exponential smoothing(triple&add)-aantal geboortes per maand (2000-2006)-Olivier Percy MAR201

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sat, 06 Jun 2009 08:30:23 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/06/t1244298717eemma6hys0p1u4g.htm/, Retrieved Sat, 06 Jun 2009 16:31:57 +0200
 
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/2009/Jun/06/t1244298717eemma6hys0p1u4g.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
9.733 9.259 9.864 9.215 10.103 9.380 9.896 10.117 9.451 9.700 9.081 9.084 9.743 8.587 9.731 9.563 9.998 9.437 10.038 9.918 9.252 9.737 9.035 9.133 9.487 8.700 9.627 8.947 9.283 8.829 9.947 9.628 9.318 9.605 8.640 9.214 9.567 8.547 9.185 9.470 9.123 9.278 10.170 9.434 9.655 9.429 8.739 9.552 9.687 9.019 9.672 9.206 9.069 9.788 10.312 10.105 9.863 9.656 9.295 9.946 9.701 9.049 10.190 9.706 9.765 9.893 9.994 10.433 10.073 10.112 9.266 9.820 10.097 9.115 10.411 9.678 10.408 10.153 10.368 10.581 10.597 10.680 9.738 9.556
 
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.10425711833567
beta0.130348249108125
gamma0.727179362888915


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
139.7439.74921180555556-0.00621180555555689
148.5878.59142105170956-0.00442105170955998
159.7319.74796524912095-0.016965249120954
169.5639.58113773812208-0.0181377381220837
179.99810.0105664997834-0.0125664997834232
189.4379.44390532732481-0.00690532732481053
1910.0389.836157197506350.201842802493651
209.91810.1042072025874-0.186207202587356
219.2529.44822805956723-0.196228059567231
229.7379.661037483971450.0759625160285538
239.0359.034090357056820.000909642943176081
249.1339.033455795676080.099544204323923
259.4879.68611954459826-0.199119544598256
268.78.50581874997090.194181250029102
279.6279.67403227136777-0.0470322713677724
288.9479.50203221802548-0.555032218025485
299.2839.87054444750937-0.587544447509369
308.8299.23124105357236-0.402241053572357
319.9479.696491061578620.250508938421376
329.6289.69575706137927-0.0677570613792717
339.3189.026114333186950.291885666813053
349.6059.45425642574780.150743574252209
358.648.77438286347976-0.134382863479759
369.2148.810215657173090.403784342826912
379.5679.290519203245840.276480796754155
388.5478.412909003869030.134090996130967
399.1859.41384606651053-0.228846066510531
409.478.885632671089240.584367328910757
419.1239.36087799748514-0.237877997485139
429.2788.892601911455660.38539808854434
4310.179.889723501985460.280276498014537
449.4349.70976556212332-0.275765562123317
459.6559.274848786362740.380151213637262
469.4299.6436109406425-0.214610940642499
478.7398.75831278013992-0.0193127801399235
489.5529.17663770351850.375362296481507
499.6879.59062220757360.0963777924263916
509.0198.618604925553530.400395074446468
519.6729.431638092780550.240361907219448
529.2069.5091554995017-0.303155499501692
539.0699.37133980882434-0.302339808824335
549.7889.316499778382750.471500221617255
5510.31210.26947160230460.0425283976953832
5610.1059.714655126098080.390344873901917
579.8639.79759422480950.0654057751904986
589.6569.76302433589962-0.107024335899615
599.2959.034505547229390.260494452770612
609.9469.761234866498880.184765133501118
619.7019.99319182522465-0.29219182522465
629.0499.19297379159361-0.143973791593615
6310.199.851898635738650.338101364261345
649.7069.593791841240230.112208158759774
659.7659.513671144125380.251328855874622
669.89310.0419911674629-0.148991167462865
679.99410.6638057580960-0.669805758095981
6810.43310.26454963992260.168450360077351
6910.07310.1129555017458-0.0399555017458297
7010.1129.953909093085320.158090906914678
719.2669.49484565791946-0.228845657919457
729.8210.1170063573100-0.297006357310037
7310.0979.977290695328180.119709304671821
749.1159.31138696974474-0.196386969744744
7510.41110.27296885989460.138031140105372
769.6789.83825957821236-0.160259578212356
7710.4089.808043224160320.599956775839683
7810.15310.10438579126860.0486142087313794
7910.36810.4026771219723-0.0346771219723347
8010.58110.6193959818708-0.0383959818707975
8110.59710.31142419727890.28557580272107
8210.6810.32067726806690.359322731933105
839.7389.638651027302580.099348972697424
849.55610.2631854515408-0.707185451540758


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8510.35912042225989.8103701484564610.9078706960631
869.480195467364128.9276478433200610.0327430914082
8710.688103043327710.130867889440511.245338197215
8810.05085331989129.487963892565210.6137427472171
8910.54084858002799.9712692847910511.1104278752648
9010.41568699803219.8383219142658210.9930520817985
9110.654167451808710.067869463335111.2404654402823
9210.872061182895110.275641471372411.4684808944178
9310.779620236727610.171857875529311.3873825979259
9410.803758984803410.183410371360111.4241075982466
959.906672456556669.2724803401198910.5408645729934
969.985889691375539.3365915876809510.6351877950701
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244298717eemma6hys0p1u4g/14n8q1244298617.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244298717eemma6hys0p1u4g/14n8q1244298617.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244298717eemma6hys0p1u4g/2l8gd1244298617.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244298717eemma6hys0p1u4g/2l8gd1244298617.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244298717eemma6hys0p1u4g/3523q1244298617.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t1244298717eemma6hys0p1u4g/3523q1244298617.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=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