Home » date » 2010 » May » 26 »

Exponential Smoothing - verkoopcijfers X - Lehaen Joni

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 26 May 2010 20:15:37 +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/May/26/t12749049710yax9lqw3pobgfc.htm/, Retrieved Wed, 26 May 2010 22:16:11 +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/May/26/t12749049710yax9lqw3pobgfc.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:
KDGP2W62
 
Dataseries X:
» Textbox « » Textfile « » CSV «
154 96 73 49 36 59 95 169 210 278 298 245 200 118 90 79 78 91 167 169 289 347 375 203 223 104 107 85 75 99 135 211 335 460 488 326 346 261 224 141 148 145 223 272 445 560 612 467 518 404 300 210 196 186 247 343 464 680 711 610 613 392 273 322 189 257 324 404 677 858 895 664 628 308 324 248 272
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.665421046338253
beta0.000770639574476133
gamma0.646362889708687


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13200174.88890021154925.1110997884505
14118113.4424807039074.55751929609274
159088.94111402466691.05888597533313
167977.49393425490651.50606574509352
177876.40370088727731.59629911272273
189191.3597275152543-0.359727515254335
19167120.88542146893546.1145785310648
20169268.487229560383-99.4872295603834
21289253.41573863919235.5842613608075
22347368.383920418892-21.383920418892
23375378.934325820553-3.93432582055277
24203308.713097295575-105.713097295575
25223199.10630445183123.8936955481693
26104124.603942701796-20.6039427017963
2710784.263695340482222.7363046595178
288585.8858200729584-0.885820072958381
297582.9186970356463-7.91869703564635
309991.07981579092887.92018420907122
31135136.197133275263-1.19713327526318
32211201.6036320696029.39636793039784
33335298.73518025213936.2648197478606
34460411.34751636603848.6524836339619
35488478.2317715759.76822842500002
36326358.967935841707-32.9679358417073
37346316.46116369879629.5388363012036
38261181.38218083135479.6178191686458
39224192.52096206387131.4790379361294
40141173.826130322579-32.8261303225794
41148143.7264033800524.27359661994774
42145177.386175713433-32.3861757134329
43223214.6890219418148.3109780581864
44272329.627395624004-57.627395624004
45445422.77489431988422.2251056801161
46560555.1921141502324.8078858497679
47612588.96666351729623.0333364827039
48467435.03974141722431.9602585827760
49518444.37511821383573.6248817861647
50404279.402756500690124.597243499310
51300285.26784083580514.7321591641948
52210221.491527417580-11.4915274175803
53196212.812424030486-16.8124240304861
54186231.005870534258-45.0058705342578
55247291.589575589157-44.5895755891567
56343371.639438220566-28.6394382205659
57464539.197984617746-75.1979846177461
58680614.37751631248865.622483687512
59711697.34907839274713.6509216072531
60610511.30569197414598.6943080258552
61613570.26614953142542.7338504685746
62392352.41544732327839.5845526767223
63273280.599741530896-7.59974153089615
64322202.334592276207119.665407723793
65189278.325554955421-89.3255549554209
66257242.85630361628514.1436963837146
67324369.618094190125-45.6180941901252
68404489.926685592868-85.9266855928677
69677650.06033950496126.939660495039
70858884.038735958918-26.0387359589176
71895901.01453409839-6.01453409839064
72664669.215155406219-5.21515540621851
73628643.787384815201-15.7873848152011
74308375.268172582017-67.2681725820173
75324238.26294758328585.7370524167154
76248238.0476122865829.95238771341752
77272201.92134972625870.0786502737423


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
78305.759388145103223.019235979670388.499540310536
79429.331810249379309.072930190873549.590690307884
80610.240403522688437.340052910974783.140754134402
81963.978867408961692.9275294721121235.03020534581
821253.94371274631900.2798355607561607.60758993187
831307.37129379048935.3585911876131679.38399639335
84973.021471580121688.0808082873641257.96213487288
85935.416102800596655.2257955854571215.60641001573
86531.583281547937355.432887870354707.73367522552
87424.70352552675267.8237132179581.5833378356
88324.425494357226185.228592563105463.622396151347
89281.182226090519170.228887566324392.135564614713
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/26/t12749049710yax9lqw3pobgfc/1kbc51274904932.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/26/t12749049710yax9lqw3pobgfc/1kbc51274904932.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/26/t12749049710yax9lqw3pobgfc/2v2t81274904932.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/26/t12749049710yax9lqw3pobgfc/2v2t81274904932.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/26/t12749049710yax9lqw3pobgfc/3v2t81274904932.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/26/t12749049710yax9lqw3pobgfc/3v2t81274904932.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