Home » date » 2011 » May » 19 »

Exponential Smoothing-Consumentenprijzen Kabeljauw-Toon Baeten

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 19 May 2011 17:56:42 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/19/t13058276703ec8b1w03da0ojb.htm/, Retrieved Thu, 19 May 2011 19:54:33 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
12,32 12,34 12,36 12,54 12,77 12,79 12,96 12,96 13 13,19 13,25 13,61 13,8 13,83 14,04 14,16 14,2 14,27 14,31 14,69 14,9 14,92 15,01 15,09 15,14 15,24 15,33 15,36 15,44 15,5 15,58 15,65 15,72 15,82 15,87 16,07 16,18 16,19 16,39 16,54 16,61 16,62 16,66 16,71 16,72 16,79 16,82 16,83 16,91 16,97 17,02 17,03 17,04 17,07 17,11 17,12 17,14 17,18 17,24 17,26 17,26 17,29 17,36 17,44 17,48 17,48 17,52 17,54 17,58 17,64 17,69 17,69 17,76 17,79 17,82 17,89 17,95 18 18,03 18,06 18,08 18,13 18,16 18,18 18,18 18,27 18,31 18,35 18,45 18,5
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Herman Ole Andreas Wold' @ www.yougetit.org


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.1650321679672
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
312.3612.360
412.5412.380.16
512.7712.58640514687480.183594853125248
612.7912.8467042035136-0.0567042035136307
712.9612.85734618587490.102653814125079
812.9613.0442873673701-0.0842873673700861
91313.0303772404008-0.030377240400755
1013.1913.06536401856060.124635981439443
1113.2513.2759329647842-0.0259329647842268
1213.6113.33165319138410.278346808615931
1313.813.73758936865670.062410631343294
1413.8313.9378891304515-0.107889130451493
1514.0413.9500839533530.0899160466470121
1614.1614.1749229934662-0.0149229934661825
1714.214.2924602195019-0.0924602195019002
1814.2714.3172013090268-0.0472013090267769
1914.3114.3794115746672-0.069411574667198
2014.6914.40795643201790.282043567982145
2114.914.83450269350320.0654973064968498
2214.9215.0553118559903-0.13531185599034
2315.0115.0529810470446-0.0429810470445879
2415.0915.1358877916693-0.045887791669319
2515.1415.2083148299269-0.0683148299269032
2615.2415.2470406854398-0.00704068543975644
2715.3315.3458787458577-0.015878745857659
2815.3615.4332582420042-0.0732582420041687
2915.4415.4511682755048-0.0111682755047546
3015.515.5293251507858-0.0293251507857502
3115.5815.5844855575756-0.00448555757561309
3215.6515.6637452962844-0.0137452962843678
3315.7215.7314768802392-0.0114768802392078
3415.8215.79958282581180.020417174188168
3515.8715.9029523163319-0.032952316331869
3616.0715.94751412412810.122485875871922
3716.1816.16772823376860.0122717662314145
3816.1916.2797534699545-0.089753469954541
3916.3916.27494126022540.115058739774636
4016.5416.49392965349390.0460703465060526
4116.6116.6515327426568-0.041532742656841
4216.6216.7146785040946-0.0946785040945564
4316.6616.7090535053039-0.0490535053039416
4416.7116.7409580989772-0.0309580989772407
4516.7216.7858490167869-0.0658490167868848
4616.7916.7849818107880.00501818921196318
4716.8216.855809973433-0.0358099734329542
4816.8316.8799001758825-0.0499001758824704
4916.9116.88166504167460.0283349583253631
5016.9716.96634122127630.00365877872366482
5117.0217.0269450374612-0.006945037461211
5217.0317.0757988828724-0.0457988828723757
5317.0417.0782405939415-0.0382405939414738
5417.0717.081929665819-0.011929665818954
5517.1117.10996088720573.91127942691583e-05
5617.1217.149967342075-0.0299673420749613
5717.1417.1550217666441-0.0150217666441179
5817.1817.17254269192810.00745730807185652
5917.2417.21377338764640.0262266123535575
6017.2617.2781016223416-0.0181016223415789
6117.2617.2951142723628-0.0351142723628293
6217.2917.28931928786820.000680712131796213
6317.3617.31943162726710.0405683727329276
6417.4417.39612671377010.043873286229914
6517.4817.4833672173125-0.00336721731245859
6617.4817.5228115181394-0.0428115181393665
6717.5217.51574624048690.00425375951314066
6817.5417.5564482476413-0.0164482476413248
6917.5817.57373375767380.00626624232618411
7017.6417.61476788922990.0252321107700908
7117.6917.67893199917270.0110680008273114
7217.6917.7307585753443-0.0407585753442845
7317.7617.7240320992920.0359679007080373
7417.7917.799967959923-0.009967959923042
7517.8217.8283229258867-0.008322925886727
7617.8917.85694937538380.0330506246161875
7717.9517.93240379161690.0175962083831074
781817.99530773203440.00469226796564115
7918.0318.0460821071894-0.0160821071894084
8018.0618.0734280421745-0.0134280421744641
8118.0818.1012119832629-0.0212119832628552
8218.1318.11771132367810.0122886763218979
8318.1618.169739350573-0.00973935057294995
8418.1818.1981320444333-0.0181320444333046
8518.1818.2151396738308-0.0351396738307983
8618.2718.20934049727680.0606595027231585
8718.3118.30935126651910.00064873348094352
8818.3518.34945832841180.000541671588152326
8918.4518.38954772164840.0604522783516295
9018.518.49952429220330.000475707796706359


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
9118.549602799292318.412946678588918.6862589199957
9218.599205598584618.389390608981118.8090205881881
9318.648808397876918.371212381725718.9264044140282
9418.698411197169218.353731933416619.0430904609219
9518.748013996461518.335373336238219.1606546566849
9618.797616795753818.315452558608719.279781032899
9718.847219595046118.293639293038519.4007998970537
9818.896822394338418.269769002185919.5238757864909
9918.946425193630718.243763102955319.6490872843061
10018.99602799292318.215590572926319.7764654129198
10119.045630792215318.185247819487819.9060137649429
10219.095233591507718.15274744416620.0377197388493
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/19/t13058276703ec8b1w03da0ojb/197q81305827801.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t13058276703ec8b1w03da0ojb/197q81305827801.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t13058276703ec8b1w03da0ojb/2bydr1305827801.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t13058276703ec8b1w03da0ojb/2bydr1305827801.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t13058276703ec8b1w03da0ojb/3b0y31305827801.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t13058276703ec8b1w03da0ojb/3b0y31305827801.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=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