Home » date » 2010 » Aug » 08 »

Omzet product Y

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 08 Aug 2010 13:53:04 +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/08/t1281275568m51iu1mbxzk8how.htm/, Retrieved Sun, 08 Aug 2010 15:52:49 +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/08/t1281275568m51iu1mbxzk8how.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:
Philippe De Vocht
 
Dataseries X:
» Textbox « » Textfile « » CSV «
31 30 29 27 25 24 25 27 28 28 29 31 31 27 25 16 20 21 25 24 28 27 23 36 37 30 27 22 22 25 33 35 35 29 25 34 31 29 21 19 18 25 23 22 20 15 17 25 26 26 23 24 24 42 40 45 47 40 39 49 55 54 48 44 48 62 57 60 56 57 54 62 65 68 69 67 72 82 72 77 79 78 76 79
 
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.520658832476646
beta0.067876565022126
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
133133.4532585470086-2.45325854700855
142727.9437063932419-0.94370639324185
152525.1867648143938-0.186764814393758
161615.7339978528040.266002147196016
172019.77636866650640.223631333493614
182120.55458199235820.445418007641752
192521.63067848553873.36932151446134
202425.2648714500169-1.26487145001688
212825.60819635146232.39180364853766
222727.2732623898035-0.273262389803502
232328.5827476842845-5.58274768428446
243627.59717195164748.40282804835264
253730.80598902473656.19401097526351
263030.9832039372543-0.983203937254345
272729.0280343300292-2.02803433002919
282219.22805598650272.77194401349728
292225.0378508230883-3.03785082308835
302524.59198695420780.408013045792174
313327.41656444674485.5834355532552
323530.4268528484164.57314715158404
333536.2135641724589-1.21356417245894
342935.2475476858376-6.2475476858376
352531.2138392076751-6.21383920767513
363436.8936647030592-2.89366470305916
373133.0529844221037-2.05298442210366
382925.09543887771113.90456112228889
392124.9564784361836-3.95647843618357
401916.15729495307622.8427050469238
411818.9255881332673-0.925588133267304
422521.01241521648473.98758478351532
432328.0892037074708-5.08920370747081
442224.588920918756-2.588920918756
452023.1502235058481-3.15022350584807
461517.9718243487919-2.97182434879194
471714.98452548068812.01547451931187
482526.156057971405-1.156057971405
492623.30000439298452.69999560701545
502620.51776330913025.48223669086979
512317.33279619387875.66720380612129
522417.04418496759016.95581503240989
532420.53385518509873.46614481490132
544227.803717090430514.1962829095695
554036.74701110080033.25298889919974
564539.98560564456575.01439435543433
574743.70224386144773.29775613855232
584043.6600891697468-3.66008916974681
593944.3742660117104-5.37426601171036
604951.5860705744426-2.58607057444264
615551.1913479564253.80865204357505
625451.71667626581762.28332373418243
634848.2384728670048-0.238472867004774
644446.5676372155521-2.56763721555208
654844.16446531554883.83553468445121
666257.52147468337594.47852531662414
675756.56755475208970.432445247910273
686059.49023667149910.509763328500867
695660.1877617203679-4.18776172036789
705752.7976002848944.20239971510598
715456.9462163685593-2.94621636855931
726267.0069523359699-5.00695233596994
736568.5797238562198-3.57972385621977
746864.42866100410633.57133899589368
756960.3593770076458.64062299235505
766762.45595246972324.54404753027679
777267.33707245909544.66292754090463
788281.97455012879290.0254498712070728
797277.1467373538709-5.14673735387088
807777.3885519880273-0.388551988027331
817975.52181882476993.47818117523011
827876.57084128712961.42915871287043
837676.1770043950383-0.177004395038267
847987.1177103046535-8.11771030465347


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8588.07098258743579.931872290918296.2100928839519
8689.654057753691380.341495271033498.9666202363492
8786.471552408872675.988775925145196.9543288926002
8882.116601038452670.45877366913493.7744284077712
8984.539164678356371.696333892297397.3819954644154
9094.211481682313480.1703219083436108.252641456283
9186.575844236214471.320746443016101.830942029413
9291.644703994623675.158488560029108.130919429218
9391.714046613145373.9784464277438109.449646798547
9489.727310097697170.7233071895595108.731313005835
9587.526329359986867.2343947243994107.818263995574
9694.466002719898372.8662702628845116.065735176912
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/08/t1281275568m51iu1mbxzk8how/16qn51281275579.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/08/t1281275568m51iu1mbxzk8how/16qn51281275579.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/08/t1281275568m51iu1mbxzk8how/2hz4q1281275579.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/08/t1281275568m51iu1mbxzk8how/2hz4q1281275579.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/08/t1281275568m51iu1mbxzk8how/3hz4q1281275579.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/08/t1281275568m51iu1mbxzk8how/3hz4q1281275579.ps (open in new window)


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