Home » date » 2008 » Apr » 17 » attachments

test kuleuven

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 17 Apr 2008 07:27:08 -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/Apr/17/t1208438934da4lvnmdyh0073a.htm/, Retrieved Thu, 17 Apr 2008 15:28:58 +0200
 
User-defined keywords:
EXPONENTIAL SMOOTHING
 
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 19509 21971
 
Text written by user:
 
Output produced by software:


Summary of compuational 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.257593917038981
beta0.275620602016356
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
314000124181582
41347712482.8327141109994.167285889096
51423712466.82737517281770.17262482716
61367412776.3953443527897.604655647281
71352912924.9234187952604.076581204808
81405813040.72879096411017.27120903593
91297513335.1950008946-360.195000894586
101432613249.26110093321076.73889906681
111400813609.9191462529398.080853747075
121619313824.02202763352368.97797236650
131448314714.0091672289-231.009167228871
141401114917.8542024250-906.854202425036
151505714883.2206602832173.779339716792
161488415139.2897638098-255.289763809847
171541415266.7081649975147.291835002472
181444015508.2865909102-1068.28659091022
191490015360.8929937446-460.892993744594
201507415337.2377238919-263.237723891854
211444215345.8078471588-903.807847158841
221530715125.2022815364181.797718463629
231493815197.1494149680-259.149414968046
241719315137.11210956272055.88789043734
251552815819.3786518194-291.378651819447
261476515876.3162540952-1111.31625409515
271583815643.1414745702194.858525429809
281572315760.2639755477-37.2639755476648
291615015814.9474574311335.052542568883
301548615989.325533836-503.325533836001
311598615912.007315450473.992684549643
321598315988.6561050292-5.65610502916206
331569216044.3862776907-352.386277690657
341649015985.7820789511504.21792104888
351568616183.6324711241-497.632471124056
361889716088.08129151122808.91870848877
371631617043.7057276810-727.705727681048
381563617036.6514323675-1400.65143236751
391716316756.8066998239406.193300176132
401653416971.2331687191-437.233168719074
411651816937.3553459559-419.35534595593
421637516878.3092708513-503.309270851274
431629016761.9031278947-471.903127894733
441635216620.0827481543-268.082748154338
451594316511.7318683831-568.731868383089
461636216285.556670548676.443329451422
471639316231.0020171667161.997982833258
481905116209.98728571462841.01271428535
491674717080.7772146159-333.777214615868
501632017110.062991691-790.062991690986
511791016965.7192853769944.280714623052
521696117335.1741899171-374.174189917117
531748017338.4374407453141.562559254660
541704917484.6020265019-435.602026501892
551687917451.1655701818-572.165570181805
561747317341.9284555769131.071544423117
571699817423.146786409-425.146786409005
581730717330.9020061455-23.9020061455049
591741817340.318441336177.6815586638913
602016917381.41743499232787.58256500767
611787118318.4837616176-447.483761617645
621722618390.4461439381-1164.44614393811
631906218195.0498086843866.950191315664
641780418584.4807073156-780.480707315615
651910018494.1307097856605.869290214378
661852218803.9116617851-281.911661785070
671806018864.9904230216-804.990423021602
681886918734.1744138350134.825586165025
691812718855.0216644002-728.021664400152
701887118701.9164910760169.083508924028
711889018791.904776519698.0952234803808
722126318870.57149481482392.42850518523
731954719710.1026048821-163.102604882108
741845019879.7644563814-1429.76445638138
752025419621.6312307591632.368769240937
761924019939.5880185195-699.588018519546
772021619864.7713565907351.228643409253
781942020085.5752728283-665.575272828344
791941519997.202045416-582.202045415997
802001819888.9699625048129.030037495155
811865219973.1078369356-1321.10783693559
821997819589.9027501805388.097249819497
831950919674.5326992170-165.532699216954
842197119604.79841897972366.20158102032


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8520355.219519477718446.244952239522264.1940867159
8620496.121486216818486.729404102122505.5135683316
8720637.02345295618487.713761075722786.3331448364
8820777.925419695218448.429868393023107.4209709973
8920918.827386434318370.210615560323467.4441573083
9021059.729353173518255.631511677923863.8271946691
9121200.631319912618107.762086890624293.5005529347
9221341.533286651817929.669807876424753.3967654272
9321482.435253391017724.161659079625240.7088477024
9421623.337220130117493.687971392025752.9864688683
9521764.239186869317240.336147362926288.1422263757
9621905.141153608416965.865237161626844.4170700553
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/17/t1208438934da4lvnmdyh0073a/1himy1208438824.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/17/t1208438934da4lvnmdyh0073a/1himy1208438824.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/17/t1208438934da4lvnmdyh0073a/27n4d1208438824.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/17/t1208438934da4lvnmdyh0073a/27n4d1208438824.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/17/t1208438934da4lvnmdyh0073a/3z4m41208438824.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/17/t1208438934da4lvnmdyh0073a/3z4m41208438824.ps (open in new window)


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