Home » date » 2011 » May » 18 »

opdracht 10 axel vermeyen eigen reeks

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 18 May 2011 15:27:04 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/18/t1305732190t5z5al47sewovvo.htm/, Retrieved Wed, 18 May 2011 17:23:11 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
8 8 8.2 8.5 8.7 8.7 8 8 8.3 8.5 8.7 8.6 8.3 7.9 7.9 8.1 8.3 8.1 7.4 7.3 7.7 8 8 7.7 6.9 6.6 6.9 7.5 7.9 7.7 6.5 6.1 6.4 6.8 7.1 7.3 7.2 7 7 7 7.3 7.5 7.2 7.7 8 7.9 8 8 7.9 7.9 8 8.1 8.1 8.2 8 8.3 8.5 8.6 8.7 8.7 8.5 8.4 8.5 8.7 8.7 8.6 7.9 8.1 8.2 8.5 8.6 8.5
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.807498366458812
gamma0.100845034414204


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
138.38.49863782051282-0.198637820512822
147.97.751969165537840.148030834462162
157.97.871503822551570.0284961774484316
168.18.086181105958160.0138188940418367
178.38.30150650698988-0.00150650698988208
188.18.11695667172316-0.0169566717231593
197.47.50326418700613-0.103264187006131
207.37.244878524684980.0551214753150164
217.77.514389025958660.185610974041342
2287.976769584293870.0232304157061298
2388.2996947736954-0.299694773695396
247.77.76602506683345-0.0660250668334541
256.97.22104326655344-0.321043266553441
266.66.06596801991560.534031980084398
276.96.597197971470520.302802028529483
287.57.333376781535160.166623218464845
297.98.0720914249263-0.172091424926295
307.77.9497945470834-0.249794547083408
316.57.14808585836324-0.648085858363239
326.15.949757586409870.150242413590134
336.45.996078089956730.403921910043273
346.86.53474437249360.265255627506406
357.17.15310452506569-0.0531045250656899
367.37.118556041156910.181443958843093
377.27.27340507485986-0.0734050748598598
3877.0182972634874-0.0182972634874012
3977.20352225311066-0.203522253110658
4077.23084503285245-0.230845032852449
417.37.048604712585640.251395287414365
427.57.168272663174840.331727336825158
437.27.23614194577089-0.0361419457708916
447.77.431957383600250.268042616399747
4588.4734013584844-0.473401358484393
467.98.30363053482886-0.403630534828864
4787.881866203968330.118133796031674
4887.785592384620810.214407615379185
497.97.767059517129170.132940482870829
507.97.678575406550280.221424593449724
5188.25737540405474-0.257375404054736
528.18.34121185238052-0.241211852380525
538.18.25060034227942-0.150600342279416
548.27.745657478567310.454342521432686
5587.812538322436990.187461677563014
568.38.288913320842750.0110866791572519
578.58.92286579615168-0.422865796151683
588.68.6939023565279-0.0939023565278934
598.78.72224302369165-0.0222430236916527
608.78.512615151728870.187384848271128
618.58.472261443940270.0277385560597256
628.48.19882694931310.201173050686906
638.58.66127385911831-0.161273859118307
648.78.82271214799443-0.122712147994431
658.78.92778895561094-0.227788955610945
668.68.360516412724410.239483587275588
677.98.05389901824315-0.153899018243147
688.17.754625812412190.345374187587808
698.28.55851490470639-0.358514904706386
708.58.281514704804840.218485295195158
718.68.76210789043687-0.16210789043687
728.58.439539367052350.0604606329476542


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
738.196694562725987.717258992303088.67613013314888
747.797555792118626.807193410267378.78791817396987
757.798417021511266.200719418779999.39611462424254
767.990944917570575.7007312813515710.2811585537896
778.187639480296555.1285709385976511.2467080219955
788.001000709689194.1034549119064811.8985465074719
797.414361939081842.6139736949182312.2147501832454
807.352723168474481.5893688868379313.116077450111
817.616084397867120.83314999048474714.3990188052495
827.79194562725976-0.064219288171886815.6481105426914
837.97197352331907-1.0085273910317616.9524744376699
847.86033475271172-2.2933920381576218.014061543581
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/18/t1305732190t5z5al47sewovvo/1qotk1305732419.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305732190t5z5al47sewovvo/1qotk1305732419.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/18/t1305732190t5z5al47sewovvo/2vcn01305732419.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305732190t5z5al47sewovvo/2vcn01305732419.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/18/t1305732190t5z5al47sewovvo/3jdky1305732419.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305732190t5z5al47sewovvo/3jdky1305732419.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