Home » date » 2010 » May » 30 »

invoer uitvoer

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 30 May 2010 01:03:56 +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/May/30/t127518160387stgt9f0qijylh.htm/, Retrieved Sun, 30 May 2010 03:06:43 +0200
 
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/May/30/t127518160387stgt9f0qijylh.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 «
18288.3 16049 16764.5 17880.2 16555.9 16087.1 16373.5 17842.2 22321.5 22786.7 18274.1 22392.9 23899.3 21343.5 22952.3 21374.4 21164.1 20906.5 17877.4 20664.3 22160 19813.6 17735.4 19640.2 20844.4 19823.1 18594.6 21350.6 18574.1 18924.2 17343.4 19961.2 19932.1 19464.6 16165.4 17574.9 19795.4 19439.5 17170 21072.4 17751.8 17515.5 18040.3 19090.1 17746.5 19202.1 15141.6 16258.1 18586.5 17209.4 17838.7 19123.5 16583.6 15991.2 16704.5 17422 17872 17823.2 13866.5 15912.8 17870.5 15420.3 16379.4 17903.9 15305.8 14583.3 14861 14968.9 16726.5 16283.6 11703.7 15101.8 15469.7 14956.9 15370.6 15998.1 14725.1 14768.9 13659.6 15070.3 16942.6 15761.3 12083 15023.6 15106.5
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.326901016459753
beta0.0446229444979951
gamma0.91238775163749


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1323899.321615.74869123932283.55130876068
1421343.519874.15738799741469.34261200265
1522952.322121.8258216281830.474178371886
1621374.421227.5285458716146.871454128443
1721164.121495.2199672658-331.119967265779
1820906.521545.3420321796-638.842032179575
1917877.419280.1713032421-1402.77130324211
2020664.320084.9503596855579.349640314478
212216024532.7045728378-2372.70457283775
2219813.624041.7304430732-4228.1304430732
2317735.417970.5554293756-235.15542937558
2419640.221777.4410602050-2137.24106020496
2520844.423850.6933789375-3006.29337893752
2619823.119714.5998937978108.500106202198
2718594.620939.9911905536-2345.39119055362
2821350.618356.28415521872994.31584478128
2918574.119071.3998930772-497.299893077179
3018924.218685.9323628415238.267637158515
3117343.416058.849832141284.55016786001
3219961.218819.10220816861142.09779183138
3319932.121505.8020214568-1573.70202145675
3419464.620016.1299424397-551.529942439676
3516165.417532.2407550719-1366.84075507191
3617574.919717.7529811395-2142.85298113946
3719795.421172.0784989800-1376.67849898003
3819439.519421.975515034317.5244849656592
391717019049.6862691411-1879.68626914107
4021072.419843.33275053711229.06724946287
4117751.817757.1947173780-5.39471737795611
4217515.517911.5433523241-396.043352324094
4318040.315637.68145632282402.6185436772
4419090.118610.2841249505479.815875049546
4517746.519337.3121830273-1590.81218302726
4619202.118394.2165274608807.88347253915
4715141.615798.2725234051-656.672523405095
4816258.117693.9847830826-1435.88478308255
4918586.519814.8758977416-1228.37589774163
5017209.418936.5629197668-1727.16291976681
5117838.716770.44614120361068.25385879642
5219123.520421.5914093451-1298.09140934514
5316583.616698.9853570465-115.385357046503
5415991.216523.6449667608-532.44496676078
5516704.515868.113105563836.38689443701
561742217069.205713296352.794286703993
571787216402.56643946111469.43356053891
5817823.217897.0986252003-73.8986252002796
5913866.514064.7385634458-198.238563445804
6015912.815589.7283407549323.071659245112
6117870.518396.6698562816-526.169856281551
6215420.317435.4422031367-2015.14220313669
6316379.416881.5777051103-502.177705110318
6417903.918532.8531405357-628.953140535705
6515305.815731.8250137122-426.025013712208
6614583.315170.7810438640-587.481043864043
671486115309.0644964530-448.064496453022
6814968.915745.7142638718-776.814263871778
6916726.515331.51854266361394.98145733641
7016283.615788.7789360675494.821063932515
7111703.712009.1385039417-305.438503941714
7215101.813760.83671028971340.96328971034
7315469.716335.4353143074-865.735314307407
7414956.914300.2811613617656.618838638276
7515370.615539.4408733427-168.840873342739
7615998.117217.1607413557-1219.06074135574
7714725.114334.5740031767390.525996823339
7814768.913939.9425679843828.95743201572
7913659.614646.1784245800-986.578424580044
8015070.314716.3355113673353.964488632695
8116942.616033.4887465577909.111253442334
8215761.315799.9543649097-38.6543649097457
831208311367.5268237749715.473176225085
8415023.614492.0224358100531.577564189965
8515106.515462.9916007743-356.491600774285


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8614552.810779073412052.697554254917052.9240038918
8715084.387367045712442.518466880217726.2562672113
8816188.799319407613400.972303674618976.6263351406
8914727.465160576511789.651212894917665.2791082581
9014502.975642682111411.302090606817594.6491947574
9113839.714720125310590.449686891817088.9797533587
9215086.501079451211676.040024948218496.9621339542
9316654.562173953413079.416093136420229.7082547704
9415554.216667887411811.001733742519297.4316020324
9511610.54640545327695.9748658501215525.1179450564
9614390.771828081410301.643988567218479.8996675956
9714637.380011806910370.57715800918904.1828656049
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/30/t127518160387stgt9f0qijylh/1stck1275181432.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/30/t127518160387stgt9f0qijylh/1stck1275181432.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/30/t127518160387stgt9f0qijylh/2lkbn1275181432.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/30/t127518160387stgt9f0qijylh/2lkbn1275181432.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/30/t127518160387stgt9f0qijylh/3lkbn1275181432.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/30/t127518160387stgt9f0qijylh/3lkbn1275181432.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