Home » date » 2008 » Apr » 29 » attachments

exponential smoothing double

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 29 Apr 2008 06:09:24 -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/29/t12094710117s6ilyidti6b0ya.htm/, Retrieved Tue, 29 Apr 2008 14:10:20 +0200
 
User-defined keywords:
exponential,smoothing,double
 
Dataseries X:
» Textbox « » Textfile « » CSV «
56421 53152 53536 52408 41454 38271 35306 26414 31917 38030 27534 18387 50556 43901 48572 43899 37532 40357 35489 29027 34485 42598 30306 26451 47460 50104 61465 53726 39477 43895 31481 29896 33842 39120 33702 25094 51442 45594 52518 48564 41745 49585 32747 33379 35645 37034 35681 20972 58552 54955 65540 51570 51145 46641 35704 33253 35193 41668 34865 21210 56126 49231 59723 48103 47472 50497 40059 34149 36860 46356 36577
 
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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.580952155659036
beta0
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
35353653152384
45240853375.0856277731-967.085627773064
54145452813.2551476114-11359.2551476114
63827146214.0713829256-7943.07138292557
73530641599.5269404614-6293.52694046136
82641437943.2888977021-11529.2888977021
93191731245.3236593663671.676340633712
103803031635.53547736266394.46452263738
112753435350.413426074-7816.41342607403
121838730809.4511966741-12422.4511966741
135055623592.601395397126963.3986046029
144390139257.0459386354643.954061365
154857241954.96106136656617.03893863347
164389945799.1440968454-1900.14409684543
173753244695.2512877203-7163.25128772028
184035740533.7450105918-176.745010591818
193548940431.0646156865-4942.06461568653
202902737559.9615237972-8532.9615237972
213448532602.71913239161882.28086760840
224259833696.23425998458901.76574001554
233030638867.7342558182-8561.73425581824
242645133893.7762837208-7442.77628372082
254746029569.879357605317890.1206423947
265010439963.183509804710140.8164901953
276146545854.512709926415610.4872900736
285372654923.4589519826-1197.45895198263
293947754227.7925925151-14750.7925925151
304389545658.2878382141-1763.28783821412
313148144633.9019675563-13152.9019675563
322989636992.6952163325-7096.69521633247
333384232869.854832349972.14516765104
343912033434.62466310935685.37533689065
353370236737.5557208067-3035.55572080669
362509434974.0430811809-9880.04308118093
375144229234.210755164722207.7892448353
384559442135.87378937333458.12621062667
395251844144.87966597798373.1203340221
404856449009.2619736206-445.261973620552
414174548750.5860702127-7005.5860702127
424958544680.67574106774904.32425893228
433274747529.8534913453-14782.8534913453
443337938941.7228887566-5562.72288875656
453564535710.0470351996-65.0470351995755
463703435672.25781988121361.74218011885
473568136463.3648748730-782.364874873034
482097236008.8483143036-15036.8483143036
495855227273.15887179131278.841128209
505495545444.66905174059510.33094825948
516554050969.716317162714570.2836828373
525157059434.3540312707-7864.3540312707
535114554865.5406039382-3720.54060393816
544664152704.0845198633-6063.08451986332
553570449181.7224981058-13477.7224981058
563325341351.8105594569-8098.81055945695
573519336646.7891066663-1453.78910666627
584166835802.20719127495865.79280872512
593486539209.952168153-4344.95216815301
602121036685.7428398291-15475.7428398291
615612627695.076676605528430.9233233945
624923144212.08286870835018.9171312917
635972347127.833595206312595.1664047937
644810354445.0226689555-6342.02266895545
654747250760.6109281873-3288.61092818731
665049748850.0853203331646.91467966697
674005949806.8639536721-9747.86395367207
683414944143.8213767153-9994.82137671526
693686038337.3083524855-1477.30835248552
704635637479.06288053608876.93711946404
713657742636.1386357383-6059.1386357383


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7239116.068983869218610.572225818459621.56574192
7339116.068983869215401.345340927362830.792626811
7439116.068983869212577.402144184665654.7358235538
7539116.068983869210026.318936911968205.8190308264
7639116.06898386927681.5930384820770550.5449292563
7739116.06898386925500.0162987636172732.1216689748
7839116.06898386923451.6368659387874780.5011017996
7939116.06898386921514.6802001934176717.457767545
8039116.0689838692-327.27213510564678559.410102844
8139116.0689838692-2086.9634141774880319.1013819159
8239116.0689838692-3774.5197152983282006.6576830367
8339116.0689838692-5398.1458146401683630.2837823785
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/29/t12094710117s6ilyidti6b0ya/1zemy1209470962.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/29/t12094710117s6ilyidti6b0ya/1zemy1209470962.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/29/t12094710117s6ilyidti6b0ya/23qb51209470962.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/29/t12094710117s6ilyidti6b0ya/23qb51209470962.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/29/t12094710117s6ilyidti6b0ya/30q2i1209470962.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/29/t12094710117s6ilyidti6b0ya/30q2i1209470962.ps (open in new window)


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