Home » date » 2010 » Jan » 16 »

Exponential smoothing Toegekende bouwvergunningen voor het aantal woningen

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sat, 16 Jan 2010 07:53:52 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/16/t12636537410e1w5z5o7pk6q1c.htm/, Retrieved Sat, 16 Jan 2010 15:55:45 +0100
 
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/2010/Jan/16/t12636537410e1w5z5o7pk6q1c.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W62
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2766 3851 3289 3848 3348 3682 4058 3655 3811 3341 3032 3475 3353 3186 3902 4164 3499 4145 3796 3711 3949 3740 3243 4407 4814 3908 5250 3937 4004 5560 3922 3759 4138 4634 3996 4308 4143 4429 5219 4929 5761 5592 4163 4962 5208 4755 4491 5732 5731 5040 6102 4904 5369 5578 4619 4731 5011 5299 4146 4625 4736 4219 5116 4205 4121 5103 4300 4578 3809 5526 4248 3830 4430 4837 4408 4569 4104 4807 3944 3794 4390 4041 4104 4823
 
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.246198542886314
beta0
gamma0.397334337843492


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1333533222.9249465812130.075053418801
1431863111.8479822850174.152017714986
1539023853.336181418148.6638185818956
1641644120.2575563971643.7424436028359
1734993455.9256293607243.0743706392841
1841454080.2208904007764.7791095992334
1937964206.10982654648-410.109826546484
2037113720.70679858029-9.70679858029416
2139493891.7990793333257.2009206666844
2237403412.48894307279327.511056927212
2332433179.9787684870163.0212315129947
2444073628.22658427599778.773415724014
2548143743.858813926091070.14118607391
2639083847.4751860169460.5248139830587
2752504577.97438626735672.025613732649
2839374996.89251996398-1059.89251996398
2940044060.6471776821-56.6471776821008
3055604666.89195130402893.108048695985
3139224854.47970881134-932.479708811336
3237594360.39516950586-601.395169505861
3341384405.85424696435-267.854246964353
3446343927.47691612331706.523083876686
3539963709.06128456337286.938715436627
3643084426.81305624074-118.813056240736
3741434408.72871574138-265.728715741384
3844293881.06445052013547.935549479871
3952194914.71480370012304.285196299883
4049294724.36689904177204.633100958234
4157614399.929141271511361.07085872849
4255925639.67635992577-47.6763599257747
4341635048.86038174167-885.860381741668
4449624665.41698143613296.583018563868
4552085031.85622324376176.143776756239
4647554954.6274852554-199.627485255402
4744914387.44868506034103.551314939656
4857324938.52354476708793.476455232923
4957315101.04066679174629.95933320826
5050405037.595056876932.40494312307237
5161025863.96055932165238.039440678354
5249045627.45612721679-723.456127216791
5353695420.89021762652-51.8902176265246
5455785890.83290418776-312.832904187757
5546194983.69026660452-364.690266604521
5647315082.71323434286-351.713234342859
5750115253.46998114473-242.469981144732
5852994960.63144325579338.368556744208
5941464616.71193179793-470.71193179793
6046255233.04432555503-608.044325555029
6147365001.53386362427-265.533863624275
6242194529.65956327045-310.659563270452
6351165349.52421220215-233.524212202151
6442054708.94280182617-503.942801826167
6541214757.56226645068-636.562266450677
6651035005.40428860497.5957113960058
6743004183.77671714341116.223282856590
6845784405.08666655518172.913333444816
6938094737.72528807202-928.725288072015
7055264449.899342701391076.10065729861
7142484045.27972913278202.720270867217
7238304786.27755947736-956.277559477362
7344304571.6183032043-141.6183032043
7448374116.73618068735720.263819312652
7544085213.51556601744-805.515566017442
7645694351.1173207433217.882679256702
7741044537.72815166057-433.728151660567
7848075055.39617633328-248.396176333275
7939444154.16507259718-210.165072597176
8037944312.09798972122-518.097989721216
8143904144.65752174464245.342478255357
8240414746.3531800518-705.353180051795
8341043641.55501744207462.444982557926
8448234099.36385911524723.636140884755


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
854542.296481787183518.128741032895566.46422254147
864380.423930375923325.673495235205435.17436551664
874842.887393947543758.416370979515927.35841691558
884485.325146712983371.926602217295598.72369120868
894423.128835733483281.535546460575564.72212500638
905103.089102206513933.980827776496272.19737663652
914274.463419007623078.473002420385470.45383559486
924391.909312372613169.627840780945614.19078396429
934580.682787388763332.663991446925828.70158333059
944837.231484898653563.995515310966110.46745448634
954255.858879781162957.895570022485553.82218953983
964678.044118581923355.815820326476000.27241683736
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/16/t12636537410e1w5z5o7pk6q1c/1uhw51263653630.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/16/t12636537410e1w5z5o7pk6q1c/1uhw51263653630.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/16/t12636537410e1w5z5o7pk6q1c/29cj61263653630.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/16/t12636537410e1w5z5o7pk6q1c/29cj61263653630.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/16/t12636537410e1w5z5o7pk6q1c/35pra1263653630.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/16/t12636537410e1w5z5o7pk6q1c/35pra1263653630.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