Home » date » 2011 » May » 19 »

Opgave 10-Stap 2- Gemiddelde prijs pepersteak-Stap 4 verbetering- Van Lishout Silke

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 19 May 2011 18:13:11 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/19/t1305828716jh9ppu2hwmljk4z.htm/, Retrieved Thu, 19 May 2011 20:11:56 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
13,81 13,9 13,91 13,94 13,96 14,01 14,01 14,06 14,09 14,13 14,12 14,13 14,14 14,16 14,21 14,26 14,29 14,32 14,33 14,39 14,48 14,44 14,46 14,48 14,53 14,58 14,62 14,62 14,61 14,65 14,68 14,7 14,78 14,84 14,89 14,89 15,13 15,25 15,33 15,36 15,4 15,4 15,41 15,47 15,54 15,55 15,59 15,65 15,75 15,86 15,89 15,94 15,93 15,95 15,99 15,99 16,06 16,08 16,07 16,11 16,15 16,18 16,3 16,42 16,49 16,5 16,58 16,64 16,66 16,81 16,91 16,92 16,95 17,11 17,16 17,16 17,27 17,34 17,39 17,43 17,45 17,5 17,56 17,65
 
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.165143187979721
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
313.9113.99-0.08
413.9413.9867885449616-0.0467885449616237
513.9614.0090617354857-0.0490617354857257
614.0114.0209595240798-0.0109595240797979
714.0114.0691496333345-0.0591496333345187
814.0614.05938147431780.000618525682176241
914.0914.1094836196208-0.0194836196208268
1014.1314.1362660325633-0.00626603256325708
1114.1214.1752312399698-0.0552312399697783
1214.1314.1561101769251-0.0261101769250942
1314.1414.161798259069-0.0217982590689711
1414.1614.1681984250739-0.008198425073914
1514.2114.18684451102080.0231554889792065
1614.2614.24066848229010.0193315177099489
1714.2914.2938609507532-0.00386095075315751
1814.3214.3232233410371-0.00322334103714716
1914.3314.3526910282223-0.0226910282223276
2014.3914.35894375948320.0310562405168451
2114.4814.42407248604880.0559275139512287
2214.4414.5233085339985-0.0833085339984585
2314.4614.469550697108-0.00955069710803436
2414.4814.4879734645402-0.00797346454018566
2514.5314.50665670118680.0233432988132236
2614.5814.56051168797080.0194883120292459
2714.6214.61373004994760.00626995005239017
2814.6214.6547654894877-0.0347654894877341
2914.6114.6490242057221-0.039024205722054
3014.6514.63257962398070.0174203760192633
3114.6814.67545648041240.0045435195876351
3214.714.7062068117217-0.00620681172171444
3314.7814.72518179904680.0548182009531999
3414.8414.81423465151150.0257653484884752
3514.8914.87848962330030.0115103766996807
3614.8914.9303904836034-0.0403904836033533
3715.1314.92372027037710.206279729622947
3815.2515.19778596254260.0522140374574178
3915.3315.32640875514560.00359124485440887
4015.3615.4070018247697-0.0470018247696657
4115.415.4292397935863-0.0292397935863367
4215.415.4644110408576-0.064411040857621
4315.4115.4537739962293-0.0437739962293016
4415.4715.45654501894140.0134549810586186
4515.5415.51876701740760.0212329825923891
4615.5515.5922734998432-0.0422734998432333
4715.5915.5952923193121-0.00529231931206375
4815.6515.63441832882910.0155816711709384
4915.7515.69699153568030.0530084643197171
5015.8615.80574552246790.0542544775320497
5115.8915.9247052798498-0.0347052798497653
5215.9415.9489739392956-0.0089739392956485
5315.9315.9974919543516-0.0674919543516275
5415.9515.976346117847-0.0263461178470195
5515.9915.9919952359549-0.00199523595487072
5615.9916.0316657363285-0.0416657363285129
5716.0616.02478492380170.0352150761982983
5816.0816.10060045375-0.0206004537500348
5916.0716.1171984291439-0.0471984291439256
6016.1116.09940393008750.010596069912534
6116.1516.14115379885290.0088462011471222
6216.1816.1826146887118-0.00261468871181947
6316.316.21218289068240.0878171093176228
6416.4216.34668528807430.0733147119257467
6516.4916.47879271332750.0112072866725121
6616.516.5506435203772-0.0506435203771858
6716.5816.55228008797160.0277199120284166
6816.6416.63685784261450.00314215738552903
6916.6616.6973767485023-0.037376748502254
7016.8116.71120423309830.0987957669017234
7116.9116.87751968100330.0324803189966758
7216.9216.982883584429-0.0628835844290343
7316.9516.9824987888248-0.0324987888248351
7417.1117.00713183523280.10286816476718
7517.1617.1841198119041-0.0241198119040931
7617.1617.2301365892728-0.0701365892727814
7717.2717.21855400932630.0514459906737486
7817.3417.33704996423490.00295003576511021
7917.3917.4075371425458-0.0175371425457911
8017.4317.4546410029177-0.0246410029177255
8117.4517.4905717091409-0.0405717091408739
8217.517.5038715677516-0.00387156775156328
8317.5617.55323220471060.00676779528940585
8417.6517.61434986000030.0356501399997207


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8517.710237237771817.619742554063517.8007319214801
8617.770474475543517.631525829528217.9094231215588
8717.830711713315317.646866679859118.0145567467714
8817.89094895108717.662666715582718.1192311865913
8917.951186188858817.677882776207318.2244896015103
9018.011423426630517.692062179352118.3307846739089
9118.071660664402317.704986404722118.4383349240825
9218.13189790217417.716546658417918.5472491459302
9318.192135139945817.726691033556218.6575792463355
9418.252372377717617.735399094909218.769345660526
9518.312609615489317.742668554009618.8825506769691
9618.372846853261117.748507832841818.9971858736804
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/19/t1305828716jh9ppu2hwmljk4z/13k261305828787.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305828716jh9ppu2hwmljk4z/13k261305828787.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t1305828716jh9ppu2hwmljk4z/2zo431305828787.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305828716jh9ppu2hwmljk4z/2zo431305828787.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t1305828716jh9ppu2hwmljk4z/34am41305828787.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305828716jh9ppu2hwmljk4z/34am41305828787.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=F, beta=F)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=F)
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