Home » date » 2011 » May » 19 »

lynn.pelgrims@student.kdg.be

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 19 May 2011 20:13:31 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/19/t1305835993euagxqvsptu9nq8.htm/, Retrieved Thu, 19 May 2011 22:13:17 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2851 2672 2755 2721 2946 3036 2282 2212 2922 4301 5764 7132 2541 2475 3031 3266 3776 3230 3028 1759 3595 4474 6838 8357 3113 3006 4047 3523 3937 3986 3260 1573 3528 5211 7614 9254 5375 3088 3718 4514 4520 4539 3663 1643 4734 5428 8314 10651 3633 4292 4154 4121 4647 4753 3965 1723 5048 6923 9858 11331 4016 3957 4510 4276 4968 4677 3523 1821 5222 6872 10803 13916 2639 2899 3370 3740 2927 3986 4217 1738 5221 6424 9842 13076 3934 3162 4286 4676 5010 4874 4633 1659 5951 6981 9851 12670
 
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'George Udny Yule' @ 216.218.223.82


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.308920174800032
beta0
gamma0.63304779631648


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1325412393.50833868648147.491661313524
1424752389.8295795448685.1704204551402
1530312978.4674924846852.5325075153246
1632663224.6845259202741.3154740797308
1737763723.5455651142452.4544348857607
1832303146.0413451321783.9586548678344
1930282495.93638764876532.063612351243
2017592615.42697148435-856.426971484353
2135953129.98059337787465.019406622129
2244744811.19275455775-337.192754557747
2368386258.55829948475579.441700515249
2483577934.86975076983422.130249230167
2531132940.90516043429172.094839565706
2630062897.68831373255108.311686267446
2740473580.46589940871466.534100591291
2835233995.51499634823-472.514996348226
2939374423.94954379872-486.949543798717
3039863610.75875581215375.24124418785
3132603148.73441559458111.26558440542
3215732417.2388004176-844.238800417595
3335283625.06086969704-97.0608696970385
3452114817.25400517526393.745994824736
3576147041.6915738063572.308426193701
3692548751.14534360582502.854656394184
3753753252.87368814192122.1263118581
3830883743.2519181274-655.2519181274
3937184484.22248389336-766.222483893357
4045144085.57228718524428.427712814763
4145204862.05195726191-342.051957261911
4245394410.93535956836128.064640431644
4336633653.327241700519.6727582994904
4416432264.46469501254-621.464695012545
4547344149.69369766263584.306302337369
4654286067.62647796335-639.626477963354
4783148359.27994241763-45.2799424176301
481065110011.6052518353639.394748164725
4936334499.57305081962-866.57305081962
5042923012.538137174071279.46186282593
5141544324.06523554391-170.06523554391
5241214656.288978844-535.288978843996
5346474799.96689031067-152.966890310666
5447534607.06030980049145.939690199511
5539653774.97903745214190.020962547855
5617232059.85167444573-336.851674445727
5750484770.79937146954277.200628530462
5869236117.09990459278805.900095407219
5998589488.97632961112369.02367038888
601133111853.5444537716-522.544453771616
6140164563.31949339721-547.319493397212
6239573996.87204542113-39.8720454211334
6345104266.86126847803243.13873152197
6442764564.85778587997-288.857785879971
6549684974.17235853488-6.17235853488091
6646774953.99768781614-276.997687816143
6735233980.72313410983-457.72313410983
6818211867.19289066026-46.1928906602607
6952225009.48685230371212.513147696287
7068726581.45741871882290.542581281177
71108039580.81481040081222.18518959919
721391611851.27393113432064.72606886566
7326394698.39199842502-2059.39199842502
7428993891.23363939581-992.233639395808
7533703952.59002165526-582.590021655264
7637403766.1311848531-26.1311848531027
7729274299.77610625762-1372.77610625762
7839863773.76575338307212.234246616928
7942173055.869334976621161.13066502338
8017381733.602368269154.39763173084611
8152214830.86842062341390.131579376592
8264246427.33679785996-3.33679785996355
8398429546.13288845202295.867111547977
841307611678.24507540741397.75492459262
8539343308.1346526193625.865347380701
8631623785.80690373151-623.806903731512
8742864199.6714683831486.3285316168594
8846764505.69936087628170.30063912372
8950104415.17155919637594.828440803634
9048745415.26988008695-541.269880086954
9146334676.44951397193-43.4495139719284
9216592060.96806905497-401.968069054974
9359515568.76517552133382.234824478671
9469817129.87966154635-148.879661546348
95985110660.3884204093-809.388420409317
961267013071.0034899073-401.003489907263


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
973629.692575287392668.826936215894590.55821435889
983364.115703800352335.755158711774392.47624888892
994292.922766624163112.292387372785473.55314587553
1004610.108303348853329.485540716085890.73106598162
1014642.272169646613300.561058808025983.98328048519
1024941.392964319423498.26807942526384.51784921364
1034592.815878060673161.560507428196024.07124869315
1041853.29345270853790.3399742864992916.24693113056
1056031.389223646953853.537276077328209.24117121658
1067277.068458811184698.452628371499855.68428925086
10710674.58962682137008.036445917314341.1428077252
10813682.04007233419142.9390331587918221.1411115094
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/19/t1305835993euagxqvsptu9nq8/1mu0g1305836008.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305835993euagxqvsptu9nq8/1mu0g1305836008.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t1305835993euagxqvsptu9nq8/2tu461305836008.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305835993euagxqvsptu9nq8/2tu461305836008.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t1305835993euagxqvsptu9nq8/3uje41305836008.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305835993euagxqvsptu9nq8/3uje41305836008.ps (open in new window)


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