Home » date » 2011 » May » 19 »

Opdracht 10 - eigen cijferreeks evolutie geboorten is Belgiƫ - Sophie Van Landeghem

*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 16:09:42 +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/t13058212504y3jlm3i53crmhq.htm/, Retrieved Thu, 19 May 2011 18:07:30 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
126.304 125.511 125.495 130.133 126.257 110.323 98.417 105.749 120.665 124.075 127.245 146.731 144.979 148.210 144.670 142.970 142.524 146.142 146.522 148.128 148.798 150.181 152.388 155.694 160.662 155.520 158.262 154.338 158.196 160.371 154.856 150.636 145.899 141.242 140.834 141.119 139.104 134.437 129.425 123.155 119.273 120.472 121.523 121.983 123.658 124.794 124.827 120.382 117.395 115.790 114.283 117.271 117.448 118.764 120.550 123.554 125.412 124.182 119.828 115.361 114.226 115.214 115.864 114.276 113.469 114.883 114.172 111.225 112.149 115.618 118.002 121.382 120.663
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.773753532020297
beta0.0346047116561005
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13144.979133.51567654914511.4633234508547
14148.21144.5163514658393.69364853416059
15144.67143.6652789920851.00472100791521
16142.97143.278582939518-0.308582939518118
17142.524143.246034184331-0.722034184331079
18146.142147.652534895614-1.51053489561431
19146.522125.6934017091220.8285982908801
20148.128150.70319823366-2.57519823365959
21148.798165.098438934999-16.3004389349988
22150.181157.342190138547-7.16119013854706
23152.388156.346889470515-3.95888947051478
24155.694173.081795605873-17.3877956058731
25160.662158.9894240646221.67257593537772
26155.52160.048135129227-4.52813512922685
27158.262151.3984487619466.86355123805433
28154.338154.576166738474-0.238166738473836
29158.196153.8347001384934.36129986150718
30160.371161.462301177588-1.09130117758806
31154.856144.35917489857210.496825101428
32150.636155.280533903342-4.64453390334177
33145.899164.114758834874-18.2157588348742
34141.242156.038390823322-14.7963908233218
35140.834148.74954298314-7.91554298313994
36141.119158.168497569169-17.049497569169
37139.104147.44305083641-8.33905083640977
38134.437137.877098624352-3.44009862435249
39129.425131.2005031681-1.77550316809965
40123.155124.40955853764-1.25455853763961
41119.273122.21762871106-2.94462871106042
42120.472121.058350410092-0.586350410091796
43121.523105.08096495439616.4420350456037
44121.983115.4492189742686.53378102573177
45123.658128.434014845848-4.77601484584768
46124.794130.461924244474-5.66792424447364
47124.827130.969054696029-6.14205469602922
48120.382138.917240725629-18.5352407256293
49117.395128.196634824461-10.8016348244609
50115.79116.951415265722-1.16141526572194
51114.283111.5933759533332.68962404666661
52117.271107.6735652565739.5974347434271
53117.448113.084962991014.36303700898954
54118.764117.898167359630.865832640369504
55120.55106.72050705810213.8294929418976
56123.554112.57911907904310.9748809209567
57125.412126.313872217897-0.901872217896951
58124.182131.113795889218-6.93179588921801
59119.828130.478064115764-10.6500641157638
60115.361131.955876345639-16.5948763456394
61114.226124.359918495297-10.1339184952969
62115.214115.703874119368-0.489874119368395
63115.864111.6461687343294.21783126567104
64114.276110.4220426332283.85395736677208
65113.469110.0017169715383.46728302846178
66114.883113.1031906305451.77980936945548
67114.172105.3627698397268.80923016027417
68111.225106.3537342117974.87126578820303
69112.149112.17793697608-0.0289369760799048
70115.618115.811638575546-0.193638575546018
71118.002119.251342555537-1.24934255553717
72121.382126.612720500418-5.23072050041813
73120.663129.530585399097-8.8675853990966


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
74124.329206562552107.542214573171141.116198551932
75122.0216662129100.518278024119143.525054401682
76117.64473996131292.046478264596143.243001658028
77114.24481264039584.904855922515143.584769358274
78114.27873572464181.423204321162147.13426712812
79106.7009643263670.484480262408142.917448390313
8099.69833507037660.2308744487108139.165795692041
81100.22782434671757.5894590054352142.866189687999
82103.43052686989557.6802587134843149.180795026305
83106.37026884949857.5516758196873155.188861879309
84113.4200678701861.5650948075685165.275040932792
85119.32495920191964.4565646619633174.193353741875
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/19/t13058212504y3jlm3i53crmhq/1t1e71305821378.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t13058212504y3jlm3i53crmhq/1t1e71305821378.ps (open in new window)


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


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