Home » date » 2009 » Jun » 06 »

datareeks-cinemaprijs-seda hovhannesian

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sat, 06 Jun 2009 06:39:05 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/06/t124429211466w3822ls9n8omw.htm/, Retrieved Sat, 06 Jun 2009 14:41:58 +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/2009/Jun/06/t124429211466w3822ls9n8omw.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
5.44 5.44 5.44 5.44 5.44 5.49 5.49 5.49 5.49 5.49 5.49 5.60 5.60 5.60 5.60 5.60 5.60 5.60 5.67 5.67 5.67 5.67 5.67 5.67 5.67 5.67 5.67 5.82 5.82 5.95 5.95 5.95 5.95 5.95 5.95 6.02 6.02 6.05 6.05 6.05 6.12 6.12 6.12 6.12 6.12 6.12 6.12 6.12 6.17 6.17 6.17 6.17 6.17 6.28 6.27 6.28 6.28 6.27 6.27 6.28 6.59 6.59 6.59 6.59 6.59 6.63 6.63 6.63 6.63 6.63 6.63 6.63 6.63 6.63 6.63 6.63 6.63 6.63 6.63 6.63 6.63 6.63 6.79 6.79 6.79 6.81 6.80 6.80 6.85 6.85 6.85 6.85 6.85 6.85 6.86 6.86 6.88 6.88 6.88 6.91 6.91 6.91 6.91 6.99 6.99 6.99 7.02 7.02 7.05 7.05 7.05 7.05 7.10 7.10 7.10 7.10 7.12 7.13 7.18
 
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'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.800021697608403
beta0
gamma0.938182298582948


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
135.65.525889950899060.074110049100943
145.65.58369606619930.0163039338007014
155.65.595229004324910.00477099567508521
165.65.597533212707970.00246678729202543
175.65.597996811118680.00200318888132411
185.65.60264896463026-0.00264896463025988
195.675.651245909811360.0187540901886427
205.675.665971579425310.00402842057468789
215.675.668909942539150.00109005746084989
225.675.669496819827310.000503180172692907
235.675.66961458659470.000385413405301627
245.675.78540913247381-0.115409132473809
255.675.70846222126103-0.0384622212610317
265.675.664992211985520.00500778801447943
275.675.665111307835210.00488869216478616
285.825.666887067780910.153112932219088
295.825.787275434307310.0327245656926864
305.955.81520430304810.134795696951902
315.955.98014370904363-0.0301437090436343
325.955.95215353141279-0.00215353141279451
335.955.948889163808950.00111083619105035
345.955.948701916972530.00129808302746781
355.955.948758957180620.00124104281937587
366.026.04710204611742-0.0271020461174167
376.026.05621048990421-0.0362104899042102
386.056.021558553038410.028441446961585
396.056.039252058833790.0107479411662101
406.056.07368537555861-0.0236853755586131
416.126.028464564614470.0915354353855315
426.126.12247130456343-0.0024713045634277
436.126.14699180601871-0.0269918060187146
446.126.12641899140255-0.00641899140254765
456.126.119941262878545.87371214564314e-05
466.126.118534848688240.00146515131176095
476.126.118305240311340.00169475968865918
486.126.21391319226207-0.09391319226207
496.176.168134127050650.00186587294935325
506.176.17587698996837-0.0058769899683675
516.176.162352723437680.00764727656232367
526.176.18794569341074-0.0179456934107405
536.176.168354083342480.00164591665751601
546.286.172724229826170.107275770173833
556.276.28061659094706-0.0106165909470644
566.286.276790274830960.00320972516904305
576.286.27887819945580.00112180054420463
586.276.27820520653592-0.00820520653592283
596.276.269917199747738.28002522705873e-05
606.286.34761656413826-0.0676165641382624
616.596.341795189346480.248204810653516
626.596.544635036268210.0453649637317906
636.596.573322832225380.0166771677746222
646.596.60140796860466-0.0114079686046589
656.596.58969329221360.00030670778639319
666.636.613152671936530.0168473280634744
676.636.625829454993420.00417054500658409
686.636.63607188217895-0.00607188217894716
696.636.629542555041140.000457444958857245
706.636.625655046985840.0043449530141606
716.636.628187358231050.00181264176895457
726.636.6974052631018-0.0674052631018025
736.636.75492951073505-0.124929510735055
746.636.620661053988880.00933894601112062
756.636.614982925944390.0150170740556073
766.636.63644494323795-0.00644494323795097
776.636.63081202185839-0.00081202185839313
786.636.65655126741056-0.0265512674105643
796.636.63211560629388-0.00211560629387808
806.636.63540589045668-0.00540589045668405
816.636.63063226754273-0.00063226754272705
826.636.6266015603580.00339843964199371
836.796.627902859515530.162097140484475
846.796.81305631113353-0.0230563111335300
856.796.89705711743291-0.107057117432912
866.816.801659880980650.00834011901935128
876.86.79555338587720.00444661412279768
886.86.80432465670647-0.00432465670646565
896.856.801112415697420.0488875843025749
906.856.86202239722673-0.0120223972267288
916.856.85338976835674-0.00338976835674210
926.856.85474010811502-0.00474010811502357
936.856.85096214536677-0.000962145366766087
946.856.846886566042980.00311343395702046
956.866.87762543910154-0.0176254391015398
966.866.88432842658235-0.024328426582346
976.886.9520991608042-0.0720991608041954
986.886.9062923434223-0.0262923434223046
996.886.871448986900640.00855101309935957
1006.916.881743284357440.0282567156425646
1016.916.91447689719075-0.00447689719075051
1026.916.92123518754496-0.011235187544961
1036.916.9147531730619-0.00475317306189993
1046.996.914673138620540.0753268613794598
1056.996.975427607215910.0145723927840855
1066.996.984225433586310.00577456641369167
1077.027.013417121557860.00658287844214289
1087.027.03835766823982-0.0183576682398172
1097.057.10336775614203-0.0533677561420314
1107.057.08130525442563-0.0313052544256349
1117.057.048455030233650.00154496976635166
1127.057.05666647299218-0.00666647299217793
1137.17.055123883742820.0448761162571767
1147.17.099979114730982.0885269019999e-05
1157.17.10344992850955-0.00344992850954551
1167.17.11945656199515-0.0194565619951472
1177.127.092579148996690.0274208510033080
1187.137.109685118235110.0203148817648904
1197.187.150879957375460.0291200426245446


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
1207.189198581202887.095056000118937.28334116228684
1217.263698978820367.142137159357367.38526079828335
1227.288788371415377.145157085341497.43241965748926
1237.286633092573697.124245436296397.44902074885099
1247.291795646978527.112542443820397.47104885013665
1257.305210594020367.110412473915627.5000087141251
1267.305372933160677.096484271131017.51426159519033
1277.307866989233887.08576792747367.52996605099415
1287.323689256563067.088799660574367.55857885255175
1297.320653754604437.07417011240997.56713739679895
1307.313927744245877.05653194944217.57132353904964
1317.340844003772270.36939301929725414.3122949882473
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t124429211466w3822ls9n8omw/1d03w1244291941.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t124429211466w3822ls9n8omw/1d03w1244291941.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t124429211466w3822ls9n8omw/2zyqh1244291941.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t124429211466w3822ls9n8omw/2zyqh1244291941.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t124429211466w3822ls9n8omw/3ezkd1244291941.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/06/t124429211466w3822ls9n8omw/3ezkd1244291941.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=0, beta=0)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=0)
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