Home » date » 2008 » Aug » 18 »

Exponential Smoothing - consumptieprijs bloemkolen

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Mon, 18 Aug 2008 07:43:58 -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/Aug/18/t1219067142842pcqje0634ng2.htm/, Retrieved Mon, 18 Aug 2008 13:45:46 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
100,58 118,48 79,58 81,97 127,13 120,76 120,26 74,9 67,59 87,73 102,87 144,94 110,48 96,34 100,43 90,88 128,28 101,21 73,76 73,64 66,4 57,34 113,59 123,53 102,87 102,99 95,8 98,43 102,65 129,55 100,37 101,93 101,94 93,87 100,91 92,64 101,67 88,67 129,86 98,07 166,45 176,52 82,07 92,18 95,02 84,69 103,01 107,9 204,13 101,99 119,23 95,65 160,95 111,06 150,41 94,79 160,34 104,08 101,07 111,5 136,9 141,71 153,98 134,27 124,71 72,89 101,2 73,28 174,05 111,9 97,06 105,23 109,13 84,04 118,82 90,84 144,28 110,16 86,09 59,87 108,97 94,93 87,36 143,52 108,7 121,13 210,25 110,2 161,46 99,41 132,72 174,29 69,93 83,43 127,53 187,58
 
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'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.069731525720716
beta0
gamma0.163517945829889


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13110.48111.736474939613-1.25647493961348
1496.3499.4988590250444-3.15885902504442
15100.43103.470670299025-3.04067029902475
1690.8895.0244730531934-4.14447305319345
17128.28132.955055957219-4.67505595721923
18101.21106.004473839159-4.7944738391593
1973.7679.4293145299933-5.66931452999331
2073.6478.9539845780263-5.31398457802625
2166.471.2592656590775-4.85926565907747
2257.3461.738754984121-4.39875498412105
23113.59118.43535642114-4.84535642114002
24123.53127.924565658567-4.39456565856659
25102.87108.020329796908-5.15032979690821
26102.9995.22180716467267.7681928353274
2795.899.973556784294-4.17355678429402
2898.4391.28045602819977.14954397180034
29102.65129.917878039412-27.2678780394124
30129.55101.37369864565828.1763013543415
31100.3776.964564887101423.4054351128986
32101.9378.570712812963723.3592871870363
33101.9472.944594718230428.9954052817696
3493.8765.854872753767228.0151272462328
35100.91124.743808612160-23.8338086121603
3692.64132.977496410041-40.3374964100406
37101.67110.451941640415-8.78194164041494
3888.6799.3652898654362-10.6952898654362
39129.86101.0130263773828.84697362262
4098.0796.34491773863381.72508226136623
41166.45129.36865730358537.0813426964152
42176.52113.74557131036462.774428689636
4382.0791.0232946249226-8.95329462492265
4492.1890.36599913681321.81400086318679
4595.0284.094836783830710.9251632161693
4684.6975.5959336982669.094066301734
47103.01125.278443640579-22.268443640579
48107.9131.110818519944-23.2108185199436
49204.13114.5796249611989.55037503881
50101.99110.058785561811-8.06878556181142
51119.23117.9046669659651.3253330340346
5295.65107.191769832729-11.5417698327285
53160.95144.66862997536916.2813700246313
54111.06131.503449087175-20.4434490871753
55150.4192.067357866881158.3426421331189
5694.7997.7405842294255-2.95058422942544
57160.3492.52312992527767.816870074723
58104.0887.712833972356916.3671660276431
59101.07133.131781552008-32.0617815520083
60111.5138.137902126149-26.6379021261493
61136.9138.520468284303-1.62046828430348
62141.71112.79275067020928.9172493297908
63153.98124.64671661030529.3332833896947
64134.27113.92956964371020.3404303562896
65124.71157.861957583486-33.1519575834864
6672.89135.663297813462-62.7732978134621
67101.2105.260074406501-4.06007440650085
6873.2897.258208845431-23.9782088454310
69174.05101.33929925769972.7107007423006
70111.989.043955498201322.8560445017987
7197.06127.548584540667-30.4885845406669
72105.23133.489463161537-28.2594631615372
73109.13137.564497103394-28.4344971033939
7484.04114.612259280672-30.5722592806718
75118.82122.381216287461-3.56121628746060
7690.84108.002332525738-17.1623325257381
77144.28141.1825694398723.09743056012823
78110.16117.005767166331-6.84576716633123
7986.0999.4336524196254-13.3436524196254
8059.8787.7545700279856-27.8845700279856
81108.97106.2711544418702.69884555813042
8294.9381.510106754345413.4198932456546
8387.36111.242188853492-23.8821888534922
84143.52117.98282563887725.5371743611229
85108.7125.782555802500-17.0825558025005
86121.13103.29671921173917.8332807882614
87210.25118.54986912187791.700130878123
88110.2108.7447626191891.45523738081117
89161.46146.3050569028715.1549430971299
9099.41121.456527986439-22.0465279864389
91132.72101.83601134667530.8839886533248
92174.2991.029089585169383.2609104148306
9369.93121.948232232915-52.0182322329146
9483.4395.002517722281-11.5725177222810
95127.53117.31761264703410.2123873529658
96187.58133.95317184214453.6268281578561


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
97137.22851102316278.1162289645769196.340793081748
98121.24511019452361.9892861046106180.500934284435
99146.49101770840287.091998465864205.890036950940
100116.56386595336557.0219959342246176.105735972506
101156.10662313184896.4222442394018215.791002024294
102124.54239318887764.715844883146184.368941494607
103114.51077134929154.5423906759837174.479152022599
104109.51760829396949.407729912961169.627486674977
105114.05277402913953.8017302424929174.303817815786
10696.886793942529236.4949147220477157.278673163011
107123.32268187276462.7902948871007183.855068858427
108145.85012899338185.1775596347089206.522698352053
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/18/t1219067142842pcqje0634ng2/1mdk31219067036.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/18/t1219067142842pcqje0634ng2/1mdk31219067036.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/18/t1219067142842pcqje0634ng2/2ifq21219067036.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/18/t1219067142842pcqje0634ng2/2ifq21219067036.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/18/t1219067142842pcqje0634ng2/3hr691219067036.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/18/t1219067142842pcqje0634ng2/3hr691219067036.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