Home » date » 2009 » Jun » 07 »

Exponential smoothing Brutoschuld/Samira Allouch

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 07 Jun 2009 12:28:21 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/07/t12443993569d804ty2o7q3244.htm/, Retrieved Sun, 07 Jun 2009 20:29:16 +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/2009/Jun/07/t12443993569d804ty2o7q3244.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 «
260288 261544 259886 257006 259670 258873 264416 263596 262586 260237 261690 259295 264170 264451 265538 261723 266189 265073 267007 266376 267406 262742 260300 263074 265940 264771 268403 264264 264118 266817 269296 269001 266707 267507 267510 267420 270845 270671 273653 271567 268372 268160 267879 271142 271323 269478 271008 269145 271684 273582 279475 276188 278422 281084 278618 280738 288897 282129 286406 284288 286139 288275 287670 286864 288798 288316 286915 288006 293338 303730 306248 305700 314849
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.75041612949919
beta0.0902646656756738
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
3259886262800-2914
4257006261671.904516749-4665.90451674876
5259670258913.101633601756.898366398615
6258873260274.926815015-1401.92681501515
7264416259921.7737592024494.2262407981
8263596264297.610241472-701.610241472023
9262586264726.882907059-2140.88290705887
10260237263931.087174355-3694.08717435523
11261690261719.518992711-29.5189927108877
12259295262255.902381930-2960.90238192963
13264170260391.9685296363778.03147036358
14264451263840.948306046610.051693954272
15265538264953.947459094584.052540906356
16261723266086.997846907-4363.99784690654
17266189263211.3513895632977.64861043659
18265073266046.689038944-973.68903894379
19267007265850.9253229491156.07467705081
20266376267331.678596359-955.678596358513
21267406267163.004248135242.995751865325
22262742267910.294039917-5168.29403991741
23260300264246.784809956-3946.78480995598
24263074261232.5761516641841.4238483363
25265940262686.6634296653253.33657033514
26264771265420.640992233-649.640992233355
27268403265181.7571168693221.24288313149
28264264268065.841241574-3801.84124157444
29264118265422.168009842-1304.16800984152
30266817264564.4498534892252.55014651071
31269296266528.3292439822767.67075601837
32269001269066.234563773-65.2345637732651
33266707269473.863305855-2766.86330585508
34267507267666.729842166-159.729842166358
35267510267805.211911047-295.211911046703
36267420267822.029558153-402.02955815295
37270845267731.4576212623113.54237873817
38270671270489.926666867181.073333133303
39273653271060.0888357402592.91116426029
40271567273615.766603738-2048.76660373819
41268372272549.479126951-4177.47912695119
42268160269602.805456513-1442.80545651302
43267879268610.545058807-731.5450588073
44271142268102.4739550523039.52604494797
45271323270630.160954777692.83904522279
46269478271443.786366885-1965.78636688541
47271008270129.181762099878.818237901316
48269145271008.742020603-1863.74202060321
49271684269703.9982817191980.00171828072
50273582271417.7793594182164.22064058227
51279475273416.3970692006058.60293080035
52276188278747.807961977-2559.80796197668
53278422277438.433001782983.56699821842
54281084278854.6867188152229.31328118459
55278618281356.773440358-2738.77344035765
56280738279945.214028354792.785971645731
57288897281237.4939603757659.50603962463
58282129288201.496156853-6072.49615685252
59286406284449.4554443871956.54455561255
60284288286855.065008422-2567.06500842172
61286139285692.202119926446.797880073835
62288275286821.2548835371453.74511646305
63287670288804.408062844-1134.40806284419
64286864288768.529016988-1904.52901698783
65288798288025.733491716772.266508283501
66288316289343.958795330-1027.95879532956
67286915289241.636114665-2326.63611466473
68288006288007.167860659-1.16786065918859
69293338288517.6893868174820.31061318319
70303730292972.83498173810757.1650182616
71306248302611.7398670873636.26013291255
72305700307153.308808186-1453.30880818627
73314849307777.1417095357071.85829046485


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
74315277.417333265309182.784873738321372.049792793
75317470.856430298309596.334192698325345.378667898
76319664.295527331310116.569895423329212.021159239
77321857.734624364310680.154881908333035.314366821
78324051.173721397311257.166366084336845.18107671
79326244.61281843311831.253670205340657.971966655
80328438.051915463312392.677711358344483.426119568
81330631.491012496312935.31035912348327.671665872
82332824.930109529313455.157206776352194.703012282
83335018.369206562313949.559027087356087.179386036
84337211.808303594314416.728983543360006.887623646
85339405.247400627314855.469600057363955.025201198
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t12443993569d804ty2o7q3244/1qao21244399296.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t12443993569d804ty2o7q3244/1qao21244399296.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t12443993569d804ty2o7q3244/2em7f1244399296.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t12443993569d804ty2o7q3244/2em7f1244399296.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t12443993569d804ty2o7q3244/3jw2k1244399296.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t12443993569d804ty2o7q3244/3jw2k1244399296.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