Home » date » 2009 » Mar » 15 »

test

*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: Sun, 15 Mar 2009 03:22:02 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Mar/15/t1237108960yx67zeimlq5z3nv.htm/, Retrieved Sun, 15 Mar 2009 10:22:40 +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/2009/Mar/15/t1237108960yx67zeimlq5z3nv.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
112 118 132 129 121 135 148 148 136 119 104 118 115 126 141 135 125 149 170 170 158 133 114 140 145 150 178 163 172 178 199 199 184 162 146 166 171 180 193 181 183 218 230 242 209 191 172 194 196 196 236 235 229 243 264 272 237 211 180 201 204 188 235 227 234 264 302 293 259 229 203 229 242 233 267 269 270 315 364 347 312 274 237 278 284 277 317 313 318 374 413 405 355 306 271 306 315 301 356 348 355 422 465 467 404 347 305 336 340 318 362 348 363 435 491 505 404 359 310 337 360 342 406 396 420 472 548 559 463 407 362 405 417 391 419 461 472 535 622 606 508 461 390 432
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.275592931492623
beta0.0326927269946692
gamma0.8707309723751


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13115111.0818087088673.91819129113324
14126122.3314538747443.66854612525638
15141137.4390153761593.56098462384080
16135132.3233832202962.67661677970432
17125123.4796828181491.52031718185103
18149147.667290233191.33270976680996
19170162.4432448019017.55675519809901
20170165.5295923942204.47040760577966
21158153.8877144649354.11228553506479
22133136.318642929538-3.31864292953784
23114119.090609201624-5.09060920162416
24140133.9887149606766.01128503932438
25145134.83037010966610.1696298903343
26150149.7051460153820.294853984617731
27178166.54082485992511.4591751400746
28163161.7497291200711.25027087992851
29172149.75750588289122.2424941171085
30178185.647729927994-7.64772992799351
31199206.262157804505-7.26215780450494
32199203.180877899401-4.18087789940057
33184186.419241979636-2.41924197963596
34162158.1477827595293.85221724047062
35146138.3687169810757.63128301892496
36166169.141347816420-3.14134781641982
37171170.3609458701950.63905412980543
38180177.4381780479142.56182195208552
39193206.247937689471-13.2479376894715
40181185.960724160929-4.960724160929
41183184.798364145757-1.79836414575698
42218195.68435973355122.3156402664486
43230227.4983879410412.50161205895935
44242229.0047696885212.9952303114799
45209215.630988418272-6.63098841827184
46191186.2865983510914.71340164890901
47172166.037643993565.96235600644013
48194192.8425095100681.15749048993163
49196198.309952885671-2.30995288567101
50196206.984486038046-10.9844860380460
51236224.19294089622011.8070591037796
52235214.06541785565920.9345821443411
53229222.6752524471096.32474755289078
54243256.738013695474-13.7380136954740
55264268.357973304408-4.35797330440784
56272275.595124348774-3.59512434877428
57237240.950022441517-3.95002244151664
58211216.418700337472-5.41870033747205
59180191.302342357417-11.3023423574168
60201212.165187519305-11.1651875193053
61204211.884585973221-7.88458597322119
62188213.278482377781-25.2784823777809
63235241.844280631672-6.84428063167161
64227231.126644343170-4.12664434317026
65234222.84756235743311.1524376425669
66264244.40357368198419.5964263180161
67302270.92543678752831.0745632124722
68293288.4633043826444.53669561735649
69259253.3255731144355.6744268855654
70229228.4572425854870.54275741451346
71203198.7667237110594.2332762889414
72229226.3253709300412.67462906995868
73242232.5076979211189.49230207888249
74233226.1554706830886.84452931691163
75267284.984135370835-17.9841353708349
76269271.954055875775-2.95405587577505
77270274.414364054018-4.41436405401839
78315301.11087543872113.8891245612785
79364337.48148399702426.5185160029757
80347335.98551213635611.0144878636443
81312297.83665553117314.1633444688269
82274267.3004377139316.69956228606935
83237236.9925415061970.00745849380322738
84278266.90068203576611.0993179642339
85284281.6339304999882.36606950001197
86277269.9672327497007.03276725030031
87317320.174971097687-3.17497109768715
88313321.27690151402-8.27690151402027
89318322.045741716529-4.04574171652934
90374367.9511939083776.04880609162313
91413417.203241898457-4.20324189845735
92405394.60621928242710.3937807175729
93355352.3066369649992.69336303500091
94306308.449783989775-2.44978398977509
95271266.6963131926584.30368680734244
96306309.394151440325-3.39415144032546
97315315.103159698907-0.103159698907120
98301304.405343346895-3.40534334689534
99356349.058165450366.94183454964002
100348349.292530352989-1.29253035298922
101355355.073171023921-0.0731710239210202
102422414.3609383732997.63906162670128
103465462.0911562758372.90884372416303
104467448.97971785272418.0202821472757
105404397.6350099221246.36499007787643
106347345.4509662878911.54903371210901
107305304.2430311120750.756968887925495
108336345.615225431213-9.61522543121265
109340352.616275490587-12.6162754905871
110318334.810864863463-16.8108648634627
111362386.941342201635-24.9413422016352
112348372.190810667781-24.1908106677807
113363372.090086438255-9.09008643825496
114435435.49852015535-0.49852015535015
115491478.41837009478312.5816299052173
116505476.29775492898928.7022450710107
117404417.219149854211-13.2191498542109
118359354.4369029627564.56309703724406
119310311.876475452214-1.87647545221358
120337345.975115388033-8.97511538803315
121360350.6430581403129.3569418596877
122342334.9945802071057.0054197928946
123406390.68587542554415.3141245744561
124396386.4988658447999.50113415520133
125420407.13076227323512.8692377267649
126472491.605011219988-19.6050112199878
127548543.7800465587574.21995344124275
128559549.9353273917249.06467260827571
129463449.6387467094113.3612532905901
130407399.9130342117767.08696578822429
131362348.39721266746913.6027873325307
132405386.65208470331218.3479152966877
133417413.9167814674453.08321853255524
134391392.451160427231-1.45116042723129
135419460.170497130598-41.1704971305977
136461435.42175557133825.5782444286623
137472465.0951028577886.90489714221195
138535534.3526743898930.647325610106805
139622616.7353661862325.26463381376755
140606627.551069242213-21.5510692422125
141508510.133139879417-2.1331398794174
142461446.16279163776614.8372083622340
143390395.452817969958-5.45281796995783
144432434.572452493991-2.57245249399091


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
145447.055907793736427.306081839850466.805733747622
146419.712252491671399.132529133903440.291975849439
147464.867062938293442.962936376519486.771189500067
148496.083938082045472.832869325620519.33500683847
149507.532607460904483.137451881795531.927763040012
150575.450839384531548.708168067462602.1935107016
151666.592241551563636.628745108619696.555737994507
152657.913647955733627.181984104025688.645311807442
153550.308727275636521.639727613372578.9777269379
154492.98528697611465.015260234124520.955313718097
155420.207239449299393.468712587961446.945766310636
156465.634459283957443.300359438502487.968559129412
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Mar/15/t1237108960yx67zeimlq5z3nv/1mhw61237108915.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Mar/15/t1237108960yx67zeimlq5z3nv/1mhw61237108915.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Mar/15/t1237108960yx67zeimlq5z3nv/25ar91237108915.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Mar/15/t1237108960yx67zeimlq5z3nv/25ar91237108915.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Mar/15/t1237108960yx67zeimlq5z3nv/323t31237108915.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Mar/15/t1237108960yx67zeimlq5z3nv/323t31237108915.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ;
 
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=0, beta=0)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=0)
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