Home » date » 2008 » Apr » 27 » attachments

test

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 27 Apr 2008 15:45:34 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Apr/27/t1209332797uek53m1r4zj46e7.htm/, Retrieved Sun, 27 Apr 2008 23:46:38 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
13328 12873 14000 13477 14237 13674 13529 14058 12975 14326 14008 16193 14483 14011 15057 14884 15414 14440 14900 15074 14442 15307 14938 17193 15528 14765 15838 15723 16150 15486 15986 15983 15692 16490 15686 18897 16316 15636 17163 16534 16518 16375 16290 16352 15943 16362 16393 19051 16747 16320 17910 16961 17480 17049 16879 17473 16998 17307 17418 20169 17871 17226 19062 17804 19100 18522 18060 18869 18127 18871 18890 21263 19547 18450 20254 19240 20216 19420 19415 20018 18652 19978 19509 21971
 
Text written by user:
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.283890683571533
beta0
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
21287313328-455
31400013198.8297389750801.170261025047
41347713426.274512034550.7254879654629
51423713440.6750054876796.324994512448
61367413666.74425252487.25574747521205
71352913668.8040916353-139.804091635348
81405813629.1150124949428.884987505109
91297513750.8714647713-775.871464771284
101432613530.6087842737795.391215726282
111400813756.4129402130251.587059786954
121619313827.83616259372365.16383740628
131448314499.2841411537-16.2841411536556
141401114494.6612251902-483.66122519017
151505714357.3543093539699.645690646114
161488414555.9772027293328.022797270711
171541414649.0998188735764.900181126482
181444014866.2478541575-426.247854157504
191490014745.2400594698154.759940530170
201507414789.1749647764284.82503522357
211444214870.0341387243-428.034138724335
221530714748.5192344899558.480765510069
231493814907.066720772130.9332792278619
241719314915.84839055722277.15160944276
251552815562.3105175580-34.3105175579658
261476515552.5700812747-787.570081274742
271583815328.9862725412509.013727458832
281572315473.4905275767249.509472423251
291615015544.3239422606605.676057739442
301548615716.2697323151-230.269732315121
311598615650.8983006023335.101699397654
321598315746.0305511103236.969448889671
331569215813.3039699412-121.303969941187
341649015778.8669029946711.133097005357
351568615980.7509640138-294.750964013836
361889715897.07391135662999.92608864342
371631616748.7249793256-432.724979325634
381563616625.8783891464-989.8783891464
391716316344.8611365989818.138863401058
401653416577.1231377863-43.1231377863041
411651816564.8808807224-46.8808807224013
421637516551.5718354477-176.571835447685
431629016501.4447363830-211.444736382960
441635216441.4175456336-89.417545633598
451594316416.0327374804-473.032737480386
461636216281.743150285480.2568497146349
471639316304.527322212288.4726777878495
481905116329.64389118672721.35610881325
491674717102.2115371593-355.211537159306
501632017001.3702910627-681.370291062656
511791016807.93561336751102.06438663246
521696117120.8014254285-159.801425428472
531748017075.4352895279404.564710472121
541704917190.2874417327-141.287441732729
551687917150.1772533192-271.177253319151
561747317073.1925575053399.807442494675
571699817186.6941656521-188.694165652123
581730717133.1256499792173.874350020818
591741817182.4869580621235.513041937851
602016917249.34691652792919.65308347211
611787118078.2092261865-207.209226186525
621722618019.3844573221-793.384457322103
631906217794.15000139791267.84999860210
641780418154.0808041672-350.080804167217
651910018054.69612536691045.30387463309
661852218351.4481568765170.551843123529
671806018399.8662362052-339.866236205195
681886918303.381378086565.618621913982
691812718463.9552353020-336.955235301968
701887118368.2967832191502.703216780916
711889018511.0095430646378.990456935375
722126318618.60140295112644.39859704890
731954719369.3215283029177.678471697087
741845019419.7627910889-969.762791088946
752025419144.45616942451109.54383057553
761924019459.4453259391-219.445325939130
772021619397.1468423517818.853157648307
781942019629.6116250212-209.611625021178
791941519570.1048375094-155.104837509374
802001819526.0720191636491.927980836415
811865219665.7257899112-1013.72578991120
821997819377.9384824592600.061517540784
831950919548.2903568588-39.2903568588408
842197119537.13619059242433.86380940758


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8520228.087451165118517.586573958821938.5883283715
8620228.087451165118449.994087293722006.1808150366
8720228.087451165118384.878626760522071.2962755698
8820228.087451165118321.986317939822134.1885843905
8920228.087451165118261.103900191022195.0710021393
9020228.087451165118202.050173738422254.1247285919
9120228.087451165118144.669631993422311.5052703369
9220228.087451165118088.827633152822367.3472691775
9320228.087451165118034.406679338522421.7682229918
9420228.087451165117981.303507746922474.8713945834
9520228.087451165117929.426787186722526.7481151436
9620228.087451165117878.695272783422577.4796295469
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/27/t1209332797uek53m1r4zj46e7/1ck471209332726.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/27/t1209332797uek53m1r4zj46e7/1ck471209332726.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/27/t1209332797uek53m1r4zj46e7/2zhq11209332726.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/27/t1209332797uek53m1r4zj46e7/2zhq11209332726.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/27/t1209332797uek53m1r4zj46e7/3vls71209332726.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/27/t1209332797uek53m1r4zj46e7/3vls71209332726.ps (open in new window)


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