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 09:10:57 +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/t1293613722ngk2nxpmeeidirr.htm/, Retrieved Wed, 29 Dec 2010 10:08:43 +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/t1293613722ngk2nxpmeeidirr.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 «
1775 2197 2920 4240 5415 6136 6719 6234 7152 3646 2165 2803 1615 2350 3350 3536 5834 6767 5993 7276 5641 3477 2247 2466 1567 2237 2598 3729 5715 5776 5852 6878 5488 3583 2054 2282 1552 2261 2446 3519 5161 5085 5711 6057 5224 3363 1899 2115 1491 2061 2419 3430 4778 4862 6176 5664 5529 3418 1941 2402 1579 2146 2462 3695 4831 5134 6250 5760 6249 2917 1741 2359 1511 2059 2635 2867 4403 5720 4502 5749 5627 2846 1762 2429 1169 2154 2249 2687 4359 5382 4459 6398 4596 3024 1887 2070 1351 2218 2461 3028 4784 4975 4607 6249 4809 3157 1910 2228 1594 2467 2222 3607 4685 4962 5770 5480 5000 3228 1993 2288 1588 2105 2191 3591 4668 4885 5822 5599 5340 3082 2010 2301
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.0531970593633077
beta0
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1316151538.1907051282176.8092948717931
1423502260.4011509965789.5988490034279
1533503281.0002968686468.9997031313578
1635363536.96196208825-0.96196208825495
1758345834.82687245003-0.826872450025803
1867676774.6989691833-7.69896918329869
1959936672.4554905787-679.455490578703
2072766147.893207094411128.10679290559
2156417097.90458837418-1456.90458837418
2234773522.10929908251-45.1092990825127
2322472046.87570093747200.124299062532
2424662648.06280907082-182.062809070821
2515671523.3502865110943.6497134889078
2622372255.90592762143-18.9059276214339
2725983251.22960656391-653.229606563909
2837293402.53088595997326.469114040027
2957155717.94206998266-2.9420699826569
3057766651.19512303182-875.195123031818
3158525866.78235018446-14.7823501844578
3268787088.98400859382-210.984008593817
3354885520.26331963836-32.2633196383595
3435833356.94668796943226.05331203057
3520542128.32603521152-74.3260352115221
3622822353.05731476613-71.0573147661262
3715521447.95523817465104.044761825346
3822612124.49585329991136.504146700086
3924462527.50736665351-81.5073666535072
4035193636.80421759122-117.80421759122
4151615616.69388910629-455.693889106289
4250855700.01012115041-615.010121150406
4357115744.07976878683-33.0797687868253
4460576779.54375119282-722.543751192821
4552245352.82286209809-128.822862098089
4633633428.94449319634-65.9444931963435
4718991900.39036658448-1.3903665844814
4821152132.09644336256-17.0964433625609
4914911395.6520874788495.3479125211634
5020612102.46269684605-41.4626968460502
5124192289.59295552298129.407044477019
5234303375.743867706554.2561322934962
5347785044.87170926723-266.871709267229
5448624987.39164903083-125.391649030826
5561765608.48092845755567.519071542454
5656646023.10847702099-359.108477020991
5755295177.85795949342351.142040506578
5834183339.0457365864578.9542634135478
5919411879.3198346379861.6801653620196
6024022099.51051856874302.489481431258
6115791486.5298409066692.4701590933391
6221462063.6546749947782.3453250052339
6324622419.1511299102942.8488700897142
6436953429.54429710566265.455702894341
6548314805.8625500511325.1374499488666
6651344897.87025546546236.129744534538
6762506194.2413177642655.7586822357443
6857605704.3110306631255.6889693368776
6962495553.59379609704695.406203902963
7029173475.38722656988-558.387226569878
7117411965.40146471203-224.401464712025
7223592398.37241577205-39.3724157720517
7315111568.35877849033-57.3587784903261
7420592127.92693100338-68.9269310033751
7526352437.98078707724197.019212922755
7628673667.34016705761-800.34016705761
7744034759.42718526263-356.427185262634
7857205030.90489909207689.095100907925
7945026180.59653415312-1678.59653415312
8057495598.33764527104150.662354728958
8156276058.35887438874-431.358874388736
8228462733.11640918054112.883590819461
8317621575.058982302186.941017697995
8424292205.09819145702223.901808542976
8511691372.06042760199-203.060427601994
8621541912.92492002083241.075079979171
8722492491.26856259593-242.268562595932
8826872752.95633086746-65.956330867456
8943594304.4085261520354.5914738479732
9053825587.65479903709-205.654799037085
9144594448.0109679587510.9890320412542
9263985687.58075792026710.419242079743
9345965626.31999616176-1030.31999616176
9430242784.50492708077239.495072919229
9518871703.30064827616183.699351723842
9620702368.1619957942-298.161995794199
9713511103.10287202553247.897127974465
9822182088.46578491772129.53421508228
9924612203.24459935331257.75540064669
10030282658.46511155127369.534888448733
10147844347.21917507387436.780824926133
10249755404.39486109894-429.394861098941
10346074457.96773299292149.032267007082
10462496367.10359675419-118.10359675419
10548094613.63082670566195.369173294343
10631573039.28345860385117.716541396147
10719101898.7733671258911.226632874108
10822282098.23193237149129.768067628508
10915941372.94781373574221.052186264263
11024672244.81630068151222.183699318486
11122222485.9239907743-263.923990774304
11236073019.22584117206587.774158827938
11346854783.2582425191-98.2582425190994
11449624991.87373687506-29.8737368750571
11557704614.356463566091155.64353643391
11654806324.11606542414-844.116065424137
11750004828.81850747275171.181492527252
11832283179.6626856519348.3373143480749
11919931934.6368647773158.3631352226917
12022882248.8383323492839.1616676507169
12115881605.16229163298-17.1622916329752
12221052465.42978874396-360.429788743961
12321912215.29596408047-24.2959640804656
12435913567.735633417623.2643665823998
12546684652.2002788679615.7997211320435
12648854931.62997252489-46.6299725248882
12758225675.67255729787146.327442702125
12855995438.36123939567160.63876060433
12953404957.80039705972382.199602940284
13030823203.56088904513-121.560889045125
13120101958.9894600452751.0105399547347
13223012254.6197852086146.3802147913898


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
1331558.00005969496787.6869932627832328.31312612714
1342094.173864563081322.771603251352865.57612587481
1352181.466338406551408.976417956092953.95625885702
1363580.228742516422806.652692190234353.80479284261
1374656.388243813443881.727586442115431.04890118476
1384875.868821229954100.125073256645651.61256920326
1395805.084631574055028.259303098986581.90996004911
1405573.539121890134795.633716714736351.44452706553
1415294.207226923884515.223242594426073.19121125335
1423042.673908754672262.61283660553822.73498090384
1431967.960298032551186.823623228952749.09697283614
1442256.493006993011474.282208573593038.70380541242
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293613722ngk2nxpmeeidirr/1jux21293613853.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293613722ngk2nxpmeeidirr/1jux21293613853.ps (open in new window)


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


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