Home » date » 2011 » May » 19 »

opgave 10 eigen gegevens

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 19 May 2011 14:57:18 +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/19/t1305816816q65hmkv39cu074u.htm/, Retrieved Thu, 19 May 2011 16:53:40 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6827 6178 7084 8162 8462 9644 10466 10748 9963 8194 6848 7027 7269 6775 7819 8371 9069 10248 11030 10882 10333 9109 7685 7602 8350 7829 8829 9948 10638 11253 11424 11391 10665 9396 7775 7933 8186 7444 8484 9948 10252 12282 11637 11577 12417 9637 8094 9280 8334 7899 9994 10078 10801 12950 12222 12246 13281 10366 8730 9614 8639 8772 10894 10455 11179 10588 10794 12770 13812 10857 9290 10925 9491 8919 11607 8852 12537 14759 13667 13731 15110 12185 10645 12161 10840 10436 13589 13402 13103 14933 14147 14057 16234 12389 11595 12772
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.194526868697057
beta0
gamma0.414248667899734


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1372696992.55582264958276.444177350425
1467756566.94396801391208.056031986088
1578197674.11211493786144.887885062141
1683718244.45069337263126.54930662737
1790698937.7635922348131.236407765207
181024810127.1549248712120.845075128766
191103010919.066530775110.933469225016
201088211223.0500630185-341.050063018516
211033310359.9023206987-26.9023206987495
2291098590.03142166736518.968578332639
2376857354.68041267073330.319587329269
2476027591.1737728380210.826227161976
2583507922.54882708647427.451172913534
2678297503.49307979763325.50692020237
2788298612.4315064763216.568493523706
2899489190.59492596117757.40507403883
291063810008.1901489503629.809851049738
301125311291.100176145-38.1001761449879
311142412048.7854924272-624.78549242717
321139112058.8403039573-667.840303957295
331066511236.943553866-571.943553865962
3493969543.18614354233-147.186143542331
3577758115.30435581386-340.304355813862
3679338114.73921388684-181.739213886838
3781868547.66876654046-361.668766540461
3874447941.0926398772-497.092639877204
3984848853.66428216425-369.664282164253
4099489498.24854678723449.751453212772
411025210213.422664695438.5773353045988
421228211158.46310013541123.53689986458
431163711946.3609959165-309.360995916528
441157712003.4084129279-426.408412927929
451241711260.47415408081156.52584591916
46963710044.6776627278-407.677662727778
4780948501.68626088138-407.686260881383
4892808540.92135182203739.078648177969
4983349092.93831481898-758.938314818981
5078998363.89622153124-464.896221531242
5199949325.24946454283668.75053545717
521007810445.2446234768-367.244623476776
531080110864.296159036-63.296159036021
541295012151.5337669436798.466233056408
551222212398.0871285241-176.087128524134
561224612442.0051301003-196.005130100317
571328112272.0621145561008.93788544398
581036610505.6340029493-139.634002949339
5987309014.78142600075-284.781426000747
6096149460.56146663124153.438533368757
6186399398.81810676915-759.818106769153
6287728767.716769885774.28323011422981
631089410198.5975959148695.402404085171
641045510978.1007208464-523.100720846443
651117911468.2513783323-289.251378332334
661058812999.0755832242-2411.07558322419
671079412296.1113360835-1502.11133608346
681277012075.4360374134694.563962586637
691381212480.78136190651331.21863809346
701085710393.8059310646463.194068935351
7192908971.78882632496318.211173675043
72109259681.086305410641243.91369458936
7394919526.74681718453-35.7468171845321
7489199291.45156882427-372.451568824266
751160710879.6504430341727.3495569659
76885211258.794874714-2406.79487471398
771253711460.54402172961076.45597827041
781475912549.05404285222209.94595714779
791366713048.2932666712618.706733328803
801373113973.1303034321-242.130303432106
811511014408.6935536831701.306446316854
821218511909.5528417133275.447158286737
831064510402.6380307182242.361969281776
841216111406.0564178401754.943582159947
851084010729.6196807541110.380319245894
861043610410.403101212225.5968987878405
871358912442.99952865841146.0004713416
881340211857.82483780551544.17516219452
891310313990.3867915028-887.386791502795
901493315075.0838898878-142.083889887843
911414714585.8474124561-438.84741245612
921405715017.729554271-960.729554271045
931623415628.2988709111605.701129088944
941238912968.4655176424-579.465517642378
951159511284.2078124351310.792187564877
961277212471.968860082300.031139918039


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
9711491.970473738910051.058533369612932.8824141082
9811122.99259700289655.0712378181312590.9139561875
9913524.450510660312030.007800616715018.8932207039
10012849.205361345311328.70382880614369.7068938845
10113870.053787749412323.93257409715416.1750014018
10215376.05382592613804.730592419316947.3770594327
10314815.436534219413219.309158033616411.5639104052
10415158.551872692213537.999961193716779.1037841908
10516478.673830494414834.060078054918123.287582934
10613305.565315410511637.236723206614973.8939076144
10712031.078103165510339.36707925613722.789127075
10813154.791122178311440.016476556114869.5657678006
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/19/t1305816816q65hmkv39cu074u/1gg281305817031.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305816816q65hmkv39cu074u/1gg281305817031.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t1305816816q65hmkv39cu074u/2fhz31305817031.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305816816q65hmkv39cu074u/2fhz31305817031.ps (open in new window)


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