Home » date » 2010 » Jun » 06 »

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 06 Jun 2010 16:03:24 +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/Jun/06/t12758403013ujazyv8ltrtfbv.htm/, Retrieved Sun, 06 Jun 2010 18:05:01 +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/2010/Jun/06/t12758403013ujazyv8ltrtfbv.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 «
25000 25284 12434,5 33955 14980,5 50831 4198,5 34566 35000 11055,5 20807 21887,29 16977,5 19613,5 14570 24416,5 16825,5 13980 21450,5 27239,5 19078,5 20459,1 20373,5 19306,5 16723,16 11638 20917 17903,5 28218,5 15268 21555 23143 16691 17932,5 30512 41931,5 10853,5 25939,5 14900 25127,76 22063,5 25306,5 31217,5 23201,5 38148 26264 16359 27945,5 16218,5 36003,5 20323,5 20100,5 18741 24426,75 19174,5 13766 18999 21745 34469 13248 16218,5 36003,5 20323,5 20100,5 18741 24426,75 19174,5 13766 18999 21745 34469 13248
 
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.0336469139053757
beta0
gamma0.609625489191882


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1316977.522771.3540372475-5793.85403724749
1419613.524798.8462292759-5185.34622927591
151457020549.5419977966-5979.54199779656
1624416.530466.4280296698-6049.92802966979
1716825.522298.1124554551-5472.6124554551
181398019394.0713519956-5414.07135199558
1921450.55229.817476004116220.6825239959
2027239.536713.6350510421-9474.13505104208
2119078.536976.1513113184-17897.6513113184
2220459.112737.90891187147721.1910881286
2320373.523069.7656636606-2696.26566366062
2419306.525517.9179783427-6211.41797834274
2516723.1617802.5204593696-1079.36045936962
261163820347.1209589263-8709.12095892627
272091715511.38115518645405.6188448136
2817903.525769.8773540533-7866.37735405335
2928218.517880.548248659310337.9517513407
301526815542.9711906244-274.971190624361
312155514296.95716529217258.04283470785
322314330342.0463586541-7199.04635865411
331669125718.7054146535-9027.7054146535
3417932.516871.31453728031061.18546271967
353051220842.01852794889669.9814720512
3641931.521635.43330766620296.066692334
3710853.517835.2950710850-6981.79507108503
3825939.515686.502156578710252.9978434213
391490019803.9625156947-4903.96251569465
4025127.7621896.86134585693230.89865414311
4122063.525105.3368709417-3041.83687094168
4225306.516065.35532570969241.14467429043
4331217.519577.329285032611640.1707149674
4423201.527252.9975360085-4051.49753600847
453814821658.274209131716489.7257908683
462626419612.96768451566651.03231548444
471635928843.3104850334-12484.3104850334
4827945.535151.2716774774-7205.77167747736
4916218.514356.02557786181862.47442213818
5036003.522658.063745136413345.4362548636
5120323.517950.40555834462373.09444165539
5220100.525080.5112122902-4980.01121229021
531874124317.3619506090-5576.36195060897
5424426.7522428.17137320251998.57862679745
5519174.527109.7538985344-7935.25389853443
561376624882.5963448535-11116.5963448535
571899931151.2656571527-12152.2656571527
582174522346.1376306901-601.137630690089
593446920059.579042156714409.4209578433
601324830382.0896295068-17134.0896295068
6116218.514595.01222286921623.48777713078
6236003.529653.77675086976349.72324913032
6320323.518246.7800200732076.71997992701
6420100.521035.0999800472-934.599980047198
651874120056.7480673259-1315.74806732592
6624426.7522773.4135485661653.33645143401
6719174.521591.2251625127-2416.72516251267
681376617675.5773732447-3909.57737324467
691899923576.613887111-4577.61388711099
702174521831.2746635361-86.2746635361218
713446928404.96192432866064.03807567137
721324819863.9690645763-6615.96906457627


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7315481.1355231699-926.5926306681231888.863677008
7433269.56369008816852.550447388649686.5769327874
7519131.63457241712705.3414893235735557.9276555106
7620076.07015456073640.5024706502136511.6378384712
7718904.62517354002459.7881195245135349.4622275554
7823414.68920873226960.588006483639868.7904109807
7919779.14302136573315.7828839406436242.5031587907
8015065.3512252687-1407.2626430665931537.965093604
8120704.38364174964222.5212380043837186.2460454948
8221758.97544624045267.8696938444638250.0811986364
8331958.797680071315458.453757067048459.1416030756
8415743.8056112086-765.77131305390332253.3825354712
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/06/t12758403013ujazyv8ltrtfbv/12idi1275840200.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/06/t12758403013ujazyv8ltrtfbv/12idi1275840200.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/06/t12758403013ujazyv8ltrtfbv/22idi1275840200.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/06/t12758403013ujazyv8ltrtfbv/22idi1275840200.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/06/t12758403013ujazyv8ltrtfbv/3uru21275840200.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/06/t12758403013ujazyv8ltrtfbv/3uru21275840200.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=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