Home » date » 2010 » Dec » 08 »

*The author of this computation has been verified*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 08 Dec 2010 17:06:15 +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/Dec/08/t1291829676ibzqyvznorfwrrf.htm/, Retrieved Wed, 08 Dec 2010 18:34:37 +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/2010/Dec/08/t1291829676ibzqyvznorfwrrf.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
186448 190530 194207 190855 200779 204428 207617 212071 214239 215883 223484 221529 225247 226699 231406 232324 237192 236727 240698 240688 245283 243556 247826 245798 250479 249216 251896 247616 249994 246552 248771 247551 249745 245742 249019 245841 248771 244723 246878 246014 248496 244351 248016 246509 249426 247840 251035 250161 254278 250801 253985 249174 251287 247947 249992 243805 255812 250417 253033 248705 253950 251484 251093 245996 252721 248019 250464 245571 252690 250183 253639 254436 265280 268705 270643 271480
 
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.594091053904783
beta0.374196561823787
gamma0.693700862612219


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
5200779193857.868756921.13124999998
6204428202551.4781552151876.52184478543
7207617210393.918864677-2776.91886467711
8212071206924.4640494055146.53595059502
9214239224646.345835572-10407.3458355723
10215883220255.125632632-4372.12563263174
11223484220316.1924129983167.80758700179
12221529221172.28584846356.714151539549
13225247229166.872676244-3919.87267624363
14226699229269.353236709-2570.35323670949
15231406231864.630352412-458.630352412263
16232324228309.2652720534014.73472794739
17237192236620.575448753571.424551246804
18236727240117.463158815-3390.46315881546
19240698242983.992694058-2285.99269405808
20240688239360.2350123651327.76498763464
21245283244265.96323921017.03676079967
22243556246171.349805591-2615.34980559099
23247826249241.026895512-1415.0268955116
24245798246777.547048244-979.547048243956
25250479249337.3811245571141.61887544286
26249216249434.025038334-218.025038333988
27251896253938.908589686-2042.90858968601
28247616250758.440679939-3142.44067993888
29249994251683.178258106-1689.17825810626
30246552248138.500344917-1586.50034491657
31248771249435.591086078-664.59108607826
32247551245189.828815352361.17118465033
33249745249442.377324503302.622675496677
34245742247201.669079551-1459.66907955092
35249019248953.64180910665.3581908937776
36245841246275.742891004-434.742891004193
37248771247948.28297532822.717024679645
38244723245296.617566287-573.617566287227
39246878247977.661584934-1099.66158493413
40246014244181.0846010351832.91539896512
41248496247773.278821491722.721178508742
42244351244865.181820142-514.181820142257
43248016247642.779986517373.220013483427
44246509246083.780703617425.21929638306
45249426248750.925691315675.074308685347
46247840245679.5017347092160.49826529145
47251035251103.843136672-68.8431366720179
48250161250006.452020969154.547979031107
49254278253232.5675427821045.43245721792
50250801251531.187881904-730.187881904189
51253985254699.595714861-714.595714860945
52249174253227.049688093-4053.04968809334
53251287253214.524668936-1927.52466893601
54247947247596.251904122350.748095877643
55249992250000.816227863-8.8162278632517
56243805246754.018924213-2949.01892421348
57255812246987.8175781338824.18242186715
58250417249780.655217727636.344782272761
59253033253699.236931496-666.23693149563
60248705250533.415141752-1828.41514175225
61253950256296.606901658-2346.60690165771
62251484249212.6710998042271.32890019621
63251093253164.489084398-2071.48908439768
64245996247952.863976388-1956.86397638821
65252721252581.568103102139.431896898343
66248019247915.279431006103.720568993769
67250464248515.0167315041948.98326849574
68245571245776.496867017-205.496867017326
69252690252477.589619012212.410380987654
70250183248302.4682416211880.53175837855
71253639251330.2453788332308.75462116735
72254436249131.6491580655304.35084193503
73265280261381.4878808573898.51211914272
74268705262843.1214270615861.87857293943
75270643272219.00667257-1576.00667256973
76271480271554.64455014-74.644550140365


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
77282015.865498848276525.680709346287506.050288351
78282650.455993896275563.000601895289737.911385897
79286082.545418822276985.700226495295179.390611149
80286760.633392828275328.962373197298192.304412459
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/08/t1291829676ibzqyvznorfwrrf/14ryc1291827971.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/08/t1291829676ibzqyvznorfwrrf/14ryc1291827971.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/08/t1291829676ibzqyvznorfwrrf/24ryc1291827971.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/08/t1291829676ibzqyvznorfwrrf/24ryc1291827971.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/08/t1291829676ibzqyvznorfwrrf/3figf1291827971.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/08/t1291829676ibzqyvznorfwrrf/3figf1291827971.ps (open in new window)


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