Home » date » 2008 » May » 26 »

werkloosheid voor jongeren -25jaar (additief, triple), Jonas Janssens, MAR 202 B

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Mon, 26 May 2008 02:16: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/2008/May/26/t1211789862bjia1an2o4u5sje.htm/, Retrieved Mon, 26 May 2008 10:17:46 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
18.3 15.3 18.6 18.2 16.1 13.1 16.5 16.5 14.7 12.1 15.7 15.7 14 11.7 15.2 15.6 14.3 12.5 16.6 18.1 18.5 17.6 22.6 23.9 23.2 20.6 24.2 24.5 22.9 20.4 23.9 24.1 22.3 19.5 23.3 23.4 21.8 19.8 23.3 23.2 21.2 19 23.8 24.3 23.1 21.6 22.2 17.4 15.6 14.5 20.3 16.1 14.1 15.3 17.8 19.6 17.8 15.7 18.9 18.4 20.8 19 24.5 22.6 19.6 17.5 25 22.3 20.5 19.9 23.4 22.1 20 18.9 23 20 18.6 19.2 20.3 17.8
 
Text written by user:
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.859340004640999
beta0
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
516.117.4075892857143-1.30758928571429
613.113.7589255028600-0.658925502860049
716.516.9801844581742-0.480184458174222
816.516.8675427436583-0.367542743658252
914.714.8052730577572-0.105273057757156
1012.112.2810487525014-0.181048752501376
1115.715.9381080312026-0.238108031202568
1215.716.0493364576049-0.349336457604942
131414.0396030144470-0.0396030144470458
1411.711.56115299564310.138847004356897
1515.215.4850855376502-0.285085537650222
1615.615.54029892350230.0597010764977011
1714.313.92563490147560.374365098524372
1812.511.82802502161050.671974978389455
1916.616.15046540990580.449534590094203
2018.116.88546494328901.21453505671097
2118.516.30745659905632.19254340094367
2217.615.81414187435101.78585812564897
2322.621.06249814759651.53750185240346
2423.922.84003643530581.05996356469418
2523.222.26676527356690.93323472643312
2620.620.6340718777277-0.0340718777277047
2724.224.2835557011831-0.0835557011831192
2824.524.6008838499370-0.100883849937041
2922.923.0122243877198-0.112224387719767
3020.420.34506480942050.054935190579517
3123.924.0640755729905-0.164075572990519
3224.124.3097723974085-0.209772397408468
3322.322.6259454903099-0.325945490309859
3419.519.7986394842267-0.298639484226719
3523.323.18300333212050.116996667879508
3623.423.6638090622016-0.263809062201602
3721.821.9172053806205-0.117205380620526
3819.819.27311896405550.526881035944491
3923.323.4253489988107-0.125348998810740
4023.223.6443332703276-0.444333270327633
4121.221.7632191880685-0.56321918806853
421918.82645245650600.173547543493971
4323.822.58330621255731.21669378744266
4424.323.91069321209050.389306787909518
4523.122.72923688870810.370763111291872
4621.620.69871211565490.901287884345145
4722.225.2276712054232-3.02767120542324
4817.422.7913253207745-5.39132532077448
4915.616.6397322208207-1.03973222082073
5014.513.47173599463921.02826400536079
5120.317.55716337749802.74283662250205
5216.119.7471741395838-3.64717413958384
5314.115.7064949890128-1.60649498901282
5415.312.34234118255992.95765881744011
5517.818.3269464885550-0.526946488554952
5619.616.80828293267112.79171706732891
5717.818.5878425015799-0.787842501579892
5815.716.5691833807104-0.869183380710382
5918.918.77508552821720.124914471782787
6018.418.28339537338400.116604626616027
6120.817.26062297272543.53937702727461
621918.94907529418330.0509247058166657
6324.522.08549292835462.41450707164538
6422.623.5601724261307-0.960172426130704
6519.622.093529577959-2.49352957795898
6617.518.1069782219304-0.606978221930408
672521.01049503572633.98950496427371
6822.323.3639508273679-1.06395082736787
6920.521.5924450375355-1.09244503753551
7019.919.07526398196040.824736018039633
7123.423.8556514210159-0.455651421015883
7222.121.67838743569350.421612564306486
732021.1794777022872-1.17947770228715
7418.918.85717667456000.0428233254400254
752322.78553596549280.214464034507188
762021.3075249469337-1.30752494693371
7718.619.0974888271249-0.497488827124869
7819.217.53317697943221.66682302056783
7920.322.8812471572539-2.58124715725392
8017.818.786686707126-0.986686707126008


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8116.966299398655514.083387745563619.8492110517473
8216.133931696425012.332787544079719.9350758487702
8319.452100640519114.914897302086523.9893039789518
8417.812.630499888610122.9695001113899
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211789862bjia1an2o4u5sje/12fdf1211789794.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211789862bjia1an2o4u5sje/12fdf1211789794.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211789862bjia1an2o4u5sje/2kz0w1211789794.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211789862bjia1an2o4u5sje/2kz0w1211789794.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211789862bjia1an2o4u5sje/3gfnn1211789794.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211789862bjia1an2o4u5sje/3gfnn1211789794.ps (open in new window)


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