Home » date » 2010 » Mar » 29 »

test (after main update)

*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: Mon, 29 Mar 2010 16:46:56 +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/Mar/29/t1269881244lcs8cz0nnitz4u7.htm/, Retrieved Mon, 29 Mar 2010 18:47:28 +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/Mar/29/t1269881244lcs8cz0nnitz4u7.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 «
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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.275592474736350
beta0.0326929527336615
gamma0.87072922226501


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13115111.0818087088673.91819129113328
14126122.3314521410863.66854785891434
15141137.4390125699003.56098743009966
16135132.3233803453812.67661965461949
17125123.4796804627291.52031953727142
18149147.6672883148701.33271168512962
19170162.4432437124737.55675628752724
20170165.5295896133214.47041038667871
21158153.887712294254.11228770575008
22133136.318641448733-3.31864144873339
23114119.090610790114-5.09061079011435
24140133.9887199504986.01128004950164
25145134.83036828991910.1696317100805
26150149.7051434413650.294856558634905
27178166.54082599966011.4591740003402
28163161.7497283781891.25027162181149
29172149.75750799304122.2424920069588
30178185.647723596323-7.64772359632292
31199206.262153619027-7.26215361902663
32199203.180886325985-4.18088632598545
33184186.419252204207-2.41925220420688
34162158.1477991367523.85220086324750
35146138.3687281983277.63127180167297
36166169.141340932275-3.14134093227528
37171170.3609415353510.639058464649423
38180177.438190472372.56180952763009
39193206.247937478342-13.2479374783417
40181185.960743337438-4.96074333743809
41183184.798362273963-1.79836227396325
42218195.68439550542022.3156044945797
43230227.4983977187992.50160228120123
44242229.00477178943912.995228210561
45209215.630984242776-6.63098424277621
46191186.2865973703104.71340262969036
47172166.0376427611405.96235723886033
48194192.8425176702161.15748232978419
49196198.309951792614-2.30995179261362
50196206.984490574542-10.9844905745424
51236224.19296559617511.8070344038246
52235214.06542383627120.9345761637291
53229222.6752396896246.32476031037604
54243256.737994926100-13.7379949260995
55264268.358000825093-4.35800082509263
56272275.595138563011-3.59513856301129
57237240.950054518830-3.95005451882952
58211216.418708751084-5.41870875108356
59180191.302349202140-11.3023492021397
60201212.165209086813-11.1652090868132
61204211.884606924302-7.88460692430232
62188213.278507450624-25.2785074506242
63235241.844292266099-6.84429226609927
64227231.126648633712-4.12664863371231
65234222.84757726495611.1524227350442
66264244.40358955613319.5964104438671
67302270.92543012229331.0745698777072
68293288.463281003994.53671899600994
69259253.3255645210345.67443547896596
70229228.4572337108590.542766289141412
71203198.7667231438064.23327685619387
72229226.3253681439902.67463185601025
73242232.5076924006789.49230759932206
74233226.1554874965556.84451250344512
75267284.984109809782-17.9841098097817
76269271.954044414959-2.95404441495936
77270274.414349879443-4.41434987944342
78315301.11087591275813.8891240872424
79364337.48148021720826.5185197827919
80347335.98553316204211.0144668379583
81312297.83666607185614.1633339281443
82274267.3004454650886.69955453491184
83237236.992543135440.00745686455996974
84278266.90068916338611.0993108366135
85284281.6339259082812.36607409171881
86277269.9672458906017.03275410939943
87317320.174999871829-3.17499987182867
88313321.276899149144-8.27689914914367
89318322.045741325616-4.04574132561623
90374367.9511784742486.04882152575198
91413417.203225397332-4.20322539733195
92405394.60624771342310.3937522865770
93355352.306655336872.69334466312978
94306308.449808881235-2.44980888123547
95271266.6963378015154.30366219848491
96306309.394161372705-3.39416137270507
97315315.103179025908-0.103179025908162
98301304.405357956351-3.40535795635083
99356349.0582018178746.94179818212643
100348349.292551021806-1.29255102180582
101355355.073176743192-0.0731767431923913
102422414.3609222660917.6390777339086
103465462.0911466439312.90885335606902
104467448.97970596848618.0202940315142
105404397.6350103800216.3649896199791
106347345.4509781177981.54902188220177
107305304.2430386145030.756961385497391
108336345.615242815445-9.61524281544519
109340352.616294292299-12.6162942922995
110318334.810889595368-16.8108895953683
111362386.941371143576-24.941371143576
112348372.19085448139-24.1908544813901
113363372.090123850004-9.09012385000392
114435435.498537075613-0.498537075613456
115491478.41838352541612.5816164745842
116505476.29773642868728.7022635713128
117404417.219138602199-13.2191386021993
118359354.4369064406444.56309355935639
119310311.87647452998-1.87647452998021
120337345.975126181846-8.97512618184646
121360350.6430688312569.35693116874421
122342334.9945865126547.00541348734612
123406390.68587883978415.3141211602163
124396386.4988634128129.50113658718794
125420407.13073966459212.8692603354077
126472491.604975308879-19.6049753088789
127548543.7800223198734.21997768012739
128559549.9352939995999.06470600040075
129463449.63876988832213.3612301116776
130407399.9130272672637.0869727327372
131362348.39721511660913.6027848833913
132405386.65209391144218.3479060885584
133417413.9167645634643.08323543653609
134391392.451160571742-1.45116057174164
135419460.1705013673-41.1705013673003
136461435.42179027207925.5782097279213
137472465.0951127316986.90488726830233
138535534.3527108703320.647289129667797
139622616.7353556376025.26464436239837
140606627.551048082547-21.5510480825469
141508510.133147348626-2.13314734862615
142461446.16280294352714.8371970564727
143390395.452817646612-5.45281764661166
144432434.572462781261-2.57246278126127


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
145447.055931344916427.306133026716466.805729663116
146419.712279855699399.132585244972440.291974466426
147464.867131095767442.963034360731486.771227830803
148496.083937621018472.832900505232519.334974736803
149507.532637500571483.137513327878531.927761673263
150575.450895961051548.708256350216602.193535571887
151666.592293420418636.628829419529696.555757421307
152657.913718340472627.182084720006688.645351960938
153550.308766449002521.639795163271578.977737734733
154492.985309235296465.015309913896520.955308556697
155420.207279555462393.4687785372446.945780573723
156465.634500936807443.300414442854487.96858743076
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Mar/29/t1269881244lcs8cz0nnitz4u7/1kgm81269881214.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Mar/29/t1269881244lcs8cz0nnitz4u7/1kgm81269881214.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Mar/29/t1269881244lcs8cz0nnitz4u7/2v73t1269881214.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Mar/29/t1269881244lcs8cz0nnitz4u7/2v73t1269881214.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Mar/29/t1269881244lcs8cz0nnitz4u7/3v73t1269881214.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Mar/29/t1269881244lcs8cz0nnitz4u7/3v73t1269881214.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=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