Home » date » 2010 » Jun » 05 »

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sat, 05 Jun 2010 09:58:01 +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/Jun/05/t1275731938empp36giexmc5aa.htm/, Retrieved Sat, 05 Jun 2010 11:58:59 +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/Jun/05/t1275731938empp36giexmc5aa.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 «
8027,7 8059,6 8059,5 7988,9 7950,2 8003,8 8037,5 8069 8157,6 8244,3 8329,4 8417 8432,5 8486,4 8531,1 8643,8 8727,9 8847,3 8904,3 9003,2 9025,3 9044,7 9120,7 9184,3 9247,2 9407,1 9488,9 9592,5 9666,2 9809,6 9932,7 10008,9 10103,4 10194,3 10328,8 10507,6 10601,2 10684 10819,9 11014,3 11043 11258,5 11267,9 11334,5 11297,2 11371,3 11340,1 11380,1 11477,9 11538,8 11596,4 11598,8 11645,8 11738,7 11935,5 12042,8 12127,6 12213,8 12303,5 12410,3 12534,1 12587,5 12683,2 12748,7 12915,9 12962,5 12965,9 13060,7 13099,9 13204 13321,1 13391,2 13366,9 13415,3 13324,6 13141,9 12925,4 12901,5 12973 13155
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.517785522407035
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
38059.58091.5-32.0000000000009
47988.98074.83086328297-85.9308632829752
57950.27959.73710634711-9.53710634711206
68003.87916.0989307549287.7010692450795
78037.58015.1092747096422.39072529036
880698060.402868101188.59713189881859
98157.68096.3543385326161.2456614673874
108244.38216.6664553506727.6335446493304
118329.48317.6747047028811.7252952971194
1284178408.845892853688.15410714632344
138432.58500.6679714822-68.1679714821985
148486.48480.871582756865.52841724313839
158531.18537.63411716718-6.53411716718256
168643.88578.950845896364.8491541036947
178727.98725.228799031542.67120096845974
188847.38810.7119082204536.5880917795512
198904.38949.0566924364-44.7566924364
209003.28982.88232506220.3176749379945
219025.39092.30252299387-67.0025229938747
229044.79079.7095866229-35.0095866228985
239120.79080.9821295241139.7178704758917
249184.39177.547467837366.75253216263627
259247.29244.643831230762.55616876923887
269407.19308.867378412398.2326215876965
279488.99519.6308076985-30.7308076985028
289592.59585.518840380346.98115961965777
299666.29692.73358376101-26.5335837610128
309809.69752.6948782319956.9051217680135
319932.79925.559526434277.140473565727
3210008.910052.3567602697-43.4567602697389
3310103.410106.0554789514-2.65547895135387
3410194.310199.1805103953-4.88051039528546
3510328.810287.553452770641.2465472293497
3610507.610443.410317775364.1896822247163
3710601.210655.4468059192-54.2468059191506
381068410720.9585951774-36.9585951773915
3910819.910784.62196966635.2780303339641
4011014.310938.78842303275.5115769680015
411104311172.2872243602-129.287224360152
4211258.511134.0441713543124.455828645723
4311267.911413.9855976062-146.085597606203
4411334.511347.7445901335-13.2445901335304
4511297.211407.4867331122-110.286733112172
4611371.311313.081859393158.2181406068757
4711340.111417.3263697408-77.226369740818
4811380.111346.13967354133.9603264590296
4911477.911403.723838917774.1761610823269
5011538.811539.9311812338-1.13118123383356
5111596.411600.2454719677-3.84547196773565
5211598.811655.854342256-57.0543422560204
5311645.811628.712429845417.0875701546029
5411738.711684.560126284654.1398737154359
5511935.511805.4929690794130.007030920637
5612042.812069.6087275012-26.8087275011931
5712127.612163.0275565269-35.4275565269181
5812213.812229.483680663-15.6836806630254
5912303.512307.5628978777-4.06289787765309
6012410.312395.159188177615.1408118224117
6112534.112509.798881336724.3011186632793
6212587.512646.1816487589-58.681648758864
6312683.212669.197140600514.0028593994521
6412748.712772.1476184699-23.4476184698869
6512915.912825.506781091390.3932189087427
6612962.513039.511081166-77.0110811659724
6712965.913046.2358582733-80.3358582733199
6813060.713008.039113929252.6608860707511
6913099.913130.1061583338-30.2061583338127
701320413153.66584686150.3341531389724
7113321.113283.82814263937.2718573609927
7213391.213420.2269707738-29.0269707737498
7313366.913475.2972255478-108.397225547771
7413415.313394.8707114920.4292885099549
7513324.613453.8487013136-129.248701313574
7613141.913296.2255949835-154.325594983497
7712925.413033.6180361642-108.218036164189
7812901.512761.0843037751140.415696224949
791297312809.889518399163.110481600967
801315512965.8457643249189.154235675147


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8113245.787089059413111.210143131613380.3640349872
8213336.574178118813091.967005251113581.1813509865
8313427.361267178213060.106172489513794.6163618669
8413518.148356237613015.204003758814021.0927087165
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/05/t1275731938empp36giexmc5aa/1io0u1275731878.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/05/t1275731938empp36giexmc5aa/1io0u1275731878.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/05/t1275731938empp36giexmc5aa/2bfif1275731878.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/05/t1275731938empp36giexmc5aa/2bfif1275731878.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/05/t1275731938empp36giexmc5aa/3bfif1275731878.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/05/t1275731938empp36giexmc5aa/3bfif1275731878.ps (open in new window)


 
Parameters (Session):
par1 = 4 ; par2 = Double ; par3 = multiplicative ;
 
Parameters (R input):
par1 = 4 ; par2 = Double ; 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