Home » date » 2010 » Dec » 18 »

Exponential smoothing double

*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 12:59: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/t12926770215x6b6a0z7txnly9.htm/, Retrieved Sat, 18 Dec 2010 13:57:01 +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/t12926770215x6b6a0z7txnly9.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 «
37 30 47 35 30 43 82 40 47 19 52 136 80 42 54 66 81 63 137 72 107 58 36 52 79 77 54 84 48 96 83 66 61 53 30 74 69 59 42 65 70 100 63 105 82 81 75 102 121 98 76 77 63 37 35 23 40 29 37 51 20 28 13 22 25 13 16 13 16 17 9 17 25 14 8 7 10 7 10 3
 
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.458869668369215
beta0.0711214003368765
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
3472324
43527.79612292213807.20387707786197
53025.12011628368294.87988371631707
64321.536956799679021.4630432003210
78226.263762354511155.7362376454889
84048.5364746639713-8.53647466397128
94741.03779706981815.96220293018186
101940.3867020508952-21.3867020508952
115226.488059355170625.5119406448294
1213634.9423750299138101.057624970086
138081.3603752267783-1.36037522677834
144280.7374651759678-38.7374651759678
155461.6991275165035-7.69912751650345
166656.65207704838749.34792295161262
178159.732474678997321.2675253210027
186368.9764916272027-5.9764916272027
1913765.524010039425271.4759899605748
207299.9447743308188-27.9447743308188
2110787.83237510273619.1676248972640
225897.963971013387-39.9639710133869
233679.6576288052268-43.6576288052268
245258.231592561216-6.23159256121597
257953.775858308313225.2241416916868
267764.577407700744512.4225922992555
275469.910131300781-15.910131300781
288461.722593070031822.2774069299682
294871.7851911184991-23.7851911184991
309659.934819580204136.0651804197959
318376.72497169592816.27502830407185
326680.0501149833582-14.0501149833582
336173.5901346383135-12.5901346383135
345367.3892102379062-14.3892102379062
353059.8931462137544-29.8931462137544
367444.307219850111629.6927801498884
376957.032505098924511.9674949010755
385962.0147592058625-3.01475920586248
394260.023723305792-18.023723305792
406550.557316644823414.4426833551766
417056.460102760927913.5398972390721
4210062.390508396531437.6094916034686
436380.5931236260234-17.5931236260234
4410572.890773546024432.1092264539756
458289.0432235276216-7.04322352762159
468186.9999429771944-5.99994297719438
477585.2395813676036-10.2395813676036
4810281.199604915380320.8003950846197
4912192.081762488182628.9182375118174
5098107.632711515764-9.63271151576438
5176105.179431440083-29.1794314400825
527792.8044705004144-15.8044705004144
536386.0510873912678-23.0510873912678
543775.2201689045499-38.2201689045499
553556.1812864736566-21.1812864736566
562344.2697694858315-21.2697694858315
574031.62350175695628.37649824304384
582932.8543778871680-3.85437788716804
593728.34708657377398.6529134262261
605129.861403630333421.1385963696666
612037.7948895549917-17.7948895549917
622827.28223541635400.717764583645952
631325.2879013155591-12.2879013155591
642216.92464038607285.07535961392715
652516.69448990320838.30551009679168
661318.2176115888137-5.21761158881375
671613.36510379143312.63489620856690
681312.20186467529620.798135324703777
691610.22183920969305.77816079030695
701710.71556927509346.28443072490658
71911.6467065034724-2.64670650347244
72178.393239286983318.60676071301669
732510.584532378187114.4154676218129
741415.911720203901-1.91172020390099
75813.6844669110252-5.68446691102515
7679.54049943290813-2.54049943290813
77106.756292918017073.24370708198293
7876.732143179666750.267856820333247
79105.351207647411064.64879235258894
8036.13226599611504-3.13226599611504


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
813.24060975987728-43.515313575413849.9965330951684
821.78625538252099-50.312040395025253.8845511600672
830.331901005164704-57.24248234686257.9062843571914
84-1.12245337219158-64.308723237547962.0638164931648
85-2.57680774954787-71.511373915999766.357758416904
86-4.03116212690416-78.8501136283970.7877893745816
87-5.48551650426044-86.32402663037375.3529936218522
88-6.93987088161673-93.931817667962580.052075904729
89-8.39422525897302-101.67195308735584.8835025694094
90-9.8485796363293-109.54275486783189.8455955951728
91-11.3029340136856-117.54246408939394.9365960620216
92-12.7572883910419-125.669284130717100.154707348633
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926770215x6b6a0z7txnly9/1e3hl1292677160.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926770215x6b6a0z7txnly9/1e3hl1292677160.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926770215x6b6a0z7txnly9/2e3hl1292677160.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926770215x6b6a0z7txnly9/2e3hl1292677160.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926770215x6b6a0z7txnly9/3e3hl1292677160.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926770215x6b6a0z7txnly9/3e3hl1292677160.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