Home » date » 2009 » Aug » 19 »

Triple Smoothing - Gem. prijs gebakken tong of forel - Niels Braspennincx

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 18 Aug 2009 16:41:31 -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/Aug/19/t1250635372nc2pag2njq9j05v.htm/, Retrieved Wed, 19 Aug 2009 00:42:56 +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/Aug/19/t1250635372nc2pag2njq9j05v.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 «
15.22 15.27 15.31 15.33 15.42 15.49 15.65 15.67 15.69 15.83 15.92 15.99 15.94 15.96 16.03 16.09 16.04 16.23 16.2 16.2 16.26 16.28 16.27 16.29 16.3 16.37 16.39 16.42 16.43 16.37 16.37 16.39 16.48 16.51 16.5 16.54 16.52 16.56 16.61 16.75 16.75 16.79 16.82 16.84 17.14 17.25 17.28 17.3 17.34 17.44 17.48 17.55 17.59 17.66 17.67 17.64 17.68 17.72 17.78 17.83 17.88 18.11 18.16 18.27 18.29 18.35 18.35 18.38 18.41 18.41 18.42 18.43 18.48 18.54 18.65 18.66 18.69 18.72 18.72 18.73 18.84 18.83 18.91 18.91 18.94 18.97 19 19.08 19.18 19.24 19.23 19.25 19.3 19.33 19.35 19.35 19.31 19.47 19.7 19.76 19.9 19.97 20.1 20.26 20.44 20.43 20.57 20.6 20.69 20.93 20.98 21.11 21.14 21.16 21.32 21.32 21.48 21.58 21.74 21.75 21.81 21.89 22.21 22.37 22.47 22.51 22.55 22.61 22.58 22.85 22.93 22.98
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time40 seconds
R Server'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.78099895625679
beta0.0460781151747984
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1315.9415.59144230769230.348557692307683
1415.9615.90155285610490.0584471438950818
1516.0316.036357370696-0.0063573706960156
1616.0916.1136541779200-0.023654177920033
1716.0416.0757576214709-0.035757621470907
1816.2316.2733714801529-0.043371480152949
1916.216.2613947821027-0.0613947821026599
2016.216.233549159149-0.0335491591490076
2116.2616.22624360641490.0337563935850831
2216.2816.3898017434307-0.109801743430666
2316.2716.3914563610085-0.121456361008452
2416.2916.3604712225677-0.0704712225676651
2516.316.3260205440628-0.0260205440628347
2616.3716.26423038747710.105769612522860
2716.3916.4076834556650-0.0176834556650469
2816.4216.4578210034749-0.0378210034749067
2916.4316.39117410326150.0388258967385156
3016.3716.6330188018747-0.263018801874679
3116.3716.4252948465807-0.0552948465806722
3216.3916.38827519923250.00172480076753345
3316.4816.40449167309330.075508326906732
3416.5116.5519542841776-0.0419542841776277
3516.516.5892225865623-0.0892225865623253
3616.5416.5809150497607-0.0409150497607378
3716.5216.5666833520677-0.0466833520677064
3816.5616.5042750499130.055724950087015
3916.6116.56646328699640.0435367130035935
4016.7516.64706305521250.102936944787491
4116.7516.69925864402000.050741355979973
4216.7916.8768587281696-0.0868587281696271
4316.8216.8511005634444-0.0311005634443582
4416.8416.8452278608033-0.00522786080325588
4517.1416.87168664986390.268313350136115
4617.2517.15045748244880.0995425175511997
4717.2817.2994270054886-0.019427005488609
4817.317.3702650501609-0.0702650501609341
4917.3417.3448474558009-0.00484745580092394
5017.4417.35204570398160.0879542960183919
5117.4817.45240086009100.0275991399089754
5217.5517.54865363844640.00134636155355494
5317.5917.52151178844660.0684882115534435
5417.6617.6949118306985-0.0349118306985403
5517.6717.7358788903356-0.0658788903356111
5617.6417.7212025887058-0.0812025887057928
5717.6817.7581889949228-0.078188994922769
5817.7217.726869292852-0.00686929285200577
5917.7817.76033583943010.0196641605698673
6017.8317.8456362174876-0.0156362174876001
6117.8817.87424188981920.00575811018079264
6218.1117.90746010049720.202539899502785
6318.1618.08562558468510.0743744153149173
6418.2718.21588065194690.0541193480531277
6518.2918.24977795739400.0402220426060325
6618.3518.3825595933806-0.0325595933805616
6718.3518.4227687387518-0.072768738751801
6818.3818.4032944312908-0.0232944312908465
6918.4118.4921898312556-0.0821898312556293
7018.4118.4792433945053-0.0692433945052784
7118.4218.4734408576235-0.0534408576234568
7218.4318.4949188166158-0.0649188166157728
7318.4818.4889500231198-0.00895002311979098
7418.5418.5524771258536-0.0124771258536320
7518.6518.52560886535240.124391134647638
7618.6618.6832537095085-0.0232537095084737
7718.6918.64365744441440.0463425555856141
7818.7218.7554784301133-0.0354784301132547
7918.7218.774695571888-0.0546955718879865
8018.7318.7709151618363-0.0409151618363097
8118.8418.82326036702980.0167396329701965
8218.8318.8840829238590-0.0540829238589566
8318.9118.88779695216280.0222030478372339
8418.9118.9627767129206-0.0527767129205934
8518.9418.9759227468811-0.0359227468811305
8618.9719.0140157079538-0.0440157079537542
871918.98775912859150.0122408714085473
8819.0819.01671340115510.0632865988449147
8919.1819.05429404577280.125705954227175
9019.2419.20738229366610.0326177063338591
9119.2319.2752278577121-0.0452278577120993
9219.2519.2818543458718-0.0318543458717926
9319.319.3542232694736-0.0542232694735603
9419.3319.3418806909311-0.0118806909311360
9519.3519.3945470878261-0.0445470878260821
9619.3519.3978580432810-0.0478580432810354
9719.3119.4155972240627-0.105597224062727
9819.4719.39205538645610.077944613543913
9919.719.47231218387910.227687816120863
10019.7619.6874048869230.0725951130769964
10119.919.75295588449080.147044115509186
10219.9719.91012119525050.0598788047495376
10320.119.99098883760850.109011162391489
10420.2620.13533469463960.124665305360434
10520.4420.34500919338190.0949908066181209
10620.4320.4838081908987-0.0538081908986747
10720.5720.52039890528420.0496010947158467
10820.620.6237261234222-0.0237261234221826
10920.6920.67574753508610.0142524649139268
11020.9320.81839722694650.111602773053491
11120.9820.9913393777712-0.0113393777712325
11221.1121.01078921429070.0992107857093316
11321.1421.13939183705110.000608162948857682
11421.1621.1837921463301-0.0237921463300665
11521.3221.22775245633520.092247543664751
11621.3221.3795105021167-0.0595105021167086
11721.4821.4492934976940.0307065023059891
11821.5821.51343434463600.0665656553640375
11921.7421.67915049732970.0608495026703118
12021.7521.7880756175723-0.0380756175723462
12121.8121.8495626896373-0.0395626896373393
12221.8921.9819212271168-0.0919212271168348
12322.2121.97208128292360.237918717076436
12422.3722.22247646963820.147523530361788
12522.4722.38102028414060.0889797158593701
12622.5122.50607828022770.00392171977229339
12722.5522.6150765311661-0.065076531166099
12822.6122.6230484803313-0.0130484803313493
12922.5822.7628669235168-0.182866923516777
13022.8522.67436552040890.175634479591139
13122.9322.9342427036316-0.00424270363162904
13222.9822.97855393954490.00144606045514450


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
13323.079891761043622.909017643980223.2507658781069
13423.242415914882623.021765486224623.4630663435406
13523.390643382085223.126200643678323.6550861204921
13623.440907424441723.135942441411523.7458724074720
13723.471585201454823.128098265884523.8150721370250
13823.505491075170323.124775314661823.8862068356787
13923.593143380080223.176054764369224.0102319957912
14023.662503738106923.209608418655424.1153990575584
14123.774961698152423.286623815451824.263299580853
14223.9140112611923.390448761044224.4375737613358
14323.997224165612323.438546075544924.5559022556796
14424.046146833225723.452379147785824.6399145186656
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250635372nc2pag2njq9j05v/1mb081250635251.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250635372nc2pag2njq9j05v/1mb081250635251.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250635372nc2pag2njq9j05v/2qqeg1250635251.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250635372nc2pag2njq9j05v/2qqeg1250635251.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250635372nc2pag2njq9j05v/33no21250635251.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250635372nc2pag2njq9j05v/33no21250635251.ps (open in new window)


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