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:08 +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/t1291829014j5sgph55xmzbiup.htm/, Retrieved Wed, 08 Dec 2010 18:23: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/2010/Dec/08/t1291829014j5sgph55xmzbiup.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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.415713187131023
beta0.533706293812228
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
3194207194612-405
4190855198435.779317733-7580.77931773296
5200779197594.5545564003184.44544360027
6204428201935.1046029402492.89539705965
7207617206541.2637472211075.73625277937
8212071210796.9633986621274.03660133804
9214239215417.768021061-1178.76802106085
10215883218757.377635710-2874.37763570971
11223484220754.3654163782729.6345836221
12221529225686.635575184-4157.63557518445
13225247226833.327320933-1586.32732093311
14226699228696.989365262-1997.98936526186
15231406229946.2266773411459.77332265853
16232324232956.779610955-632.779610955215
17237192234957.0366775362234.96332246382
18236727238645.320804960-1918.32080495975
19240698240181.414522373516.585477627203
20240688242844.345062178-2156.34506217801
21245283243917.6775568781365.32244312158
22243556246757.936050369-3201.93605036903
23247826246989.115427959836.88457204125
24245798249084.964327941-3286.96432794144
25250479248737.2002101621741.79978983794
26249216250866.410583469-1650.41058346943
27251896251219.259847184676.740152816288
28247616252689.683848399-5073.68384839906
29249994250643.888895825-649.888895825279
30246552250292.933808889-3740.93380888866
31248771247826.994302543944.005697456509
32247551247518.09128869132.9087113087589
33249745246837.7346574002907.26534260032
34245742247997.317293432-2255.31729343228
35249019246510.3618319122508.63816808816
36245841247560.433879139-1719.43387913931
37248771246471.3519843642299.64801563646
38244723247563.275451180-2840.27545117974
39246878245888.296603914989.703396086057
40246014246025.0747197-11.0747197000892
41248496245743.3590412072752.64095879253
42244351247221.281409036-2870.28140903582
43248016245724.8550660682291.14493393217
44246509246882.43516799-373.435167990014
45249426246849.4605915422576.53940845776
46247840248614.482911658-774.482911657542
47251035248814.6075117682220.39248823244
48250161250752.377002849-591.377002848982
49254278251390.0487642302887.95123576961
50250801254114.86927131-3313.86927131008
51253985253526.267195070458.732804929517
52249174254607.764023163-5433.76402316292
53251287252034.089813545-747.089813544939
54247947251242.971997772-3295.97199777234
55249992248660.9770768741331.02292312571
56243805248297.797346093-4492.79734609343
57255812244516.76742392911295.2325760708
58250417249805.088808503611.911191497289
59253033250787.9765788872245.02342111259
60248705252947.871166762-4242.87116676228
61253950251469.3019193532480.69808064739
62251484253336.19844105-1852.19844105004
63251093252990.907797722-1897.90779772206
64245996252205.528751997-6209.52875199678
65252721248250.0516701944470.94832980601
66248019249726.553448325-1707.5534483254
67250464248255.7178210122208.28217898804
68245571248902.695496927-3331.69549692675
69252690246507.4322999516182.5677000492
70250183249439.092312525743.907687474944
71253639250274.8795021143364.12049788595
72254436252946.3169009321489.68309906818
73265280255169.04007334310110.9599266574
74268705263219.0476964205485.95230357972
75270643270563.54000939679.4599906041985
76271480275678.11186009-4198.11186008976


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
77278083.010876332271587.184362263284578.837390401
78282233.120353865274529.303656385289936.937051344
79286383.229831398276869.191679495295897.267983300
80290533.339308930278707.334571495302359.344046366
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/08/t1291829014j5sgph55xmzbiup/1pjle1291827964.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/08/t1291829014j5sgph55xmzbiup/1pjle1291827964.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/08/t1291829014j5sgph55xmzbiup/20akz1291827964.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/08/t1291829014j5sgph55xmzbiup/20akz1291827964.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/08/t1291829014j5sgph55xmzbiup/30akz1291827964.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/08/t1291829014j5sgph55xmzbiup/30akz1291827964.ps (open in new window)


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