Home » date » 2010 » Jan » 19 »

Bruin brood triple

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 19 Jan 2010 13:01:48 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/19/t12639313535mrq50po7m3nl91.htm/, Retrieved Tue, 19 Jan 2010 21:02:37 +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/2010/Jan/19/t12639313535mrq50po7m3nl91.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:
KDGP2W62
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.38 1.38 1.38 1.38 1.38 1.38 1.38 1.38 1.38 1.38 1.38 1.38 1.38 1.38 1.38 1.38 1.38 1.38 1.38 1.38 1.38 1.38 1.38 1.43 1.43 1.43 1.43 1.43 1.43 1.43 1.43 1.43 1.43 1.43 1.43 1.43 1.43 1.43 1.43 1.43 1.43 1.43 1.44 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.57 1.58 1.58 1.58 1.58 1.59 1.6 1.6 1.61 1.61 1.61 1.62 1.63 1.63 1.64 1.64 1.64 1.64 1.64 1.65 1.65 1.65 1.65 1.65 1.66 1.66 1.67 1.68 1.68 1.68 1.68 1.69 1.7 1.7 1.71 1.72 1.73 1.74 1.74 1.75 1.75 1.75 1.76 1.79 1.83 1.84 1.85 1.87 1.87 1.87 1.88 1.88 1.88 1.88 1.89 1.89 1.89 1.9 1.89
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.0330450901927309
gamma0.00480500770391178


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
131.381.379906517094029.34829059822118e-05
141.381.38008321735619-8.32173561877703e-05
151.381.38008046743115-8.046743114698e-05
161.381.38007780837763-7.78083776271643e-05
171.381.38007523719277-7.52371927708051e-05
181.381.377989417639620.00201058236038354
191.381.38222252418172-0.00222252418172175
201.381.38006574733635-6.57473363481209e-05
211.381.38006357470969-6.35747096884298e-05
221.381.38006147387767-6.14738776727464e-05
231.381.38005944246784-5.94424678406202e-05
241.431.380057478186130.0499425218138705
251.431.43170783332392-0.00170783332392133
261.431.43165139781770-0.00165139781769819
271.431.43159682722787-0.00159682722786836
281.431.4315440599281-0.00154405992810114
291.431.43149303632851-0.00149303632851416
301.431.429360365475040.000639634524955968
311.431.43354816892228-0.00354816892227805
321.431.43134758602689-0.00134758602688922
331.431.43130305492509-0.00130305492508809
341.431.43125999535756-0.00125999535756249
351.431.43121835869733-0.00121835869732934
361.431.43117809792429-0.00117809792428902
371.431.43113916757213-0.00113916757212507
381.431.43110152367696-0.00110152367695959
391.431.43106512372771-0.00106512372770506
401.431.43102992661806-0.00102992661805668
411.431.43099589260007-0.000995892600071047
421.431.428879649905950.00112035009405376
431.441.433083338642520.00691666135748203
441.481.441228567007580.0387714329924247
451.481.48250977250771-0.00250977250771145
461.481.48242683684883-0.00242683684883094
471.481.48234664180628-0.00234664180627830
481.481.48226909681614-0.00226909681613985
491.481.48219411430719-0.00219411430719441
501.481.48212160960202-0.00212160960202001
511.481.48205150082137-0.00205150082136751
521.481.48198370879169-0.00198370879169496
531.481.48191815695576-0.00191815695575737
541.481.479771437952820.00022856204718269
551.481.48394565747295-0.00394565747294751
561.481.48173193953255-0.00173193953255102
571.481.48167470743449-0.00167470743448961
581.481.48161936657627-0.00161936657627049
591.481.48156585446170-0.00156585446170254
601.481.48151411065979-0.00151411065978690
611.481.48146407673647-0.00146407673647242
621.481.48141569618867-0.00141569618866666
631.481.48136891438043-0.00136891438042652
641.481.48132367848126-0.00132367848125936
651.481.48127993740646-0.00127993740645982
661.481.479154308426090.00084569157391079
671.481.48334892104709-0.00334892104709072
681.481.48115492231571-0.00115492231570813
691.481.48111675780362-0.00111675780361975
701.481.48107985444128-0.00107985444127578
711.481.48104417055387-0.00104417055386885
721.481.48100966584374-0.00100966584373974
731.481.48097630134487-0.000976301344868702
741.571.480944039378870.0890559606211279
751.581.573886901629800.00611309837020224
761.581.58408890951680-0.00408890951679819
771.581.58395379113303-0.00395379113302563
781.581.58173980441510-0.00173980441509825
791.591.585848979087950.00415102091204989
801.61.593902816615050.00609718338495258
811.61.60410429858992-0.00410429858992489
821.611.603968671672840.00603132832715714
831.611.61416797746140-0.00416797746139586
841.611.61403024627026-0.00403024627026261
851.621.613897066418760.00610293358123704
861.631.624098738409400.00590126159060467
871.631.63429374613091-0.00429374613090761
881.641.634151858902750.00584814109725285
891.641.64434511125277-0.00434511125276571
901.641.64211819332619-0.00211819332618735
911.641.64621486410334-0.00621486410334415
921.641.64392616002518-0.00392616002518054
931.651.643796419713040.00620358028696266
941.651.65400141758314-0.00400141758313777
951.651.65386919037820-0.00386919037820421
961.651.65374133263318-0.00374133263318366
971.651.65361769995888-0.00361769995887906
981.661.653498152737450.00650184726255243
991.661.66371300686666-0.00371300686665799
1001.671.663590310219860.0064096897801369
1011.681.673802118996760.00619788100324481
1021.681.68192359520018-0.00192359520017793
1031.681.68602669648996-0.00602669648996024
1041.681.68374421042755-0.00374421042755202
1051.691.683620482656270.00637951734372688
1061.71.693831294382280.00616870561771732
1071.71.70403513981579-0.00403513981579251
1081.711.703901798256640.00609820174336062
1091.721.714103313883260.00589668611673777
1101.731.724298170407830.00570182959217203
1111.741.734486587880960.00551341211903522
1121.741.74466877908171-0.00466877908170815
1131.751.744514498855860.00548550114413682
1141.751.75261243440259-0.00261243440259018
1151.751.7566927729388-0.00669277293880044
1161.761.754388276320070.0056117236799349
1171.791.764573716235210.0254262837647947
1181.831.795413930075480.0345860699245211
1191.841.836556829875550.00344317012445328
1201.851.846670609742860.00332939025714185
1211.871.856780629744190.0132193702558077
1221.871.87721746502659-0.0072174650265866
1231.871.87697896324382-0.00697896324382019
1241.881.876748342773980.00325165722602350
1251.881.88685579408029-0.00685579408028603
1261.881.88454591041323-0.00454591041322705
1271.881.88856235706028-0.00856235706028041
1281.891.886196079865630.00380392013437225
1291.891.89632178074955-0.00632178074955414
1301.891.89611287693451-0.00611287693450646
1311.91.895910876364870.00408912363513148
1321.891.9060460018242-0.0160460018242008


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
1331.895515760246691.873055346039141.91797617445424
1341.901031520493371.868738613996001.93332442699074
1351.906547280740061.866345457998561.94674910348156
1361.912063040986751.864886392396921.95923968957657
1371.917578801233441.863985122389251.97117248007763
1381.921011228146791.861368734804221.98065372148936
1391.928610321726811.863176601726501.99404404172712
1401.934126081973501.863087935491092.00516422845591
1411.939641842220191.863137800623872.0161458838165
1421.945157602466871.863291713181162.02702349175259
1431.950673362713561.863524143897282.03782258152984
1441.956189122960251.863815654602012.04856259131848
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/19/t12639313535mrq50po7m3nl91/143a41263931306.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/19/t12639313535mrq50po7m3nl91/143a41263931306.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/19/t12639313535mrq50po7m3nl91/2jys31263931306.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/19/t12639313535mrq50po7m3nl91/2jys31263931306.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/19/t12639313535mrq50po7m3nl91/3e6s61263931306.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/19/t12639313535mrq50po7m3nl91/3e6s61263931306.ps (open in new window)


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