Home » date » 2011 » May » 19 »

exponential smooting US Airlines

*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 May 2011 08:27:12 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/19/t1305793422gcgqtxxo271q6tq.htm/, Retrieved Thu, 19 May 2011 10:23:43 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6827 6178 7084 8162 8462 9644 10466 10748 9963 8194 6848 7027 7269 6775 7819 8371 9069 10248 11030 10882 10333 9109 7685 7602 8350 7829 8829 9948 10638 11253 11424 11391 10665 9396 7775 7933 8186 7444 8484 9948 10252 12282 11637 11577 12417 9637 8094 9280 8334 7899 9994 10078 10801 12950 12222 12246 13281 10366 8730 9614 8639 8772 10894 10455 11179 10588 10794 12770 13812 10857 9290 10925 9491 8919 11607 8852 12537 14759 13667 13731 15110 12185 10645 12161 10840 10436 13589 13402 13103 14933 14147 14057 16234 12389 11595 12772
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.120618354224454
beta0
gamma0.444031255824324


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1372697028.04555893714240.954441062862
1467756589.60133762837185.398662371631
1578197651.76756439805167.232435601953
1683718204.9718412555166.028158744501
1790698881.74618834833187.253811651666
181024810045.4986564522202.501343547778
191103010965.443824089964.5561759100929
201088211266.6213746771-384.621374677072
211033310383.7901131434-50.7901131433737
2291098537.60367918035571.396320819646
2376857199.13792787709485.862072122906
2476027439.3413446404162.658655359601
2583507811.81173514451538.188264855487
2678297334.10759647993494.892403520066
2788298531.70250674818297.297493251821
2899489152.55924664116795.440753358836
29106389984.98032679143653.019673208571
301125311343.2792317032-90.27923170318
311142412265.7510932665-841.751093266523
321139112288.1771235432-897.177123543206
331066511397.9005365729-732.900536572924
3493969559.71015530468-163.710155304678
3577757978.7111309595-203.711130959495
3679338010.66540394782-77.6654039478235
3781868528.28931383278-342.289313832784
3874447896.39580195039-452.395801950387
3984848936.3393618554-452.339361855402
4099489674.77925484802273.220745151981
411025210396.4340258043-144.434025804298
421228211373.7551472545908.24485274554
431163712130.112944568-493.112944567951
441157712170.7395779461-593.739577946071
451241711361.42212824071055.5778717593
4696379894.75711420503-257.757114205033
4780948220.57368637548-126.573686375483
4892808313.93932571252966.060674287484
4983348875.68319024482-541.683190244825
5078998138.88375700173-239.883757001729
5199949264.54938107381729.450618926187
521007810505.2105270501-427.210527050149
531080111010.4108378166-209.410837816557
541295012474.1971982292475.802801770838
551222212632.9488724434-410.948872443438
561224612643.2223261401-397.222326140136
571328112487.834995547793.165004452952
581036610353.078279302312.92172069765
5987308664.0533829256465.9466170743617
6096149233.23078732424380.769212675757
6186399124.33509691525-485.335096915247
6287728479.89391555331292.106084446692
631089410138.247229165755.752770834988
641045510969.9547417632-514.954741763173
651117911585.3784954611-406.378495461136
661058813390.9502407925-2802.95024079251
671079412799.4909429901-2005.4909429901
681277012622.3394092947147.660590705334
691381212999.9830083534812.016991646606
701085710521.9073662575335.092633742499
7192908859.06189099036430.938109009641
72109259610.277766905271314.72223309473
7394919255.43619720476235.563802795235
7489198986.46215097725-67.4621509772496
751160710851.0505378656755.949462134431
76885211193.4179729864-2341.41797298642
771253711643.1123415451893.887658454852
781475912668.98649902442090.01350097557
791366712963.5412770187703.458722981279
801373114046.1055865017-315.105586501653
811511014682.9948203013427.005179698723
821218511695.7616546418489.238345358208
83106459918.86907658675726.130923413251
841216111144.12933239471016.8706676053
851084010238.667075591601.332924409033
86104369850.52478860235585.475211397654
871358912345.55554337911243.44445662094
881340211399.30412052812002.69587947186
891310313953.0351718078-850.035171807769
901493315410.2747374316-477.274737431553
911414714787.2270003629-640.227000362882
921405715366.6920823981-1309.69208239809
931623416259.4499723878-25.4499723878071
941238912962.7672731057-573.767273105737
951159511006.1988737279588.801126272117
961277212416.299652881355.700347119044


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
9711183.351853701210399.470332160311967.2333752422
9810684.39818132089880.9673364328211487.8290262088
9913498.478165348912651.166745277414345.7895854204
10012648.294644049611791.226912075613505.3623760236
10113864.963652749912971.270926126314758.6563793735
10215611.95056905514668.75854780516555.1425903049
10314961.569870366314014.605818954915908.5339217777
10415363.327441697614390.69267789916335.9622054962
10516983.354933898115954.496726890318012.2131409059
10613313.321771628812361.224413795614265.4191294619
10711803.587734272810871.24468032312735.9307882226
10813104.096191531612508.928921976713699.2634610865
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/19/t1305793422gcgqtxxo271q6tq/1uaat1305793628.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305793422gcgqtxxo271q6tq/1uaat1305793628.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t1305793422gcgqtxxo271q6tq/2zyid1305793628.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305793422gcgqtxxo271q6tq/2zyid1305793628.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t1305793422gcgqtxxo271q6tq/3aj1h1305793628.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305793422gcgqtxxo271q6tq/3aj1h1305793628.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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