Home » date » 2008 » May » 26 »

jasper ledeganck opg 10 oef 2 personenwagens '02-'08

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 15:49:06 -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/t1211838859n08x3a5gr4i9vib.htm/, Retrieved Mon, 26 May 2008 23:54:20 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
36845 35338 35022 34777 26887 23970 22780 17351 21382 24561 17409 11514 31514 27071 29462 26105 22397 23843 21705 18089 20764 25316 17704 15548 28029 29383 36438 32034 22679 24319 18004 17537 20366 22782 19169 13807 29743 25591 29096 26482 22405 27044 17970 18730 19684 19785 18479 10698 31956 29506 34506 27165 26736 23691 18157 17328 18205 20995 17382 9367 31124 26551 30651 25859 25100 25778 20418 18688 20424 24776 19814 12738 42553
 
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 time4 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.448709214642811
beta0
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
33502235338-316
43477735196.2078881729-419.207888172874
52688735008.1054458987-8121.10544589875
62397031364.0905992381-7394.09059923806
72278028046.2940134562-5266.29401345616
81735125683.2593626001-8332.25936260011
92138221944.4978078076-562.497807807606
102456121692.09985822802868.90014177205
111740922979.4017877311-5570.40178773114
121151420479.9111763134-8965.91117631339
133151416456.824213832615057.1757861674
142707123213.11773558253857.88226441747
152946224944.18505663374517.81494336628
162610526971.3702517732-866.370251773158
172239726582.6219365101-4185.62193651013
182384324704.4948045869-861.49480458695
192170524317.9341474019-2612.93414740188
201808923145.4865182078-5056.4865182078
212076420876.5944237708-112.594423770817
222531620826.07226830754489.92773169255
231770422840.7442145982-5136.7442145982
241554820535.8397522448-4987.83975224484
252802918297.75009425099731.24990574914
262938322664.25159695256718.74840304751
273643825679.015916266610758.9840837334
283203430506.67121483311527.32878516690
292267931191.9977145267-8512.9977145267
302431927372.1371957854-3053.13719578538
311800426002.1664024678-7998.16640246777
321753722413.3154374339-4876.31543743394
332036620225.2677671523140.732232847658
342278220288.41561682832493.58438317166
351916921407.3099070469-2238.30990704687
361380720402.9596265286-6595.95962652865
372974317443.291762693312299.7082373067
382559122962.28418619092628.71581380910
392909624141.81319452434954.18680547568
402648226364.8024652031117.197534796913
412240526417.3900789999-4012.39007899988
422704424616.99367781122427.00632218876
431797025706.0137785737-7736.0137785737
441873022234.7931115239-3504.79311152393
451968420662.1601469665-978.160146966493
461978520223.2506756263-438.250675626263
471847920026.6035591493-1547.60355914932
481069819332.179581545-8634.17958154501
493195615457.943642425016498.0563575750
502950622860.77355376536645.22644623471
513450625842.54789357898663.4521064211
522716529729.9186843467-2564.91868434672
532673628579.0160358708-1843.01603587083
542369127752.0377578411-4061.03775784112
551815725929.8126948854-7772.81269488543
561732822442.0800149977-5114.08001499772
571820520147.3451878476-1942.34518784760
582099519275.79700404331719.20299595674
591738220047.2192301706-2665.21923017058
60936718851.3108025498-9484.31080254982
613112414595.613150909416528.3868490906
622655122012.05263327744538.94736672261
633065124048.72014150456602.27985849545
642585927011.2239516621-1152.22395166209
652510026494.2104472192-1394.21044721916
662577825868.6153724006-90.6153724006472
672041825827.9554198162-5409.95541981619
681868823400.4585721378-4712.45857213785
692042421285.9349871971-861.934987197092
702477620899.17681601873876.82318398128
711981422638.743102212-2824.74310221200
721273821371.2548432508-8633.25484325076
734255317497.433842724525055.5661572755


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7428740.097255586615316.652037596042163.5424735771
7528740.097255586614027.242209981443452.9523011918
7628740.097255586612842.068268772344638.1262424008
7728740.097255586611739.316457688445740.8780534847
7828740.097255586610703.862343311346776.3321678619
7928740.09725558669724.7089639062147755.4855472669
8028740.09725558668793.563372328348686.6311388448
8128740.09725558667903.9883091309949576.2062020421
8228740.09725558667050.8681752074750429.3263359657
8328740.09725558666230.057713778651250.1367973945
8428740.09725558665438.1423537686952042.0521574044
8528740.09725558664672.2696776984852807.9248334746
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211838859n08x3a5gr4i9vib/1zk7f1211838538.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211838859n08x3a5gr4i9vib/1zk7f1211838538.ps (open in new window)


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


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


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