Home » date » 2009 » Dec » 04 »

*The author of this computation has been verified*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 04 Dec 2009 08:23:15 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/04/t1259940228ndkpmvxj4j61x7d.htm/, Retrieved Fri, 04 Dec 2009 16:23:52 +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/2009/Dec/04/t1259940228ndkpmvxj4j61x7d.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
274412 272433 268361 268586 264768 269974 304744 309365 308347 298427 289231 291975 294912 293488 290555 284736 281818 287854 316263 325412 326011 328282 317480 317539 313737 312276 309391 302950 300316 304035 333476 337698 335932 323931 313927 314485 313218 309664 302963 298989 298423 301631 329765 335083 327616 309119 295916 291413 291542 284678 276475 272566 264981 263290 296806 303598 286994 276427 266424 267153 268381 262522 255542 253158 243803 250741 280445 285257 270976 261076 255603 260376 263903 264291 263276 262572 256167 264221 293860
 
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.897909443669848
beta0.121731637445269
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13294912285544.4313199819367.56868001918
14293488293971.846090189-483.846090189123
15290555291712.505658404-1157.50565840380
16284736285260.591331686-524.591331686475
17281818281804.89867216613.1013278336031
18287854287956.630200848-102.630200848449
19316263326853.300613778-10590.3006137776
20325412321566.0002735803845.99972641963
21326011323685.5404238182325.45957618172
22328282315493.68583310512788.3141668948
23317480318613.054615749-1133.05461574852
24317539322122.483657163-4583.48365716252
25313737323537.415756767-9800.41575676686
26312276312473.656537743-197.656537743344
27309391309133.074789482257.925210517715
28302950302709.928061431240.071938568552
29300316298952.9647144961363.03528550430
30304035305983.45226617-1948.45226616971
31333476343260.82938262-9784.82938262017
32337698339616.444050717-1918.44405071699
33335932334862.5830223631069.41697763669
34323931324727.874595050-796.874595049536
35313927311523.9165590792403.08344092086
36314485315342.959249098-857.959249098029
37313218317417.124090838-4199.12409083801
38309664310882.84271168-1218.84271168016
39302963305139.268241003-2176.26824100252
40298989294904.711892834084.28810717002
41298423293447.9094179534975.09058204654
42301631302391.836013607-760.836013607448
43329765338698.948976348-8933.94897634757
44335083335721.225426708-638.22542670765
45327616331736.865112247-4120.86511224665
46309119315795.872347194-6676.87234719389
47295916296381.391523783-465.391523782630
48291413295130.355029477-3717.35502947686
49291542291699.734879385-157.734879384516
50284678287281.358562566-2603.35856256558
51276475278458.604235113-1983.6042351129
52272566267629.55750634936.44249369996
53264981265575.522763335-594.522763334506
54263290266025.682297671-2735.68229767052
55296806292139.1599906314666.84000936855
56303598299956.6357847073641.36421529332
57286994298621.921577478-11627.9215774777
58276427275170.9024208061256.09757919359
59266424263712.8100929282711.18990707211
60267153264286.4537353832866.54626461701
61268381267008.2062531531372.79374684725
62262522264147.859129584-1625.85912958387
63255542256921.976843391-1379.97684339058
64253158248171.4876651434986.51233485743
65243803246367.213856235-2564.21385623497
66250741244791.0759285565949.92407144394
67280445279121.0208304411323.97916955902
68285257284429.313356364827.686643635912
69270976279838.082179015-8862.08217901486
70261076261515.848421809-439.848421808711
71255603249880.1524773155722.84752268463
72260376254134.1638545086241.83614549204
73263903261036.7409578242866.25904217645
74264291260761.2553804063529.74461959425
75263276260204.0737125583071.92628744247
76262572258423.5784843204148.4215156796
77256167257220.283077732-1053.28307773196
78264221260550.9513103243670.04868967616
79293860296457.037692250-2597.03769225033


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
80300597.60195908291690.357497741309504.846420420
81295981.006901015283459.160170707308502.853631322
82288674.578714217273015.343944749304333.813483685
83279975.611404529261459.463553877298491.75925518
84281394.657842215259522.52264454303266.793039889
85284019.163037638258665.327653885309372.998421391
86282266.188694958253754.518724470310777.858665446
87279051.090073625247517.40376877310584.776378479
88274805.233219444240374.146123622309236.320315265
89269077.783282806231963.718660532306191.847905080
90274176.786930806232878.063182934315475.510678677
91307014.564577500257793.98058216356235.148572839
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259940228ndkpmvxj4j61x7d/14u8x1259940194.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259940228ndkpmvxj4j61x7d/14u8x1259940194.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259940228ndkpmvxj4j61x7d/2f0621259940194.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259940228ndkpmvxj4j61x7d/2f0621259940194.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259940228ndkpmvxj4j61x7d/34d9z1259940194.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259940228ndkpmvxj4j61x7d/34d9z1259940194.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=0, beta=0)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=0)
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