Home » date » 2009 » Jun » 07 »

thomas van eester- opgave 10 - eigen reeks

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 07 Jun 2009 14:09: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/Jun/07/t12444055084y3e31ez43k253d.htm/, Retrieved Sun, 07 Jun 2009 22:11:48 +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/Jun/07/t12444055084y3e31ez43k253d.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 «
0.63 0.63 0.63 0.64 0.63 0.63 0.63 0.63 0.63 0.64 0.65 0.65 0.65 0.65 0.65 0.66 0.65 0.66 0.66 0.66 0.66 0.68 0.69 0.7 0.71 0.71 0.7 0.7 0.7 0.7 0.71 0.7 0.7 0.7 0.69 0.7 0.69 0.69 0.69 0.7 0.7 0.71 0.71 0.71 0.72 0.73 0.74 0.74 0.74 0.74 0.75 0.75 0.76 0.76 0.76 0.76 0.76 0.77 0.77 0.78 0.78 0.78 0.78 0.78 0.78 0.78 0.8 0.8 0.8 0.81 0.81 0.81 0.8 0.81 0.81 0.81 0.8 0.82 0.83 0.83
 
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
alpha0.891917722178237
beta0.0383687115475383
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
30.630.630
40.640.630.01
50.630.639261394559846-0.00926139455984631
60.630.631026268978595-0.00102626897859526
70.630.630101077143826-0.000101077143826012
80.630.6299976212677922.37873220787499e-06
90.630.6299865209253971.34790746032509e-05
100.640.6299857824524090.0100142175475909
110.650.6392475837455420.0107524162544581
120.650.6495357638746540.000464236125345852
130.650.650663620782754-0.00066362078275406
140.650.650762811872663-0.000762811872662805
150.650.650747427926749-0.000747427926749089
160.660.6507201869152840.00927981308471582
170.650.659953991159656-0.00995399115965556
180.660.6516921816977880.00830781830221183
190.660.660002711680453-2.71168045262726e-06
200.660.660900839892478-0.000900839892478467
210.660.660967083332408-0.000967083332407581
220.680.6609411478059160.0190588521940843
230.690.6794289260451420.0105710739548579
240.70.6907080649298140.00929193507018555
250.710.7011643033026380.0088356966973615
260.710.711515987445574-0.00151598744557402
270.70.712582941328218-0.0125829413282177
280.70.703348472843767-0.00334847284376660
290.70.702235799909176-0.00223579990917644
300.70.702039026734599-0.00203902673459910
310.710.7019479800115410.00805201998845906
320.70.711132870780756-0.0111328707807559
330.70.702825431334494-0.0028254313344942
340.70.701830853197259-0.00183085319725873
350.690.70166070195596-0.0116607019559594
360.70.692324084962110.00767591503788945
370.690.700496822473196-0.0104968224731956
380.690.69210175387316-0.00210175387315992
390.690.691122470074824-0.00112247007482424
400.70.690978213979160.00902178602084003
410.70.700190540833197-0.000190540833196695
420.710.7011797094659470.00882029053405331
430.710.710507643921458-0.000507643921457968
440.710.711498455869633-0.00149845586963304
450.720.7115542653239940.0084457346760064
460.730.7207685022426090.00923149775739096
470.740.7309994930378330.00900050696216748
480.740.741332472002518-0.00133247200251796
490.740.742403684403531-0.00240368440353089
500.740.742437205232051-0.00243720523205115
510.750.7423574228508690.00764257714913075
520.750.751529519251956-0.00152951925195577
530.760.7524685175226940.00753148247730606
540.760.761746924204954-0.00174692420495415
550.760.762689972758608-0.00268997275860772
560.760.762699844062692-0.00269984406269164
570.760.76260851763089-0.00260851763088987
580.770.7625093788661220.00749062113387833
590.770.771674182986876-0.00167418298687572
600.780.7726074424475170.00739255755248303
610.780.781880474614314-0.00188047461431362
620.780.782818371951535-0.00281837195153478
630.780.782823292457412-0.00282329245741186
640.780.78272720631396-0.00272720631395995
650.780.782623491376197-0.00262349137619700
660.780.78252250120596-0.00252250120595987
670.80.7824252615935260.0175747384064736
680.80.800854544177748-0.000854544177748218
690.80.802817179034695-0.00281717903469514
700.810.8029328963295560.00706710367044405
710.810.812106429080742-0.00210642908074243
720.810.81302583974088-0.00302583974088
730.80.813021662257128-0.0130216622571281
740.810.8036564096639060.006343590336094
750.810.811780457712896-0.00178045771289548
760.810.81259759298126-0.00259759298125939
770.80.81259701668681-0.0125970166868107
780.820.8032466854260010.0167533145739991
790.830.8206477622402350.00935223775976457
800.830.83176773727176-0.00176773727176049


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
810.8329091144681350.8192313310497990.84658689788647
820.8356271678653480.8169845232157010.854269812514994
830.838345221262560.8155396844011930.861150758123928
840.8410632746597730.8145085596684820.867617989651064
850.8437813280569860.8137285823794850.873834073734487
860.8464993814541980.8131141360900870.87988462681831
870.8492174348514110.812613987785760.885820881917062
880.8519354882486240.8121948427710080.89167613372624
890.8546535416458370.8118337740295340.89747330926214
900.857371595043050.8115143020863050.903228887999794
910.8600896484402620.8112241846460820.908955112234442
920.8628077018374750.8109540867731790.91466131690177
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t12444055084y3e31ez43k253d/13eyq1244405365.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t12444055084y3e31ez43k253d/13eyq1244405365.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t12444055084y3e31ez43k253d/2pptn1244405365.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t12444055084y3e31ez43k253d/2pptn1244405365.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t12444055084y3e31ez43k253d/3r7m61244405365.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t12444055084y3e31ez43k253d/3r7m61244405365.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