Home » date » 2011 » May » 20 »

exponential smoothing niet werkende werkzoekende Sebastiaan Vandesompele

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 20 May 2011 07:31:36 +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/20/t1305876603nzk4u5dqdxnftlb.htm/, Retrieved Fri, 20 May 2011 09:30:08 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
89507 87562 85209 82360 79054 79069 107551 115759 115585 110260 103444 102303 101397 97994 94044 91159 87239 89235 118647 125620 125154 117529 109459 108483 107137 104699 100804 96066 91971 93228 120144 127233 127166 118194 109940 106683 102834 99882 96666 92540 88744 89321 115870 122401 122030 113802 105791 103076 98658 96945 92497 90687 88796 90015 113228 118711 117460 106556 97347 92657 93118 89037 83570 81693 75956 73993 97088 102394 96549 89727 82336 82653 82303 79596 74472 73562 66618 69029 89899 93774 90305 83799 80320 82497
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'George Udny Yule' @ 216.218.223.82


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.092298193665188
gamma0.433108278636975


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1310139796474.22628105124922.77371894875
149799498326.3999195871-332.399919587129
159404494389.11813641-345.118136410005
169115991555.113130523-396.113130523067
178723987704.6233374812-465.623337481185
188923589703.7044533642-468.704453364247
19118647117845.772628029801.22737197089
20125620127761.537998258-2141.53799825798
21125154125475.92083626-321.920836260309
22117529119486.218281916-1957.21828191556
23109459110229.333517975-770.333517974723
24108483108092.668042252390.331957748058
25107137107271.619819757-134.619819757208
26104699103305.305135241393.69486475992
27100804100428.855794712375.14420528803
289606697795.7866541242-1729.78665412424
299197192003.6665251494-32.6665251493687
309322894182.4737242576-954.47372425755
31120144122567.956055048-2423.95605504792
32127233128506.074067552-1273.07406755212
33127166126309.573889893856.426110106535
34118194120771.076124286-2577.07612428618
35109940110217.708812814-277.70881281422
36106683107989.967478556-1306.96747855567
37102834104784.426618019-1950.42661801871
389988298332.86085746741549.13914253261
399666695047.23162773841618.76837226162
409254093156.872132615-616.87213261491
418874488121.5113453721622.488654627887
428932190424.0899789227-1103.08997892265
43115870116820.025296034-950.02529603368
44122401123415.21156438-1014.21156438046
45122030121018.4985798321011.50142016841
46113802115442.722074415-1640.72207441457
47105791105773.50500239417.4949976061907
48103076103598.277304962-522.277304961812
4998658100997.683701832-2339.68370183161
509694594064.25539391452880.7446060855
519249792113.386475772383.613524228058
529068788901.04249918831785.95750081171
538879686338.37391360372457.62608639625
549001590629.9056220276-614.905622027596
55113228117986.74739014-4758.74739014011
56118711120499.859214844-1788.85921484396
57117460117195.414722752264.585277247563
58106556110890.555396165-4334.55539616494
599734798582.3318795824-1235.33187958237
609265794764.2323705198-2107.23237051979
619311890080.18970497383037.81029502621
628903788579.115912196457.884087803948
638357084202.4301368743-632.430136874304
648169379848.96652547591844.0334745241
657595677346.4914324739-1390.49143247391
667399376760.1513257628-2767.15132576284
679708895723.33235305591364.66764694414
68102394102503.882472388-109.882472388155
6996549100407.271713753-3858.27171375277
708972790135.186238539-408.186238539056
718233682353.0623959294-17.0623959294317
728265379599.71774741763053.28225258237
738230380295.0255841422007.97441585804
747959678167.00595790821428.99404209181
757447275251.5873104586-779.587310458592
767356271113.65640496972448.3435950303
776661869682.3948192778-3064.39481927778
786902967174.8464723351854.15352766497
798989989683.663848974215.336151025942
809377495210.2299627812-1436.22996278122
819030592115.9084799295-1810.90847992947
828379984634.4137413744-835.413741374417
838032077177.46839073983142.5316092602
848249778247.5141704164249.48582958392


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8580865.730334455277154.217445722484577.243223188
8677305.926861751371933.200753213982678.6529702888
8773436.891709268166745.944542535880127.8388760004
8870538.59735215362627.283348370378449.9113559356
8966990.457145058958042.192503011475938.7217871064
9068031.400016148957533.420306739178529.3797255587
9188779.367421206773558.2529477385104000.481894675
9294422.52367248576648.7716942669112196.275650703
9393291.493800460674135.0657602118112447.921840709
9488125.508561655768462.6563425604107788.360780751
9581897.511729601562096.8385151165101698.184944086
9680188.023867994959597.0776471834100778.970088806
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/20/t1305876603nzk4u5dqdxnftlb/1aket1305876691.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305876603nzk4u5dqdxnftlb/1aket1305876691.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t1305876603nzk4u5dqdxnftlb/24zx81305876691.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305876603nzk4u5dqdxnftlb/24zx81305876691.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t1305876603nzk4u5dqdxnftlb/3cfvi1305876691.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305876603nzk4u5dqdxnftlb/3cfvi1305876691.ps (open in new window)


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