Home » date » 2009 » Dec » 03 »

w

*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: Thu, 03 Dec 2009 10:24:44 -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/03/t1259861166kf3snmj64ndsz6w.htm/, Retrieved Thu, 03 Dec 2009 18:26:10 +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/03/t1259861166kf3snmj64ndsz6w.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 «
13132.1 17665.9 16913 17318.8 16224.2 15469.6 16557.5 19414.8 17335 16525.2 18160.4 15553.8 15262.2 18581 17564.1 18948.6 17187.8 17564.8 17668.4 20811.7 17257.8 18984.2 20532.6 17082.3 16894.9 20274.9 20078.6 19900.9 17012.2 19642.9 19024 21691 18835.9 19873.4 21468.2 19406.8 18385.3 20739.3 22268.3 21569 17514.8 21124.7 21251 21393 22145.2 20310.5 23466.9 21264.6 18388.1 22635.4 22014.3 18422.7 16120.2 16037.7 16410.7 17749.8 16349.8 15662.3 17782.3 16398.9
 
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.311491073238867
beta0.198311700434253
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1315262.214642.7843279036619.415672096362
141858118118.4834432848462.516556715174
1517564.117390.8746132434173.225386756629
1618948.618920.821842666827.7781573331667
1717187.817163.994995872223.8050041278475
1817564.817580.668405127-15.8684051270102
1917668.418022.9436502772-354.543650277174
2020811.721044.3377955138-232.637795513809
2117257.818816.9020020803-1559.10200208033
2218984.217441.42146635551542.77853364446
2320532.619745.2406121274787.359387872613
2417082.317184.1730324847-101.873032484731
2516894.917365.1292307161-470.229230716148
2620274.920793.3156484679-518.415648467897
2720078.619381.2679325466697.33206745343
2819900.921100.5621325104-1199.66213251041
2917012.218698.9432523858-1686.74325238578
3019642.918382.53586303041260.36413696965
311902418884.0072523413139.992747658656
322169122270.1591755163-579.159175516299
3318835.918701.2075968680134.692403132041
3419873.420066.6909084720-193.290908472030
3521468.221251.2814731504216.918526849619
3619406.817639.65465400461767.14534599536
3718385.318125.0818283013260.218171698732
3820739.322050.6191387497-1311.31913874966
3922268.321181.06121145901087.23878854096
402156921719.030309965-150.030309964983
4117514.819123.4283381395-1608.62833813954
4221124.721129.4605710907-4.76057109073736
432125120404.8071634457846.192836554284
442139323794.4895257723-2401.48952577232
4522145.219905.66473403662239.53526596338
4620310.521871.8211575444-1561.32115754439
4723466.923013.3021334836453.597866516368
4821264.620296.2891951033968.310804896715
4918388.119366.8994649676-978.799464967553
5022635.421757.2621186045878.13788139549
5122014.323261.6939461822-1247.39394618223
5218422.722044.6205255027-3621.92052550270
5316120.217143.7070166730-1023.50701667302
5416037.719969.4835900108-3931.78359001076
5516410.718061.4499175978-1650.74991759779
5617749.817518.9750607891230.824939210892
5716349.817001.9720051595-652.172005159511
5815662.315064.6069679350597.693032065039
5917782.316842.0211896562940.278810343767
6016398.914736.55834753521662.34165246485


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
6112962.31898115710473.996643210315450.6413191037
6215277.350912668112546.402949187918008.2988761483
6314602.888214109211655.114314191217550.6621140273
6412477.56403257299409.0637601682415546.0643049776
6510882.97357332127679.7534031176514086.1937435248
6611318.62475517007691.9076395693314945.3418707707
6711853.10135344777676.4197522083716029.7829546871
6812776.99504095887816.7076810784217737.2824008391
6911908.89391368026620.37023829217197.4175890683
7011299.13772268505602.1767293712916996.0987159986
7112607.81206173085579.2020334272219636.4220900345
7211184.10877431444539.1721556887717829.0453929401
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259861166kf3snmj64ndsz6w/19sds1259861082.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259861166kf3snmj64ndsz6w/19sds1259861082.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t1259861166kf3snmj64ndsz6w/263i61259861082.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259861166kf3snmj64ndsz6w/263i61259861082.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t1259861166kf3snmj64ndsz6w/3jk431259861082.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259861166kf3snmj64ndsz6w/3jk431259861082.ps (open in new window)


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