Home » date » 2011 » Jan » 16 »

Exponential smoothing consumptieprijsindex

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 16 Jan 2011 18:04: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/Jan/16/t1295200954kajej70ki2zsc1m.htm/, Retrieved Sun, 16 Jan 2011 19:02:34 +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/2011/Jan/16/t1295200954kajej70ki2zsc1m.htm/},
    year = {2011},
}
@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 = {2011},
    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:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
98,6 100,1 98,8 98,3 102,8 103,6 105,2 100,1 98,2 98,4 97,4 98,4 100,3 101,1 104,1 107,3 110,1 112,6 114,3 115,3 109,9 108,2 103,2 101,8 105,6 108,2 109,8 114,6 117,2 116,5 116,1 112,1 106,8 106,9 104,5 103 105,9 107,7 107,1 112,5 114,5 114,6 113,1 112,8 111,9 112 112,4 110 112,3 109,6 111,9 110,8 110,4 110,8 114 108,4 110,5 105,1 102,3 104,3 103,4 102,4 104,5 107,3 110,1 111,8 111,8 105,7 106 106,4 107,1 111,5 109,6 109,9 109,3 111,4 112,9 115,5 118,4 116,2 113,3 113,8 114,1 117,1 115,5 115,2 114,2 115,3 118,8 118 118,1 111,8 112 114,3 115 118,5 117,6 119,1 120,6 123,6 122,7 123,8 123,1 124,5 120,7 118,7 119 122,3 118,6 118,1 118,2 120,8 119,7 119,7 117,1 114,5 116,5 116,4 114,9 115,5
 
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
alpha0.952517560780428
beta0
gamma0.374732084602801


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13100.396.09567550505054.20432449494946
14101.199.88786841770921.21213158229078
15104.1102.9216117024841.17838829751557
16107.3106.3482139159530.951786084047157
17110.1109.4048068751140.695193124885819
18112.6112.1836572013680.416342798631561
19114.3112.3260643617031.97393563829721
20115.3108.9937727210316.30622727896878
21109.9112.838064946522-2.93806494652156
22108.2109.643673156913-1.44367315691304
23103.2106.589382456259-3.38938245625938
24101.8103.681769479805-1.88176947980459
25105.6103.1099926972682.49000730273224
26108.2105.2160277123152.98397228768540
27109.8109.936879983091-0.136879983090779
28114.6112.1066340851282.49336591487192
29117.2116.6270432963400.57295670366041
30116.5119.284499647016-2.78449964701640
31116.1116.405762719262-0.305762719262262
32112.1110.9791036628941.12089633710600
33106.8109.719791628103-2.91979162810317
34106.9106.5693954973560.330604502644263
35104.5105.170515043207-0.670515043207473
36103104.879496272427-1.87949627242708
37105.9104.3876726297641.51232737023554
38107.7105.5712395548112.12876044518912
39107.1109.421957599299-2.32195759929917
40112.5109.5571873742632.94281262573732
41114.5114.4715322576470.0284677423528308
42114.6116.550613440744-1.95061344074445
43113.1114.510272413776-1.41027241377645
44112.8108.0569332978814.74306670211908
45111.9110.1759054013451.72409459865489
46112111.5067273789320.49327262106786
47112.4110.2449780504352.15502194956522
48110112.623821247039-2.62382124703942
49112.3111.4833663692880.816633630711905
50109.6112.015241103453-2.41524110345301
51111.9111.4585253895750.441474610425246
52110.8114.319649947310-3.51964994730972
53110.4113.026530241747-2.62653024174656
54110.8112.541465046846-1.74146504684649
55114110.7099559302873.29004406971326
56108.4108.843238359275-0.443238359275142
57110.5105.9684466615984.53155333840212
58105.1109.951522136435-4.85152213643458
59102.3103.628329769884-1.32832976988441
60104.3102.6041884019661.69581159803396
61103.4105.639476344401-2.2394763444007
62102.4103.202847287306-0.802847287305596
63104.5104.2327950934750.267204906524682
64107.3106.8574436424740.4425563575262
65110.1109.3542864733800.745713526620278
66111.8112.097090823293-0.297090823293118
67111.8111.7309001339660.0690998660337954
68105.7106.729749630265-1.02974963026527
69106103.3848130783292.61518692167115
70106.4105.375561011441.02443898855991
71107.1104.7120136461822.38798635381784
72111.5107.2815377798234.21846222017699
73109.6112.649673399997-3.04967339999706
74109.9109.4668796384550.433120361545008
75109.3111.693147980377-2.39314798037726
76111.4111.786883749015-0.386883749014771
77112.9113.499064446974-0.599064446974438
78115.5114.9423893421800.557610657820305
79118.4115.3968325246063.00316747539389
80116.2113.1708809016993.02911909830122
81113.3113.756943151736-0.45694315173597
82113.8112.7931287552521.00687124474820
83114.1112.1371096675321.96289033246804
84117.1114.3342923869802.76570761302027
85115.5118.189330389361-2.68933038936144
86115.2115.411739696433-0.211739696432915
87114.2116.973479169590-2.77347916959022
88115.3116.740640649132-1.44064064913178
89118.8117.4453240227351.35467597726462
90118120.770201925111-2.77020192511111
91118.1118.0983594488100.00164055118968065
92111.8113.013862483689-1.21386248368944
93112109.4963820868862.50361791311403
94114.3111.3786000271382.92139997286236
95115112.5632138061162.43678619388353
96118.5115.2260753387063.27392466129390
97117.6119.468136457908-1.86813645790784
98119.1117.5168316559371.58316834406324
99120.6120.742671031687-0.142671031687485
100123.6123.0394389152320.56056108476804
101122.7125.700039692473-3.00003969247309
102123.8124.803579696823-1.00357969682265
103123.1123.863795845572-0.763795845572133
104124.5118.0285795902606.47142040974016
105120.7121.897611956789-1.19761195678892
106118.7120.261777126474-1.56177712647398
107119117.1674631635381.83253683646230
108122.3119.2696619387723.03033806122771
109118.6123.188208855713-4.58820885571336
110118.1118.707397062168-0.607397062168431
111118.2119.815976226602-1.6159762266022
112120.8120.7219077846760.0780922153237924
113119.7122.859594032883-3.15959403288261
114119.7121.846679124973-2.14667912497278
115117.1119.822339515138-2.72233951513807
116114.5112.2503136233532.24968637664685
117116.5111.9616136100924.53838638990806
118116.4115.7829382723080.617061727691592
119114.9114.8244022649830.0755977350171406
120115.5115.2743984017530.225601598246982


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
121116.385826305389111.837896432622120.933756178156
122116.346195373694110.065292298675122.627098448712
123118.015385062046110.385455786623125.645314337469
124120.490705241235111.716772368336129.264638114133
125122.496398505302112.711309064306132.281487946299
126124.511075389536113.809951491623135.212199287448
127124.521242506926112.976541125398136.065943888454
128119.630761028152107.300059211189131.961462845114
129117.239918516927104.170401134521130.309435899332
130116.668577556929102.899831720101130.437323393758
131115.112645044334100.678503600197129.546786488472
132115.493302058699100.423115711493130.563488405906
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Jan/16/t1295200954kajej70ki2zsc1m/17r6u1295201078.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/16/t1295200954kajej70ki2zsc1m/17r6u1295201078.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/16/t1295200954kajej70ki2zsc1m/2e3k81295201078.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/16/t1295200954kajej70ki2zsc1m/2e3k81295201078.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/16/t1295200954kajej70ki2zsc1m/3upbk1295201078.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/16/t1295200954kajej70ki2zsc1m/3upbk1295201078.ps (open in new window)


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