Home » date » 2010 » Jan » 20 »

exponential smoothing cola

*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:55:16 -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/t1263992152nfppqhv8s9ljjmu.htm/, Retrieved Wed, 20 Jan 2010 13:55:56 +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/t1263992152nfppqhv8s9ljjmu.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:
KDGP2W51
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,25 1,25 1,26 1,26 1,26 1,26 1,27 1,27 1,29 1,31 1,32 1,32 1,33 1,33 1,32 1,32 1,31 1,3 1,31 1,29 1,3 1,3 1,32 1,31 1,35 1,35 1,36 1,37 1,37 1,37 1,32 1,32 1,31 1,31 1,34 1,31 1,26 1,27 1,24 1,25 1,27 1,25 1,26 1,27 1,26 1,26 1,28 1,27 1,28 1,27 1,26 1,27 1,27 1,28 1,27 1,26 1,3 1,31 1,28 1,29 1,31 1,29 1,29 1,32 1,3 1,29 1,31 1,29 1,33 1,35 1,32 1,33 1,34 1,34 1,33 1,33 1,35 1,32
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.763672169637219
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
21.251.250
31.261.250.01
41.261.257636721696370.00236327830362781
51.261.259441491565960.000558508434039817
61.261.259868008913540.000131991086455896
71.271.259968806832910.0100311931670893
81.271.267629349882870.00237065011712811
91.291.269439749401270.0205602505987301
101.311.285141040584290.0248589594157129
111.321.304125136056210.015874863943792
121.321.316248327846860.00375167215314076
131.331.319113375459820.0108866245401842
141.331.327427187642440.00257281235755613
151.321.32939197283761-0.00939197283760818
161.321.32221958456354-0.00221958456353799
171.311.32052454960421-0.0105245496042077
181.31.31248724397351-0.0124872439735078
191.311.302951083275470.00704891672453023
201.291.30833414480408-0.0183341448040837
211.31.294332868663110.0056671313368939
221.31.298660699146770.00133930085322898
231.321.299683485935150.0203165140648467
241.311.31519864231052-0.00519864231051992
251.351.311228583858080.0387714161419228
261.351.340837235343090.00916276465691324
271.361.347834583708510.0121654162914930
281.371.357124973562370.0128750264376287
291.371.366957272936130.00304272706386821
301.371.369280918914610.000719081085390094
311.321.36983006112723-0.0498300611272349
321.321.33177623023304-0.0117762302330442
331.311.32278305094083-0.0127830509408278
341.311.31302099069426-0.00302099069426265
351.341.310713944176320.0292860558236787
361.311.33307888996731-0.0230788899673067
371.261.31545418399315-0.0554541839931548
381.271.27310536698764-0.00310536698764086
391.241.27073388464267-0.0307338846426695
401.251.247263272276220.00273672772377798
411.271.249353235074750.0206467649252542
421.251.26512059484120-0.0151205948412043
431.261.253573417372620.0064265826273835
441.271.258481219671020.0115187803289767
451.261.26727779163643-0.0072777916364275
461.261.26171994470727-0.00171994470726933
471.281.260406470801010.0195935291989870
481.271.27536950375525-0.00536950375525369
491.281.271268963172600.00873103682739607
501.271.27793661300976-0.007936613009764
511.261.27187564253303-0.0118756425330266
521.271.262806544833990.00719345516600578
531.271.268299986347810.00170001365219408
541.281.269598239461990.01040176053801
551.271.2775417745001-0.00754177450009896
561.261.27178233120469-0.0117823312046939
571.31.262784492770220.0372155072297791
581.311.291204939920540.0187950600794640
591.281.30555820422988-0.0255582042298821
601.291.286040114953620.00395988504638312
611.311.289064168958500.0209358310414978
621.291.30505228047312-0.0150522804731210
631.291.29355727278622-0.00355727278622475
641.321.290840682559580.029159317440423
651.31.31310884177445-0.0131088417744452
661.291.30309798413512-0.0130979841351238
671.311.293095418172780.01690458182722
681.291.30600497685358-0.0160049768535830
691.331.293782421454810.0362175785451861
701.351.321440778241420.0285592217585775
711.321.34325066108495-0.0232506610849459
721.331.325494778288710.00450522171129442
731.341.328935290727670.0110647092723335
741.341.337385101264070.00261489873592557
751.331.33938202665512-0.00938202665512033
761.331.33221723400381-0.00221723400381024
771.351.330523994101530.0194760058984731
781.321.34539727778188-0.0253972777818812


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
791.326002083555311.291494567577371.36050959953325
801.326002083555311.282582972503121.3694211946075
811.326002083555311.275211634156271.37679253295436
821.326002083555311.268782154371931.38322201273869
831.326002083555311.263005489668461.38899867744217
841.326002083555311.257715764376871.39428840273375
851.326002083555311.252807330105801.39919683700482
861.326002083555311.248207980448911.40379618666171
871.326002083555311.243865775970161.40813839114047
881.326002083555311.239741875061951.41226229204867
891.326002083555311.235806329137981.41619783797265
901.326002083555311.232035468949341.41996869816128
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/20/t1263992152nfppqhv8s9ljjmu/177091263992114.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/20/t1263992152nfppqhv8s9ljjmu/177091263992114.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Jan/20/t1263992152nfppqhv8s9ljjmu/3cs651263992114.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/20/t1263992152nfppqhv8s9ljjmu/3cs651263992114.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=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