Home » date » 2008 » Aug » 15 »

Opgave 10 - Superbenzine Loodvrij 98 - Stijn Cappaert

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 15 Aug 2008 07:13:44 -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/Aug/15/t1218806078zc6z1a47mj0sf2v.htm/, Retrieved Fri, 15 Aug 2008 13:14:42 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.91 0.9 0.89 0.89 0.89 0.89 0.89 0.89 0.88 0.88 0.88 0.86 0.85 0.85 0.86 0.9 0.92 0.91 0.93 0.96 0.96 0.97 0.98 1.01 0.99 1.03 1.08 1.06 1.1 1.17 1.16 1.12 1.17 1.13 1.12 1.07 1.04 1.08 1.06 1.12 1.18 1.13 1.08 1.06 1.09 1.02 1.01 1.01 1 1.01 1.03 1.09 1.07 1.05 1.06 1.06 1.08 1.07 1.04 1.04 1.06 1.09 1.09 1.05 1.01 1.02 1.03 1.06 1.08 1.05 1.05 1.05 1.04 1.05 1.07 1.1 1.16 1.16 1.17 1.17 1.18 1.21 1.18 1.13 1.12 1.17 1.19 1.26 1.25 1.28 1.35 1.39 1.45 1.41 1.32 1.31
 
Text written by user:
Triple multiplicative
 
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.799338468046928
beta0.0091143646723173
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
130.850.8103762374967240.0396237625032760
140.850.8480824745082080.00191752549179225
150.860.864043420959625-0.0040434209596254
160.90.904578457094851-0.00457845709485105
170.920.92383889187728-0.00383889187728059
180.910.9110934864036-0.00109348640359919
190.930.9288912654338260.00110873456617377
200.960.9571572611739130.0028427388260871
210.960.9535584335219620.00644156647803829
220.970.9637434695518140.0062565304481863
230.980.9754924821575640.00450751784243641
241.011.001651891453770.00834810854622758
250.990.990215789475333-0.000215789475333295
261.030.9866688887450070.043331111254993
271.081.035523241629650.0444767583703489
281.061.12360370959481-0.0636037095948134
291.11.098545633406060.00145436659393994
301.171.087132225963860.0828677740361419
311.161.17575854419085-0.0157585441908548
321.121.19602409819807-0.0760240981980698
331.171.127537309879770.0424626901202250
341.131.16586684933194-0.0358668493319356
351.121.14313613719794-0.0231361371979428
361.071.14988461978709-0.0798846197870884
371.041.06337914250779-0.0233791425077887
381.081.048761792355340.0312382076446582
391.061.08723326930132-0.0272332693013189
401.121.094114329456240.0258856705437613
411.181.154361128288910.0256388717110918
421.131.17656263174621-0.0465626317462124
431.081.14068107677332-0.0606810767733239
441.061.10984176849747-0.0498417684974661
451.091.083976435452160.00602356454783615
461.021.07700358520965-0.0570035852096511
471.011.03807194043097-0.0280719404309666
481.011.02630400488978-0.016304004889782
4911.00145034562005-0.00145034562005142
501.011.01357567832863-0.00357567832863293
511.031.011263264557660.0187367354423402
521.091.063172046205790.0268279537942113
531.071.12173910695277-0.0517391069527693
541.051.06738693496684-0.0173869349668403
551.061.050597185306510.00940281469348547
561.061.07619885060324-0.0161988506032447
571.081.08751901052413-0.00751901052413051
581.071.055811166135670.014188833864335
591.041.07911047634731-0.0391104763473056
601.041.06039957127836-0.020399571278358
611.061.034050677474730.0259493225252680
621.091.067467371961420.0225326280385840
631.091.089956516742274.34832577309585e-05
641.051.12978866779252-0.0797886677925153
651.011.08554664847600-0.0755466484760015
661.021.018310033723720.00168996627628260
671.031.021128519199730.008871480800267
681.061.039813594833010.0201864051669896
691.081.08094844970193-0.00094844970193364
701.051.05794900976268-0.0079490097626811
711.051.05173126496785-0.00173126496785181
721.051.06591575877450-0.0159157587745022
731.041.05152139264002-0.0115213926400182
741.051.05316961574409-0.00316961574409125
751.071.049728595856300.0202714041437018
761.11.087394976824810.0126050231751886
771.161.117111286767120.0428887132328801
781.161.16070035651934-0.000700356519342638
791.171.162884331063700.00711566893629678
801.171.18367679210897-0.0136767921089738
811.181.19509502285563-0.0150950228556337
821.211.156501510100830.0534984898991733
831.181.20033971905677-0.0203397190567707
841.131.19784906074891-0.0678490607489077
851.121.14211693226228-0.0221169322622847
861.171.137356685523740.0326433144762635
871.191.167029531694890.0229704683051053
881.261.206877904108270.0531220958917287
891.251.27776750084836-0.0277675008483582
901.281.255551764376350.0244482356236533
911.351.279254217692100.0707457823078963
921.391.347807503006960.0421924969930394
931.451.407216561998590.0427834380014096
941.411.42514909362493-0.0151490936249323
951.321.39656620503061-0.0765662050306122
961.311.33895995103608-0.0289599510360776


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
971.324311642062001.255898801191401.39272448293260
981.352101738130371.263690896057491.44051258020325
991.353526070689001.249329273506511.4577228678715
1001.383984294836921.264307616079401.50366097359445
1011.396688489212561.263935072860841.52944190556429
1021.407777086667461.262983190813961.55257098252096
1031.421336158818601.264981639170511.57769067846668
1041.426984308097341.260383636253721.59358497994095
1051.452421664785411.273969412319301.63087391725152
1061.423551042868421.239644897429961.60745718830689
1071.392921040775671.204169389567151.5816726919842
1081.40602462566043-6.658047120808399.47009637212924
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/15/t1218806078zc6z1a47mj0sf2v/12cmt1218806022.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/15/t1218806078zc6z1a47mj0sf2v/12cmt1218806022.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/15/t1218806078zc6z1a47mj0sf2v/2jxux1218806022.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/15/t1218806078zc6z1a47mj0sf2v/2jxux1218806022.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/15/t1218806078zc6z1a47mj0sf2v/3a3uu1218806022.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/15/t1218806078zc6z1a47mj0sf2v/3a3uu1218806022.ps (open in new window)


 
Parameters (Session):
par2 = grey ; par3 = FALSE ; par4 = Unknown ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ; par4 = Unknown ;
 
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