Home » date » 2010 » Dec » 29 »

*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: Wed, 29 Dec 2010 14:09:04 +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/29/t1293631630zq2qc1w4xwbo4mi.htm/, Retrieved Wed, 29 Dec 2010 15:07:10 +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/29/t1293631630zq2qc1w4xwbo4mi.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 «
3106.54 3125.67 3039.71 3051.67 3112.83 3228.01 3223.98 3328.8 3264.26 3394.14 3549.25 3744.63 3839.25 3912.28 3911.06 3675.8 3703.32 3795.91 3906.01 4070.78 4144.38 4140.3 4388.53 4433.57 4305.23 4471.65 4614.76 4697.86 4639.4 4384.47 4350.83 4325.29 4441.82 4162.5 4127.47 3722.23 3757.12 3719.52 3925.43 3751.41 3168.22 2994.38 3136 2672.2 2100.18 1881.46 1908.64 1900.09 1696.58 1748.74 1953.35 2071.37 2030.98 2169.14 2229.85 2480.93 2525.93 2475.14 2529.66 2453.37 2386.53 2517.3 2457.46 2589.73 2679.07 2506.13 2592.31
 
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
alpha1
beta0
gamma0.486860364521044


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
133839.253450.75455176768388.495448232321
143912.283852.9462559.3337499999998
153911.063843.472567.5875000000001
163675.83608.0383333333367.7616666666668
173703.323637.2666.059999999999
183795.913732.2341666666763.6758333333341
193906.013894.0529166666711.9570833333337
204070.783947.525123.255000000001
214144.383937.15833333333207.221666666666
224140.34211.94833333333-71.6483333333335
234388.534244.80083333333143.729166666666
244433.574535.64375-102.073750000000
254305.234476.10958333333-170.879583333333
264471.654318.92625152.72375
274614.764402.8425211.917500000001
284697.864311.73833333333386.121666666666
294639.44659.32-19.920000000001
304384.474668.31416666667-283.844166666665
314350.834482.61291666667-131.782916666667
324325.294392.345-67.0549999999994
334441.824191.66833333333250.151666666666
344162.54509.38833333333-346.888333333333
354127.474267.00083333333-139.530833333333
363722.234274.58375-552.35375
373757.123764.76958333333-7.6495833333338
383719.523770.81625-51.2962500000003
393925.433650.7125274.717500000001
403751.413622.40833333333129.001666666667
413168.223712.87-544.650000000001
422994.383197.13416666667-202.754166666665
4331363092.5229166666743.4770833333332
442672.23177.515-505.315
452100.182538.57833333333-438.398333333334
461881.462167.74833333333-286.288333333333
471908.641985.96083333333-77.3208333333334
481900.092055.75375-155.66375
491696.581942.62958333333-246.049583333333
501748.741710.2762538.4637499999997
511953.351679.9325273.417500000000
522071.371650.32833333333421.041666666667
532030.982032.83-1.85000000000082
542169.142059.89416666667109.245833333334
552229.852267.28291666667-37.4329166666666
562480.932271.365209.565000000001
572525.932347.30833333333178.621666666666
582475.142593.49833333333-118.358333333334
592529.662579.64083333333-49.9808333333335
602453.372676.77375-223.403749999999
612386.532495.90958333333-109.379583333333
622517.32400.22625117.073750000000
632457.462448.49258.96750000000065
642589.732154.43833333333435.291666666667
652679.072551.19127.879999999999
662506.132707.98416666667-201.854166666666
672592.312604.27291666667-11.9629166666668


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
682633.8252183.294926640183084.35507335982
692500.203333333331863.057593330933137.34907333573
702567.771666666671787.430689269733348.11264406361
712672.27251771.212353280363573.33264671964
722819.386251811.970380059483826.80211994052
732861.925833333331758.357039823113965.49462684356
742875.622083333331683.631551067574067.6126155991
752806.814583333331532.523103328534081.10606333813
762503.792916666671152.202696587213855.38313674612
772465.252916666671040.551730446893889.95410288644
782494.16708333333999.9278732275223988.40629343914
792592.311031.628045206124152.99195479388
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293631630zq2qc1w4xwbo4mi/1o3491293631740.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293631630zq2qc1w4xwbo4mi/1o3491293631740.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293631630zq2qc1w4xwbo4mi/2zulc1293631740.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293631630zq2qc1w4xwbo4mi/2zulc1293631740.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293631630zq2qc1w4xwbo4mi/3zulc1293631740.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293631630zq2qc1w4xwbo4mi/3zulc1293631740.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=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