Home » date » 2009 » Jun » 04 »

opdracht 10 reeks bouwvergunningen vlaanderen GILLES HEYMANS

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 04 Jun 2009 10:41:39 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/04/t1244133739ammw1alw4p9m6xe.htm/, Retrieved Thu, 04 Jun 2009 18:42:23 +0200
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2009/Jun/04/t1244133739ammw1alw4p9m6xe.htm/},
    year = {2009},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2009},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1639 1296 1063 1282 1365 1268 1532 1455 1393 1515 1510 1225 1577 1417 1224 1693 1633 1639 1914 1586 1552 2081 1500 1437 1470 1849 1387 1592 1590 1798 1935 1887 2027 2080 1556 1682 1785 1869 1781 2082 2571 1862 1938 1505 1767 1607 1578 1495 1615 1700 1337 1531 1623 1543 1638 1520 1416 1820 1596 1358 1267 1742 1402 1388 1646 1670 1531 1730 1407 1795 1504 1371 1734
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.352262650278532
beta0.0394175072825745
gamma0.365382321391222


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1315771422.81387939779154.186120602207
1414171331.2094143537485.79058564626
1512241187.1166917629836.8833082370209
1616931656.2357553249236.7642446750838
1716331613.9540438227219.0459561772764
1816391645.68117630928-6.68117630927736
1919141811.03043214306102.969567856944
2015861780.99226298622-194.992262986224
2115521651.07540872186-99.075408721861
2220811753.98738221983327.012617780174
2315001856.20734017917-356.207340179170
2414371398.3672762776738.6327237223311
2514701849.85618427538-379.856184275382
2618491524.11506748975324.884932510254
2713871413.11422752116-26.1142275211616
2815921926.29251852413-334.292518524129
2915901734.92099272508-144.920992725083
3017981692.85946261665105.140537383350
3119351922.9470961917612.0529038082445
3218871774.29703580103112.702964198969
3320271764.41182777473262.588172225274
3420802125.29026122948-45.2902612294765
3515561906.43956399688-350.439563996882
3616821518.47972615291163.520273847091
3717851938.57812999022-153.578129990216
3818691846.1263982576722.8736017423312
3917811515.59035384715265.409646152848
4020822117.50656024182-35.5065602418181
4125712068.91233938390502.087660616095
4218622345.11581640973-483.115816409728
4319382387.90559531103-449.905595311028
4415052076.310187768-571.310187767998
4517671847.5662682562-80.5662682562017
4616071990.12611110514-383.126111105142
4715781592.03715579472-14.0371557947151
4814951441.6774240376653.3225759623408
4916151705.98573198027-90.9857319802734
5017001664.2066213885735.7933786114277
5113371409.49035316494-72.4903531649375
5215311729.06988679182-198.069886791816
5316231705.34642216078-82.3464221607842
5415431553.87141847292-10.8714184729201
5516381690.90420118187-52.9042011818683
5615201502.7267352608417.2732647391574
5714161575.30879091192-159.308790911922
5818201585.80816987033234.191830129669
5915961497.8848690371498.1151309628558
6013581404.46920867185-46.4692086718483
6112671582.58290319862-315.582903198624
6217421482.07714849129259.922851508711
6314021296.1752086595105.8247913405
6413881637.55704132813-249.557041328128
6516461617.2802535742328.7197464257747
6616701522.64508947200147.354910528001
6715311708.82828933741-177.828289337413
6817301494.00592772033235.994072279667
6914071604.05086529555-197.050865295548
7017951699.612145497395.3878545027019
7115041529.12219285863-25.1221928586297
7213711360.2903358468210.7096641531773
7317341487.38376998273246.616230017269


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
741743.826950653211494.748266897771992.90563440864
751411.408462410991132.715213559021690.10171126296
761638.322187060251296.619698853951980.02467526654
771790.846337727201390.153877057812191.53879839660
781710.710928425011286.544763230482134.87709361954
791772.927485520791300.897227601452244.95774344013
801715.128896860941220.390986663542209.86680705834
811635.232828965381124.781459084732145.68419884604
821897.322145601131282.222466389752512.42182481251
831649.175451230051071.324085235732227.02681722437
841487.43742457432925.2419579052212049.63289124341
851682.424719872371067.512418117902297.33702162685
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244133739ammw1alw4p9m6xe/1ga361244133697.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244133739ammw1alw4p9m6xe/1ga361244133697.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244133739ammw1alw4p9m6xe/27w3d1244133697.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244133739ammw1alw4p9m6xe/27w3d1244133697.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244133739ammw1alw4p9m6xe/3dua71244133697.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244133739ammw1alw4p9m6xe/3dua71244133697.ps (open in new window)


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