Home » date » 2010 » Jul » 08 »

Kelly Janbroers - 2de zit - Stap 27/B

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 08 Jul 2010 15:42:46 +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/Jul/08/t1278603776x4yshytbx37ybjy.htm/, Retrieved Thu, 08 Jul 2010 17:43:00 +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/Jul/08/t1278603776x4yshytbx37ybjy.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
268 267 266 264 262 261 262 264 265 265 266 268 260 264 265 262 258 265 273 273 270 263 260 257 248 248 237 228 225 231 243 250 246 240 236 235 225 230 225 221 231 234 249 257 253 252 245 239 229 232 222 218 223 221 230 234 237 226 215 211 203 202 187 179 181 172 182 180 175 163 160 151 145 140 125 122 124 108 115 116 104 98 101 91
 
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
alpha1
beta0.0475220280630285
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
32662660
4264265-1
5262262.952477971937-0.952477971936958
6261260.9072142870250.0927857129748304
7262259.9116236522812.08837634771902
8264261.0108675316832.98913246831654
9265263.1529171687271.8470828312731
10265264.2406942908690.759305709130558
11266264.2767780380871.72322196191288
12268265.358669040522.64133095948
13260267.4841904445-7.48419044450014
14264259.1285265361684.87147346383244
15265263.3600288348241.63997116517589
16262264.437963590558-2.43796359055813
17258261.322106616391-3.32210661639101
18265257.1642333725387.83576662746151
19273264.5366048941048.46339510589593
20273272.9388025938350.0611974061650358
21270272.941710818688-2.94171081868814
22263269.801914754609-6.80191475460907
23260262.478673970758-2.47867397075822
24257259.360882356761-2.36088235676078
25248256.248688439149-8.24868843914925
26248246.8566940356611.14330596433916
27237246.911026253783-9.9110262537828
28228235.440034186017-7.44003418601713
29225226.086468672639-1.08646867263931
30231223.0348374778897.96516252211146
31243229.41335815479113.5866418452091
32250242.0590229298417.94097707015874
33246249.436394265017-3.43639426501721
34240245.273089840319-5.27308984031944
35236239.022501916949-3.0225019169489
36235234.8788664960310.121133503968906
37225233.884623005806-8.88462300580608
38230223.4624077019956.53759229800528
39225228.773087346645-3.77308734664518
40221223.593782583874-2.59378258387366
41231219.47052077513311.5294792248666
42234230.0184250104103.98157498959037
43249233.207637528815.7923624712000
44257248.9581226213388.04187737866212
45253257.340288943806-4.34028894380612
46252253.134029610817-1.13402961081690
47245252.080138223827-7.08013822382733
48239244.743675696464-5.74367569646449
49229238.470724578832-9.47072457883218
50232228.0206565396203.97934346038031
51222231.209763011216-9.20976301121632
52218220.772096394943-2.77209639494345
53223216.6403607522706.35963924773046
54221221.942583707071-0.942583707070924
55230219.89779021769210.1022097823083
56234229.3778677144654.6221322855348
57237233.5975208146493.40247918535059
58226236.759213525980-10.7592135259795
59215225.247913878862-10.2479138788618
60211213.760912227923-2.76091222792303
61203209.629708079548-6.62970807954812
62202201.3146509061420.685349093857866
63187200.347220085013-13.3472200850134
64179184.71293311757-5.71293311757
65181176.4414429496354.55855705036538
66172178.658074825709-6.65807482570901
67182169.34166960699612.6583303930041
68180179.9432191391630.0567808608366533
69175177.945917480825-2.94591748082547
70163172.805921507630-9.80592150763033
71160160.339924230561-0.339924230560854
72151157.323770341737-6.32377034173683
73145148.023251950093-3.02325195009269
74140141.879580886079-1.87958088607877
75125136.790259390464-11.7902593904638
76122121.2299623528400.770037647160208
77124118.2665561035185.73344389648227
78108120.539020985264-12.5390209852642
79115103.94314127812011.0568587218805
80116111.4685856285904.53141437141032
81104112.683927629513-8.68392762951305
8298100.271249777006-2.27124977700602
8310194.1633153813656.836684618635
849197.4882084996698-6.48820849966984


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8587.179875673269774.368511501546999.9912398449926
8683.359751346539564.8062490078778101.913253685201
8779.539627019809256.2792418178234102.800012221795
8875.71950269307948.2365699427932103.202435443365
8971.899378366348740.470538172337103.328218560360
9068.079254039618532.8774350756663103.281073003571
9164.259129712888225.3973090102854103.120950415491
9260.43900538615817.9921860204390102.885824751877
9356.618881059427710.6364552352157102.601306883640
9452.79875673269753.31203661472124102.285476850674
9548.9786324059672-3.99428286974069101.951547681675
9645.158508079237-11.2924234230024101.609439581476
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/08/t1278603776x4yshytbx37ybjy/1d2lp1278603764.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/08/t1278603776x4yshytbx37ybjy/1d2lp1278603764.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/08/t1278603776x4yshytbx37ybjy/2d2lp1278603764.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/08/t1278603776x4yshytbx37ybjy/2d2lp1278603764.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/08/t1278603776x4yshytbx37ybjy/3ob2a1278603764.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/08/t1278603776x4yshytbx37ybjy/3ob2a1278603764.ps (open in new window)


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