Home » date » 2010 » May » 28 »

Exponential Smoothing - Consumptie wijn - Veronika Kaplova

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 28 May 2010 15:27:14 +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/May/28/t127506050844ypym524i49at8.htm/, Retrieved Fri, 28 May 2010 17:28:32 +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/May/28/t127506050844ypym524i49at8.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:
KDGP2W62
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2550 2867 3458 2961 3163 2880 3331 3062 3534 3622 4464 5411 2564 2820 3508 3088 3299 2939 3320 3418 3604 3495 4163 4882 2211 3260 2992 2425 2707 3244 3965 3315 3333 3583 4021 4904 2252 2952 3573 3048 3059 2731 3563 3092 3478 3478 4308 5029 2075 3264 3308 3688 3136 2824 3644 4694 2914 3686 4358 5587 2265 3685 3754 3708 3210 3517 3905 3670 4221 4404 5086 5725 2367 3819 4067 4022 3937 4365 4290
 
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'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.0219538867872071
beta0.849748700445273
gamma0.31528236748219


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1325642540.4360262156723.5639737843312
1428202786.8909846354733.1090153645282
1535083455.5698982385652.4301017614375
1630883050.5697308132437.4302691867629
1732993283.3981959532715.6018040467293
1829392961.14590175454-22.1459017545403
1933203366.75875814298-46.7587581429775
2034183100.59931681039317.400683189611
2136043599.568379451714.43162054829372
2234953694.90035916793-199.900359167934
2341634546.02210889468-383.022108894679
2448825493.2020492742-611.202049274198
2522112599.88516127479-388.885161274794
2632602829.75306104031430.246938959695
2729923514.04923030427-522.049230304274
2824253070.94469955403-645.944699554028
2927073249.40172859017-542.401728590168
3032442870.35214456770373.647855432297
3139653232.17887781673732.821122183275
3233153080.69145459866234.308545401342
3333333443.40913219231-110.409132192313
3435833446.36955696997136.630443030027
3540214185.26716669707-164.267166697068
3649044995.02349954517-91.0234995451665
3722522332.71711674191-80.7171167419096
3829522791.13887019654160.861129803455
3935733144.28423347904428.715766520959
4030482716.65581452568331.34418547432
4130592963.7953380331595.2046619668545
4227312920.88139677717-189.881396777173
4335633399.23070619969163.769293800309
4430923106.31236676567-14.3123667656746
4534783367.92849927736110.07150072264
4634783470.472162212197.52783778780577
4743084130.19080414777177.809195852225
4850295002.9438100443726.0561899556269
4920752341.88088511256-266.880885112562
5032642893.34757275042370.652427249584
5133083364.69995854097-56.6999585409685
5236882896.39343174623791.60656825377
5331363106.5965199780829.4034800219247
5428242987.66349368554-163.663493685535
5536443624.4788930947419.5211069052552
5646943273.897667484181420.10233251582
5729143673.86917067579-759.869170675788
5836863763.76039016466-77.760390164658
5943584570.98991837248-212.989918372482
6055875498.1726415829588.8273584170529
6122652496.17060320570-231.170603205705
6236853347.35915372792337.640846272082
6337543747.338986838116.66101316189406
6437083539.20744667407168.792553325934
6532103504.03572867123-294.035728671233
6635173298.69945035517218.300549644833
6739054100.03008792936-195.030087929355
6836704190.1011634476-520.1011634476
6942213806.95905597092414.040944029085
7044044159.40935432775244.590645672249
7150865015.0592087368770.9407912631259
7257256160.50026357569-435.500263575693
7323672694.56000863673-327.560008636734
7438193825.67730976688-6.67730976687517
7540674131.41753902044-64.4175390204364
7640223939.8592312912482.1407687087567
7739373725.88583305532211.11416694468
7843653679.12360994954685.876390050455
7942904429.40676732055-139.406767320545


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
804422.695235934884191.146011141114654.24446072865
814343.325221246944110.125783009334576.52465948454
824668.346783570594430.889424595684905.8041425455
835544.8396805935296.08007436695793.59928681909
846629.075019322796356.606151705446901.54388694014
852859.887054687802615.759142603113104.01496677250
864241.301544290763969.004975761374513.59811282014
874575.151674628034278.0080729424872.29527631407
884428.691913070644114.49053088674742.89329525458
894244.567645489173914.141749755144574.9935412232
904357.916900517633997.350647224944718.48315381033
914886.560187859834536.789101489625236.33127423003
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/28/t127506050844ypym524i49at8/1q5qv1275060432.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/28/t127506050844ypym524i49at8/1q5qv1275060432.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/28/t127506050844ypym524i49at8/2q5qv1275060432.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/28/t127506050844ypym524i49at8/2q5qv1275060432.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/28/t127506050844ypym524i49at8/3je8g1275060432.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/28/t127506050844ypym524i49at8/3je8g1275060432.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