Home » date » 2010 » Aug » 04 »

Tijdreeks A stap 32

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 04 Aug 2010 12:41:06 +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/Aug/04/t12809256508xupzezir6zv8m8.htm/, Retrieved Wed, 04 Aug 2010 14:40:51 +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/Aug/04/t12809256508xupzezir6zv8m8.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:
Bogaerts Yannik
 
Dataseries X:
» Textbox « » Textfile « » CSV «
442 441 440 438 458 457 442 432 433 433 434 436 439 439 441 436 460 453 435 421 412 408 402 409 410 410 416 410 437 431 411 398 394 395 389 404 397 401 402 383 406 400 377 372 362 365 361 372 355 365 367 341 370 366 333 320 298 306 293 313 293 304 304 286 320 313 283 272 251 262 247 268 251 257 261 242 274 272 243 234 217 231 209 226 208 214 222 194 230 226 197 188 175 190 165 176 159 169 170 141 170 164 132 123 113 125 101 99 87 90 89 66 102 97 65 54 33 49 30 34
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.629530665310154
beta0.0694788787378497
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13439439.841079059829-0.841079059829156
14439439.259508768634-0.259508768634248
15441441.616037467087-0.616037467086699
16436437.304508835147-1.3045088351472
17460461.960841675652-1.96084167565243
18453455.201560779497-2.20156077949667
19435432.0694455722132.93055442778683
20421423.171334034321-2.17133403432086
21412421.79978842851-9.79978842851045
22408414.197263075964-6.19726307596392
23402409.549908623796-7.54990862379606
24409404.8041295601034.19587043989679
25410408.6996081380461.30039186195404
26410408.647886735531.35211326447023
27416410.9236621633915.07633783660867
28410409.2263442881740.773655711826166
29437434.3244347373312.67556526266924
30431429.9741678250281.02583217497192
31411410.4956826575330.504317342467289
32398397.7945617589350.205438241064542
33394394.811591114848-0.811591114848
34395394.3136046458210.686395354178842
35389393.911263366435-4.9112633664351
36404395.7061080884848.29389191151591
37397401.816039262232-4.81603926223158
38401398.3727794337132.62722056628746
39402403.326538370803-1.32653837080289
40383396.21989920926-13.2198992092598
41406412.816649016664-6.81664901666426
42400401.067817981349-1.06781798134915
43377379.174787610289-2.17478761028889
44372363.6558578731968.34414212680366
45362364.755147597983-2.75514759798318
46365362.8390562776372.16094372236284
47361360.6061884115350.393811588464587
48372370.1798456129311.82015438706895
49355366.621377684997-11.6213776849968
50365360.6176335429514.3823664570491
51367364.254518067122.74548193288024
52341354.526275390355-13.5262753903546
53370372.510019532484-2.51001953248357
54366364.9981371596521.00186284034771
55333343.484489705345-10.4844897053449
56320325.754383490978-5.75438349097817
57298312.372710826702-14.3727108267021
58306302.9625649985553.03743500144486
59293298.663440651037-5.66344065103664
60313302.72398306516810.2760169348322
61293297.650611134798-4.650611134798
62304300.410516356683.58948364331957
63304301.3536029613942.64639703860615
64286283.942223959272.05777604073046
65320314.9068512557045.09314874429617
66313312.9040567246970.0959432753027158
67283285.946755177542-2.94675517754217
68272274.425928346298-2.42592834629761
69251259.804062899839-8.80406289983927
70262260.4503130417661.54968695823391
71247252.026961520829-5.02696152082945
72268262.4568697832645.54313021673596
73251248.7307328958422.26926710415825
74257259.058875577938-2.05887557793773
75261256.0089675928114.99103240718875
76242239.8703000454552.12969995454466
77274272.0226216641351.97737833586484
78272266.0886652904765.91133470952389
79243241.8010869702211.19891302977894
80234233.4003459662030.599654033796867
81217218.769920540842-1.76992054084209
82231228.4374391692312.56256083076934
83209219.016891746628-10.0168917466282
84226230.804741308723-4.80474130872329
85208209.48219019738-1.48219019737974
86214215.811900131031-1.8119001310308
87222215.5067167665446.49328323345583
88194199.296904609828-5.2969046098284
89230226.435865899453.56413410054984
90226222.7459798554253.25402014457535
91197194.7112530146632.2887469853375
92188186.4937773739461.50622262605393
93175171.3150509916783.68494900832246
94190186.0190607996013.98093920039867
95165172.890595232081-7.89059523208124
96176188.100428425627-12.1004284256267
97159163.249288039178-4.249288039178
98169167.4272134705121.57278652948838
99170172.189988866295-2.18998886629478
100141145.626468186535-4.62646818653459
101170175.980137740149-5.98013774014851
102164165.25939932911-1.25939932910964
103132132.920766727966-0.920766727965685
104123121.1475556217021.85244437829766
105113105.7637343018187.23626569818178
106125121.7381900385053.26180996149512
107101102.652644925829-1.65264492582939
10899119.396361086631-20.3963610866314
1098791.0349430096177-4.03494300961773
1109096.3177401187613-6.31774011876134
1118993.1871045294938-4.18710452949384
1126662.84425581649453.15574418350549
11310296.3165188802075.68348111979296
1149793.91837628037973.08162371962034
1156563.85897742874541.1410225712546
1165453.92226998921670.0777300107833128
1173338.8492822771176-5.84928227711762
1184943.97475044829565.02524955170444
1193023.11700116516226.88299883483781
1203437.6018473752156-3.60184737521563


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
12125.92072362621315.432554480457636.4088927719685
12233.120648748849620.476891545669245.7644059520299
12335.255605601967220.544499263485849.9667119404487
12410.9511541394199-5.7843991119438327.6867073907836
12543.917385399329225.175139932838562.6596308658199
12637.272975416998816.526491200996358.0194596330013
1274.71544596563955-18.042720905992127.4736128372712
128-6.22261549566044-31.006588368358218.5613573770373
129-23.4328408075865-50.26138816761793.39570655244488
130-10.2330751233618-39.128264615271518.6621143685479
131-33.4226193973938-64.4088948828122-2.43634391197549
132-27.3126875305545-60.41621788059275.79084281948378
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/04/t12809256508xupzezir6zv8m8/1gu9d1280925661.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/04/t12809256508xupzezir6zv8m8/1gu9d1280925661.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/04/t12809256508xupzezir6zv8m8/2gu9d1280925661.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/04/t12809256508xupzezir6zv8m8/2gu9d1280925661.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/04/t12809256508xupzezir6zv8m8/3r38g1280925661.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/04/t12809256508xupzezir6zv8m8/3r38g1280925661.ps (open in new window)


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