Home » date » 2009 » Jun » 02 »

Opgave 10 - Aantal nieuwe gebouwen - Christophe Morre

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 02 Jun 2009 01:32:33 -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/02/t1243928004m0x7l2ea7ysxyj8.htm/, Retrieved Tue, 02 Jun 2009 09:33:28 +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/02/t1243928004m0x7l2ea7ysxyj8.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 «
2194 2419 2742 2137 2710 2173 2363 2126 1905 2121 1983 1734 2074 2049 2406 2558 2251 2059 2397 1747 1707 2319 1631 1627 1791 2034 1997 2169 2028 2253 2218 1855 2187 1852 1570 1851 1954 1828 2251 2277 2085 2282 2266 1878 2267 2069 1746 2299 2360 2214 2825 2355 2333 3016 2155 2172 2150 2533 2058 2160 2260 2498 2695 2799 2945 2930 2318 2540 2570 2669 2450 2842 3440 2678 2981 2259 2844 2546 2456 2295 2379 2479 2057 2280 2351 2275 2543 2305 2188 2720 2398 2147 1898 2538 2081 2057 2497 2460 2195 2823 2100 2640 2342 2171 2482
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.243472330170413
beta0.0205562664353707
gamma0.397243808484191


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1320742141.93536324786-67.9353632478637
1420492102.77000853926-53.7700085392644
1524062458.45107986328-52.4510798632814
1625582585.14909568857-27.1490956885655
1722512265.28823320274-14.2882332027352
1820592076.19545728523-17.1954572852301
1923972224.14212484319172.857875156807
2017472037.68498672405-290.684986724054
2117071761.91314380543-54.9131438054333
2223191947.31205372759371.687946272413
2316311889.56177944909-258.561779449087
2416271588.3607313078138.6392686921906
2517911907.75529479443-116.755294794434
2620341859.44629684248174.553703157516
2719972270.74258262418-273.742582624177
2821692349.68694120936-180.686941209358
2920281994.061243775833.9387562241989
3022531813.83043889310439.169561106896
3122182130.2830987762087.7169012237955
3218551783.6415007293471.3584992706608
3321871668.53642928732518.463570712676
3418522126.27472463116-274.274724631161
3515701723.14439010108-153.144390101079
3618511538.75414635396312.245853646036
3719541881.2615799350872.7384200649212
3818281970.7806937783-142.780693778301
3922512172.6476809531278.3523190468832
4022772369.6027385011-92.6027385011012
4120852104.68424549635-19.6842454963517
4222822037.67226268747244.327737312528
4322662204.5827045430661.4172954569367
4418781850.0071430339927.9928569660087
4522671861.87875317538405.121246824616
4620692056.3839951004012.616004899603
4717461763.54335798965-17.5433579896455
4822991756.74565401575542.254345984248
4923602089.14236508221270.857634917789
5022142168.9872751890245.0127248109839
5128252490.83118453767334.168815462334
5223552707.77259984061-352.772599840605
5323332409.20027051493-76.200270514933
5430162415.26421869386600.73578130614
5521552623.25817848311-468.258178483112
5621722136.3027733782235.6972266217767
5721502270.05199379037-120.051993790372
5825332222.77059727665310.229402723346
5920581998.852955073759.1470449263002
6021602184.87083389630-24.8708338962956
6122602300.69797605381-40.6979760538079
6224982238.32763409113259.672365908869
6326952701.92064729472-6.92064729471576
6427992630.25191113638168.748088863620
6529452545.2621503655399.737849634501
6629302876.5122682477753.487731752226
6723182633.13871952370-315.138719523695
6825402338.81433512761201.185664872394
6925702470.7759826316399.2240173683713
7026692612.0176472939156.982352706093
7124502255.54182604720194.458173952797
7228422454.48911570999387.510884290008
7334402673.26169729084766.738302709157
7426782909.08831638889-231.088316388890
7529813181.9598610077-200.959861007702
7622593123.75310501022-864.753105010216
7728442859.29241091157-15.2924109115679
7825462986.09942425485-440.099424254849
7924562509.96132662118-53.9613266211827
8022952433.89451418500-138.894514185003
8123792450.21110390858-71.2111039085758
8224792534.20598417388-55.2059841738787
8320572188.11313454535-131.113134545352
8422802360.56339693259-80.563396932594
8523512571.75109163386-220.751091633858
8622752254.7468988300620.2531011699407
8725432586.59374778731-43.5937477873131
8823052356.72804265566-51.7280426556558
8921882539.08435742891-351.084357428911
9027202448.37213505697271.627864943031
9123982257.02889800291140.971101997091
9221472199.33817364837-52.3381736483684
9318982253.94272245668-355.942722456683
9425382268.87150259653269.128497403467
9520811976.00453059727104.995469402734
9620572219.38538054769-162.385380547686
9724972366.36530768190130.634692318104
9824602206.94414390802253.055856091976
9921952577.05184215065-382.051842150655
10028232261.40990062501561.590099374991
10121002505.27097288365-405.27097288365
10226402590.3788788900649.621121109943
10323422306.4781778875235.5218221124765
10421712165.252040898195.7479591018132
10524822143.28164944744338.718350552561


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
1062519.191721758732006.536268111793031.84717540566
1072114.126650284701585.882300310742642.37100025866
1082253.717113601801709.723703549222797.71052365438
1092531.234222429521971.333346101733091.13509875732
1102379.084752902841803.119699162232955.04980664345
1112497.734396794471905.550090949563089.91870263938
1122561.632884667981953.075833403723170.18993593224
1132378.317291437011753.235530985853003.39905188818
1142700.954480081412059.197527364993342.71143279784
1152402.636999908291744.055806408283061.2181934083
1162245.538477426711569.985385568022921.09156928539
1172323.93009986661631.258801718143016.60139801507
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243928004m0x7l2ea7ysxyj8/1hn9t1243927951.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243928004m0x7l2ea7ysxyj8/1hn9t1243927951.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243928004m0x7l2ea7ysxyj8/2fz8k1243927951.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243928004m0x7l2ea7ysxyj8/2fz8k1243927951.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243928004m0x7l2ea7ysxyj8/3xn9d1243927951.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243928004m0x7l2ea7ysxyj8/3xn9d1243927951.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=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