Home » date » 2010 » Dec » 22 »

*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, 22 Dec 2010 09:07:02 +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/22/t1293008813e9lzok38b1ni7c7.htm/, Retrieved Wed, 22 Dec 2010 10:06:54 +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/22/t1293008813e9lzok38b1ni7c7.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 «
377 370 358 357 349 348 369 381 368 361 351 351 358 354 347 345 343 340 362 370 373 371 354 357 363 364 363 358 357 357 380 378 376 380 379 384 392 394 392 396 392 396 419 421 420 418 410 418 426 428 430 424 423 427 441 449 452 462 455 461 461 463 462 456 455 456 472 472 471 465 459 465 468 467 463 460 462 461 476 476 471 453 443 442 444 438 427 424 416 406 431 434 418 412 404 409 412 406 398 397 385 390 413 413 401 397 397 409 419 424 428 430 424 433 456 459 446 441 439 454 460 457 451 444 437 443 471 469 454 444 436
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.0767755995740817
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
3358363-5
4357350.616122002136.3838779978704
5349350.106248063024-1.10624806302388
6348342.0213152047085.97868479529245
7369341.48033231453127.5196676854694
8381364.59317130116216.406828698838
9368377.852815411625-9.85281541162453
10361364.096359600904-3.09635960090429
11351356.858634736048-5.85863473604792
12351346.4088345415024.5911654584977
13358346.76132402232211.2386759776778
14354354.624180108927-0.624180108927305
15347350.576258306822-3.57625830682218
16345343.3016889310841.69831106891587
17343341.4320777816631.56792221833655
18340339.5524559500620.447544049938244
19362336.58681641283225.4131835871684
20370360.5379288198239.46207118017736
21373369.2643850078933.7356149921066
22371372.55118908869-1.55118908869031
23354370.432095616353-16.4320956163534
24357352.1705116231494.8294883768508
25363355.5412984889187.45870151108204
26364362.1139447694751.88605523052462
27363363.258747790629-0.258747790628775
28358362.238882273865-4.23888227386476
29357356.9134395457650.0865604542351548
30357355.9200852765381.07991472346185
31380356.00299637692123.9970036230792
32378380.845380718064-2.84538071806412
33376378.626924907418-2.62692490741824
34380376.4252411726153.57475882738493
35379380.69969542492-1.69969542492032
36384379.5692002895794.43079971042124
37392384.9093775939397.09062240606102
38394393.4537643805180.546235619482275
39392395.495701947712-3.49570194771223
40396393.2273173347442.77268266525567
41392397.440191708798-5.44019170879801
42396393.0225177285572.97748227144291
43419397.25111571516821.7488842848317
44421421.920899346204-0.920899346203612
45420423.850196746751-3.85019674675141
46418422.554595583041-4.55459558304142
47410420.204913776336-10.204913776336
48418411.4214254025566.57857459744406
49426419.9264994116186.07350058838244
50428428.392796060804-0.39279606080413
51430430.362638907726-0.362638907725568
52424432.334797088156-8.33479708815605
53423425.694888044385-2.69488804438453
54427424.4879863989922.51201360100811
55441428.68084774934812.3191522506525
56449443.6266580496365.37334195036419
57452452.039199599592-0.0391995995915408
58462455.036190026836.96380997317016
59455465.57084071284-10.57084071284
60461457.759258079113.24074192089046
61461464.008067983151-3.0080679831508
62463463.777121760185-0.777121760184798
63462465.717457771105-3.71745777110453
64456464.432047721837-8.43204772183668
65455457.784672202355-2.78467220235535
66456456.570877324402-0.570877324402261
67472457.52704787553814.472952124462
68472474.638217452501-2.63821745250056
69471474.435666725778-3.43566672577805
70465473.17189135297-8.17189135296974
71459466.544489494691-7.54448949469122
72465459.9652567902565.03474320974408
73468466.3518022188861.64819778111445
74467469.478343591747-2.47834359174732
75463468.28806727654-5.28806727654029
76460463.882072740796-3.88207274079588
77462460.5840242785311.41597572146895
78461462.692736663529-1.69273666352916
79476461.56277579126614.4372242087343
80476477.671202336077-1.6712023360767
81471477.542894774715-6.5428947747148
82453472.040560105436-19.040560105436
83443452.578709687115-9.57870968711478
84442441.843298507740.156701492259515
85444440.8553293587633.14467064123716
86438443.096763332707-5.09676333270687
87427436.705456271951-9.7054562719511
88424424.960314047532-0.960314047531995
89416421.886585360753-5.88658536075332
90406413.434639240237-7.43463924023746
91431402.86384035495128.1361596450487
92434430.0240108814123.97598911858807
93418433.329269829892-15.3292698298916
94412416.152355947669-4.15235594766875
95404409.833556330142-5.8335563301415
96409401.3856815452467.61431845475431
97412406.9702754099575.02972459004252
98406410.35643553105-4.35643553105047
99398404.021967581148-6.02196758114826
100397395.559627409491.44037259051009
101385394.670212878736-9.67021287873638
102390381.9277764869628.07222351303761
103413387.54752628707225.4524737129282
104413412.5016552170250.498344782974527
105401412.539915936533-11.539915936533
106397399.653931971471-2.65393197147114
107397395.4501747531331.54982524686739
108409395.56916351569613.4308364843041
109419408.6003240395610.3996759604402
110424419.3987653967994.60123460320125
111428424.7520279422413.24797205775945
112430429.0013929443750.998607055625087
113424431.078061599809-7.07806159980942
114433424.5346391766628.46536082333824
115456434.18457232948521.8154276705155
116459458.8594648688530.140535131146635
117446461.870254537808-15.8702545378084
118441447.651806230275-6.65180623027481
119439442.141109818695-3.14110981869487
120454439.89994922903714.1000507709635
121460455.9824890810024.01751091899774
122457462.290935890604-5.29093589060369
123451458.884721115295-7.88472111529461
124444452.279366924193-8.27936692419343
125437444.643713564495-7.64371356449465
126443437.0568628726085.94313712739199
127471443.51315078891527.4868492110855
128469473.623470117498-4.62347011749802
129454471.268500427114-17.2685004271142
130444454.942700953077-10.9427009530772
131436444.102568526445-8.10256852644488


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
132435.480488969737417.335462119549453.625515819925
133434.960977939474408.296765647272461.625190231676
134434.441466909211400.543147151057468.339786667365
135433.921955878948393.33290533205474.511006425846
136433.402444848685386.39195163814480.41293805923
137432.882933818422379.586368691356486.179498945488
138432.363422788159372.840615388385491.886230187933
139431.843911757896366.10815177722497.579671738572
140431.324400727633359.358562290774503.290239164492
141430.80488969737352.571128986809509.038650407931
142430.285378667107345.731314256543514.839443077671
143429.765867636844338.828698056287520.703037217401
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293008813e9lzok38b1ni7c7/1hcel1293008817.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293008813e9lzok38b1ni7c7/1hcel1293008817.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293008813e9lzok38b1ni7c7/2a3w61293008817.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293008813e9lzok38b1ni7c7/2a3w61293008817.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293008813e9lzok38b1ni7c7/3a3w61293008817.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293008813e9lzok38b1ni7c7/3a3w61293008817.ps (open in new window)


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