Home » date » 2009 » Dec » 04 »

*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: Fri, 04 Dec 2009 08:04:59 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939172qbupw8d5owqd628.htm/, Retrieved Fri, 04 Dec 2009 16:06:16 +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/Dec/04/t1259939172qbupw8d5owqd628.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 «
455 456 517 525 523 519 509 512 519 517 510 509 501 507 569 580 578 565 547 555 562 561 555 544 537 543 594 611 613 611 594 595 591 589 584 573 567 569 621 629 628 612 595 597 593 590 580 574 573 573 620 626 620 588 566 557 561 549 532 526 511 499 555 565 542 527 510 514 517 508 493 490 469 478 528 534 518 506 502 516 528 533 536 537 524 536 587 597 581 564
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.906716756463771
beta0.161303402714018
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13501477.3641156846923.6358843153104
14507508.737656888438-1.73765688843827
15569573.0868308734-4.08683087339978
16580583.691408167292-3.69140816729248
17578580.990102846686-2.99010284668611
18565567.804956761505-2.80495676150542
19547557.477105238679-10.4771052386786
20555550.7296546708694.27034532913115
21562562.032785957684-0.0327859576843821
22561559.5054414667261.49455853327368
23555553.0156761525971.98432384740272
24544554.144649566413-10.1446495664131
25537538.489914752371-1.48991475237074
26543540.6626012971182.33739870288230
27594608.694561837865-14.6945618378645
28611604.5422506163956.45774938360466
29613606.8192173523046.18078264769554
30611598.42281628370212.5771837162981
31594599.896870725808-5.8968707258075
32595599.056049737648-4.05604973764764
33591601.727567908138-10.7275679081380
34589586.8835900971152.11640990288470
35584578.1334510974525.8665489025484
36573579.627309598472-6.62730959847158
37567566.3457531366370.654246863362914
38569570.039498371553-1.03949837155278
39621634.832382917607-13.832382917607
40629632.514245841616-3.51424584161623
41628622.7356200235555.2643799764445
42612610.8335923776941.16640762230645
43595595.808827467011-0.80882746701127
44597596.0924669546920.9075330453079
45593599.688692757083-6.688692757083
46590587.3459638105182.65403618948153
47580577.207120091212.79287990878981
48574572.1832389526451.81676104735516
49573565.8614291409817.13857085901907
50573574.867786819753-1.86778681975318
51620637.551480369679-17.5514803696786
52626631.669886919662-5.6698869196623
53620619.3079556695930.692044330407157
54588601.028391871878-13.0283918718781
55566569.543672124262-3.54367212426234
56557563.037735417609-6.03773541760893
57561554.063512262126.93648773787982
58549551.781480708785-2.7814807087849
59532533.448497776438-1.44849777643765
60526520.4569723001215.54302769987873
61511514.60077667424-3.60077667423991
62499507.372225536103-8.37222553610292
63555547.5095899831557.49041001684463
64565560.4223283219014.57767167809902
65542556.202888754084-14.2028887540840
66527521.1500293041875.84997069581323
67510507.8055320312152.19446796878498
68514505.5931487612958.40685123870549
69517512.2050344671994.79496553280057
70508508.68416094887-0.68416094886993
71493494.675223013624-1.67522301362391
72490484.0030424153115.9969575846888
73469479.708725773371-10.7087257733709
74478466.00473612205311.9952638779475
75528527.3766176709170.62338232908337
76534536.049662457725-2.04966245772505
77518526.160612169776-8.16061216977585
78506501.6623535066214.33764649337888
79502489.48380605804112.5161939419589
80516501.00195616327714.9980438367234
81528518.051373764589.94862623542042
82533524.0690099079788.93099009202217
83536524.91646507756111.0835349224392
84537534.5593159742892.44068402571122
85524532.404508643861-8.40450864386094
86536531.271545155294.72845484471009
87587599.076817238046-12.0768172380461
88597603.244136809009-6.24413680900909
89581593.67169170928-12.6716917092793
90564569.365601685006-5.36560168500637


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
91550.831518797796535.704880127584565.958157468008
92552.658046829374530.667581587187574.648512071562
93554.882651899764526.31249226132583.452811538207
94549.190992721756514.421724165481583.96026127803
95538.274955498514497.633118837529578.9167921595
96531.967718547043485.125805550542578.809631543544
97521.376289153361468.668977268996574.083601037726
98524.968025583507464.896770212826585.039280954188
99580.451063453985506.402523682629654.49960322534
100592.380356152948508.815697400668675.945014905228
101585.255286759573494.570513253785675.940060265361
102572.23232009109473.816801599748670.647838582431
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939172qbupw8d5owqd628/1fu9t1259939097.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939172qbupw8d5owqd628/1fu9t1259939097.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939172qbupw8d5owqd628/2bg4a1259939097.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939172qbupw8d5owqd628/2bg4a1259939097.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939172qbupw8d5owqd628/311m91259939097.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939172qbupw8d5owqd628/311m91259939097.ps (open in new window)


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