Home » date » 2010 » Jan » 26 »

Exponential Smoothing bij Time Series Analysis (new)-niet -werkende werkzoekende -Hannes François

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 26 Jan 2010 00:33:38 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/26/t1264491617zzzuylwdkjv3deh.htm/, Retrieved Tue, 26 Jan 2010 08:40:21 +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/2010/Jan/26/t1264491617zzzuylwdkjv3deh.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W62
 
Dataseries X:
» Textbox « » Textfile « » CSV «
492865 480961 461935 456608 441977 439148 488180 520564 501492 485025 464196 460170 467037 460070 447988 442867 436087 431328 484015 509673 512927 502831 470984 471067 476049 474605 470439 461251 454724 455626 516847 525192 522975 518585 509239 512238 519164 517009 509933 509127 500857 506971 569323 579714 577992 565464 547344 554788 562325 560854 555332 543599 536662 542722 593530 610763 612613 611324 594167 595454 590865 589379 584428 573100 567456 569028 620735 628884 628232 612117 595404 597141 593408 590072 579799 574205 572775 572942 619567 625809 619916 587625 565742 557274 560576 548854 531673 525919 511038 498662 555362 564591 541657 527070 509846 514258 516922 507561 492622 490243 469357 477580 528379 533590 517945 506174 501866 516141
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.615821652041268
beta0.118765866706064
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13467037472363.576121795-5326.57612179499
14460070461985.31991359-1915.31991359015
15447988447802.705336887185.294663113018
16442867440692.5385565882174.46144341241
17436087433501.0057979722585.99420202849
18431328429060.9147981152267.08520188474
19484015482872.9941510961142.00584890414
20509673517619.499978366-7946.49997836648
21512927494236.86964417318690.1303558273
22502831490931.70616355511899.2938364450
23470984479617.187785356-8633.18778535567
24471067471583.195119805-516.195119805343
25476049477284.838288029-1235.83828802919
26474605472103.7664615062501.23353849392
27470439463138.4809441057300.51905589522
28461251463385.124885385-2134.12488538492
29454724455594.156086407-870.156086407427
30455626450546.1797419955079.82025800546
31516847507506.8953677869340.10463221383
32525192546258.682432269-21066.6824322692
33522975526518.306281595-3543.30628159537
34518585506775.02648913711809.9735108633
35509239487373.44281269521865.5571873054
36512238503326.3207276318911.67927236884
37519164517333.6334502551830.36654974462
38517009518477.008632763-1468.00863276346
39509933511621.364240714-1688.36424071412
40509127504760.6438423474366.35615765263
41500857503986.608040813-3129.60804081318
42506971502196.0177857334774.98221426667
43569323562946.3745733756376.62542662525
44579714590315.471076116-10601.4710761162
45577992586641.224517669-8649.22451766883
46565464572167.891862108-6703.89186210837
47547344546390.01297408953.987025920069
48554788544120.85740877310667.1425912273
49562325556249.4911655666075.50883443374
50560854558811.1920211922042.80797880818
51555332554360.94431283971.055687170709
52543599551986.566648985-8387.56664898456
53536662540068.319813972-3406.31981397152
54542722540713.5764949842008.42350501625
55593530599742.680573712-6212.68057371234
56610763611282.766075753-519.766075753025
57612613613750.797599158-1137.79759915778
58611324604383.629149636940.37085037003
59594167590681.2062791583485.79372084187
60595454594618.981284408835.018715592101
61590865599125.871433409-8260.87143340858
62589379590458.197316543-1079.1973165432
63584428582593.8228132921834.17718670797
64573100576138.937168938-3038.93716893846
65567456568802.713766931-1346.71376693109
66569028572321.718686744-3293.71868674399
67620735624064.658499904-3329.65849990386
68628884638915.505962765-10031.5059627648
69628232633941.132577976-5709.13257797586
70612117623180.518266678-11063.5182666781
71595404594065.1816050231338.81839497702
72597141592506.8502855334634.14971446723
73593408592981.164534575426.83546542516
74590072590180.299805429-108.2998054286
75579799581861.778167286-2062.77816728572
76574205568678.5979399285526.40206007194
77572775565437.3482600517337.65173994948
78572942572361.675404226580.324595774175
79619567625565.16877017-5998.1687701703
80625809635091.455175316-9282.45517531584
81619916631187.180302219-11271.1803022191
82587625613485.75173597-25860.7517359707
83565742577481.872909657-11739.8729096568
84557274565638.04356287-8364.04356287047
85560576552043.4086749528532.59132504812
86548854550173.478856835-1319.47885683458
87531673536414.45706619-4741.45706618985
88525919520357.6106924295561.38930757134
89511038513696.632341192-2658.63234119164
90498662507000.780898371-8338.78089837148
91555362546663.8188198968698.18118010368
92564591559532.991900595058.00809940964
93541657560299.008870119-18642.0088701185
94527070528517.524193867-1447.52419386664
95509846510822.381644337-976.381644336914
96514258505540.6966714028717.30332859757
97516922508842.5848474758079.4151525253
98507561502761.6211412794799.37885872147
99492622491756.59297945865.407020549697
100490243483821.3020527296421.69794727088
101469357475305.68445808-5948.6844580801
102477580464934.44622227912645.5537777211
103528379526132.9770596912246.02294030902
104533590535226.047266048-1636.04726604815
105517945523870.844402354-5925.84440235398
106506174508562.197987808-2388.19798780815
107501866492436.1714923609429.82850763958
108516141500015.45606388716125.5439361132


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
109510904.760811597495665.719673594526143.8019496
110501267.606771325482761.949819087519773.263723563
111488124.057954161466276.029809854509972.086098469
112484055.530228084458770.280467361509340.779988807
113468628.277883591439801.790043209497454.765723973
114471294.369437229438818.401891705503770.336982752
115522015.839250204485780.572549717558251.105950692
116529375.700995004489271.223031825569480.178958183
117518640.970893084474558.131096588562723.81068958
118510035.089449248461865.992661955558204.186236541
119501789.080843939449427.367617441554150.794070437
120507313.021319746450654.018137292563972.024502201
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/26/t1264491617zzzuylwdkjv3deh/1cram1264491216.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/26/t1264491617zzzuylwdkjv3deh/1cram1264491216.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/26/t1264491617zzzuylwdkjv3deh/2yege1264491216.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/26/t1264491617zzzuylwdkjv3deh/2yege1264491216.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/26/t1264491617zzzuylwdkjv3deh/3uepf1264491216.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/26/t1264491617zzzuylwdkjv3deh/3uepf1264491216.ps (open in new window)


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