Home » date » 2008 » May » 27 »

oef 10, exponential smoothing (eigen data) wauters kathleen

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 27 May 2008 04:50:41 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/27/t1211885503tqqyx73r31a7tu0.htm/, Retrieved Tue, 27 May 2008 12:51:47 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
209 214 265 290 287 270 263 265 252 281 259 312 275 250 312 331 256 247 291 318 296 291 313 311 273 258 361 391 446 433 449 479 460 466 410 415 382 409 496 471 488 584 610 684 626 580 444 552 473 431 513 467 470 455 406 424 406 373 332 310 301 296 333 374 422 424 341 216 319 383 360 400
 
Text written by user:
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.912381994071253
beta0
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
326521451
4290260.53148169763429.4685183023661
5287287.418027188672-0.418027188671942
6270287.036626708695-17.0366267086955
7263271.492715259968-8.49271525996835
8265263.7441147759991.25588522400096
9252264.889961840998-12.8899618409977
10281253.12939275300627.8706072469942
11259278.558032968995-19.5580329689951
12312260.71363584863251.286364151368
13275307.506391041722-32.5063910417215
14250277.848145163016-27.8481451630157
15312252.43999894799859.5600010520023
16331306.78147147471024.2185285252905
17256328.878020824086-72.8780208240856
18247262.38542686064-15.3854268606401
19291248.34804042189242.6519595781081
20318287.26292035281330.7370796471873
21296315.30687837324-19.3068783732404
22291297.691630183772-6.69163018377213
23313291.58630729311521.4136927068852
24311311.123774945452-0.123774945451771
25273311.010844913904-38.0108449139044
26258276.330434435023-18.3304344350232
27361259.606076113004101.393923886996
28391352.1160665757338.8839334242696
29446387.59306729069958.4069327093006
30433440.882501023597-7.8825010235966
31449433.69064902141915.3093509785812
32479447.65862519519331.3413748048066
33460476.253931236537-16.2539312365374
34466461.4241370434484.57586295655165
35410465.599072012344-55.5990720123438
36415414.871479821210.128520178789643
37382414.988739318213-32.9887393182129
38409384.89040755716524.109592442835
39496406.88756558640489.112434413596
40471488.192146193225-17.1921461932245
41488472.50634156708615.4936584329142
42584486.64247654356797.357523456433
43610575.46972793258634.5302720674139
44684606.97452641727677.0254735827239
45626677.251181598964-51.2511815989643
46580630.490526333193-50.4905263331933
47444584.423879235607-140.423879235607
48552456.30366028340395.696339716597
49473543.615277539352-70.6152775393518
50431479.187169806103-48.187169806103
51513435.22206372976177.7779362702393
52467506.185252318748-39.1852523187485
53470470.433333669984-0.43333366998354
54455470.037967832066-15.0379678320658
55406456.317596754666-50.3175967546663
56424410.40872749077113.5912725092294
57406422.809159804707-16.8091598047072
58373407.472785063426-34.4727850634261
59332376.020436686068-44.0204366860677
60310335.856982882546-25.8569828825459
61301312.265537279502-11.2655372795024
62296301.987063912146-5.98706391214597
63333296.5245746013536.4754253986498
64374329.80409596116844.1959040388325
65422370.12764301789951.8723569821008
66424417.4550475184046.54495248159577
67341423.426544314664-82.4265443146642
68216348.222049448448-132.222049448448
69319227.58503231248591.4149676875148
70383310.99040281917972.0095971808209
71360376.690662687284-16.6906626872842
72400361.46240258228938.5375974177108


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
73396.623412560975298.628073375495494.618751746456
74396.623412560975263.969394519808529.277430602143
75396.623412560975236.651257162433556.595567959518
76396.623412560975213.361052805230579.885772316721
77396.623412560975192.713887271858600.532937850093
78396.623412560975173.973246371901619.27357875005
79396.623412560975156.691967134555636.554857987396
80396.623412560975140.574392830768652.672432291183
81396.623412560975125.412973039947667.833852082003
82396.623412560975111.055374248600682.19145087335
83396.62341256097597.3858706215203695.86095450043
84396.62341256097584.3140971277721708.932727994179
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211885503tqqyx73r31a7tu0/1pum91211885435.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211885503tqqyx73r31a7tu0/1pum91211885435.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211885503tqqyx73r31a7tu0/2b5q31211885435.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211885503tqqyx73r31a7tu0/2b5q31211885435.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211885503tqqyx73r31a7tu0/35upt1211885435.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211885503tqqyx73r31a7tu0/35upt1211885435.ps (open in new window)


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