Home » date » 2008 » Jun » 01 »

Exponential smoothing- Inschrijving personenwagens - Kristof Vermeulen

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 01 Jun 2008 08:46:13 -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/Jun/01/t12123317998gmheytbylz5ew3.htm/, Retrieved Sun, 01 Jun 2008 14:50:02 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
41086 39690 43129 37863 35953 29133 24693 22205 21725 27192 21790 13253 37702 30364 32609 30212 29965 28352 25814 22414 20506 28806 22228 13971 36845 35338 35022 34777 26887 23970 22780 17351 21382 24561 17409 11514 31514 27071 29462 26105 22397 23843 21705 18089 20764 25316 17704 15548 28029 29383 36438 32034 22679 24319 18004 17537 20366 22782 19169 13807 29743 25591 29096 26482 22405 27044 17970 18730 19684 19785 18479 10698
 
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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.562783761271795
beta0
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
343129396903439
43786341625.4133550137-3762.41335501370
53595339507.9882156199-3554.98821561986
62913337507.2985763564-8374.2985763564
72469332794.3793255415-8101.3793255415
82220528235.0545972237-6030.0545972237
92172524841.4377903239-3116.43779032386
102719223087.55720891584104.44279108416
112179025397.4709608071-3607.47096080709
121325323367.2448848053-10114.2448848053
133770217675.112106110620026.8878938894
143036428945.91940160221418.08059839776
153260929743.99213455512865.00786544491
163021231356.3720371435-1144.37203714345
172996530712.3380377856-747.338037785594
182835230291.7483259391-1939.74832593914
192581429200.0894671464-3386.08946714644
202241427294.4533008230-4880.45330082296
212050624547.8134354745-4041.81343547447
222880622273.14646789936532.85353210073
232222825949.7303505327-3721.73035053265
241397123855.2009454205-9884.2009454205
253684518292.533160190518552.4668398095
263533828733.56022916886604.43977083125
273502232450.43168449022571.56831550981
283477733897.6685734602879.331426539822
292688734392.5420210928-7505.54202109276
302397030168.5448520787-6198.54485207866
312278026680.1044658139-3900.10446581391
321735124485.1890051902-7134.18900519023
332138220470.1832832254911.816716774614
342456120983.33892468233577.6610753177
351740922996.7884812053-5587.78848120529
361151419852.0718625614-8338.07186256137
373151415159.540417994616354.4595820054
382707124363.56469512312707.43530487687
392946225887.26531940183574.73468059822
402610527899.0679484976-1794.06794849758
412239726889.3956404649-4492.39564046494
422384324361.1483248031-518.148324803064
432170524069.5428616737-2364.54286167372
441808922738.8165362926-4649.81653629261
452076420121.9752967741642.024703225936
462531620483.29637408504832.70362591503
471770423203.0634977893-5499.06349778927
481554820108.279859031-4560.27985903099
492802917541.828407513510487.1715924865
502938323443.83828143585939.16171856422
513643826786.30205221089651.69794778919
523203432218.1209259269-184.12092592688
532267932114.5006587049-9435.5006587049
542431926804.3541085165-2485.35410851645
551800425405.6371752333-7401.63717523326
561753721240.1159661863-3703.11596618634
572036619156.06243431041209.93756568964
582278219836.99564843322945.00435156679
591916921494.3962743698-2325.39627436977
601380720185.7010126325-6378.70101263253
612974316595.87166471513147.128335285
622559123994.86199916971596.13800083032
632909624893.14254678584202.85745321419
642648227258.4424723949-776.44247239489
652240526821.4732573693-4416.47325736932
662704424335.95382603072708.04617396928
671797025859.9982375148-7889.99823751485
681873021419.6353529784-2689.63535297841
691968419905.9522525796-221.952252579627
701978519781.04112905013.95887094988211
711847919783.2691173337-1304.26911733368
721069819049.24763777-8351.24763776999


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7314349.30108087361752.9524469122626945.6497148349
7414349.3010808736-104.84054103560128803.4427027828
7514349.3010808736-1749.6560637403430448.2582254875
7614349.3010808736-3241.3393924583631939.9415542056
7714349.3010808736-4616.0579555362533314.6601172834
7814349.3010808736-5897.6506526057134596.2528143529
7914349.3010808736-7102.8145634107435801.4167251579
8014349.3010808736-8243.7836295783436942.3857913255
8114349.3010808736-9329.839272010138028.4414337573
8214349.3010808736-10368.221023283139066.8231850303
8314349.3010808736-11364.705026448240063.3071881954
8414349.3010808736-12323.987452887941022.5896146351
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t12123317998gmheytbylz5ew3/1yvww1212331567.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t12123317998gmheytbylz5ew3/1yvww1212331567.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t12123317998gmheytbylz5ew3/2vgv71212331567.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t12123317998gmheytbylz5ew3/2vgv71212331567.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t12123317998gmheytbylz5ew3/3c2ec1212331567.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t12123317998gmheytbylz5ew3/3c2ec1212331567.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