Home » date » 2010 » Aug » 10 »

Tijdreeks A - Stap 32

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 10 Aug 2010 16:28:31 +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/Aug/10/t1281457743ih78f2ct9lageef.htm/, Retrieved Tue, 10 Aug 2010 18:29:07 +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/Aug/10/t1281457743ih78f2ct9lageef.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:
Platini Olivier
 
Dataseries X:
» Textbox « » Textfile « » CSV «
94 93 92 90 110 109 94 84 85 85 86 88 93 94 90 91 104 103 88 79 82 88 93 89 94 96 94 92 113 122 107 98 103 110 113 110 123 124 118 117 139 146 134 121 123 122 127 122 139 136 127 123 140 146 138 120 122 115 115 102 119 114 108 102 121 109 102 95 98 92 94 90 113 111 103 90 108 99 95 91 85 72 90 90 114 115 104 93 101 90 79 75 71 61 84 87 107 99 93 74 87 71 67 61 63 52 80 84 102 93 87 72 83 72 66 64 64 47 77 79
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.842738612560252
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
29394-1
39293.1572613874397-1.15726138743975
49092.1819925314192-2.18199253141921
511090.343143172874219.6568568271258
6109106.9087354226622.09126457733829
794108.671124831064-14.6711248310642
88496.3072014462349-12.3072014462349
98585.9354475749354-0.93544757493538
108585.1471097835115-0.147109783511482
118685.0231346886610.976865311339026
128885.8463768057972.15362319420294
139387.66131822845725.33868177154278
149492.16043149750791.83956850249211
159093.7107069050076-3.71070690500763
169190.58355091626380.416449083736239
1710490.934508639293613.0654913607064
18103101.9453027010331.05469729896672
1988102.834136839436-14.8341368394355
207990.3328369408407-11.3328369408407
218280.7822176609451.21778233905496
228881.80848985976066.1915101402394
239387.02631452499875.97368547500132
248992.0605699340726-3.06056993407262
259489.48130947418864.51869052581137
269693.28938445852.71061554149995
279495.573724839128-1.57372483912798
289294.2474861516497-2.24748615164967
2911392.3534427904620.6465572095400
30122109.75309376737412.2469062326264
31107120.074034534013-13.0740345340127
3298109.056040810254-11.0560408102540
3310399.7386883174113.26131168258898
34110102.4871215999237.5128784000774
35113108.8185143191384.18148568086228
36110112.342413760268-2.34241376026816
37123110.36837123789812.6316287621023
38124121.0135325352482.98646746475202
39118123.530343982949-5.53034398294943
40117118.869709567778-1.86970956777768
41139117.29403312073821.7059668792619
42146135.58648953284610.4135104671540
43134144.362356895817-10.3623568958170
44121135.629598622582-14.6295986225820
45123123.300670977074-0.300670977073878
46122123.047283935018-1.04728393501750
47127122.1646973246644.83530267533578
48122126.239593592586-4.23959359258556
49139122.66672437055116.3332756294493
50136136.431406413077-0.431406413076957
51127136.067843571071-9.06784357107088
52123128.426021661073-5.42602166107321
53140123.85330369469816.1466963053015
54146137.460748136468.53925186353996
55138144.657105404242-6.65710540424226
56120139.046905632204-19.0469056322038
57122122.995342806154-0.995342806154326
58115122.156528990674-7.156528990674
59115116.125445678326-1.12544567832617
60102115.176989148862-13.1769891488617
61119104.07223159582814.9277684041715
62114116.652438429381-2.65243842938075
63108114.417126147503-6.41712614750293
64102109.009166161332-7.00916616133219
65121103.10227119532717.8977288046732
66109118.185378336157-9.18537833615675
67102110.444505341303-8.44450534130301
6895103.327994626216-8.32799462621568
699896.30967198950941.69032801049056
709297.734176671842-5.73417667184198
719492.90176457923851.09823542076150
729093.8272899739956-3.82728997399558
7311390.601884931444822.3981150685552
74111109.4776413482841.52235865171613
75103110.760591766250-7.76059176625023
7690104.220441428514-14.220441428514
7710892.236326349053815.7636736509462
7899105.520982810505-6.5209828105048
7995100.025498804251-5.02549880425073
809195.7903169145333-4.79031691453326
818591.7533318842556-6.75333188425559
827286.0620383419591-14.0620383419591
839074.211415659887415.7885843401126
849087.51706532096442.48293467903558
8511489.609530247452624.3904697525474
86115110.1643208864074.83567911359282
87104114.239534393383-10.2395343933830
8893105.610283385440-12.6102833854404
8910194.98311066120286.01688933879723
9090100.053775634509-10.0537756345093
917991.5810707052909-12.5810707052909
927580.9785166345916-5.97851663459161
937175.9401898207875-4.9401898207875
946171.7769011054328-10.7769011054328
958462.694790420141321.3052095798587
968780.64951318177686.35048681822319
9710786.001313632048420.9986863679516
9899103.697717447364-4.6977174473638
999399.7387695635723-6.73876956357233
1007494.0597482512041-20.0597482512041
1018777.15462384167649.84537615832357
1027185.4517024854758-14.4517024854758
1036773.2726947837324-6.27269478373239
1046167.9864526846758-6.98645268467583
1056362.09869924247430.901300757525725
1065262.858260192371-10.858260192371
1078053.707585063034126.2924149369659
1088475.86521834787128.13478165212882
10910282.720712950866819.2792870491332
1109398.9681125698041-5.96811256980415
1118793.938553663124-6.938553663124
1127288.091166575888-16.0911665758880
1138374.53051918124838.46948081875175
1147281.6680776955488-9.66807769554877
1156673.5204153122773-7.5204153122773
1166467.1826709461319-3.18267094613185
1176464.5005112487529-0.500511248752872
1184764.078711093408-17.0787110934081
1197749.68582180223227.314178197768
1207972.70453443984256.29546556015751


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
12178.009966351430557.060690558990898.9592421438702
12278.009966351430550.6135644974357105.406368205425
12378.009966351430545.4177354848047110.602197218056
12478.009966351430540.9432131731266115.076719529734
12578.009966351430536.9534824603425119.066450242518
12678.009966351430533.3185180887367122.701414614124
12778.009966351430529.9577424056556126.062190297205
12878.009966351430526.8171259882238129.202806714637
12978.009966351430523.8583497294807132.161582973380
13078.009966351430521.0530680766078134.966864626253
13178.009966351430518.3796138503228137.640318852538
13278.009966351430515.8209832617849140.198949441076
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/10/t1281457743ih78f2ct9lageef/1qnhs1281457709.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/10/t1281457743ih78f2ct9lageef/1qnhs1281457709.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/10/t1281457743ih78f2ct9lageef/21wzv1281457709.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/10/t1281457743ih78f2ct9lageef/21wzv1281457709.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/10/t1281457743ih78f2ct9lageef/31wzv1281457709.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/10/t1281457743ih78f2ct9lageef/31wzv1281457709.ps (open in new window)


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