Home » date » 2010 » May » 31 »

Champagne Exponential Smoothing

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Mon, 31 May 2010 14:37: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/May/31/t127531669365mcx864dhsv212.htm/, Retrieved Mon, 31 May 2010 16:38:14 +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/May/31/t127531669365mcx864dhsv212.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 «
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 4739 5428 8314 10651 3633 4292 4154 4121 4647 4753 3965 1723 5048 6922 9858 11331 4016 3975 4510 4276 4968 4677 3523 1821 5222 6873 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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.30842644344129
beta0
gamma0.632760470780569


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1325412393.50833868648147.491661313523
1424752389.7588888929285.2411111070837
1530312978.3564054691852.6435945308167
1632663224.5748616720941.425138327912
1737763723.4358524657452.5641475342582
1832303145.9564754495484.0435245504614
1930282495.85826039448532.141739605515
2017592615.11807012923-856.118070129231
2135953130.25669910364464.743300896364
2244744811.13642911062-337.136429110617
2368386258.72643224635579.273567753655
2483577934.66214742373422.337852576273
2531132940.7998191162172.200180883797
2630062897.56490597696108.435094023038
2740473580.3024470368466.697552963203
2835233995.14184564363-472.141845643626
2939374423.91370452947-486.913704529466
3039863610.94140603873375.05859396127
3132603148.77166912909111.228330870912
3215732417.20206583968-844.202065839685
3335283625.51605483856-97.5160548385575
3452114817.81581161119393.184188388806
3576147041.98015460674572.019845393255
3692548751.20258405828502.797415941719
3753753252.838656173982122.16134382602
3830883742.2695559007-654.269555900696
3937184483.8418231847-765.841823184696
4045144085.64765089121428.352349108791
4145204861.68281614564-341.682816145635
4245394410.85001290644128.149987093557
4336633653.356755915639.64324408436505
4416432264.44617605372-621.446176053724
4547394149.84148853392589.158511466083
4654286069.71709395816-641.717093958163
4783148362.0605378331-48.0605378330911
481065110014.2215488854636.778451114596
4936334500.74097486828-867.740974868284
5042923013.428062464471278.57193753553
5141544323.7759675356-169.775967535601
5241214656.04329075914-535.043290759142
5346474799.98302171796-152.983021717956
5447534607.07333369408145.926666305915
5539653775.00500753416189.994992465839
5617232059.76462237556-336.764622375558
5750484772.81180891231275.18819108769
5869226115.09205057554806.907949424456
5998589486.33781629371.662183710003
601133111851.8998112841-520.899811284056
6140164563.38971079182-547.389710791824
6239753997.45323471011-22.4532347101144
6345104273.31838761804236.681612381963
6442764569.22285121982-293.222851219819
6549684977.49285544872-9.49285544871782
6646774956.23587445028-279.23587445028
6735233982.17547180157-459.175471801574
6818211867.74768227565-46.7476822756498
6952225011.51465333456210.485346665436
7068736581.07120783537291.928792164632
71108039581.42652635451221.57347364551
721391611851.05862199172064.94137800828
7326394698.03096152302-2059.03096152302
7428993899.80834532273-1000.80834532273
7533703949.58307105529-579.583071055289
7637403765.04537858081-25.0453785808081
7729274299.35202261117-1372.35202261117
7839863774.43180886483211.56819113517
7942173056.309942512081160.69005748792
8017381733.494537051884.50546294811966
8152214831.36712436927389.632875630735
8264246427.2259168487-3.22591684869803
8398429545.7731737953296.226826204693
841307611678.25990474811397.7400952519
8539343307.99996998548626.00003001452
8631623789.18182936661-627.181829366613
8742864197.5076305948388.4923694051668
8846764504.02522974213171.974770257874
8950104413.97229349209596.027706507914
9048745413.85440538327-539.854405383268
9146334676.36618707742-43.3661870774158
9216592061.05277379123-402.052773791227
9359515569.97297961752381.02702038248
9469817130.64581122766-149.645811227659
95985110661.1481746792-810.148174679225
961267013072.6379617398-402.637961739832


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
973630.219953699592669.588570824244590.85133657494
983366.476796167632338.436582245134394.51701009014
994293.275676884283113.511733880065473.03961988851
1004610.166448813273330.655899314015889.67699831253
1014642.18423422723301.714573514025982.65389494038
1024941.062993047593499.413808012016382.71217808317
1034592.600294047163162.748543348576022.45204474576
1041853.22234945944790.7809150675652915.66378385131
1056031.354945016763856.097545145898206.61234488763
1067277.25030701814701.799161773529852.70145226268
10710674.81871724467013.0651144768214336.5723200123
10813682.57049693359149.6832868392618215.4577070277
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/31/t127531669365mcx864dhsv212/1xg5q1275316616.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/31/t127531669365mcx864dhsv212/1xg5q1275316616.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/31/t127531669365mcx864dhsv212/2pp4b1275316616.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/31/t127531669365mcx864dhsv212/2pp4b1275316616.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/31/t127531669365mcx864dhsv212/3pp4b1275316616.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/31/t127531669365mcx864dhsv212/3pp4b1275316616.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=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