Home » date » 2009 » Dec » 04 »

Ws9forcasting4

*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: Fri, 04 Dec 2009 09:26:41 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/04/t12599441177rshu7589pavlx6.htm/, Retrieved Fri, 04 Dec 2009 17:28:42 +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/2009/Dec/04/t12599441177rshu7589pavlx6.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:
ShwWs9forcasting4
 
Dataseries X:
» Textbox « » Textfile « » CSV «
58608 46865 51378 46235 47206 45382 41227 33795 31295 42625 33625 21538 56421 53152 53536 52408 41454 38271 35306 26414 31917 38030 27534 18387 50556 43901 48572 43899 37532 40357 35489 29027 34485 42598 30306 26451 47460 50104 61465 53726 39477 43895 31481 29896 33842 39120 33702 25094 51442 45594 52518 48564 41745 49585 32747 33379 35645 37034 35681 20972
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.199376799003901
beta0
gamma0.684151704720979


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
135642157234.381038922-813.381038922009
145315254201.1357606105-1049.13576061049
155353654461.1980064574-925.198006457373
165240853057.4198218257-649.419821825708
174145442097.387400011-643.387400011001
183827138905.0556552769-634.05565527692
193530639515.6186778861-4209.61867788613
202641431391.1847454938-4977.18474549379
213191727746.50526794114170.49473205891
223803038378.6830845338-348.683084533761
232753430028.7838410811-2494.7838410811
241838719041.5831630339-654.583163033851
255055649491.95617106551064.04382893450
264390147033.0895712692-3132.08957126924
274857246834.94875034281737.05124965725
284389946207.4166924274-2308.41669242737
293753236294.37357746421237.62642253582
304035733827.7981178826529.201882118
313548933949.12381060131539.87618939874
322902726905.01628168682121.98371831315
333448529589.10740656044895.89259343959
344259837817.49392423954780.50607576048
353030629132.37820283291173.62179716713
362645119482.33120147276968.66879852731
374746056370.3845567696-8910.3845567696
385010449197.7801417312906.219858268814
396146552820.07575127378644.92424872626
405372650952.42120214462773.5787978554
413947742841.3859745836-3364.38597458358
424389542261.99704770721633.00295229285
433148138295.1509791512-6814.15097915116
442989629526.4138223395369.586177660527
453384233446.4831296276395.51687037239
463912040711.7028193735-1591.70281937352
473370229050.39416519474651.6058348053
482509423021.05135823802072.94864176204
495144248708.45592825712733.54407174286
504559449230.1589700954-3636.15897009538
515251855820.2128373136-3302.21283731356
524856448791.8887243184-227.888724318414
534174537645.42392788654099.57607211349
544958541142.86003563998442.13996436012
553274733903.1120178406-1156.11201784058
563337930150.25749781253228.74250218748
573564534789.0996927706855.900307229422
583703441279.1139050477-4245.11390504766
593568132249.75736723783431.24263276219
602097224441.1266246407-3469.12662464072


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
6148503.759474482543039.819901516853967.6990474481
6245106.489798565139474.835990222850738.1436069073
6352347.084416231546406.579008329858287.5898241332
6447743.847868085441725.434118879253762.2616172915
6539119.603426089633150.810696055145088.396156124
6643795.682091894337480.927190181450110.4369936071
6730688.798567068724697.668038167536679.92909597
6829600.455275402423472.966538069135727.9440127356
6932030.24402297325588.568025085338471.9200208608
7035152.042699997928322.245542608041981.8398573878
7131430.763457610724709.735775116238151.7911401052
7220288.178576902417574.940520777323001.4166330275
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599441177rshu7589pavlx6/1o89d1259943999.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599441177rshu7589pavlx6/1o89d1259943999.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599441177rshu7589pavlx6/26n0q1259943999.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599441177rshu7589pavlx6/26n0q1259943999.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599441177rshu7589pavlx6/37uis1259943999.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599441177rshu7589pavlx6/37uis1259943999.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=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