Home » date » 2010 » Aug » 16 »

tijdreeks 1 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: Mon, 16 Aug 2010 12:21:29 +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/16/t12819612633xjg3ggggkk2809.htm/, Retrieved Mon, 16 Aug 2010 14:21:07 +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/16/t12819612633xjg3ggggkk2809.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:
Magali De Reu
 
Dataseries X:
» Textbox « » Textfile « » CSV «
333 332 331 329 349 348 333 323 324 324 325 327 329 333 329 333 355 358 338 326 320 322 322 324 326 330 331 333 364 363 341 327 313 321 312 312 312 314 312 319 356 351 329 313 298 303 278 275 276 276 273 287 320 313 281 266 258 259 237 231 237 236 229 243 271 262 227 208 212 222 200 193 204 203 190 209 240 234 210 195 202 204 180 169 178 181 163 174 194 187 160 143 151 154 141 127 134 138 120 129 151 152 124 99 104 109 96 87 94 89 63 76 100 104 80 55 60 71 62 61
 
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'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.999950136832542
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
2332333-1
3331332.000049863167-1.00004986316748
4329331.000049865654-2.00004986565381
5349329.00009972882119.9999002711786
6348348.999002741624-0.999002741623599
7333348.000049813441-15.0000498134410
8323333.000747949996-10.0007479499957
9324323.000498668970.999501331030274
10324323.9999501616984.98383022318194e-05
11325323.9999999975151.00000000248508
12327324.9999501368322.00004986316759
13329326.9999002711792.00009972882128
14333328.9999002686924.00009973130773
15329332.999800542357-3.99980054235721
16333329.0001994427243.99980055727576
17355332.99980055727522.0001994427250
18358354.9989030003713.00109699962894
19338357.999850355798-19.9998503557977
20326338.000997255887-12.0009972558875
21320326.000598407736-6.00059840773582
22322320.0002992088431.99970079115678
23322321.9999002885859.97114154301926e-05
24324321.9999999950282.00000000497192
25326323.9999002736652.00009972633512
26330325.9999002686924.00009973130761
27331329.9998005423571.00019945764279
28333330.9999501268872.00004987311303
29364332.99990027117831.0000997288218
30363363.998454236836-0.998454236835983
31341363.000049786091-22.0000497860908
32327341.001096992167-14.0010969921666
33313327.000698139044-14.0006981390439
34321313.0006981191567.99930188084414
35312320.999601129471-8.99960112947082
36312312.000448748618-0.000448748618168793
37312312.000000022376-2.23760707740439e-08
38314312.0000000000011.99999999999886
39312313.999900273665-1.99990027366505
40319312.0000997213626.99990027863777
41356318.999650962837.0003490371998
42351355.9981550454-4.99815504539998
43329351.000249223842-22.000249223842
44313329.001097002111-16.0010970021112
45298313.000797865379-15.0007978653793
46303298.0007479872964.99925201270406
47278302.99975072146-24.9997507214597
48275278.001246566757-3.00124656675661
49276275.000149651660.999850348339862
50276275.9999501442954.98557053560944e-05
51273275.999999997514-2.99999999751401
52287273.00014958950213.9998504104978
53320286.99930192311533.0006980768854
54313319.998354480666-6.99835448066557
55281313.000348960121-32.0003489601214
56266281.001595638759-15.0015956387589
57258266.000748027075-8.00074802707547
58259258.0003989426390.999601057361303
59237258.999950156725-21.9999501567251
60231237.001096987199-6.00109698719874
61237231.0002992337045.999700766296
62236236.999700835916-0.999700835916002
63229236.00004984825-7.00004984825017
64243229.00034904465813.9996509553422
65271242.9993019330628.0006980669399
66262270.998603796503-8.99860379650335
67227262.000448698888-35.000448698888
68208227.001745233235-19.0017452332346
69212208.0009474872053.99905251279543
70222211.99980059457510.0001994054251
71200221.999501358382-21.9995013583824
72193200.001096964820-7.00109696482025
73204193.00034909687010.9996509031297
74203203.999451522565-0.99945152256504
75190203.000049835819-13.0000498358186
76209190.00064822366218.9993517763381
77240208.99905263214131.0009473678592
78234239.99845419457-5.99845419457006
79210234.000299101926-24.000299101926
80195210.001196730933-15.0011967309332
81202195.0007480071856.99925199281535
82204201.9996509951262.00034900487418
83180203.999900256263-23.9999002562626
84169180.001196711045-11.0011967110455
85178169.0005485545148.99945144548616
86181177.9995512588463.00044874115446
87163180.999850388122-17.999850388122
88174163.00089752955410.9991024704459
89194173.99945154991220.0005484500884
90187193.999002709303-6.9990027093034
91160187.000348992444-27.0003489924441
92143160.001346322923-17.0013463229232
93151143.0008477409797.99915225902132
94154150.9996011369313.00039886306860
95141153.999850390609-12.9998503906090
96127141.000648213717-14.0006482137169
97134127.0006981166666.9993018833336
98138133.9996509926384.00034900736190
99120137.999800529928-17.9998005299275
100129120.0008975270688.99910247293197
101151128.99955127624622.0004487237536
102152150.9989029879411.00109701205884
103124151.999950082132-27.9999500821320
10499124.001396166200-25.0013961661998
10510499.00124664880374.99875335119629
106109103.9997507463255.00024925367542
10796108.999750671734-12.9997506717341
1088796.0006482087447-9.00064820874466
1099487.00044880082896.99955119917114
1108993.9996509802064-4.99965098020643
1116389.000249298434-26.0002492984341
1127663.001296454784712.9987035452153
11310075.999351843468424.0006481565316
11410499.99880325166194.00119674833812
11580103.999800487657-23.9998004876565
1165580.0011967060707-25.0011967060707
1176055.0012466388584.998753361142
1187159.999750746324111.0002492536759
1196270.9994514927294-8.9994514927294
1206162.0004487411568-1.00044874115681


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
12161.000049885543132.968520171933789.0315795991525
12261.000049885543121.358468730212100.641631040874
12361.000049885543112.4496301664054109.550469604681
12461.00004988554314.93908705654619117.06101271454
12561.0000498855431-1.67785572499808123.677955496084
12661.0000498855431-7.66004150773751129.660141278824
12761.0000498855431-13.1612368383493135.161336609436
12861.0000498855431-18.2816298831974140.281729654284
12961.0000498855431-23.0908119566503145.090911727737
13061.0000498855431-27.6394522778411149.639552048927
13161.0000498855431-31.9658021364888153.965901907575
13261.0000498855431-36.0995790560345158.099678827121
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/16/t12819612633xjg3ggggkk2809/1tyya1281961286.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/16/t12819612633xjg3ggggkk2809/1tyya1281961286.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/16/t12819612633xjg3ggggkk2809/2tyya1281961286.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/16/t12819612633xjg3ggggkk2809/2tyya1281961286.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/16/t12819612633xjg3ggggkk2809/3m8fv1281961286.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/16/t12819612633xjg3ggggkk2809/3m8fv1281961286.ps (open in new window)


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