Home » date » 2010 » May » 28 »

Exponential 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: Fri, 28 May 2010 10:47:09 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/May/28/t1275043767hhjzhin6yil5neh.htm/, Retrieved Fri, 28 May 2010 12:49:31 +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/2010/May/28/t1275043767hhjzhin6yil5neh.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W62
 
Dataseries X:
» Textbox « » Textfile « » CSV «
81.28 69.39 67.63 51.25 103.97 133.83 162.37 172.91 163.01 151.50 111.73 88.58 74.29 63.98 61.18 76.48 107.98 124.97 145.57 140.20 143.84 138.80 104.06 74.70 60.18 55.16 35.62 56.18 85.44 114.08 133.64 67.14 95.58 89.37 75.24 69.18 54.49 57.50 62.16 76.67 110.04 127.38 156.47 167.56 153.54 124.08 100.97 79.17 68.13 61.77 54.31 60.30 84.18 104.05 114.66 105.55 96.61 70.94 63.91 58.61 44.53 49.58 57.39 76.76 104.57 125.41 143.11 136.35 135.15 131.70 96.87 70.63 66.29 63.49 62.97 66.43 101.49 127.69 133.21 158.72 148.61 134.31 100.99 75.16 59.74 52.87 52.07 57.38 79.43 101.40 120.19 134.38 135.97 113.83 84.38 70.28 65.96 56.36 49.57 68.33 90.32 117.06 134.69 131.67 129.25 118.77 88.44 76.79 75.28 73.89 76.24 88.58 105.83 115.84 127.76 131.75 119.63 93.38 75.55 51.79
 
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.74849268925821
beta0
gamma0.105416678642104


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1374.2973.94036110992980.349638890070239
1463.9864.6912005135862-0.711200513586213
1561.1862.1791200456466-0.999120045646642
1676.4877.2457571681103-0.765757168110298
17107.98108.403843873499-0.423843873499322
18124.97125.327597717670-0.357597717670401
19145.57150.560664175104-4.99066417510409
20140.2155.995349759207-15.7953497592069
21143.84135.4959705829618.34402941703857
22138.8129.8738282842238.92617171577743
23104.0698.94153926662725.11846073337283
2474.781.0765682372002-6.37656823720023
2560.1864.1470623862881-3.96706238628814
2655.1653.24261328706181.91738671293820
2735.6252.924864229907-17.3048642299070
2856.1850.09589687194596.08410312805406
2985.4477.07443901351758.36556098648252
30114.0896.441063137869417.6389368621306
31133.64131.7676745315781.87232546842216
3267.14141.103337539617-73.963337539617
3395.5880.52966211061215.0503378893880
3489.3783.78936214151265.58063785848745
3575.2463.464087366812211.7759126331878
3669.1856.655976711052812.5240232889472
3754.4955.4764753113273-0.98647531132729
3857.547.72248156231759.77751843768252
3962.1652.61814783501139.54185216498865
4076.6776.2462334895180.423766510482011
41110.04108.2326433203021.80735667969819
42127.38127.2817841204410.098215879559362
43156.47152.6179464904123.85205350958793
44167.56161.1136573854026.44634261459765
45153.54161.200553578699-7.66055357869945
46124.08142.181983996835-18.1019839968354
47100.9793.36598413207647.60401586792356
4879.1777.90194808095741.26805191904263
4968.1365.97224069646072.15775930353934
5061.7759.32677807232772.44322192767229
5154.3158.4775322174813-4.16753221748134
5260.370.3034402120837-10.0034402120837
5384.1888.6959212452881-4.51592124528811
54104.0598.86613505456245.18386494543761
55114.66123.010550881149-8.35055088114902
56105.55120.756598292350-15.2065982923496
5796.61105.652630103138-9.0426301031379
5870.9489.8723850666105-18.9323850666105
5963.9154.9807824387698.92921756123096
6058.6148.208997429279110.4010025707209
6144.5346.7339612442915-2.2039612442915
6249.5839.446157885526810.1338421144732
6357.3944.743587077254212.6464129227458
6476.7668.68147478940878.0785252105913
65104.57105.953836131095-1.38383613109522
66125.41122.1093661094653.30063389053487
67143.11148.881218725698-5.77121872569847
68136.35149.493664080602-13.1436640806019
69135.15135.362769212441-0.212769212440804
70131.7122.7108945721958.9891054278049
7196.8795.50272022166241.36727977833762
7270.6375.8540139476447-5.22401394764471
7366.2959.80299192209726.48700807790281
7463.4957.14872459848076.34127540151931
7562.9759.03392619194023.93607380805975
7666.4378.3361487778237-11.9061487778237
77101.4998.06567999993673.4243200000633
78127.69117.20654006476710.4834599352330
79133.21149.187182864173-15.9771828641726
80158.72141.65418145544317.0658185445569
81148.61150.160184673231-1.55018467323075
82134.31135.583012920392-1.27301292039161
83100.9999.2140309339171.77596906608306
8475.1678.8518713111839-3.69187131118389
8559.7463.5664037170366-3.82640371703663
8652.8753.6288643023088-0.758864302308758
8752.0750.49856124449841.57143875550164
8857.3864.8213137810088-7.44131378100882
8979.4384.0520226134744-4.62202261347444
90101.493.82539914053787.57460085946222
91120.19117.8605979718832.32940202811672
92134.38124.07467189246310.3053281075366
93135.97127.5837739745028.3862260254984
94113.83121.715057179198-7.88505717919814
9584.3885.3111441316457-0.931144131645723
9670.2866.15563473574614.12436526425391
9765.9657.78385757223818.17614242776192
9856.3656.5526307231324-0.192630723132424
9949.5753.7732891473396-4.20328914733956
10068.3363.23422889150955.09577110849053
10190.3295.3816340095591-5.06163400955913
102117.06107.1265080983029.93349190169766
103134.69135.654762487717-0.96476248771711
104131.67140.328159021533-8.65815902153287
105129.25129.538107198813-0.288107198813236
106118.77117.1483230534721.62167694652797
10788.4487.3376132561331.10238674386690
10876.7969.0823311573937.70766884260705
10975.2862.614302438052512.6656975619475
11073.8963.63105771895110.258942281049
11176.2467.93939058368778.30060941631234
11288.5893.2425600715202-4.66256007152019
113105.83127.476367216397-21.6463672163974
114115.84130.818857639880-14.9788576398797
115127.76141.319582691019-13.5595826910191
116131.75136.178176242322-4.42817624232239
117119.63128.793420868578-9.1634208685779
11893.38110.449148843292-17.0691488432919
11975.5571.94705791838333.6029420816167
12051.7958.5446657421842-6.75466574218419


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
12144.696266258678227.892350333664561.5001821836918
12239.257686568195817.124858382917561.3905147534741
12337.191799198220810.470279804783363.9133185916583
12446.31482945158929.1185847735512883.5110741296271
12565.18946179065310.0085767818953120.370346799411
12676.43542643074239.09730288897072143.773549972514
12790.00400913352488.252607843439171.755410423611
12893.28684716308656.08784036517878180.485853960994
12990.0241878130593.37882098114349176.669554644974
13081.08584154202050.474262489647515161.697420594394
13159.967722270763-2.55556753736494122.491012078891
13246.7077712362005-5.6286310289546799.0441735013557
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/28/t1275043767hhjzhin6yil5neh/10qwa1275043627.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/28/t1275043767hhjzhin6yil5neh/10qwa1275043627.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/28/t1275043767hhjzhin6yil5neh/2y2k11275043627.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/28/t1275043767hhjzhin6yil5neh/2y2k11275043627.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/28/t1275043767hhjzhin6yil5neh/3y2k11275043627.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/28/t1275043767hhjzhin6yil5neh/3y2k11275043627.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=F, beta=F)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=F)
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