Home » date » 2009 » Jan » 26 »

opg10 oef2 - volkaerts dennis

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Mon, 26 Jan 2009 14:46:42 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jan/26/t1233006448onydv2m3lv9ufkx.htm/, Retrieved Mon, 26 Jan 2009 22:47:32 +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/2009/Jan/26/t1233006448onydv2m3lv9ufkx.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
93,89 93,36 92,25 91,07 90,93 90,68 90,65 90,6 90,02 89,74 89,31 89,16 89,15 88,98 88,25 87,36 87,13 86,93 86,93 86,93 86,98 86,16 85,88 85,91 85,91 85,6 84,9 83,67 83,41 83,33 83,32 83,3 82,73 82,2 81,7 81,52 81,52 81,55 81,89 81,8 81,84 81,77 81,77 82,98 83,13 82,84 82,8 82,8 82,8 82,98 81,91 81,64 81,4 81,21 81,21 81,23 81,01 80,55 80,5 80,54 80,54 80,72 80,63 80,36 79,88 79,66 79,66 79,13 78,81 78,67 78,43 78,13 78,13 78,07 76,94 74,97 75 75,1 75,1 75,02 73,87 73,18 72,55 72,42 72,4 72,45 71,42 70,89 70,42 69,57 69,57 69,44 68,25 66,86 66,5 66,46
 
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'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.99995743816477
beta0
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
293.3693.89-0.530000000000001
392.2593.3600225577727-1.11002255777267
491.0792.2500472445972-1.18004724459722
590.9391.0700502249764-0.140050224976378
690.6890.9300059607946-0.250005960794596
790.6590.6800106407125-0.0300106407125185
890.690.650001277308-0.0500012773079561
990.0290.6000021281461-0.58000212814612
1089.7490.020024685955-0.280024685955013
1189.3189.7400119183645-0.430011918364528
1289.1689.3100183020964-0.150018302096427
1389.1589.1600063850542-0.0100063850542398
1488.9889.1500004258901-0.170000425890109
1588.2588.9800072355301-0.73000723553011
1687.3688.2500310704477-0.890031070447677
1787.1387.3600378813558-0.23003788135577
1886.9387.1300097908344-0.200009790834386
1986.9386.9300085127838-8.51278376501341e-06
2086.9386.9300000003623-3.6231995181879e-10
2186.9886.930.049999999999983
2286.1686.9799978719083-0.819997871908257
2385.8886.1600349006143-0.280034900614311
2485.9185.88001191879930.0299880812006990
2585.9185.90999872365221.27634777413732e-06
2685.685.9099999999457-0.309999999945674
2784.985.600013194169-0.700013194168918
2883.6784.9000297938462-1.23002979384623
2983.4183.6700523523254-0.260052352325417
3083.3383.4100110683054-0.0800110683053674
3183.3283.3300034054179-0.0100034054179048
3283.383.3200004257633-0.0200004257632855
3382.7383.3000008512548-0.570000851254818
3482.282.7300242602823-0.530024260282303
3581.782.2000225588052-0.500022558805242
3681.5281.7000212818778-0.180021281877757
3781.5281.5200076620361-7.66203612556637e-06
3881.5581.52000000032610.0299999996738904
3981.8981.5499987231450.340001276855034
4081.881.8899855289217-0.0899855289216731
4181.8481.80000382994930.0399961700507419
4281.7781.8399982976896-0.0699982976896081
4381.7781.770002979256-2.97925602410487e-06
4482.9881.77000000012681.20999999987320
4583.1382.97994850017940.150051499820606
4682.8483.1299936135328-0.289993613532772
4782.882.8400123426604-0.040012342660404
4882.882.8000017029987-1.70299874469038e-06
4982.882.8000000000725-7.24895699022454e-11
5082.9882.80.180000000000007
5181.9182.9799923388697-1.06999233886967
5281.6481.9100455408376-0.270045540837614
5381.481.6400114936338-0.240011493633816
5481.2181.4000102153297-0.190010215329664
5581.2181.2100080871835-8.08718347400372e-06
5681.2381.21000000034420.0199999996558091
5781.0181.2299991487633-0.219999148763307
5880.5581.0100093635675-0.460009363567536
5980.580.5500195788427-0.0500195788427362
6080.5480.5000021289250.0399978710749451
6180.5480.53999829761721.7023827894036e-06
6280.7280.53999999992760.180000000072440
6380.6380.7199923388696-0.0899923388696493
6480.3680.630003830239-0.270003830239091
6579.8880.3600114918585-0.480011491858548
6679.6679.88002043017-0.220020430170024
6779.6679.6600093644733-9.36447329991097e-06
6879.1379.6600000003986-0.530000000398573
6978.8179.1300225577727-0.320022557772688
7078.6778.8100136207474-0.140013620747368
7178.4378.6700059592366-0.240005959236640
7278.1378.4300102150941-0.300010215094105
7378.1378.1300127689853-1.27689853428592e-05
7478.0778.1300000005435-0.0600000005434822
7576.9478.0700025537101-1.13000255371013
7674.9776.9400480949825-1.97004809498250
777574.97008384886240.0299161511375843
7875.174.99999872671370.100001273286296
7975.175.09999574376234.25623771604933e-06
8075.0275.0999999998188-0.0799999998188525
8173.8775.0200034049468-1.15000340494680
8273.1873.8700489462554-0.69004894625543
8372.5573.1800293697496-0.630029369749565
8472.4272.5500268152062-0.130026815206222
8572.472.4200055341799-0.0200055341798731
8672.4572.40000085147230.0499991485277462
8771.4272.4499978719445-1.02999787194447
8870.8971.4200438385997-0.53004383859971
8970.4270.8900225596385-0.470022559638522
9069.5770.4200200050227-0.850020005022742
9169.5769.5700361784114-3.61784113920294e-05
9269.4469.5700000015398-0.130000001539813
9368.2569.4400055330386-1.19000553303863
9466.8668.2500506488194-1.39005064881943
9566.566.8600591631067-0.360059163106683
9666.4666.5000153247788-0.0400153247787784


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
9766.460001703125765.593175514082367.326827892169
9866.460001703125765.234150437877767.6858529683736
9966.460001703125764.958657303259867.9613461029915
10066.460001703125764.726404665314768.1935987409367
10166.460001703125764.521785416947768.3982179893036
10266.460001703125764.336795152998268.5832082532531
10366.460001703125764.166678843822468.7533245624289
10466.460001703125764.008338304634568.9116651016168
10566.460001703125763.859621518998869.0603818872525
10666.460001703125763.718961611390769.2010417948606
10766.460001703125763.585175714131469.33482769212
10866.460001703125763.457344854683769.4626585515676
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/26/t1233006448onydv2m3lv9ufkx/1g9uv1233006400.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/26/t1233006448onydv2m3lv9ufkx/1g9uv1233006400.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/26/t1233006448onydv2m3lv9ufkx/26avb1233006400.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/26/t1233006448onydv2m3lv9ufkx/26avb1233006400.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/26/t1233006448onydv2m3lv9ufkx/35ye51233006400.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/26/t1233006448onydv2m3lv9ufkx/35ye51233006400.ps (open in new window)


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