Home » date » 2008 » May » 24 »

Stephanie De Coninck - oef 10

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sat, 24 May 2008 01:23:37 -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/24/t1211613897tiz2vgbw9lww3w2.htm/, Retrieved Sat, 24 May 2008 09:24:57 +0200
 
User-defined keywords:
eigen cijferreeks
 
Dataseries X:
» Textbox « » Textfile « » CSV «
68,64 68,61 68,61 68,61 68,58 68,75 68,54 68,5 68,47 68,47 68,47 68,59 68,32 67,86 67,91 67,91 68,05 68,15 68,25 68,25 68,31 68,31 69,65 69,65 70,18 70,08 70,08 70,09 70,04 70,14 70,26 70,23 70,54 70,54 70,57 70,61 70,63 70,45 70,4 70,4 70,33 70,51 70,45 70,39 70,59 70,59 70,32 70,94 70,44 70,57 70,61 70,61 70,68 69,96 70,11 70,22 70,49 70,49 70,58 70,85 70,69 70,7 70,7 70,7 70,67 70,64 70,98 70,75 70,88 70,88 70,92 70,89 71,02 71,01 71,02
 
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'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.867742588299969
beta0
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
368.6168.610
468.6168.610
568.5868.61-0.0300000000000011
668.7568.5839677223510.166032277648995
768.5468.7280410006995-0.188041000699471
868.568.564869816046-0.0648698160459986
968.4768.5085795139677-0.0385795139677043
1068.4768.475102426662-0.00510242666202032
1168.4768.4706748337437-0.000674833743701697
1268.5968.47008925176430.119910748235739
1368.3268.5741409148033-0.254140914803344
1467.8668.353612019599-0.493612019598956
1567.9167.9252838480962-0.015283848096189
1667.9167.91202140219-0.00202140219002445
1768.0567.91026734542170.139732654578339
1868.1568.03151932077550.118480679224518
1968.2568.13433005202930.115669947970687
2068.2568.23470179206990.0152982079300870
2168.3168.24797669861550.0620233013844853
2268.3168.30179695869380.00820304130620286
2369.6568.30891508698881.34108491301123
2469.6569.47263158053520.177368419464827
2570.1869.62654171192430.553458288075745
2670.0870.1068010393352-0.0268010393351830
2770.0870.0835446360933-0.00354463609333777
2870.0970.08046880439510.00953119560487892
2970.0470.0887394287389-0.0487394287388838
3070.1470.04644615069270.0935538493072556
3170.2670.1276268100360.132373189963957
3270.2370.2424926645169-0.0124926645168983
3370.5470.23165224747420.308347752525762
3470.5470.49921872434740.0407812756525772
3570.5770.53460637403640.0353936259636214
3670.6170.56531893063940.0446810693606352
3770.6370.60409059741440.0259094025856257
3870.4570.6265732894753-0.176573289475328
3970.470.4733531262414-0.0733531262413578
4070.470.4097014946168-0.0097014946167917
4170.3370.4012830945676-0.0712830945676473
4270.5170.33942771758550.170572282414525
4370.4570.4874405514201-0.0374405514200902
4470.3970.4549517904235-0.06495179042345
4570.5970.39859035568670.191409644313310
4670.5970.56468465586870.0253153441313003
4770.3270.5866518581089-0.266651858108915
4870.9470.35526668457850.584733315421516
4970.4470.8626646851676-0.422664685167575
5070.5770.49590053727730.074099462722728
5170.6170.56019979685190.0498002031480809
5270.6170.60341355402950.00658644597049829
5370.6870.60912889370360.0708711062963658
5469.9670.6706267709169-0.710626770916932
5570.1170.05398565740620.0560143425937838
5670.2270.10259168803050.117408311969527
5770.4970.20447188054680.285528119453161
5870.4970.45223678995350.0377632100464496
5970.5870.48500553558180.0949944644182352
6070.8570.56743627801020.282563721989789
6170.6970.8126288534893-0.122628853489303
6270.770.7062185747622-0.00621857476222942
6370.770.7008224526025-0.00082245260252023
6470.770.7001087754525-0.000108775452460463
6570.6770.7000143863598-0.0300143863597953
6670.6470.6739696250537-0.0339696250537145
6770.9870.6444927346860.335507265313979
6870.7570.935626677483-0.185626677483015
6970.8870.77455050390640.105449496093613
7070.8870.86605352258160.0139464774184148
7170.9270.87815547499430.0418445250057005
7270.8970.914465751429-0.0244657514289344
7371.0270.89323577695930.126764223040709
7471.0171.00323449196450.00676550803554221
7571.0271.00910521141840.0108947885816093


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7671.018559083461270.544577814776471.492540352146
7771.018559083461270.39100766900871.6461104979143
7871.018559083461270.268236944310171.7688812226122
7971.018559083461270.162903868308371.874214298614
8071.018559083461270.069186458020471.967931708902
8171.018559083461269.983923439065372.053194727857
8271.018559083461269.905170808252372.13194735867
8371.018559083461269.831631964346272.2054862025762
8471.018559083461269.762390893763372.274727273159
8571.018559083461269.696772014555372.340346152367
8671.018559083461269.634260130833972.4028580360884
8771.018559083461269.574451703463872.4626664634586
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211613897tiz2vgbw9lww3w2/164mx1211613809.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211613897tiz2vgbw9lww3w2/164mx1211613809.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211613897tiz2vgbw9lww3w2/2hdte1211613809.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211613897tiz2vgbw9lww3w2/2hdte1211613809.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211613897tiz2vgbw9lww3w2/31pzh1211613809.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211613897tiz2vgbw9lww3w2/31pzh1211613809.ps (open in new window)


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