Home » date » 2010 » Dec » 24 »

*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: Fri, 24 Dec 2010 15:31:52 +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/t1293204584gh0lmosjcr8ruz8.htm/, Retrieved Fri, 24 Dec 2010 16:29:47 +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/t1293204584gh0lmosjcr8ruz8.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
14.458 13.594 17.814 20.235 21.811 21.439 21.393 19.831 20.468 21.080 21.600 17.390 17.848 19.592 21.092 20.899 25.890 24.965 22.225 20.977 22.897 22.785 22.769 19.637 20.203 20.450 23.083 21.738 26.766 25.280 22.574 22.729 21.378 22.902 24.989 21.116 15.169 15.846 20.927 18.273 22.538 15.596 14.034 11.366 14.861 15.149 13.577 13.026 13.190 13.196 15.826 14.733 16.307 15.703 14.589 12.043 15.057 14.053 12.698 10.888 10.045 11.549 13.767 12.434 13.116 14.211 12.266 12.602 15.714 13.742 12.745 10.491 10.057 10.900 11.771 11.992 11.933 14.504 11.727 11.477 13.578 11.555 11.846 11.397 10.066 10.269 14.279 13.870 13.695 14.420 11.424 9.704 12.464 14.301 13.464 9.893 11.572 12.380 16.692 16.052 16.459 14.761 13.654 13.480 18.068 16.560 14.530 10.650 11.651 13.735 13.360 17.818 20.613 16.231 13.862 12.004 17.734 15.034 12.609 12.320 10.833 11.350 13.648 14.890 16.325 18.045 15.616 11.926 16 etc...
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.480421268200843
beta0.0199237820561068
gamma0.495517190826123


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1317.84816.25683199786321.59116800213676
1419.59218.89626501046450.695734989535488
1521.09220.80163073508220.290369264917782
1620.89920.79873783656680.100262163433207
1725.8925.9419731335047-0.0519731335046565
1824.96525.0729905458009-0.107990545800888
1922.22523.9751040036675-1.75010400366747
2020.97721.3866845709481-0.409684570948105
2122.89721.64197638636651.25502361363350
2222.78522.9062922648777-0.121292264877731
2322.76923.3828607372404-0.613860737240394
2419.63718.76766308192470.869336918075337
2520.20320.08630034033170.116699659668310
2620.4521.7894375673915-1.33943756739151
2723.08322.59582581324050.487174186759457
2821.73822.6235491927387-0.88554919273869
2926.76627.2295612400831-0.463561240083109
3025.2826.1200570971972-0.840057097197231
3122.57424.2123205430961-1.63832054309614
3222.72921.9884080566350.740591943365004
3321.37823.2016226397241-1.82362263972410
3422.90222.57978598991420.322214010085844
3524.98923.09409385387961.89490614612038
3621.11620.04152527708371.07447472291629
3715.16921.2424042607255-6.0734042607255
3815.84619.5149993446043-3.66899934460429
3920.92719.56841106831261.3585889316874
4018.27319.5656146982232-1.29261469822315
4122.53823.9850682666054-1.44706826660541
4215.59622.197079140875-6.601079140875
4314.03417.1519060148900-3.11790601488996
4411.36614.6512841657522-3.28528416575221
4514.86113.05330384095121.80769615904876
4615.14914.54636056268390.602639437316109
4713.57715.4208436360836-1.84384363608365
4813.02610.14563236514962.88036763485039
4913.1910.17585271700713.01414728299293
5013.19613.3223700100955-0.126370010095545
5115.82616.2950800490145-0.469080049014472
5214.73314.63709911844000.0959008815600324
5316.30719.6025959512777-3.29559595127774
5415.70315.50062491454500.202375085455026
5514.58914.58691842646980.00208157353019445
5612.04313.5381397873835-1.49513978738354
5715.05714.12458554210420.932414457895812
5814.05314.8916690997237-0.83866909972367
5912.69814.4348338803330-1.73683388033304
6010.88810.41934198541090.468658014589092
6110.0459.294297519143110.750702480856885
6211.54910.49211318116621.05688681883380
6313.76713.9036402629653-0.136640262965344
6412.43412.5126021152704-0.0786021152703604
6513.11616.4811897961192-3.36518979611921
6614.21113.20580778773651.00519221226353
6712.26612.5933436186570-0.327343618657027
6812.60210.96479351778391.63720648221611
6915.71413.67503215309022.03896784690981
7013.74214.5222842222188-0.780284222218846
7112.74513.8673557549460-1.12235575494603
7210.49110.7258793510906-0.234879351090576
7310.0579.339702429776080.717297570223916
7410.910.60422683129980.295773168700189
7511.77113.3394546704025-1.56845467040255
7611.99211.25842154436540.733578455634605
7711.93314.7617431838948-2.82874318389483
7814.50412.86512633893041.63887366106957
7911.72712.2159321633832-0.488932163383241
8011.47711.01590912485460.461090875145414
8113.57813.25366100049370.324338999506342
8211.55512.5240182546296-0.969018254629624
8311.84611.66123614895090.184763851049114
8411.3979.359617157222922.03738284277708
8510.0669.315380140752780.750619859247223
8610.26910.4928556446657-0.223855644665703
8714.27912.49897262239001.78002737761003
8813.8712.65184874459501.21815125540495
8913.69515.5079970441796-1.81299704417958
9014.4215.2965058733267-0.876505873326696
9111.42412.9138739684875-1.48987396848749
929.70411.4908188866763-1.78681888667628
9312.46412.6051509499796-0.141150949979597
9414.30111.30616535310702.99483464689295
9513.46412.66997312098870.794026879011284
969.89311.1690821105613-1.27608211056126
9711.5729.201029380214732.37097061978527
9812.3810.92091045495421.4590895450458
9916.69214.28242229060822.40957770939178
10016.05214.63006506643311.42193493356693
10116.45916.8426439494949-0.383643949494942
10214.76117.6115636959491-2.85056369594911
10313.65414.1563493489163-0.502349348916315
10413.4813.17443778676090.305562213239071
10518.06815.78088327438032.28711672561972
10616.5616.54231854331530.0176814566846772
10714.5315.9671594359957-1.43715943599574
10810.6512.8979731468994-2.24797314689945
10911.65111.42925618089930.221743819100698
11013.73511.88853991127341.84646008872657
11113.3615.6912834972136-2.33128349721361
11217.81813.47207623888574.34592376111428
11320.61316.61756393478573.99543606521426
11416.23118.8900960167736-2.65909601677363
11513.86216.1682140241811-2.3062140241811
11612.00414.5472018155865-2.54320181558646
11717.73416.28745330120971.44654669879025
11815.03416.0449672498692-1.01096724986921
11912.60914.5754094216707-1.96640942167075
12012.3211.01249166183111.30750833816887
12110.83311.8910735500971-1.05807355009709
12211.3512.1448715172094-0.794871517209405
12313.64813.56884418517030.0791558148296971
12414.8914.21563420959860.674365790401389
12516.32515.46070318672670.864296813273342
12618.04514.4394340423533.605565957647
12715.61614.80178789419690.814212105803133
12811.92614.6324538911486-2.70645389114858
12916.85517.3334884643763-0.478488464376301
13015.08315.5270479253007-0.444047925300689
13112.5214.0828736784164-1.56287367841638
13212.35511.55960094624720.795399053752753


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
13311.58108403351868.0443595637017615.1178085033355
13412.41906732310928.4805896036975516.3575450425208
13514.465649016945410.149021686119818.7822763477709
13615.242604713062610.565457472802619.9197519533226
13716.221089732646911.197027316761521.2451521485323
13815.490584850829410.130355928569020.8508137730898
13913.36779699132487.6800424995299219.0555514831196
14011.85878470588675.8505415043108217.8670279074626
14116.417493237891510.094546791734122.7404396840489
14214.83819933953438.2053387677377621.4710599113309
14313.31195594482426.373163455354320.2507484342941
14412.15429572898674.9128905246805519.3957009332929
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293204584gh0lmosjcr8ruz8/1e4q91293204709.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293204584gh0lmosjcr8ruz8/1e4q91293204709.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293204584gh0lmosjcr8ruz8/27w7c1293204709.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293204584gh0lmosjcr8ruz8/27w7c1293204709.ps (open in new window)


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