Home » date » 2010 » Dec » 14 »

Paper - ES

*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: Tue, 14 Dec 2010 10:21:18 +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/14/t1292321955bf89juhfjju8r97.htm/, Retrieved Tue, 14 Dec 2010 11:19:19 +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/14/t1292321955bf89juhfjju8r97.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 «
235.1 280.7 264.6 240.7 201.4 240.8 241.1 223.8 206.1 174.7 203.3 220.5 299.5 347.4 338.3 327.7 351.6 396.6 438.8 395.6 363.5 378.8 357 369 464.8 479.1 431.3 366.5 326.3 355.1 331.6 261.3 249 205.5 235.6 240.9 264.9 253.8 232.3 193.8 177 213.2 207.2 180.6 188.6 175.4 199 179.6 225.8 234 200.2 183.6 178.2 203.2 208.5 191.8 172.8 148 159.4 154.5 213.2 196.4 182.8 176.4 153.6 173.2 171 151.2 161.9 157.2 201.7 236.4 356.1 398.3 403.7 384.6 365.8 368.1 367.9 347 343.3 292.9 311.5 300.9 366.9 356.9 329.7 316.2 269 289.3 266.2 253.6 233.8 228.4 253.6 260.1 306.6 309.2 309.5 271 279.9 317.9 298.4 246.7 227.3 209.1
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.931014256544288
beta0.206391957488703
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13299.5239.39449786324860.105502136752
14347.4351.546379551372-4.14637955137209
15338.3347.761267230222-9.46126723022172
16327.7334.364066404668-6.66406640466812
17351.6356.944740044102-5.34474004410174
18396.6403.143379598236-6.54337959823573
19438.8386.10623302541252.6937669745876
20395.6440.036691546718-44.4366915467175
21363.5394.211126862163-30.7111268621633
22378.8340.71716383111738.0828361688831
23357415.401624919934-58.4016249199345
24369374.768913175063-5.76891317506329
25464.8445.99674360433918.8032563956606
26479.1503.369179174461-24.2691791744608
27431.3464.722125847542-33.4221258475416
28366.5408.845143482560-42.3451434825595
29326.3371.076136331253-44.7761363312532
30355.1345.68289589469.4171041053998
31331.6315.86057540555415.7394245944456
32261.3289.853347712182-28.5533477121820
33249223.98226688487025.0177331151295
34205.5202.0469809716703.4530190283304
35235.6206.10879475745229.4912052425480
36240.9236.0996722582714.80032774172892
37264.9306.056870999756-41.1568709997564
38253.8280.306744485138-26.506744485138
39232.3214.18766165789118.1123383421087
40193.8190.8195836384262.98041636157421
41177188.936240573508-11.9362405735080
42213.2198.0209103501815.1790896498201
43207.2175.27135635993031.9286436400704
44180.6165.66389925145914.9361007485408
45188.6156.717367634731.8826323652999
46175.4153.74447165936621.6555283406338
47199194.1057557863644.89424421363597
48179.6212.323203513490-32.7232035134896
49225.8249.794787152436-23.9947871524365
50234249.950934783951-15.9509347839508
51200.2207.683360947197-7.48336094719704
52183.6165.46894187736818.131058122632
53178.2185.600786619152-7.40078661915223
54203.2210.588865862496-7.38886586249606
55208.5173.45745029659735.0425497034026
56191.8171.64893628859520.1510637114047
57172.8175.800849222989-3.00084922298859
58148140.0165853412557.98341465874466
59159.4164.236672863252-4.83667286325192
60154.5166.673623033259-12.1736230332594
61213.2223.702169031232-10.5021690312323
62196.4239.39057988577-42.9905798857699
63182.8169.75261306159713.0473869384029
64176.4149.58446528071126.8155347192886
65153.6178.873926475988-25.2739264759875
66173.2186.621865566447-13.4218655664472
67171145.04072536644125.9592746335586
68151.2130.24278757188320.9572124281166
69161.9130.19752414363531.7024758563652
70157.2130.79812557626226.4018744237381
71201.7178.1386538043723.5613461956299
72236.4218.82220379632217.577796203678
73356.1321.69568582985234.4043141701481
74398.3403.611023511471-5.31102351147098
75403.7406.818941593635-3.1189415936347
76384.6403.342954976271-18.7429549762708
77365.8408.662580727233-42.8625807272334
78368.1419.512325649181-51.4123256491812
79367.9356.63771984107511.2622801589251
80347336.34697264586810.6530273541316
81343.3334.0050200783999.29497992160105
82292.9315.627954770634-22.7279547706338
83311.5309.8411669362801.65883306372035
84300.9318.320944264907-17.420944264907
85366.9371.646305877894-4.74630587789386
86356.9388.724539548477-31.8245395484767
87329.7336.657017800339-6.95701780033909
88316.2297.05019138995819.1498086100416
89269311.786148591763-42.7861485917631
90289.3297.933467787587-8.633467787587
91266.2263.2465906251952.95340937480455
92253.6217.61790278623435.9820972137661
93233.8226.0708341345447.72916586545617
94228.4191.03281513638837.3671848636118
95253.6241.43127995509512.1687200449046
96260.1258.9526747867561.14732521324379
97306.6334.580689426555-27.9806894265545
98309.2327.835752397094-18.6357523970942
99309.5291.97334398816917.5266560118306
100271283.877458081835-12.8774580818352
101279.9265.28400488888514.6159951111154
102317.9319.020759041934-1.12075904193443
103298.4305.362418845651-6.96241884565143
104246.7264.109866220531-17.4098662205309
105227.3221.9750014270045.32499857299592
106209.1187.35123164087421.7487683591257


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
107219.077216722963170.752129011988267.402304433938
108219.777597650389147.104849866391292.450345434387
109287.376112509797190.827733352295383.924491667299
110307.750955103168186.80240432511428.699505881226
111295.739011578135149.53822630925441.93979684702
112269.86591721645997.4350712451952442.296763187724
113268.27047918171268.5852591143745467.955699249049
114307.61766381199879.6428952150977535.592432408898
115295.11887517170237.8257063089802552.412044034423
116261.484664602242-26.1409255037481549.110254708233
117242.329343696241-76.6237331483823561.282420540865
118208.060039970237-143.194830840926559.3149107814
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292321955bf89juhfjju8r97/1p3xj1292322075.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292321955bf89juhfjju8r97/1p3xj1292322075.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292321955bf89juhfjju8r97/2idx41292322075.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292321955bf89juhfjju8r97/2idx41292322075.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292321955bf89juhfjju8r97/3idx41292322075.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292321955bf89juhfjju8r97/3idx41292322075.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