Home » date » 2008 » Jun » 02 »

Exponentional smoothing - Niels Braspennincx - gemiddelde prijs badpak

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 01 Jun 2008 16:16:05 -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/Jun/02/t1212358721hv74rhptbcfun7z.htm/, Retrieved Sun, 01 Jun 2008 22:18:41 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
38 38 37.93 38 38.02 38.02 38.02 37.96 37.96 37.99 38 38 38 38.01 38.06 38.02 38.05 38.05 38.05 38.05 38.03 37.98 38.03 38.04 38.04 38.08 38.14 38.37 38.49 38.55 38.55 38.55 38.48 38.51 38.48 38.48 38.48 38.43 38.43 38.45 38.48 38.47 38.47 38.42 38.55 38.56 38.57 38.57 38.57 38.57 38.62 38.73 38.74 38.68 38.69 38.69 38.61 38.77 38.78 38.81 38.81 38.81 38.76 38.93 38.95 38.97 38.97 38.96 38.92 38.95 38.95 38.97 38.97 39.05 39.08 38.83 38.86 38.87 38.87 38.75 38.86 38.93 38.96 38.95
 
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 time7 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.884706953444154
beta0.000885825202857165
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
133837.92457795198820.0754220480117596
1438.0138.0110634371662-0.00106343716615243
1538.0638.068224964845-0.00822496484497037
1638.0238.0332000276638-0.0132000276637854
1738.0538.0654425985015-0.0154425985015507
1838.0538.0636022037336-0.0136022037335835
1938.0538.06296146455-0.0129614645499672
2038.0538.0616255952028-0.0116255952028155
2138.0338.0397886581437-0.00978865814371943
2237.9837.97791128233350.00208871766650987
2338.0338.01156926223480.0184307377652289
2438.0438.01348050882620.0265194911737865
2538.0438.1424384294402-0.102438429440205
2638.0838.06263543188140.0173645681186230
2738.1438.13525422809630.00474577190367143
2838.3738.11095458321910.259045416780936
2938.4938.38416623923350.105833760766473
3038.5538.49002359720820.0599764027917615
3138.5538.554789615662-0.00478961566201974
3238.5538.5610652628292-0.0110652628291561
3338.4838.5398792752465-0.0598792752464945
3438.5138.43450367807090.0754963219291014
3538.4838.5355548555002-0.0555548555001764
3638.4838.47285004466420.00714995533583362
3738.4838.5708833039678-0.0908833039678143
3838.4338.5154740248018-0.0854740248018473
3938.4338.4962049699704-0.0662049699704284
4038.4538.43827047960580.0117295203941552
4138.4838.47492042260060.00507957739936415
4238.4738.4861773923873-0.0161773923872914
4338.4738.475896572199-0.0058965721990063
4438.4238.4802511697104-0.0602511697103694
4538.5538.40974793574530.140252064254703
4638.5638.49684041456610.0631595854338656
4738.5738.571744730148-0.00174473014796206
4838.5738.56374818376800.00625181623195914
4938.5738.6497359684850-0.0797359684849539
5038.5738.6047511460951-0.0347511460951324
5138.6238.6327009240801-0.0127009240801428
5238.7338.63107313367940.0989268663205962
5338.7438.7442556557951-0.00425565579510589
5438.6838.7448043212823-0.0648043212823097
5538.6938.6926690465156-0.0026690465155923
5638.6938.6935744879177-0.00357448791773862
5738.6138.69629763108-0.0862976310800008
5838.7738.57385554489350.196144455106456
5938.7838.75892203196590.0210779680341133
6038.8138.77195558827440.0380444117255863
6138.8138.8765313869043-0.0665313869042876
6238.8138.8485761276802-0.0385761276802228
6338.7638.8760369313363-0.116036931336268
6438.9338.79583953075520.134160469244833
6538.9538.92829743679320.0217025632068300
6638.9738.94475150775070.0252484922492684
6738.9738.979528552073-0.00952855207298597
6838.9638.9742673335675-0.0142673335675028
6938.9238.9579263006439-0.0379263006438535
7038.9538.91063056494850.0393694350514977
7138.9538.93670302775980.0132969722402194
7238.9738.94471583184430.0252841681556717
7338.9739.0260932016555-0.0560932016554787
7439.0539.01066388106040.0393361189396302
7539.0839.09836780082-0.018367800820009
7638.8339.1338081875414-0.303808187541421
7738.8638.865632876974-0.0056328769739693
7838.8738.85811249921920.0118875007808086
7938.8738.8768283415147-0.00682834151466949
8038.7538.8731948752486-0.123194875248643
8138.8638.75752989483350.102470105166503
8238.9338.84316717840280.0868328215972411
8338.9638.90806166281860.0519383371814257
8438.9538.9514864471542-0.00148644715422108


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8538.999597491055438.851311312846239.1478836692645
8639.044685364532938.846551801275539.2428189277904
8739.090769199061838.852894814684439.3286435834393
8839.109162420167638.837323486530639.3810013538047
8939.144383013438538.842220815267839.4465452116093
9039.143850187993238.814307821929739.4733925540567
9139.149916613726338.795027315883839.5048059115688
9239.138774493771238.760342279429139.5172067081133
9339.158326737535338.757452180527739.5592012945428
9439.151428224275338.729511120340439.5733453282101
9539.135336228959638.693456625802639.5772158321166
9639.126544826880329.073870528630349.1792191251302
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/02/t1212358721hv74rhptbcfun7z/1ct391212358555.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/02/t1212358721hv74rhptbcfun7z/1ct391212358555.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/02/t1212358721hv74rhptbcfun7z/2p4uh1212358555.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/02/t1212358721hv74rhptbcfun7z/2p4uh1212358555.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/02/t1212358721hv74rhptbcfun7z/3dnza1212358555.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/02/t1212358721hv74rhptbcfun7z/3dnza1212358555.ps (open in new window)


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