Home » date » 2010 » Aug » 14 »

exponential smoothing - verkocht aantal producten - mattias debbaut

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sat, 14 Aug 2010 11:49:27 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Aug/14/t12817865605vas2ug2ze3kquu.htm/, Retrieved Sat, 14 Aug 2010 13:49:21 +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/2010/Aug/14/t12817865605vas2ug2ze3kquu.htm/},
    year = {2010},
}
@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 = {2010},
    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:
mattias debbaut
 
Dataseries X:
» Textbox « » Textfile « » CSV «
376 375 374 372 370 369 370 372 373 373 374 376 371 374 369 363 357 366 362 366 361 362 358 363 360 360 348 345 332 333 323 327 332 337 336 337 343 337 326 321 309 302 293 287 292 292 289 302 310 295 276 264 257 243 227 226 226 229 224 240 244 226 208 199 193 180 167 164 166 173 169 191 193 166 143 147 139 129 115 108 106 116 108 135
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.999933983418648
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
2375376-1
3374375.000066016581-1.00006601658134
4372374.00006602094-2.00006602093953
5370372.000132037521-2.00013203752115
6369370.000132041879-1.0001320418794
7370369.0000660252980.999933974701719
8372369.9999339877772.00006601222259
9373371.9998679624791.00013203752059
10373372.9999339747026.602529799693e-05
11374372.9999999956411.00000000435875
12376373.9999339834182.00006601658163
13371375.999867962479-4.99986796247913
14374371.000330074192.99966992580988
15369373.999801972046-4.99980197204633
16363369.000330069834-6.00033006983364
17357363.000396121278-6.00039612127819
18366357.0003961256398.9996038743613
19362365.999405876919-3.99940587691867
20366362.0002640271033.99973597289659
21361365.999735951105-4.99973595110475
22362361.0003300654750.999669934524832
23358361.999934005208-3.99993400520844
24363358.0002640619694.99973593803134
25360362.999669934526-2.99966993452568
26360360.000198027954-0.000198027954240843
27348360.000000013073-12.0000000130731
28345348.000792198977-3.00079219897708
29332345.000198102042-13.0001981020423
30333332.0008582286360.999141771364407
31323332.999934040076-9.99993404007597
32327323.0006601614593.99933983854095
33332326.9997359772565.00026402274381
34337331.9996698996635.00033010033661
35336336.999669895301-0.999669895301167
36337336.0000659947890.99993400521106
37343336.9999339877756.00006601222458
38337342.999603896154-5.99960389615399
39326337.000396073339-11.0003960733387
40321326.000726208542-5.00072620854229
41309321.000330130849-12.0003301308486
42302309.00079222077-7.00079222077034
43293302.000462168369-9.00046216836915
44287293.000594179743-6.00059417974296
45292287.0003961387144.99960386128618
46292291.9996699432450.000330056755046826
47289291.999999978211-2.99999997821078
48302289.00019804974312.9998019502574
49310301.9991417975178.00085820248302
50295309.999471810694-14.9994718106936
51276295.000990213851-19.000990213851
52264276.001254380416-12.0012543804162
53257264.000792281786-7.00079228178612
54243257.000462168373-14.0004621683732
55227243.00092426265-16.0009242626497
56226227.001056326318-1.00105632631829
57226226.000066086316-6.60863163943759e-05
58229226.0000000043632.99999999563721
59224228.999801950256-4.99980195025623
60240224.00033006983215.9996699301678
61244239.9989437564884.00105624351156
62226243.999735863945-17.999735863945
63208226.001188281027-18.001188281027
64199208.001188376911-9.00118837691059
65193199.000594227685-6.00059422768476
66180193.000396138717-13.000396138717
67167180.000858241709-13.0008582417093
68164167.000858272216-3.00085827221577
69166164.0001981064041.99980189359576
70173165.9998679799167.00013202008441
71169172.999537875215-3.99953787521503
72191169.00026403581821.9997359641825
73193190.9985476526412.00145234735899
74166192.999867870958-26.9998678709583
75143166.001782438974-23.0017824389738
76147143.0015184990423.99848150095838
77139146.999736033921-7.9997360339207
78129139.000528115225-10.0005281152247
79115129.000660200678-14.0006602006779
80108115.000924275723-7.00092427572312
81106108.000462177087-2.00046217708699
82116106.0001320636749.99986793632594
83108115.999339842905-7.99933984290487
84135108.0005280890726.9994719109305


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
85134.998217587166117.2613133139152.735121860432
86134.998217587166109.915274968125160.081160206207
87134.998217587166104.278350275259165.718084899073
88134.99821758716699.5261654208157170.470269753517
89134.99821758716695.3393885307834174.657046643549
90134.99821758716691.5542426383371178.442192535995
91134.99821758716688.0734352585758181.922999915756
92134.99821758716684.8335743230435185.162860851289
93134.99821758716681.7906272353397188.205807938993
94134.99821758716678.9125339568592191.083901217473
95134.99821758716676.1750916458327193.8213435285
96134.99821758716673.5594970378166196.436938136516
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/14/t12817865605vas2ug2ze3kquu/199ff1281786562.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/14/t12817865605vas2ug2ze3kquu/199ff1281786562.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/14/t12817865605vas2ug2ze3kquu/210wi1281786562.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/14/t12817865605vas2ug2ze3kquu/210wi1281786562.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/14/t12817865605vas2ug2ze3kquu/310wi1281786562.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/14/t12817865605vas2ug2ze3kquu/310wi1281786562.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Single ; par3 = additive ;
 
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=F, beta=F)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=F)
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