Home » date » 2008 » May » 28 »

evelyne van haevermaet opd10 oef2

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 28 May 2008 06:51:18 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/28/t12119792086veotonx3p4skeb.htm/, Retrieved Wed, 28 May 2008 14:53:31 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
13328 12873 14000 13477 14237 13674 13529 14058 12975 14326 14008 16193 14483 14011 15057 14884 15414 14440 14900 15074 14442 15307 14938 17193 15528 14765 15838 15723 16150 15486 15986 15983 15692 16490 15686 18897 16316 15636 17163 16534 16518 16375 16290 16352 15943 16362 16393 19051 16747 16320 17910 16961 17480 17049 16879 17473 16998 17307 17418 20169 17871 17226 19062 17804 19100 18522 18060 18869 18127 18871 18890 21263 19547 18450 20254 19240 20216 19420 19415 20018 18652 19978 19514 22148
 
Text written by user:
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.257708065841373
beta0.273715620885234
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
314000124181582
41347712482.2864203408994.713579659181
51423712465.39021910821771.60978089179
61367412773.6735272941900.326472705858
71352912920.9279792195608.072020780533
81405813035.75872559481022.24127440517
91297513329.4318236016-354.431823601633
101432613243.32399190961082.67600809039
111400813603.9410232314404.058976768649
121619313818.17477630272374.82522369733
131448314707.8080263143-224.808026314342
141401114911.6371484163-900.637148416263
151505714877.7698600622179.230139937794
161488415134.8357471942-250.835747194178
171541415263.3765530168150.623446983245
181444015506.0014169266-1066.00141692658
191490015359.8978613722-459.897861372154
201507415337.5514728531-263.551472853147
211444215347.2145479489-905.214547948883
221530715127.6631945612179.336805438779
231493815200.2596620479-262.259662047925
241719315140.55369629572052.4463037043
251552815822.1430697692-294.143069769201
261476515878.2489578869-1113.24895788689
271583815644.737491711193.262508289017
281572315761.5570590694-38.5570590694279
291615015815.9150883808334.084911619244
301548615989.8718823319-503.871882331925
311598615912.337972394673.6620276054164
321598315988.8352347242-5.83523472421257
331569216044.4338013319-352.433801331887
341649015985.85089134504.149108660005
351568616183.5783407668-497.578340766839
361889716088.05400582772808.94599417232
371631617042.7871260072-726.787126007159
381563617035.0666665116-1399.06666651162
391716316755.4059705321407.59402946788
401653416970.0874705877-436.087470587663
411651816936.5843896776-418.58438967765
421637516878.0655854754-503.065585475437
431629016762.2896915943-472.289691594313
441635216621.1302819512-269.130281951151
451594316513.3425843482-570.342584348153
461636216287.698809172474.3011908276039
471639316233.4260455907159.573954409281
481905116212.38490398842838.61509601157
491674717081.9865579657-334.986557965658
501632017110.095943841-790.095943840988
511791016965.1876110135944.81238898655
521696117334.0250086798-373.025008679841
531748017336.932371648143.067628351993
541704917482.9327777428-433.932777742819
551687917449.6264610754-570.626461075422
561747317340.8418176473132.158182352658
571699817422.4927148302-424.492714830190
581730717330.7470118186-23.7470118185993
591741817340.601624929777.3983750702973
602016917381.98180262372787.01819737628
611787118318.2455692040-447.245569204042
621722618389.4653446477-1163.46534464774
631906218194.0401470887867.959852911303
641780418583.3543879497-779.354387949694
651910018493.1677984811606.832201518948
661852218803.0178426011-281.01784260109
671806018864.2391292665-804.239129266534
681886918733.8920687731135.107931226878
691812718855.1526633628-728.152663362791
701887118702.5810805998168.418919400217
711889018792.943281864497.0567181355837
722126318871.76112524702391.23887475303
731954719710.4831521074-163.483152107427
741845019879.3008138410-1429.30081384095
752025419621.0859997143632.914000285673
761924019938.9655221922-698.965522192208
772021619864.3048134681351.695186531859
781942020085.2159732756-665.215973275623
791941519997.1374395170-582.13743951697
802001819889.4056822673128.594317732717
811865219973.9061105004-1321.90611050038
821997819591.3553095818386.644690418172
831951419676.3852537728-162.385253772791
842214819608.47130448172539.52869551828


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8520415.997484968118496.969357589822335.0256123463
8620569.066637183818549.298919012622588.834355355
8720722.135789399518562.247816606622882.0237621923
8820875.204941615218535.059645062723215.3502381676
8921028.274093830818469.055210340723587.492977321
9021181.343246046518366.786850220523995.8996418726
9121334.412398262218231.299921996524437.524874528
9221487.481550477918065.641826705424909.3212742504
9321640.550702693617872.604887512625408.4965178747
9421793.619854909317654.629573502825932.6101363158
9521946.68900712517413.797044827626479.5809694223
9622099.758159340717151.862602707527047.6537159738
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t12119792086veotonx3p4skeb/1bqxo1211979072.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t12119792086veotonx3p4skeb/1bqxo1211979072.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t12119792086veotonx3p4skeb/28t8c1211979072.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t12119792086veotonx3p4skeb/28t8c1211979072.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t12119792086veotonx3p4skeb/35zfd1211979072.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t12119792086veotonx3p4skeb/35zfd1211979072.ps (open in new window)


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