Home » date » 2008 » May » 31 »

Roze Zalm exp smoothie

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sat, 31 May 2008 14:00:41 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/31/t1212264079ne0yv2rau316k71.htm/, Retrieved Sat, 31 May 2008 20:01:23 +0000
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
11.98 11.79 11.66 11.96 11.83 12.36 12.53 12.55 12.53 12.24 12.34 12.05 12.22 12.23 11.92 12.13 12.1 12.15 12.23 12.08 12.02 11.93 12.16 11.87 11.93 11.79 11.43 11.63 11.93 11.89 11.83 11.59 12.04 11.81 11.9 11.72 11.91 11.94 11.91 11.84 12.01 11.89 11.8 11.7 11.5 11.76 11.61 11.27 11.64 11.39 11.54 11.62 11.59 11.44 11.31 11.56 11.4 11.51 11.5 11.24 11.8 11.87 11.86 12.11 11.92 12.61 13.34 13.31 13.47 13.24 13.18 13.3
 
Text written by user:
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.743882684016797
beta0.0836577071765574
gamma0.526978787215965


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1312.2212.2677376624260-0.0477376624260479
1412.2312.2499093149203-0.0199093149202998
1511.9211.9398216041343-0.0198216041342967
1612.1312.142393883475-0.0123938834750064
1712.112.09586903498250.00413096501746146
1812.1512.13641107176070.0135889282392707
1912.2312.21935783236900.0106421676309836
2012.0812.0817588439362-0.00175884393621395
2112.0212.0331339044428-0.0131339044428191
2211.9311.9476616418300-0.0176616418300206
2312.1612.1645367785168-0.00453677851675138
2411.8711.86081771319910.00918228680085775
2511.9311.86582334564100.0641766543590307
2611.7911.9345837473385-0.144583747338494
2711.4311.5338660984570-0.103866098456965
2811.6311.6530126988605-0.0230126988604606
2911.9311.58814174706230.341858252937712
3011.8911.88786193462150.00213806537845151
3111.8311.9672040385983-0.137204038598309
3211.5911.7198001332662-0.129800133266173
3312.0411.56554871805400.474451281945957
3411.8111.8631490856060-0.0531490856060142
3511.912.0717766206156-0.171776620615592
3611.7211.65846987966010.0615301203398655
3711.9111.72078673296590.189213267034051
3811.9411.87337136490150.0666286350985033
3911.9111.66434807639250.245651923607531
4011.8412.1176907060079-0.277690706007881
4112.0111.95147258221620.0585274177837558
4211.8912.0159250033739-0.125925003373920
4311.811.9945464787100-0.194546478709986
4411.711.7149264244336-0.0149264244335914
4511.511.7431141063731-0.243114106373088
4611.7611.41222137311650.347778626883493
4711.6111.897054413292-0.287054413292001
4811.2711.4243086974453-0.154308697445261
4911.6411.31795095594540.322049044054621
5011.3911.5376824568551-0.147682456855064
5111.5411.17492680996820.365073190031801
5211.6211.61829778739870.00170221260128223
5311.5911.6998938164922-0.109893816492249
5411.4411.6002448918256-0.160244891825604
5511.3111.525086158189-0.215086158189001
5611.5611.24063555986780.319364440132162
5711.411.4890983758269-0.0890983758269428
5811.5111.36476187505690.145238124943145
5911.511.6095962693882-0.109596269388241
6011.2411.2997082882507-0.0597082882507465
6111.811.34384323065560.456156769344426
6211.8711.62448165426710.245518345732901
6311.8611.66574107770480.19425892229523
6412.1111.97517324211490.134826757885129
6511.9212.1906327684804-0.270632768480386
6612.6112.00115079912940.608849200870562
6713.3412.58083911971170.759160880288263
6813.3113.23537791671850.074622083281497
6913.4713.37237751851370.0976224814863382
7013.2413.5591580053409-0.319158005340867
7113.1813.5562223667439-0.376222366743885
7213.313.11925630691820.180743693081755


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7313.554421138256413.16276404044313.9460782360697
7413.535565583354113.006030336311314.0651008303969
7513.429566850165012.7799668619314.0791668384001
7613.658272333997612.882631946613414.4339127213818
7713.767438211279012.873567780294114.6613086422640
7813.974872707557612.957548501956714.9921969131586
7914.152956286811613.013140242199515.2927723314236
8014.121542377717312.874422636586315.3686621188483
8114.178535066214512.816551649228615.5405184832005
8214.200698664684712.726267907098915.6751294222704
8314.423127900741912.814501119089516.0317546823943
8414.33780453499019.642263306738619.0333457632416
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212264079ne0yv2rau316k71/1x1f61212264035.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212264079ne0yv2rau316k71/1x1f61212264035.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212264079ne0yv2rau316k71/2rxuk1212264035.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212264079ne0yv2rau316k71/2rxuk1212264035.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212264079ne0yv2rau316k71/318xl1212264035.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212264079ne0yv2rau316k71/318xl1212264035.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