Home » date » 2009 » Dec » 01 »

*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: Tue, 01 Dec 2009 14:25:38 -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/01/t1259702811s5eiuo3u5752m6p.htm/, Retrieved Tue, 01 Dec 2009 22:26:58 +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/01/t1259702811s5eiuo3u5752m6p.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 «
111.4 87.4 96.8 114.1 110.3 103.9 101.6 94.6 95.9 104.7 102.8 98.1 113.9 80.9 95.7 113.2 105.9 108.8 102.3 99 100.7 115.5 100.7 109.9 114.6 85.4 100.5 114.8 116.5 112.9 102 106 105.3 118.8 106.1 109.3 117.2 92.5 104.2 112.5 122.4 113.3 100 110.7 112.8 109.8 117.3 109.1 115.9 96 99.8 116.8 115.7 99.4 94.3 91 93.2 103.1 94.1 91.8 102.7
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.0788162596370837
beta1
gamma0.94734822479976


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13113.9114.216458260221-0.31645826022131
1480.981.0333726382371-0.133372638237091
1595.795.58574335436530.114256645634683
16113.2112.4882293296210.711770670379039
17105.9105.0885193957470.811480604253163
18108.8107.8516815332320.948318466767887
19102.3102.547234564864-0.247234564863732
209995.88191633054673.11808366945326
21100.798.2689635412342.43103645876596
22115.5108.3571384443777.14286155562264
23100.7108.491888077685-7.79188807768526
24109.9103.5929004116406.30709958835989
25114.6121.631916200956-7.03191620095613
2685.486.4651102279986-1.06511022799863
27100.5102.617812933350-2.11781293335015
28114.8121.426526702188-6.62652670218807
29116.5112.7970173681053.70298263189542
30112.9116.088093552074-3.18809355207401
31102108.675136681084-6.67513668108393
32106103.4292155302422.57078446975783
33105.3104.3832519707880.916748029212187
34118.8117.8545800333000.945419966700314
35106.1102.6744506679053.42554933209513
36109.3110.477944750928-1.17794475092815
37117.2115.0305356986582.16946430134215
3892.585.3105092380287.189490761972
39104.2101.5387846484882.66121535151179
40112.5117.670919879155-5.17091987915531
41122.4119.0168942507143.38310574928613
42113.3116.960839569567-3.66083956956676
43100106.782729872856-6.78272987285611
44110.7110.3988844126790.301115587321064
45112.8110.1866664032712.61333359672884
46109.8125.169538689621-15.3695386896213
47117.3109.7577382182037.54226178179738
48109.1113.783215130895-4.68321513089481
49115.9120.719702352607-4.81970235260694
509693.22384380705732.77615619294272
5199.8103.912189953244-4.11218995324450
52116.8110.5499140940396.25008590596083
53115.7118.849790024212-3.14979002421187
5499.4108.746156607763-9.34615660776292
5594.394.13758735326080.162412646739227
5691102.367887695294-11.3678876952937
5793.2100.673154186207-7.47315418620667
58103.195.99455770589637.10544229410374
5994.199.8373772191616-5.73737721916159
6091.890.63780450787871.16219549212130
61102.794.32818404045218.37181595954787


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
6277.064416129242267.20021894896886.9286133095164
6379.216506432641869.203667872642689.229344992641
6490.494576127984380.0041618165221100.984990439446
6588.383992182689777.23117962493199.5368047404484
6675.283164523619763.69243682439286.8738922228474
6770.213630273528957.855202702193382.5720578448646
6867.89331550506954.44672067427481.3399103358642
6969.492809772387254.277612912770684.7080066320037
7076.003085063000757.729924930635694.2762451953657
7169.817352806979750.274763867303989.3599417466554
7267.81051875208346.123637408305689.4974000958605
7375.015573858394549.4887353110272100.542412405762
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259702811s5eiuo3u5752m6p/107of1259702736.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259702811s5eiuo3u5752m6p/107of1259702736.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/01/t1259702811s5eiuo3u5752m6p/2oqv61259702736.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259702811s5eiuo3u5752m6p/2oqv61259702736.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/01/t1259702811s5eiuo3u5752m6p/3jf4t1259702736.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259702811s5eiuo3u5752m6p/3jf4t1259702736.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = FALSE ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ; par5 = 1 ; par7 = 1 ; par8 = FALSE ;
 
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