Home » date » 2009 » Jan » 16 »

Exponential smoothing eigen reeks - Lotte Kenis

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 16 Jan 2009 04:53:00 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jan/16/t1232106818p0sze147chxti43.htm/, Retrieved Fri, 16 Jan 2009 12:53:42 +0100
 
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/Jan/16/t1232106818p0sze147chxti43.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.82 1.76 1.79 1.74 1.78 1.80 1.80 1.80 1.79 1.82 1.82 1.83 1.77 1.77 1.77 1.77 1.74 1.78 1.78 1.78 1.78 1.81 1.84 1.80 1.78 1.76 1.74 1.72 1.73 1.77 1.81 1.83 1.87 1.89 1.82 1.79 1.79 1.82 1.82 1.81 1.81 1.78 1.80 1.79 1.83 1.82 1.80 1.82 1.84 1.82 1.81 1.79 1.87 1.89 1.92 1.9 1.91 1.95 2.04 1.99 1.94 1.93 1.89 1.87 1.89 1.9 1.93 1.94 1.88 1.89 1.92 1.91 1.89 1.89 1.98 2.02 2.02 1.99 1.97 1.96 1.95 1.98 2.00 2.00
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.861637420509336
beta0
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
131.771.77745734897717-0.00745734897717387
141.771.77268467088063-0.00268467088062585
151.771.77161150337079-0.00161150337079419
161.771.77104998553188-0.00104998553187574
171.741.739736430831050.000263569168945654
181.781.78037847553123-0.000378475531233047
191.781.79001781681592-0.0100178168159186
201.781.78304280903269-0.00304280903268928
211.781.770941534180630.00905846581936887
221.811.808137546522680.00186245347732417
231.841.810163176436450.0298368235635522
241.81.84853826298730-0.0485382629872955
251.781.748089598972330.0319104010276676
261.761.77790481937347-0.0179048193734692
271.741.76385981307807-0.0238598130780718
281.721.74419229237287-0.0241922923728668
291.731.693916911682400.0360830883176047
301.771.764986083805620.00501391619438141
311.811.777879454516790.0321205454832139
321.831.808214529264870.0217854707351273
331.871.818968920698140.051031079301856
341.891.89265728742304-0.00265728742304017
351.821.89478931838934-0.0747893183893358
361.791.83200622154673-0.0420062215467327
371.791.748359185630970.0416408143690263
381.821.779633307294280.0403666927057238
391.821.81495040021410.00504959978590103
401.811.82014248623299-0.0101424862329915
411.811.789097254367030.020902745632968
421.781.84437618055992-0.0643761805599243
431.81.80129378200306-0.00129378200306007
441.791.80137036464926-0.011370364649262
451.831.787523160555450.0424768394445474
461.821.84586514170359-0.025865141703592
471.81.81786387509542-0.0178638750954161
481.821.808490155920340.0115098440796599
491.841.781841079384120.0581589206158759
501.821.82694988812251-0.00694988812251118
511.811.81660670969448-0.00660670969448174
521.791.80965282491897-0.0196528249189702
531.871.774852032347140.09514796765286
541.891.882679699916180.00732030008382045
551.921.911394628415680.00860537158431862
561.91.91858390889326-0.0185839088932596
571.911.906060191191960.00393980880803646
581.951.922229065328210.0277709346717872
592.041.941207753485210.0987922465147866
601.992.03767155075633-0.0476715507563259
611.941.96332079647982-0.0233207964798199
621.931.928425591519250.0015744084807523
631.891.92521187971164-0.0352118797116436
641.871.89163494147564-0.0216349414756434
651.891.870310264673000.0196897353270027
661.91.90109131606675-0.00109131606674695
671.931.922852964726110.00714703527389493
681.941.924983252497490.0150167475025058
691.881.94465840485279-0.0646584048527863
701.891.90479394954258-0.0147939495425775
711.921.896221738536250.0237782614637523
721.911.9081974321310.00180256786899835
731.891.881018638872890.00898136112710701
741.891.877700566992170.0122994330078319
751.981.878770496719530.101229503280466
762.021.964549484820910.0554505151790892
772.022.015566922757630.00443307724236952
781.992.03107582509615-0.0410758250961469
791.972.02072255554663-0.050722555546628
801.961.97399330259088-0.0139933025908829
811.951.95733292253833-0.00733292253833495
821.981.974606550883500.00539344911649775
8321.989177865187880.0108221348121205
8421.986476878919380.0135231210806217


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
851.969105018333841.902538425996352.03567161067134
861.958053856500211.87014276235462.04596495064581
871.960286935188411.855571876238962.06500199413787
881.952405789699471.833167138187832.07164444121111
891.948712779890351.816137523806992.08128803597372
901.953817709332401.808019166426932.09961625223786
911.976938842490671.820130849389682.13374683559165
921.978991300867451.812286757310742.14569584442416
931.975270630312951.797008032238752.15353322838716
942.000950212368571.812805797988342.18909462674880
952.011731349394291.816053833432242.20740886535634
962NANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/16/t1232106818p0sze147chxti43/13kbe1232106777.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/16/t1232106818p0sze147chxti43/13kbe1232106777.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/16/t1232106818p0sze147chxti43/28jj11232106777.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/16/t1232106818p0sze147chxti43/28jj11232106777.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/16/t1232106818p0sze147chxti43/32e1e1232106777.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/16/t1232106818p0sze147chxti43/32e1e1232106777.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