Home » date » 2010 » Aug » 19 »

Tijdreeks A - Stap 32

*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 Aug 2010 19:38:01 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Aug/19/t128224665197029ilybhzuzc5.htm/, Retrieved Thu, 19 Aug 2010 21:37:34 +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/2010/Aug/19/t128224665197029ilybhzuzc5.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:
Gregory Goris
 
Dataseries X:
» Textbox « » Textfile « » CSV «
159 158 157 155 175 174 159 149 150 150 151 153 146 156 154 151 171 167 144 138 138 132 132 132 125 131 129 131 145 156 126 123 127 116 114 114 109 110 113 114 138 155 126 123 124 124 134 131 126 128 128 124 148 174 146 137 152 159 170 166 165 168 175 180 199 228 206 193 201 214 225 224 215 222 238 248 262 288 261 240 248 260 266 268 256 261 287 295 304 331 299 275 293 309 311 311 289 298 319 325 331 348 320 305 322 337 346 343 321 331 343 345 347 363 322 304 323 340 352 351
 
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'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.9999492214626
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
2158159-1
3157158.000050778537-1.0000507785374
4155157.000050781116-2.00005078111585
5175155.00010155965319.9998984403466
6174174.998984434409-0.998984434409039
7159174.000050726968-15.0000507269685
8149159.000761680637-10.0007616806368
9150149.0005078240510.999492175948973
10150149.9999492472495.07527508375460e-05
11151149.9999999974231.00000000257717
12153150.9999492214622.00005077853754
13146152.999898440347-6.99989844034673
14156146.0003554446059.99964455539526
15154155.999492232675-1.99949223267495
16151154.000101531291-3.00010153129111
17171151.00015234076819.9998476592322
18167170.998984436988-3.99898443698766
19144167.000203062581-23.0002030625808
20138144.001167916671-6.00116791667142
21138138.000304730530-0.000304730529506969
22132138.000000015474-6.00000001547377
23132132.000304671225-0.000304671225194397
24132132.000000015471-1.54707606725424e-08
25125132.000000000001-7.0000000000008
26131125.0003554497625.9996445502382
27129130.999695346825-1.99969534682481
28131129.0001015416051.99989845839505
29145130.99989844808114.0001015519187
30156144.99928909532011.0007109046803
31126155.99944139999-29.9994413999899
32123126.001523327757-3.0015233277571
33127123.0001524129653.99984758703545
34116126.999796893590-10.9997968935897
35114116.000558553598-2.00055855359795
36114114.000101585437-0.000101585437334961
37109114.000000005158-5.00000000515837
38110109.0002538926870.999746107312731
39113109.9999492343553.0000507656451
40114112.999847661811.00015233819001
41138113.99994921372724.0000507862729
42155137.99878131252417.0012186874764
43126154.999136702981-28.9991367029810
44123126.001472533748-3.00147253374763
45124123.0001524103850.999847589614689
46124123.9999492292025.07707982251304e-05
47134123.99999999742210.0000000025781
48131133.999492214626-2.99949221462586
49126131.000152309828-5.0001523098276
50128126.0002539004211.99974609957893
51128127.9998984558180.000101544182101065
52124127.999999994844-3.99999999484373
53148124.00020311414923.9997968858507
54174147.99878132541626.0012186745838
55146173.998679696145-27.9986796961451
56137146.001421732004-9.00142173200408
57152137.0004570790314.9995429209699
58159151.9992383451497.0007616548512
59170158.99964451156211.0003554884375
60166169.999441418037-3.99944141803741
61165166.000203085786-1.00020308578561
62168165.0000507888502.99994921115021
63175167.9998476669677.00015233303321
64180174.9996445425035.00035545749705
65199179.99974608926319.0002539107366
66228198.99903519489629.0009648051038
67206227.998527373424-21.9985273734240
68193206.001117053045-13.0011170530450
69201193.0006601777097.99933982229146
70214200.99959380522413.0004061947763
71225213.99933985838811.0006601416122
72224224.999441402568-0.999441402567584
73215224.000050750173-9.00005075017265
74222215.0004570094146.99954299058638
75238221.99964457344416.0003554265555
76248237.99918752535410.0008124746464
77262247.9994921733714.0005078266303
78288261.99928907469026.0007109253103
79261287.998679721928-26.9986797219279
80240261.001370953468-21.001370953468
81248240.0010664189007.9989335810996
82260247.99959382585212.000406174148
83266259.9993906369266.00060936307375
84268265.9996952978332.00030470216694
85256267.999898427453-11.9998984274529
86261256.0006093372914.99939066270889
87287260.99974613825426.0002538617458
88295286.9986797451378.00132025486312
89304294.999593704669.00040629533981
90331303.99954297253227.0004570274677
91299330.998628956283-31.998628956283
92275299.001624843577-24.0016248435772
93293275.00121876740517.9987812325953
94309292.99908604821416.0009139517859
95311308.9991874969922.00081250300752
96311310.9998984016670.000101598332548747
97289310.999999994841-21.9999999948409
98298289.0011171278238.99888287217749
99319297.99954304988921.0004569501105
100325318.9989336275116.00106637248865
101331324.9996952746276.00030472537327
102348330.99969531330217.0003046866979
103320347.999136749393-27.9991367493926
104305320.001421755213-15.0014217552126
105322305.00076175025616.9992382497444
106337321.99913680354515.0008631964553
107346336.9992382781079.00076172189284
108343345.999542954484-2.99954295448424
109321343.000152312404-22.0001523124041
110331321.0011171355579.99888286444303
111343330.99949227135212.0005077286475
112345342.9993906317692.00060936823053
113347344.9998984119822.00010158801763
114363346.99989843776716.0001015622333
115322362.999187538244-40.9991875382444
116304322.002081878778-18.0020818787777
117323304.00091411938818.9990858806121
118340322.99903525420717.0009647457929
119352339.99913671587612.0008632841242
120351351.999390613715-0.999390613714866


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
121351.000050747594323.490412931058378.509688564129
122351.000050747594312.096535595816389.903565899372
123351.000050747594303.353573338111398.646528157076
124351.000050747594295.982870449981406.017231045206
125351.000050747594289.489129389938412.510972105249
126351.000050747594283.618326484739418.381775010448
127351.000050747594278.219558285650423.780543209537
128351.000050747594273.194502093461428.805599401727
129351.000050747594268.474862351939433.525239143249
130351.000050747594264.010913275688437.989188219499
131351.000050747594259.76511579133442.234985703857
132351.000050747594255.708305696717446.291795798471
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/19/t128224665197029ilybhzuzc5/16fcp1282246679.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t128224665197029ilybhzuzc5/16fcp1282246679.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t128224665197029ilybhzuzc5/26fcp1282246679.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t128224665197029ilybhzuzc5/26fcp1282246679.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t128224665197029ilybhzuzc5/349jg1282246679.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t128224665197029ilybhzuzc5/349jg1282246679.ps (open in new window)


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