Home » date » 2008 » May » 26 »

exp smoothing eigen reeks - Wouters Danai

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Mon, 26 May 2008 03:23:27 -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/26/t1211793899wbidkn7k50y6jqc.htm/, Retrieved Mon, 26 May 2008 11:25:03 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
3722.7 3707.1 3697.4 3691.4 3679.4 3660.6 3647.5 3639 3623.5 3612.2 3604.2 3596.9 3603.9 3606.9 3607.7 3611.4 3611.9 3618.4 3629.5 3640.6 3646.8 3647.3 3649.5 3649.7 3652.5 3665.8 3674.3 3705.8 3735.8 3735.4 3747.7 3765.5 3779.7 3795.5 3813.1 3826.9 3833.3 3844.8 3851.3 3851.8 3854.1 3858.4 3861.6 3856.3 3855.8 3860.4 3855.1 3839.5 3833 3833.6 3826.8 3818.2 3811.4 3806.8 3810.3 3818.2 3858.7 3868.7 3872.6 3872.4 3876.4 3883.2 3883.4 3881.8 3887.1 3893.3 3902.8 3914.7 3929.8 3947.3 3971.8 3991.3 3993 3997.2 4016.2 4041.7 4060.5 4076.7 4102.7 4125.8 4140.1 4146.7 4157.9 4154.7 4145.3 4149 4142.4 4141 4146.1 4147.6 4142.7 4148.1 4159 4167 4178.5 4192.5 4209.2 4223.7 4231.6 4236.9 4253 4270.5 4285.7 4302.8 4321.5 4340.3 4356.5
 
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 time9 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
23707.13722.7-15.5999999999999
33697.43707.1-9.69999999999982
43691.43697.4-6
53679.43691.4-12
63660.63679.4-18.8000000000002
73647.53660.6-13.0999999999999
836393647.5-8.5
93623.53639-15.5
103612.23623.5-11.3000000000002
113604.23612.2-8
123596.93604.2-7.29999999999973
133603.93596.97
143606.93603.93
153607.73606.90.799999999999727
163611.43607.73.70000000000027
173611.93611.40.5
183618.43611.96.5
193629.53618.411.0999999999999
203640.63629.511.0999999999999
213646.83640.66.20000000000027
223647.33646.80.5
233649.53647.32.19999999999982
243649.73649.50.199999999999818
253652.53649.72.80000000000018
263665.83652.513.3000000000002
273674.33665.88.5
283705.83674.331.5
293735.83705.830
303735.43735.8-0.400000000000091
313747.73735.412.2999999999997
323765.53747.717.8000000000002
333779.73765.514.1999999999998
343795.53779.715.8000000000002
353813.13795.517.5999999999999
363826.93813.113.8000000000002
373833.33826.96.40000000000009
383844.83833.311.5
393851.33844.86.5
403851.83851.30.5
413854.13851.82.29999999999973
423858.43854.14.30000000000018
433861.63858.43.19999999999982
443856.33861.6-5.29999999999973
453855.83856.3-0.5
463860.43855.84.59999999999991
473855.13860.4-5.30000000000018
483839.53855.1-15.5999999999999
4938333839.5-6.5
503833.638330.599999999999909
513826.83833.6-6.79999999999973
523818.23826.8-8.60000000000036
533811.43818.2-6.79999999999973
543806.83811.4-4.59999999999991
553810.33806.83.5
563818.23810.37.89999999999964
573858.73818.240.5
583868.73858.710
593872.63868.73.90000000000009
603872.43872.6-0.199999999999818
613876.43872.44
623883.23876.46.79999999999973
633883.43883.20.200000000000273
643881.83883.4-1.59999999999991
653887.13881.85.29999999999973
663893.33887.16.20000000000027
673902.83893.39.5
683914.73902.811.8999999999996
693929.83914.715.1000000000004
703947.33929.817.5
713971.83947.324.5
723991.33971.819.5
7339933991.31.69999999999982
743997.239934.19999999999982
754016.23997.219
764041.74016.225.5
774060.54041.718.8000000000002
784076.74060.516.1999999999998
794102.74076.726
804125.84102.723.1000000000004
814140.14125.814.3000000000002
824146.74140.16.59999999999945
834157.94146.711.1999999999998
844154.74157.9-3.19999999999982
854145.34154.7-9.39999999999964
8641494145.33.69999999999982
874142.44149-6.60000000000036
8841414142.4-1.39999999999964
894146.141415.10000000000036
904147.64146.11.5
914142.74147.6-4.90000000000055
924148.14142.75.40000000000055
9341594148.110.8999999999996
94416741598
954178.5416711.5
964192.54178.514
974209.24192.516.6999999999998
984223.74209.214.5
994231.64223.77.90000000000055
1004236.94231.65.29999999999927
10142534236.916.1000000000004
1024270.5425317.5
1034285.74270.515.1999999999998
1044302.84285.717.1000000000004
1054321.54302.818.6999999999998
1064340.34321.518.8000000000002
1074356.54340.316.1999999999998


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
1084356.54334.768524370714378.23147562929
1094356.54325.767052434684387.23294756532
1104356.54318.859980086634394.14001991337
1114356.54313.037048741424399.96295125858
1124356.54307.906943241534405.09305675847
1134356.54303.268973350524409.73102664948
1144356.54299.003919862444413.99608013756
1154356.54295.034104869364417.96589513064
1164356.54291.305573112144421.69442688786
1174356.54287.779040095014425.22095990499
1184356.54284.42484919694428.5751508031
1194356.54281.219960173264431.78003982674
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211793899wbidkn7k50y6jqc/1hl6z1211793798.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211793899wbidkn7k50y6jqc/1hl6z1211793798.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211793899wbidkn7k50y6jqc/2c24g1211793798.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211793899wbidkn7k50y6jqc/2c24g1211793798.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211793899wbidkn7k50y6jqc/3ydgr1211793798.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211793899wbidkn7k50y6jqc/3ydgr1211793798.ps (open in new window)


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