Home » date » 2010 » Dec » 18 »

holt winter model

*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: Sat, 18 Dec 2010 18:52:24 +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/18/t1292698265xgj228c861kruwl.htm/, Retrieved Sat, 18 Dec 2010 19:51:05 +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/18/t1292698265xgj228c861kruwl.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 «
101,76 102,37 102,38 102,86 102,87 102,92 102,95 103,02 104,08 104,16 104,24 104,33 104,73 104,86 105,03 105,62 105,63 105,63 105,94 106,61 107,69 107,78 107,93 108,48 108,14 108,48 108,48 108,89 108,93 109,21 109,47 109,80 111,73 111,85 112,12 112,15 112,17 112,67 112,80 113,44 113,53 114,53 114,51 115,05 116,67 117,07 116,92 117,00 117,02 117,35 117,36 117,82 117,88 118,24 118,50 118,80 119,76 120,09 120,16
 
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.799216301497526
beta0.0327166432819145
gamma0.178232667757671


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13104.73103.3681490384621.36185096153842
14104.86104.6059552711440.254044728856243
15105.03104.9791940493470.0508059506531282
16105.62105.6100795403810.00992045961884003
17105.63105.6252147441030.00478525589682022
18105.63105.604287599280.0257124007200389
19105.94106.116591422565-0.176591422564854
20106.61106.1159266106970.494073389303139
21107.69107.6675202528800.022479747119732
22107.78107.851546361662-0.0715463616618308
23107.93107.953971167219-0.0239711672189173
24108.48108.1058753867740.374124613226144
25108.14108.934878889200-0.794878889200405
26108.48108.4137651533210.066234846678725
27108.48108.629137151196-0.149137151195887
28108.89109.093040757292-0.203040757291632
29108.93108.9265007131330.00349928686733847
30109.21108.8939716768470.316028323153006
31109.47109.62732908891-0.157329088909989
32109.8109.6628313269130.137168673087061
33111.73110.8997438464880.830256153511883
34111.85111.7345541591890.115445840811191
35112.12112.0015790990230.118420900976702
36112.15112.298705324744-0.148705324744242
37112.17112.671523224133-0.501523224132512
38112.67112.4268535030900.243146496910157
39112.8112.7917080401230.00829195987742537
40113.44113.3994181701210.0405818298789029
41113.53113.4612623374510.0687376625489833
42114.53113.5200487195021.00995128049817
43114.51114.837197086984-0.327197086983503
44115.05114.7891714443570.260828555643485
45116.67116.1946457858730.475354214127421
46117.07116.7558803186700.314119681329529
47116.92117.222637946078-0.302637946078235
48117117.203520780676-0.203520780675873
49117.02117.548303100144-0.528303100144043
50117.35117.3365789872860.0134210127140051
51117.36117.531121441968-0.171121441967898
52117.82118.013598569714-0.193598569714439
53117.88117.900167842967-0.0201678429666146
54118.24117.9301356037580.309864396242048
55118.5118.630159634753-0.130159634753085
56118.8118.7560528105720.0439471894284225
57119.76119.985598209489-0.225598209489263
58120.09119.9522510089160.137748991084365
59120.16120.222768045257-0.0627680452567176


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
60120.371967043331119.648151913234121.095782173427
61120.846166554290119.907652747071121.784680361508
62121.068253839470119.945453998008122.191053680931
63121.237311691034119.947257936845122.527365445223
64121.852067686060120.405623019414123.298512352706
65121.900952866359120.305557513444123.496348219274
66121.960759387669120.221734500787123.699784274552
67122.391195401520120.512450543337124.269940259704
68122.624555728944120.609009455557124.640102002331
69123.805393517070121.655240600546125.955546433595
70123.967311481243121.684201543424126.250421419063
71124.118920294351121.704082112494126.533758476209
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698265xgj228c861kruwl/168x21292698340.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698265xgj228c861kruwl/168x21292698340.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698265xgj228c861kruwl/268x21292698340.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698265xgj228c861kruwl/268x21292698340.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698265xgj228c861kruwl/3hhe51292698340.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698265xgj228c861kruwl/3hhe51292698340.ps (open in new window)


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