Home » date » 2009 » Jan » 26 »

tijdreeks - evolutie graan - marie-laure van thielen

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Mon, 26 Jan 2009 14:26:35 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jan/26/t1233005240sj05g0f4uaequ1g.htm/, Retrieved Mon, 26 Jan 2009 22:27:20 +0100
 
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/Jan/26/t1233005240sj05g0f4uaequ1g.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 «
273,9 284,7 314,1 333,2 315,1 321 310,9 289 259,3 244,7 215,9 215,3 211,4 184,6 177,7 184,8 172,3 169,6 180,3 180,9 175,8 175 170,4 159,3 139,9 134,5 143 137,3 140,3 131,3 127,8 126,5 119,2 116 110,8 115,4 115,1 114,1 119,1 114 112,1 111,2 116 109,5 109,5 110,2 108,8 108,2 111,4 110,8 117,2 130,7 137,4 141,4 137,1 129,8 127,3 121,7 117,6 111,2 113 111,1 103,7 110,8 115,3 111,4 112,5 115,5 114,9 119,9 125,6 131,8 134,2 124,5 114,4 103,8 98,5 97 98,1 99 99,7 98,6 97,4 97,8 100,3 101,2 100,7 96,3 98,4 99,5 101,4 101,1 104,7 102,3 100,8 98,5
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.425593260268888
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
3314.1295.518.6000000000000
4333.2332.8160346410010.383965358998637
5315.1352.079447709968-36.9794477099678
6321318.241243996142.75875600386019
7310.9325.315351958109-14.4153519581091
8289309.080275320334-20.0802753203339
9259.3278.634245479656-19.3342454796561
10244.7240.7057209111303.99427908886972
11215.9227.805659170986-11.9056591709862
12215.3193.93869086875621.361309131244
13211.4202.4299200655348.9700799344663
14184.6202.347525629716-17.7475256297157
15177.7167.9942983352599.70570166474062
16184.8165.22497954995419.5750204500465
17172.3180.655976323119-8.35597632311897
18169.6164.5997291170335.00027088296687
19180.3164.02781070434316.2721892956574
20180.9181.653144798394-0.753144798393919
21175.8181.932611448191-6.13261144819089
22175174.2226133479930.777386652006953
23170.4173.753463867710-3.35346386771019
24159.3167.726252247058-8.4262522470575
25139.9153.040096081384-13.1400960813843
26134.5128.0477597498616.45224025013852
27143125.39378971395617.6062102860439
28137.3141.386874150573-4.08687415057312
29140.3133.9475280565226.35247194347792
30131.3139.651097301713-8.35109730171348
31127.8127.0969265742550.703073425745458
32126.5123.8961498857262.60385011427405
33119.2123.704330945111-4.50433094511136
34116114.4873180528511.51268194714862
35110.8111.931105294488-1.13110529448825
36115.4106.2497145045009.15028549550041
37115.1114.7440143409210.355985659079252
38114.1114.595519438177-0.49551943817724
39119.1113.3846297049575.71537029504321
40114120.817052782468-6.81705278246818
41112.1112.815761063352-0.71576106335246
42111.2110.6111379788270.588862021173256
43116109.9617536862666.0382463137336
44109.5117.331590621235-7.83159062123488
45109.5107.4985184356522.00148156434771
46110.2108.3503354999911.8496645000089
47108.8109.837540244954-1.03754024495352
48108.2107.9959701094440.204029890556441
49111.4107.4828038557583.91719614424221
50110.8112.349936133899-1.54993613389856
51117.2111.0902937614646.10970623853591
52130.7120.09054355880810.6094564411922
53137.4138.105856715295-0.705856715295482
54141.4144.505448854550-3.10544885455022
55137.1147.183790751944-10.0837907519439
56129.8138.592197369955-8.7921973699548
57127.3127.550297426348-0.25029742634824
58121.7124.943772528632-3.24377252863177
59117.6117.963244802601-0.363244802600732
60111.2113.708650262786-2.50865026278613
61113106.2409856185736.7590143814274
62111.1110.9175765853690.182423414631415
63103.7109.095214761151-5.39521476115094
64110.899.399047721101911.4009522788981
65115.3111.3512161716483.94878382835186
66111.4117.531791955253-6.13179195525346
67112.5111.0221426257271.47785737427338
68115.5112.7511087638562.74889123614396
69114.9116.921018347171-2.02101834717111
70119.9115.4608865597354.43911344026468
71125.6122.3501433214813.24985667851898
72131.8129.4332604206992.36673957930151
73134.2136.640528834461-2.44052883446088
74124.5138.001856211022-13.5018562110224
75114.4122.555557206492-8.15555720649166
76103.8108.984607025671-5.18460702567147
7798.596.1780732184032.32192678159704
789791.86626960748855.13373039251151
7998.192.5511506625795.54884933742106
809996.01270354283282.98729645716718
8199.798.18407678142831.5159232185717
8298.699.5292434863375-0.92924348633754
8397.498.0337637214035-0.633763721403497
8497.896.56403815297131.23596184702873
85100.397.49005518501622.80994481498382
86101.2101.1859487600010.0140512399992048
87100.7102.091928873043-1.39192887304289
8896.3100.999533325902-4.69953332590217
8998.494.59944361598923.80055638401085
9099.598.3169347982961.18306520170391
91101.499.92043937461.47956062540008
92101.1102.450130404929-1.35013040492943
93104.7101.5755240041073.12447599589267
94102.3106.505279929831-4.20527992983119
95100.8102.315541134151-1.51554113415101
9698.5100.170537041796-1.67053704179607


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
9797.159567735778180.4723783283844113.846757143172
9895.819135471556366.7608199947369124.877450948376
9994.478703207334452.0682591689816136.889147245687
10093.138270943112636.1986711439238150.077870742301
10191.797838678890719.1639758939002164.431701463881
10290.45740641466881.01356204125629179.901250788081
10389.116974150447-18.1982781877222196.432226488616
10487.7765418862251-38.4202878157595213.973371588210
10586.4361096220033-59.6060286909149232.478247934921
10685.0956773577814-81.7139084949872251.90526321055
10783.7552450935596-104.706715721756272.217205908875
10882.4148128293377-128.551061018514293.380686677189
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/26/t1233005240sj05g0f4uaequ1g/1pyyd1233005182.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/26/t1233005240sj05g0f4uaequ1g/1pyyd1233005182.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/26/t1233005240sj05g0f4uaequ1g/2or891233005182.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/26/t1233005240sj05g0f4uaequ1g/2or891233005182.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/26/t1233005240sj05g0f4uaequ1g/3xuzy1233005182.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/26/t1233005240sj05g0f4uaequ1g/3xuzy1233005182.ps (open in new window)


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