Home » date » 2011 » May » 20 »

Exponential Smoothing - Aantal Bouwvergunningen - Wouter Schuurbiers

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 20 May 2011 01:54:10 +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/20/t1305856259n2wxbz3hgkee2id.htm/, Retrieved Fri, 20 May 2011 03:51:02 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1394 1657 2411 3595 3336 3249 2920 2113 2040 1853 1832 2093 2164 2368 2072 2521 1819 1947 2226 1754 1787 2072 1846 2137 2467 2154 2289 2628 2074 2798 2194 2442 2565 2063 2069 2539 1898 2139 2408 2725 2201 2311 2548 2276 2351 2280 2057 2479 2379 2295 2456 2546 2844 2260 2981 2678 3440 2842 2450 2669 2570 2540 2318 2930 2947 2799 2695 2498 2260 2160 2058 2533 2150 2172 2155 3016 2333 2355 2825 2214 2360 2299 1746 2069 2267 1878 2266 2282 2085 2277 2251 1828 1954 1851 1570 1852 2187 1855 2218
 
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'Herman Ole Andreas Wold' @ www.yougetit.org


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.71784635643899
beta0.0864815573358333
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
324111920491
435952565.94407219041029.0559278096
533363662.01390823092-326.013908230917
632493765.11270282839-516.112702828388
729203699.7092507663-779.709250766298
821133396.6792597969-1283.6792597969
920402652.184821244-612.184821244003
1018532351.71549683589-498.715496835888
1118322101.7392206666-269.739220666598
1220931999.3871922353793.6128077646267
1321642163.677620700220.322379299781915
1423682261.01986845966106.980131540341
1520722441.56737198673-369.567371986726
1625212257.08406997945263.915930020547
1718192543.72847337897-724.728473378966
1819472075.68660913111-128.686609131111
1922262027.52230013396198.477699866041
2017542226.53328736477-472.533287364767
2117871914.52639331768-127.526393317683
2220721842.26454256787229.735457432127
2318462040.72389503782-194.723895037816
2421371922.39809679443214.601903205567
2524672111.22791860914355.772081390862
2621542423.48273679387-269.482736793874
2722892270.1710467173318.8289532826734
2826282324.99176316607303.008236833929
2920742602.62043689636-528.620436896363
3027982250.45049166486547.549508335137
3121942704.7973518086-510.797351808599
3224422367.7032344491474.2967655508633
3325652455.22917559679109.770824403205
3420632575.03466510235-512.034665102354
3520692216.69199646037-147.691996460368
3625392110.72259631981428.277403680191
3718982444.79839435797-546.798394357972
3821392044.9740817502994.0259182497055
3924082111.00034034098296.999659659024
4027252341.16843836391383.83156163609
4122012657.49694491057-456.496944910566
4223112342.25914954715-31.2591495471515
4325482330.3361734838217.663826516204
4422762510.61432165484-234.614321654843
4523512351.6612815119-0.661281511903326
4622802360.60952614579-80.6095261457858
4720572307.16293732881-250.162937328812
4824792116.47281713804362.527182861963
4923792388.1059255541-9.10592555409949
5022952392.39826101583-97.3982610158287
5124562327.26373526272128.736264737282
5225462432.45106281467113.54893718533
5328442533.78539410243310.214605897574
5422602795.5537279052-535.553727905205
5529812416.94291731162564.057082688378
5626782862.70064987338-184.700649873379
5734402759.49906895291680.500931047085
5828423319.62510868295-477.625108682951
5924503018.74339886711-568.743398867108
6026692617.1448984529651.8551015470407
6125702664.25995949173-94.2599594917256
6225402600.63515367704-60.6351536770353
6323182557.38353331311-239.383533313106
6429302370.95699745038559.043002549622
6529472792.38369405492154.616305945082
6627992933.09281312672-134.092813126716
6726952858.22859802793-163.228598027926
6824982752.31605767688-254.316057676878
6922602565.22865569865-305.22865569865
7021602322.64509207625-162.645092076246
7120582172.31753619355-114.317536193551
7225332049.58485374552483.415146254479
7321502385.94303940445-235.943039404448
7421722191.26511753763-19.2651175376263
7521552150.932664836294.06733516370832
7630162127.60183037539888.398169624607
7723332794.2368399761-461.236839976103
7823552463.40747522134-108.407475221341
7928252379.12539729694445.874602703057
8022142720.41279471815-506.412794718154
8123602346.6658088859813.3341911140242
8222992346.84509596611-47.8450959661054
8317462300.13680864162-554.136808641618
8420691855.58778609156213.412213908442
8522671975.26976348825291.730236511749
8618782169.28279849302-291.282798493017
8722661926.69907728726339.300922712737
8822822157.84154381477124.158456185226
8920852242.25259004805-157.252590048055
9022772114.89142725125162.108572748754
9122512226.846288078524.1537119214959
9218282241.27022851631-413.270228516311
9319541916.0349767242237.965023275776
9418511917.07419284805-66.0741928480511
9515701839.32731974872-269.327319748723
9618521598.95596325081253.044036749194
9721871749.27607466581437.723925334192
9818552059.34207858859-204.342078588593
9922181895.81768855235322.182311447648


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
1002130.258143068521385.631211309672874.88507482738
1012133.421199202911189.098648137123077.7437502687
1022136.58425533731003.071730185133270.09678048947
1032139.74731147169821.392354527163458.10226841621
1042142.91036760607641.0294281688943644.79130704326
1052146.07342374046460.2845377189643831.86230976196
1062149.23647987485278.1279686467764020.34499110292
1072152.3995360092493.90278686496054210.89628515351
1082155.56259214362-92.82425555387544403.94943984112
1092158.72564827801-282.3447204532994599.79601700932
1102161.8887044124-474.8566536298894798.63406245469
1112165.05176054679-670.4943708714555000.59789196503
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/20/t1305856259n2wxbz3hgkee2id/1g5sj1305856448.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305856259n2wxbz3hgkee2id/1g5sj1305856448.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t1305856259n2wxbz3hgkee2id/26tcx1305856448.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305856259n2wxbz3hgkee2id/26tcx1305856448.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t1305856259n2wxbz3hgkee2id/3c39s1305856448.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305856259n2wxbz3hgkee2id/3c39s1305856448.ps (open in new window)


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