Home » date » 2009 » Jun » 06 »

Vincent Van Roy, exonential smoothing, eigen gegevens

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sat, 06 Jun 2009 10:50:56 -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/06/t12443071771tw8n2yh49m7qwo.htm/, Retrieved Sat, 06 Jun 2009 18:52:57 +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/06/t12443071771tw8n2yh49m7qwo.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 «
4.73 4.73 4.73 4.73 4.74 4.74 4.74 4.74 4.74 4.76 4.76 4.76 4.76 4.76 4.76 4.77 4.77 4.78 4.78 4.79 4.83 4.84 4.85 4.85 4.86 4.87 4.87 4.9 4.9 4.92 4.92 4.95 4.96 4.95 4.95 4.95 4.96 4.96 4.96 4.96 4.97 4.97 4.97 5.03 5.08 5.1 5.11 5.13 5.13 5.13 5.15 5.15 5.15 5.17 5.17 5.18 5.2 5.22 5.23 5.23 5.26 5.27 5.28 5.31 5.31 5.32 5.33 5.34 5.38 5.39 5.41 5.44 5.44 5.44 5.46 5.47 5.47 5.49 5.49 5.5 5.52 5.59 5.6 5.6
 
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
alpha1
beta0.0719407104710672
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
34.734.730
44.734.730
54.744.730.00999999999999979
64.744.74071940710471-0.000719407104710967
74.744.74066765244648-0.000667652446479927
84.744.74061962105513-0.000619621055132136
94.744.7405750450762-0.000575045076203651
104.764.740533675924870.0194663240751316
114.764.76193409710909-0.00193409710909354
124.764.76179495678895-0.00179495678894526
134.764.76166582632228-0.00166582632228351
144.764.76154598559314-0.00154598559313701
154.764.76143476629119-0.00143476629118844
164.774.761331548184840.00866845181515874
174.774.77195516276711-0.00195516276710705
184.784.771814506968560.00818549303144511
194.784.78240337715279-0.00240337715279360
204.794.782230476492890.00776952350710847
214.834.792789421534010.0372105784659853
224.844.83546637698590.00453362301410287
234.854.845792529046540.0042074709534603
244.854.85609521749622-0.00609521749621766
254.864.855656723219060.00434327678093638
264.874.865969181636460.00403081836354247
274.874.87625916157331-0.0062591615733103
284.94.875808873042770.0241911269572270
294.94.90754919990317-0.00754919990317227
304.924.907006105098650.0129938949013502
314.924.92794089512964-0.00794089512963936
324.954.927369621492240.0226303785077633
334.964.958997667000310.00100233299968533
344.954.96906977554844-0.0190697755484397
354.954.95769788234696-0.007697882346962
364.954.9571440912218-0.00714409122179838
374.964.956630140223630.00336985977636761
384.964.96687257033013-0.006872570330132
394.964.96637815273782-0.0063781527378195
404.964.96591930389837-0.00591930389836826
414.974.965493464970430.00450653502957454
424.974.97581766830222-0.00581766830221575
434.974.97539914111127-0.00539914111126905
445.034.975010723063790.054989276936209
455.085.038966690714870.0410333092851278
465.15.091918656137820.00808134386217585
475.115.11250003375683-0.00250003375682883
485.135.122320179552160.0076798204478381
495.135.14287267129147-0.0128726712914693
505.135.1419466021731-0.0119466021731007
515.155.141087155125050.00891284487494826
525.155.16172835151767-0.0117283515176743
535.155.16088460557684-0.0108846055768383
545.175.160101559318440.00989844068155588
555.175.18081366017363-0.0108136601736302
565.185.18003571777795-3.57177779468643e-05
575.25.190033148215620.00996685178437584
585.225.210750170614150.00924982938584673
595.235.23141560991191-0.00141560991190559
605.235.24131376992909-0.0113137699290942
615.265.240499849282290.0195001507177102
625.275.27190270397921-0.00190270397921388
635.285.28176582210313-0.00176582210313203
645.315.291638787606470.0183612123935308
655.315.32295970627117-0.0129597062711690
665.325.32202737579452-0.00202737579452439
675.335.33188152493948-0.00188152493947502
685.345.34174616669856-0.00174616669856054
695.385.351620546225660.0283794537743356
705.395.39366218429297-0.00366218429297138
715.415.403398724153060.00660127584694159
725.445.42387362462750.0161263753724974
735.445.45503376752912-0.0150337675291237
745.445.45395222761202-0.0139522276120214
755.465.452948494444960.00705150555504108
765.475.47345578476448-0.00345578476447983
775.475.48320717315329-0.0132071731532877
785.495.482257039733330.00774296026667454
795.495.50281407379606-0.0128140737960596
805.55.50189222022314-0.00189222022314262
815.525.511756092555920.00824390744407832
825.595.532349165114510.0576508348854938
835.65.60649660713542-0.00649660713541955
845.65.61602923660245-0.0160292366024457


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
855.614876081932965.586978210917685.64277395294823
865.629752163865915.588854828027145.67064949970468
875.644628245798875.592753794923135.69650269667461
885.659504327731835.59752492009415.72148373536955
895.674380409664785.602741641737185.74601917759238
905.689256491597745.608194706582045.77031827661344
915.70413257353075.613765528821635.79449961823976
925.719008655463655.619380655143325.81863665578398
935.733884737396615.62499178048875.84277769430452
945.748760819329575.630565761660055.86695587699908
955.763636901262525.63607914466985.89119465785525
965.778512983195485.641514950612375.91551101577859
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t12443071771tw8n2yh49m7qwo/1mo291244307051.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t12443071771tw8n2yh49m7qwo/1mo291244307051.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t12443071771tw8n2yh49m7qwo/2yytp1244307051.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t12443071771tw8n2yh49m7qwo/2yytp1244307051.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t12443071771tw8n2yh49m7qwo/35wpl1244307051.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t12443071771tw8n2yh49m7qwo/35wpl1244307051.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