Home » date » 2010 » Jan » 19 »

bruin brood double

*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 12:58:54 -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/t1263931176dvj2poovbjeln5x.htm/, Retrieved Tue, 19 Jan 2010 20:59:40 +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/t1263931176dvj2poovbjeln5x.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.0335069746630998
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
31.381.380
41.381.380
51.381.380
61.381.380
71.381.380
81.381.380
91.381.380
101.381.380
111.381.380
121.381.380
131.381.380
141.381.380
151.381.380
161.381.380
171.381.380
181.381.380
191.381.380
201.381.380
211.381.380
221.381.380
231.381.380
241.431.380.05
251.431.43167534873315-0.00167534873315489
261.431.4316192128656-0.00161921286560140
271.431.43156495794114-0.00156495794113942
281.431.43151252093506-0.00151252093505683
291.431.43146184093441-0.00146184093440849
301.431.43141285906726-0.00141285906725774
311.431.43136551843429-0.00136551843428867
321.431.43131976404271-0.00131976404270895
331.431.43127554274237-0.00127554274236874
341.431.43123280316402-0.00123280316401830
351.431.43119149565964-0.00119149565963705
361.431.43115157224476-0.00115157224475837
371.431.43111298654273-0.00111298654273062
381.431.43107569373084-0.00107569373084293
391.431.43103965048826-0.00103965048825838
401.431.43100481494569-0.00100481494568982
411.431.43097114663676-0.000971146636763454
421.431.43093860645101-0.000938606451011292
431.441.430907156588440.00909284341156136
441.481.441211830262250.0387881697377548
451.481.48251150448288-0.00251150448287629
461.481.48242735156580-0.00242735156580220
471.481.48234601835839-0.00234601835838855
481.481.48226741038069-0.00226741038069478
491.481.48219143631852-0.00219143631851804
501.481.48211800791732-0.00211800791731753
511.481.48204703987970-0.0020470398796959
521.481.48197844976631-0.00197844976631245
531.481.48191215790012-0.00191215790012045
541.481.48184808727381-0.00184808727380936
551.481.48178616346035-0.00178616346035043
561.481.48172631452654-0.00172631452654048
571.481.48166847094944-0.00166847094943900
581.481.48161256553561-0.00161256553561007
591.481.48155853334307-0.00155853334306588
601.481.48150631160583-0.00150631160582804
611.481.48145583966102-0.00145583966101692
621.481.48140705887838-0.00140705887838166
631.481.48135991259219-0.00135991259219437
641.481.48131434603542-0.00131434603542369
651.481.48127030627612-0.00127030627611613
661.481.48122774215591-0.00122774215590793
671.481.48118660423060-0.00118660423059702
681.481.48114684471271-0.00114684471270743
691.481.48110841741598-0.00110841741597612
701.481.48107127770170-0.00107127770170279
711.481.48103538242689-0.00103538242689472
721.481.48100068989415-0.00100068989415014
731.481.48096715980322-0.000967159803221262
741.571.48093475320420.0890652467958004
751.581.573919060171950.0060809398280508
761.581.58412281406870-0.00412281406869552
771.581.58398467104216-0.00398467104215516
781.581.58385115677050-0.00385115677050485
791.591.583722116158170.00627788384182804
801.61.593932469053000.00606753094700219
811.61.60413577365871-0.00413577365870665
821.611.603997196395510.0060028036044879
831.611.61419833218380-0.00419833218379528
841.611.61405765877369-0.00405765877368558
851.621.613921698903960.00607830109603591
861.631.624125364384780.00587463561521617
871.631.63432220565150-0.00432220565149777
881.641.634177381616240.00582261838375575
891.641.6443724799429-0.00437247994290169
901.641.64422597136824-0.00422597136823999
911.641.64408437185268-0.00408437185267729
921.641.64394751690849-0.00394751690849504
931.651.643815247559460.00618475244054006
941.651.65402247990278-0.00402247990278259
951.651.65388769877060-0.00388769877059714
961.651.65375743374639-0.00375743374639304
971.651.65363153350905-0.00363153350905443
981.661.653509851807780.00649014819222171
991.661.66372731703881-0.00372731703881479
1001.671.663602425921230.00639757407876607
1011.681.673816789273800.00618321072620365
1021.681.68402396995894-0.00402396995893595
1031.681.68388913889948-0.00388913889947684
1041.681.68375882562091-0.0037588256209109
1051.691.683632878746070.00636712125393202
1061.71.69384622171660.0061537782833998
1071.71.70405241620962-0.00405241620962449
1081.711.703916632002360.00608336799763576
1091.721.714120467259730.00587953274027253
1101.731.724317472614290.00568252738571351
1111.741.734507876915420.00549212308457792
1121.741.74469190134446-0.00469190134446351
1131.751.744534689924990.00546531007500706
1141.751.75471781593120-0.00471781593120224
1151.751.75455973619233-0.00455973619233019
1161.761.754406953227260.00559304677273653
1171.791.764594359303770.0254056406962331
1181.831.795445625462880.0345543745371246
1191.841.836603438014990.00339656198500982
1201.851.846717246531360.00328275346863638
1211.871.856827241668660.0131727583313377
1221.871.87726862094831-0.00726862094831371
1231.871.87702507145036-0.0070250714503628
1241.881.876789682559270.00321031744073075
1251.881.88689725058442-0.00689725058441604
1261.881.88666614458384-0.00666614458383896
1271.881.88644278224617-0.00644278224616768
1281.891.886226904104690.00377309589531438
1291.891.89635332913325-0.00635332913325137
1301.891.89614044829496-0.00614044829495719
1311.91.895934700449520.00406529955048218
1321.891.90607091633855-0.0160709163385537


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
1331.895532428551991.87394793245061.91711692465337
1341.901064857103971.870024155312661.93210555889528
1351.906597285655961.867945633506641.94524893780527
1361.912129714207941.866762195683031.95749723273285
1371.917662142759931.866112595099071.96921169042078
1381.923194571311911.865814882211171.98057426041265
1391.928726999863901.865762911404541.99169108832325
1401.934259428415881.865888783155422.00263007367634
1411.939791856967871.866146212552372.01343750138336
1421.945324285519851.866502144047582.02414642699212
1431.950856714071841.866932114610952.03478131353272
1441.956389142623821.867417505046492.04536078020115
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/19/t1263931176dvj2poovbjeln5x/12ibz1263931131.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/19/t1263931176dvj2poovbjeln5x/12ibz1263931131.ps (open in new window)


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


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


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