Home » date » 2011 » May » 20 »

Sarah Geerts - extrapolation - eigen reeks

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 20 May 2011 04:09:55 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/20/t13058645333g0v37u54s4f8qc.htm/, Retrieved Fri, 20 May 2011 06:08:56 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
31.514 27.071 29.462 26.105 22.397 23.843 21.705 18.089 20.764 25.316 17.704 15.548 28.029 29.383 36.438 32.034 22.679 24.319 18.004 17.537 20.366 22.782 19.169 13.807 29.743 25.591 29.096 26.482 22.405 27.044 17.970 18.730 19.684 19.785 18.479 10.698 31.956 29.506 34.506 27.165 26.736 23.691 18.157 17.328 18.205 20.995 17.382 9.367 31.124 26.551 30.651 25.859 25.100 25.778 20.418 18.688 20.424 24.776 19.814 12.738 31.566 30.111 30.019 31.934 25.826 26.835 20.205 17.789 20.520 22.518 15.572 11.509 25.447 24.090 27.786 26.195 20.516 22.759 19.028 16.971 20.036 22.485 18.730 14.538 27.561 25.985 34.670 32.066 27.186 29.586 21.359 21.553 19.573 24.256 22.380 16.167 27.297 28.287
 
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'Herman Ole Andreas Wold' @ www.yougetit.org


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.217005798442115
beta0
gamma0.706425518435226


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1328.02926.73908851391691.28991148608307
1429.38328.59406420526350.788935794736517
1536.43835.80631162444930.631688375550702
1632.03431.82775533593290.206244664067089
1722.67922.65419040399380.0248095960061718
1824.31924.3606438174574-0.0416438174574054
1918.00422.3785573631892-4.37455736318921
2017.53717.9358310666813-0.398831066681261
2120.36620.19508293531510.170917064684858
2222.78224.1677453379306-1.38574533793059
2319.16916.54899572450192.62000427549815
2413.80715.0451672854309-1.23816728543092
2529.74327.55254812255352.19045187744652
2625.59129.3363868270661-3.74538682706612
2729.09635.3166826509825-6.22068265098245
2826.48229.8987923348675-3.41679233486748
2922.40520.66708368517911.73791631482094
3027.04422.59258651548124.45141348451877
3117.9719.2246774176737-1.25467741767373
3218.7317.66100605447641.06899394552358
3319.68420.5929863670096-0.908986367009586
3419.78523.4708488064628-3.68584880646277
3518.47917.61701653946140.861983460538628
3610.69813.7597193612411-3.06171936124105
3731.95626.71572184808345.24027815191662
3829.50625.91824428498893.5877557150111
3934.50632.03228408752482.47371591247516
4027.16529.8280998545382-2.66309985453818
4126.73623.17902868743423.55697131256579
4223.69127.1549251810745-3.46392518107453
4318.15718.792354147262-0.635354147262028
4417.32818.6395403988487-1.31154039884874
4518.20519.9450910340095-1.74009103400945
4620.99521.0114609964673-0.0164609964672984
4717.38218.4173870906547-1.03538709065473
489.36711.9226303211818-2.55563032118179
4931.12429.40882550325481.71517449674517
5026.55126.9681106631271-0.417110663127108
5130.65131.2834339745109-0.632433974510921
5225.85926.0011792503858-0.142179250385752
5325.123.45497107025161.64502892974842
5425.77823.14183998042712.63616001957285
5520.41817.85724955442562.56075044557444
5618.68818.01011166603720.677888333962766
5720.42419.53048912285280.893510877147204
5824.77622.26322231831682.51277768168317
5919.81419.37153946533990.442460534660068
6012.73811.53236198504021.2056380149598
6131.56635.9404540057861-4.37445400578605
6230.11130.4358634100249-0.324863410024946
6330.01935.2387052155291-5.21970521552911
6431.93428.70190853669133.23209146330866
6525.82627.6463850319208-1.82038503192077
6626.83527.072576409823-0.23757640982301
6720.20520.6404261132437-0.435426113243729
6817.78919.0448944892686-1.25589448926862
6920.5220.27877599135620.241224008643751
7022.51823.751046718997-1.23304671899702
7115.57219.0367214045529-3.46472140455286
7211.50911.30388643827130.205113561728723
7325.44730.4742403876788-5.02724038767878
7424.0927.3001174930027-3.21011749300272
7527.78628.4355003726381-0.649500372638094
7626.19527.6009196306679-1.40591963066795
7720.51623.3065826792077-2.79058267920771
7822.75923.3108481180279-0.55184811802792
7919.02817.598485637691.42951436231003
8016.97116.18006675364190.790933246358104
8120.03618.46704348117741.56895651882258
8222.48521.19779218956631.28720781043368
8318.7316.05376762050672.67623237949332
8414.53811.60209861941582.9359013805842
8527.56129.4574897396373-1.89648973963727
8625.98527.812886453676-1.82788645367602
8734.6730.99458883078343.67541116921661
8832.06630.50829067249251.55770932750752
8927.18625.25903793669291.92696206330707
9029.58627.90667666058541.67932333941459
9121.35922.6892116506813-1.33021165068127
9221.55319.89353658012931.65946341987074
9319.57323.2965843081304-3.72358430813045
9424.25625.0248703741857-0.768870374185678
9522.3819.58053259414062.79946740585943
9616.16714.64232321417061.52467678582936
9727.29730.6626089672762-3.3656089672762
9828.28728.6351311159572-0.348131115957226


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
9935.661599893754432.062699227513739.2605005599952
10033.059694899405529.340485282150236.7789045166608
10127.426853142247123.650495835013331.2032104494809
10229.559148980674525.602316566640333.5159813947087
10322.21335682794618.33364235435826.0930713015341
10421.320657207117517.342804546376825.2985098678582
10521.311735248787317.208835723446825.4146347741278
10625.657563060736421.18071831007130.1344078114018
10722.13718944129617.781396569403426.4929823131886
10815.751607317931111.688634665340919.8145799705212
10928.637766461673823.341748086061933.9337848372857
11029.0155966083571-46.9237224842763104.95491570099
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/20/t13058645333g0v37u54s4f8qc/1s8ut1305864593.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t13058645333g0v37u54s4f8qc/1s8ut1305864593.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t13058645333g0v37u54s4f8qc/2239v1305864593.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t13058645333g0v37u54s4f8qc/2239v1305864593.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t13058645333g0v37u54s4f8qc/3ja731305864593.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t13058645333g0v37u54s4f8qc/3ja731305864593.ps (open in new window)


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