Home » date » 2010 » Aug » 19 »

Exponential Smoothing aantal stuks 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: Thu, 19 Aug 2010 15:17:53 +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/19/t12822310458fkkprli1bx53s5.htm/, Retrieved Thu, 19 Aug 2010 17:17:26 +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/19/t12822310458fkkprli1bx53s5.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:
Sebastien Delforge
 
Dataseries X:
» Textbox « » Textfile « » CSV «
152 151 150 148 146 145 146 148 149 149 150 152 154 164 167 162 164 172 169 174 181 181 172 181 183 200 199 190 197 194 190 195 204 197 185 193 192 211 210 197 191 182 170 166 175 163 153 171 165 184 179 163 163 148 132 127 130 118 113 137 133 155 151 132 134 118 102 98 91 77 74 102 98 113 114 96 102 90 72 67 62 48 43 75
 
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.68474816558974
beta0.0484142369247786
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13154144.8359672674619.16403273253883
14164161.1343271508742.86567284912621
15167165.9741541614451.0258458385552
16162161.3634381485730.63656185142682
17164163.9029574861570.0970425138432347
18172172.206012609827-0.20601260982744
19169167.9355587614241.06444123857591
20174172.6233734332261.37662656677364
21181175.6951058788695.30489412113099
22181180.3633709042790.63662909572102
23172183.005512855122-11.0055128551225
24181177.8744547272013.12554527279937
25183185.769098014831-2.76909801483075
26200193.0815774670396.91842253296088
27199200.299674096934-1.29967409693418
28190192.590318968473-2.59031896847293
29197192.6935893624584.30641063754163
30194205.047316652563-11.0473166525628
31190192.661589180187-2.66158918018743
32195194.7893312342930.210668765707368
33204198.0129618475785.98703815242203
34197200.989829140711-3.98982914071127
35185195.771548158604-10.7715481586036
36193195.193438722546-2.19343872254629
37192197.012799544763-5.0127995447634
38211205.5703871010345.42961289896593
39210208.2222960835061.77770391649355
40197201.007652023794-4.00765202379412
41191201.621407359169-10.6214073591685
42182197.49976665005-15.4997666500497
43170183.481191098833-13.4811910988334
44166177.111132856874-11.1111328568743
45175171.8340635445593.16593645544128
46163168.481072611454-5.48107261145361
47153158.914898331573-5.91489833157252
48171161.0016977332869.99830226671415
49165168.459043447272-3.45904344727165
50184177.7367992565416.26320074345924
51179178.6456720622480.354327937751975
52163168.737820776871-5.73782077687088
53163164.31916293143-1.31916293143036
54148163.330836659677-15.3308366596767
55132149.048683472034-17.0486834720345
56127138.675541179729-11.6755411797294
57130134.398375136249-4.39837513624875
58118123.375456794781-5.3754567947815
59113113.519716842537-0.519716842537136
60137119.55280426332917.4471957366711
61133127.2896501964545.71034980354649
62155141.63468846599613.3653115340036
63151145.5667098398365.43329016016389
64132138.481315791507-6.48131579150703
65134134.017262240619-0.0172622406192886
66118129.320401850065-11.3204018500655
67102116.977404334652-14.9774043346518
6898108.210193541373-10.2101935413729
6991105.132757856971-14.1327578569713
707788.0546121733445-11.0546121733445
717475.7623205168778-1.76232051687779
7210280.335634883940721.6643651160593
739888.23900674836249.76099325163764
74113102.60076199288410.3992380071156
75114102.98852448910211.011475510898
769698.9267959768588-2.92679597685881
7710297.54815847209424.45184152790577
789093.5835723365682-3.58357233656815
797285.8936956684969-13.8936956684969
806777.8467294371392-10.8467294371392
816271.2022309296126-9.20223092961255
824859.3055385324514-11.3055385324514
834349.3224024174947-6.32240241749469
847550.676745404642824.3232545953572


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8559.040604957536241.781782292473376.2994276225991
8662.071246441517340.061169047448684.081323835586
8756.521413362116831.510145694935881.5326810292978
8846.736206792240620.541269586936972.9311439975443
8946.258661349603415.778613253823476.7387094453834
9040.06745475834058.3377079293527771.7972015873281
9134.39630699599111.7036509617652167.088963030217
9233.9067363299783-3.4596697004516171.2731423604082
9333.1087477135537-9.0170487350971375.2345441622046
9428.4635178206857-14.033265944999370.9603015863707
9527.2522466805133-19.929781309474174.4342746705008
9635.127576383553-32.0373669776888102.292519744795
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/19/t12822310458fkkprli1bx53s5/1jtzh1282231068.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t12822310458fkkprli1bx53s5/1jtzh1282231068.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t12822310458fkkprli1bx53s5/2jtzh1282231068.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t12822310458fkkprli1bx53s5/2jtzh1282231068.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t12822310458fkkprli1bx53s5/3t2y21282231068.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t12822310458fkkprli1bx53s5/3t2y21282231068.ps (open in new window)


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