Home » date » 2009 » Jun » 04 »

voorspellen datareeks-financiële situatie Belgische gezinnen-Robin Sluyts

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 04 Jun 2009 06:59:01 -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/04/t1244120430fuv5238oylxr45o.htm/, Retrieved Thu, 04 Jun 2009 15:00:30 +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/04/t1244120430fuv5238oylxr45o.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 «
1 -1 3 4 3 2 1 4 3 5 6 6 6 6 6 5 6 5 6 5 7 4 5 6 6 5 3 2 3 3 2 0 4 4 5 6 6 5 5 3 5 5 5 3 6 6 4 6 5 4 5 5 4 3 2 3 2 -1 0 -2 1 -2 -2 -2 -6 -4 -2 0 -5 -4 -5 -1
 
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.632874910581782
beta0.230201372346766
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
33-36
44-0.3286184988707334.32861849887073
531.915618268946291.08438173105371
622.26464111778233-0.264641117782325
711.72134603853347-0.721346038533472
840.783921926317683.21607807368232
932.806940893668450.193059106331545
1052.944893527370462.05510647262954
1164.560694956264661.43930504373534
1265.996461552688620.00353844731137798
1366.52408300447752-0.524083004477522
1466.64143311971188-0.641433119711878
1566.5910657512701-0.591065751270094
1656.48646304170446-1.48646304170446
1765.598625024100080.40137497589992
1855.96402811067005-0.964028110670049
1965.324853864798810.675146135201186
2055.82143301768917-0.821433017689166
2175.251191286759441.74880871324056
2246.56237268212294-2.56237268212294
2354.771806861758330.228193138241669
2464.780565290913941.21943470908606
2565.594313465086070.405686534913929
2655.95216476919407-0.952164769194068
2735.31194642898748-2.31194642898748
2823.47433198528138-1.47433198528138
2931.952029237329501.04797076267050
3032.178706085140980.821293914859019
3122.38157806371213-0.381578063712125
3201.76759094467858-1.76759094467858
3340.01891306850762993.98108693149237
3442.488428461088791.51157153891121
3553.615268371967311.38473162803269
3664.863574198856181.13642580114382
3766.12029786461897-0.120297864618973
3856.5641466165323-1.56414661653230
3955.86634127383906-0.866341273839057
4035.48394331450773-2.48394331450773
4153.715923203183081.28407679681692
4254.519663927364380.480336072635623
4354.884716837585880.115283162414121
4435.03553237083774-2.03553237083774
4563.528596705971642.47140329402836
4665.234043013211470.765956986788529
4745.97174639818902-1.97174639818902
4864.689564882073551.31043511792645
4955.6755092527872-0.675509252787198
5045.30618521086796-1.30618521086796
5154.347425788387380.652574211612621
5254.723388731144970.276611268855026
5344.90171328880246-0.901713288802465
5434.20293638497837-1.20293638497837
5523.13826873553833-1.13826873553833
5631.948694757425791.05130524257421
5722.29801048056867-0.298010480568670
58-11.74996138464472-2.74996138464472
590-0.7505041452117640.750504145211764
60-2-0.926272912914023-1.07372708708598
611-2.412981733054243.41298173305424
62-2-0.562932330385403-1.43706766961460
63-2-1.99172199145862-0.00827800854138205
64-2-2.517472535618930.517472535618926
65-6-2.63509886415836-3.36490113584164
66-4-5.700010063922731.70001006392273
67-2-5.311793830834423.31179383083442
680-3.421029242120343.42102924212034
69-5-0.96272709188369-4.03727290811631
70-4-3.81278218034909-0.187217819650909
71-5-4.25350951466263-0.746490485337366
72-1-5.156941695434294.15694169543429


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
73-2.35149535416046-6.090038626878681.38704791855776
74-2.17687311667829-6.91489414997062.56114791661402
75-2.00225087919612-7.866407740520143.8619059821279
76-1.82762864171395-8.926114353834415.27085707040651
77-1.65300640423178-10.08168666279706.77567385433342
78-1.47838416674961-11.32440400414438.36763567064512
79-1.30376192926744-12.647755188839710.0402313303049
80-1.12913969178527-14.046654803523811.7883754199532
81-0.954517454303094-15.516985097563113.6079501889569
82-0.779895216820923-17.055315368895115.4955249352532
83-0.605272979338753-18.658722093426117.4481761347486
84-0.430650741856581-20.324668729244419.4633672455313
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244120430fuv5238oylxr45o/1cb9o1244120336.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244120430fuv5238oylxr45o/1cb9o1244120336.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244120430fuv5238oylxr45o/2mdp01244120336.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244120430fuv5238oylxr45o/2mdp01244120336.ps (open in new window)


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