Home » date » 2010 » Dec » 24 »

Aantal bezoekers aan Hawai vanuit Europa

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 24 Dec 2010 12:23:32 +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/Dec/24/t1293193383fprtd92tj5mkwv2.htm/, Retrieved Fri, 24 Dec 2010 13:23:03 +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/Dec/24/t1293193383fprtd92tj5mkwv2.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:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6.715 7.703 9.856 8.326 9.269 7.035 10.342 11.682 10.304 11.385 9.777 8.882 7.897 6.930 9.545 9.110 7.459 7.320 10.017 12.307 11.072 10.749 9.589 9.080 7.384 8.062 8.511 8.684 8.306 7.643 10.577 13.747 11.783 11.611 9.946 8.693 7.303 7.609 9.423 8.584 7.586 6.843 11.811 13.414 12.103 11.501 8.213 7.982 7.687 7.180 7.862 8.043 8.340 6.692 10.065 12.684 11.587 9.843 8.110 7.940 6.475 6.121 9.669 7.778 7.826 7.403 10.741 14.023 11.519 10.236 8.075 8.157
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.172101349199545
beta1.00695276769591e-17
gamma0.56714601229616


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
137.8978.04931704059829-0.152317040598291
146.937.03634972158939-0.106349721589392
159.5459.56775177353435-0.0227517735343454
169.119.11608281179655-0.00608281179655101
177.4597.49111593419692-0.0321159341969199
187.327.3389187211083-0.0189187211083066
1910.01710.2761594328646-0.259159432864589
2012.30711.54726272732830.759737272671716
2111.07210.33792785284310.734072147156912
2210.74911.5183009756294-0.769300975629413
239.5899.81339988896721-0.224399888967211
249.088.936068681166540.143931318833458
257.3847.89873391652774-0.514733916527737
268.0626.844977632430941.21702236756906
278.5119.64338633832118-1.13238633832118
288.6849.0085745054646-0.3245745054646
298.3067.316571200525190.989428799474812
307.6437.346379826127120.296620173872875
3110.57710.22512272336370.351877276636287
3213.74712.07979842645681.66720157354325
3311.78311.01458859439490.768411405605077
3411.61111.49497860819920.116021391800825
359.94610.1982952347580-0.252295234757987
368.6939.48910922139479-0.79610922139479
377.3037.9807229199573-0.677722919957302
387.6097.71204384688817-0.103043846888166
399.4239.180127378920880.242872621079121
408.5849.16129896664135-0.577298966641346
417.5868.04277778851734-0.456777788517337
426.8437.49839134998603-0.655391349986029
4311.81110.23923716740631.57176283259374
4413.41412.92145342590840.4925465740916
4512.10311.23206647089140.870933529108557
4611.50111.42377785283040.0772221471695875
478.2139.94747790242363-1.73447790242363
487.9828.72786414919892-0.745864149198918
497.6877.28371212759890.403287872401103
507.187.47091094812189-0.290910948121889
517.8629.06908371574186-1.20708371574186
528.0438.41561297133932-0.372612971339322
538.347.388907973048690.951092026951311
546.6926.9935609331211-0.301560933121097
5510.06510.8410381222180-0.776038122217965
5612.68412.61246009441430.0715399055856949
5711.58711.02828491450930.55871508549069
589.84310.7935843004140-0.950584300414015
598.118.28973288608468-0.179732886084679
607.947.801885974531540.13811402546846
616.4757.04943996131487-0.574439961314871
626.1216.74241679207219-0.621416792072193
639.6697.853529829579831.81547017042017
647.7788.11206159500171-0.334061595001715
657.8267.713523015605430.112476984394566
667.4036.585679253081830.81732074691817
6710.74110.40293174550170.338068254498262
6814.02312.76406422249521.25893577750484
6911.51911.6129894248065-0.0939894248065176
7010.23610.5572819280311-0.321281928031121
718.0758.52367942579023-0.448679425790234
728.1578.138788105877940.0182118941220626


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
737.031134589561185.625366134962718.43690304415965
746.800915838903475.374480659268178.22735101853877
759.163190031785157.7163833081837510.6099967553866
768.099987036505946.633091651955559.56688242105633
777.968608373182236.481895743595649.45532100276882
787.152359100199365.646089928792978.65862827160575
7910.60392165279469.0783466167880512.1294966888011
8013.339255728231211.794616105457214.8838953510051
8111.33626467206429.772792914084412.8997364300439
8210.19001009234078.6079303498000811.7720898348813
838.151882496385646.551411101603969.75235389116732
848.063433389811416.444779300985939.68208747863689
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293193383fprtd92tj5mkwv2/1hj1a1293193407.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293193383fprtd92tj5mkwv2/1hj1a1293193407.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293193383fprtd92tj5mkwv2/2rs0v1293193407.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293193383fprtd92tj5mkwv2/2rs0v1293193407.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293193383fprtd92tj5mkwv2/3rs0v1293193407.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293193383fprtd92tj5mkwv2/3rs0v1293193407.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