Home » date » 2010 » Jan » 20 »

exponential smoothing mndlijkse bezoekers VS

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 20 Jan 2010 05:47:20 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/20/t12639917515n7ho4csehly7cu.htm/, Retrieved Wed, 20 Jan 2010 13:49:15 +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/Jan/20/t12639917515n7ho4csehly7cu.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:
KDGP2W62
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2357402 2199181 2603060 2629720 2638792 2717481 3810804 3871664 2998364 2923432 2712359 2996099 2395029 2483862 3120231 3360606 3177203 3062783 4242509 4026394 3192481 3118695 2782482 3209833 2630190 2592882 3785309 3231539 3421369 3312134 4647303 4289177 3463853 3304422 3006121 3464238 2921118 2624018 3500718 3939351 3467672 3343628 4852445 4597807 3653145 3572079 3334861 3695369 3075704 2852998 3942704 4004560 3822145 3760085 5267816 5271333 4144142 4109749 3896808 4211074 3402318 3279817 4706628 4079499 4344530 4048625 5394915 5611967 4145481 4025610 3552218 3910443
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.322318927826622
beta0
gamma0.338239344476265


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1323950292203500.6160181191528.383981902
1424838622354144.51729817129717.482701827
1531202313024971.3267128595259.6732871505
1633606063305337.886340355268.1136596985
1731772033160208.7330710816994.2669289159
1830627833068546.80818926-5763.80818926031
1942425094251562.93097811-9053.9309781082
2040263944335650.44624688-309256.446246878
2131924813272999.23247284-80518.2324728402
2231186953139278.4121909-20583.4121909016
2327824822881878.36115006-99396.3611500566
2432098333138729.5466627971103.4533372121
2526301902572471.7965466857718.2034533215
2625928822671481.48897259-78599.488972587
2737853093320809.75094113464499.249058865
2832315393737656.90952928-506117.909529283
2934213693388407.3873309232961.6126690833
3033121343287221.187959824912.8120402023
3146473034565262.4793934682040.5206065373
3242891774606439.06063027-317262.060630268
3334638533516916.71738083-53063.7173808296
3433044223395459.5595987-91037.5595986987
3530061213074556.92854807-68435.9285480664
3634642383404200.5515514960037.4484485136
3729211182783641.23042907137476.769570934
3826240182879134.50493975-255116.504939751
3935007183640546.3209408-139828.320940798
4039393513634876.18096818304474.819031818
4134676723663130.60759224-195458.607592242
4233436283478396.57140973-134768.571409733
4348524454768456.2660886683988.7339113439
4445978074712411.15555613-114604.155556130
4536531453696038.55611583-42893.5561158336
4635720793561063.1040994211015.8959005778
4733348613257637.313101677223.6868984029
4836953693692096.490547813272.50945219304
4930757043022407.6046456653296.3953543375
5028529982995061.36786489-142063.367864885
5139427043883588.3753776959115.6246223105
5240045604052379.9997273-47819.9997273041
5338221453838502.99915632-16357.9991563158
5437600853714367.8875101845717.1124898195
5552678165241009.3896573626806.6103426442
5652713335105758.50216002165574.497839981
5741441424087212.263482356929.736517698
5841097493980562.71638617129186.283613828
5938968083689704.6973044207103.302695602
6042110744199356.8994078111717.1005921895
6134023183449644.37776311-47326.3777631079
6232798173330476.98177587-50659.9817758738
6347066284424002.23306473282625.766935269
6440794994654716.02486776-575217.024867761
6543445304253790.1263649590739.873635048
6640486254162635.76029505-114010.760295053
6753949155785139.51096908-390224.510969085
6856119675535331.2369605576635.7630394455
6941454814384473.44600513-238992.446005126
7040256104192393.20272735-166783.202727349
7135522183815830.19195126-263612.191951261
7239104434121881.72220775-211438.722207753


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
733315247.210850823119057.917799253511436.50390239
743214540.737947672989427.679370133439653.79652520
754368723.172181814077817.834884734659628.50947889
764310497.429948964001622.091424964619372.76847296
774248056.039454333923094.055994994573018.02291366
784083022.852643733748926.586172684417119.11911478
795670625.309327995220459.544059196120791.07459679
805652529.96486495191774.794685886113285.13504393
814386470.64099733999729.449053114773211.83294148
824283465.140892233889287.067062444677643.21472202
833920467.149722063538392.917737484302541.38170663
844348079.372324933965400.054432534730758.69021734
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/20/t12639917515n7ho4csehly7cu/1r73f1263991637.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/20/t12639917515n7ho4csehly7cu/1r73f1263991637.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/20/t12639917515n7ho4csehly7cu/2jjho1263991637.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/20/t12639917515n7ho4csehly7cu/2jjho1263991637.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/20/t12639917515n7ho4csehly7cu/3f1er1263991637.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/20/t12639917515n7ho4csehly7cu/3f1er1263991637.ps (open in new window)


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