Home » date » 2010 » Aug » 15 »

Exponential smoothing 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, 15 Aug 2010 16:29:17 +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/15/t128188985236qr8mcu57dcq00.htm/, Retrieved Sun, 15 Aug 2010 18:30:56 +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/15/t128188985236qr8mcu57dcq00.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
118 117 116 114 112 111 112 114 115 115 116 118 126 131 122 124 119 112 109 108 117 122 127 124 129 141 127 133 114 98 93 101 111 128 126 134 140 158 144 146 138 119 113 120 127 141 144 150 156 174 163 167 160 141 132 144 155 164 162 181 187 209 189 201 193 177 159 158 155 164 163 185 191 217 193 192 184 166 145 146 138 149 145 166
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.84931647663477
beta0
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13126122.8352029914533.16479700854697
14131131.214696490096-0.214696490095662
15122122.515597144328-0.515597144327671
16124124.019271248424-0.0192712484235642
17119118.5694831136910.43051688630861
18112111.5433741194490.4566258805513
19109116.914439924205-7.91443992420471
20108111.592488280654-3.59248828065422
21117109.0245747125237.9754252874768
22122115.4481474047596.55185259524059
23127121.6209896871255.37901031287457
24124128.172717694584-4.17271769458407
25129133.505555155625-4.50555515562456
26141134.8612581920806.13874180792021
27127131.512897905336-4.51289790533644
28133129.6963867457753.30361325422487
29114127.136554830006-13.1365548300059
3098108.591642482656-10.5916424826558
3193103.317850238475-10.3178502384745
3210196.60588951636514.39411048363492
33111102.5642198454468.43578015455383
34128109.16427056235718.8357294376428
35126125.5932838364690.406716163530916
36134126.4826724658257.51732753417475
37140141.693904830919-1.69390483091871
38158147.04150898489510.9584910151051
39144146.181614511451-2.18161451145050
40146147.522920191968-1.52292019196787
41138138.386571443670-0.386571443669823
42119131.053906422309-12.0539064223089
43113124.579445301015-11.5794453010146
44120119.0128411826670.987158817332855
45127122.6866043527524.31339564724793
46141127.3525469853813.6474530146201
47144136.5981229557957.40187704420492
48150144.5000689524285.49993104757183
49156156.609912294237-0.609912294236551
50174164.7846767552569.21532324474353
51163160.4642837747732.53571622522702
52167165.9113505565671.08864944343350
53160159.1642799626590.835720037340877
54141151.111652092507-10.1116520925071
55132146.358273048785-14.3582730487852
56144140.3251449238153.67485507618511
57155146.7828218958118.21717810418858
58164156.1707999417267.8292000582745
59162159.533732418422.46626758157998
60181162.95719205218818.0428079478118
61187184.7992546878192.20074531218125
62209196.84165807305512.1583419269451
63189194.014312630013-5.01431263001331
64201192.8309663847588.16903361524214
65193192.0592704347990.94072956520111
66177182.446240282746-5.44624028274643
67159181.015376551252-22.0153765512520
68158171.196239541506-13.1962395415060
69155164.009471113956-9.00947111395593
70164158.7081102427465.29188975725427
71163159.1079577132913.89204228670948
72185166.08947928031918.9105207196812
73191186.2813668547754.71863314522503
74217201.96269960509615.0373003949043
75193198.992864930263-5.99286493026256
76192198.964931155135-6.96493115513545
77184184.250523246669-0.250523246669303
78166172.663331333342-6.66333133334157
79145167.702076286955-22.7020762869549
80146158.628612514845-12.6286125148450
81138152.554816091799-14.5548160917989
82149144.6986818072744.30131819272563
83145144.0462865777440.953713422256499
84166150.79527427228515.2047257277148


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
85165.701285478111148.107702774827183.294868181396
86178.929858488613155.847115009698202.012601967528
87160.019697416131132.522571371952187.516823460311
88164.935128204815133.640227104706196.230029304923
89157.147901725991122.468661119518191.827142332464
90144.807178816675107.045708728532182.568648904818
91143.088426261005102.477990195951183.698862326059
92154.814114946899111.541878910730198.086350983068
93159.175760068053113.396230737292204.955289398813
94166.522579655722118.366124222187214.679035089257
95161.712575132212111.291120431875212.134029832549
96169.798951048951117.209959917021222.387942180881
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/15/t128188985236qr8mcu57dcq00/1g5m91281889754.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/15/t128188985236qr8mcu57dcq00/1g5m91281889754.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/15/t128188985236qr8mcu57dcq00/2g5m91281889754.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/15/t128188985236qr8mcu57dcq00/2g5m91281889754.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/15/t128188985236qr8mcu57dcq00/39f4u1281889754.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/15/t128188985236qr8mcu57dcq00/39f4u1281889754.ps (open in new window)


 
Parameters (Session):
 
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