Home » date » 2010 » Aug » 20 »

Tijreeks 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: Fri, 20 Aug 2010 06:21:42 +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/20/t12822853966mnppip8nv9ozjy.htm/, Retrieved Fri, 20 Aug 2010 08:23:16 +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/20/t12822853966mnppip8nv9ozjy.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:
Van Tendeloo Willem MAR 201 A
 
Dataseries X:
» Textbox « » Textfile « » CSV «
252 251 250 248 268 267 252 242 243 243 244 246 236 241 240 239 253 249 232 229 221 222 224 224 215 225 225 221 238 234 228 227 216 219 225 227 205 215 214 209 222 216 206 199 189 198 203 211 199 211 210 203 214 202 193 193 176 192 200 195 180 197 194 194 212 202 195 198 170 187 190 189 176 188 195 194 211 203 194 194 163 183 181 184 171 178 179 186 205 204 195 186 156 167 164 165 153 160 154 169 186 188 187 169 131 146 145 137 119 118 113 123 142 141 138 124 83 100 96 98
 
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.738004770331473
beta0.00040330803731264
gamma0.993056849962919


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13236242.919871794872-6.91987179487191
14241242.844421905514-1.84442190551403
15240240.597462599674-0.597462599673577
16239239.603920712573-0.603920712572801
17253253.522099621085-0.522099621084777
18249249.542174152664-0.542174152664415
19232236.047272209696-4.0472722096963
20229222.7977198702166.20228012978382
21221227.864232117884-6.86423211788363
22222222.243886236117-0.243886236117390
23224222.7176479385791.28235206142091
24224225.693162468729-1.69316246872879
25215212.8801768025382.11982319746204
26225220.7943870684844.20561293151567
27225223.3364232447601.66357675523960
28221224.010143754598-3.01014375459798
29238236.1733750948421.82662490515762
30234233.9218643165520.0781356834476696
31228219.9732633787478.026736621253
32227218.3051223755008.6948776245005
33216221.816376499747-5.81637649974658
34219218.6969090858730.303090914127239
35225219.9766960245725.02330397542829
36227224.9452691194082.05473088059222
37205215.897786261591-10.8977862615910
38215214.7512284818300.248771518170344
39214213.7141589630020.285841036997965
40209212.157142571301-3.15714257130097
41222225.472285489058-3.47228548905818
42216218.855646691196-2.85564669119628
43206204.8094719306101.19052806938979
44199198.2675111281000.732488871900472
45189192.122132444236-3.12213244423609
46198192.5791018497075.42089815029325
47203198.8613974562914.13860254370923
48211202.4018970249548.59810297504623
49199194.8126577294914.18734227050911
50211207.7026952088543.2973047911463
51210208.9296396374371.07036036256309
52203207.060590756305-4.06059075630466
53214219.631493776482-5.63149377648202
54202211.585642847658-9.58564284765825
55193193.627273055343-0.627273055342613
56193185.6259104509937.37408954900675
57176183.382475992651-7.38247599265094
58192182.9200081526889.07999184731176
59200191.5722224668778.42777753312319
60195199.442798816816-4.4427988168157
61180181.082244973198-1.08224497319770
62197189.8506748958647.14932510413558
63194193.3411168725940.658883127405545
64194189.8334082353824.16659176461792
65212208.0697120088873.93028799111335
66202206.056984643891-4.05698464389053
67195194.5164490950780.483550904921998
68198189.4238781644078.57612183559323
69170184.235835039232-14.2358350392324
70187183.0042495910433.99575040895664
71190187.7386180016232.26138199837669
72189187.7119516913811.28804830861864
73176174.4590358578981.54096414210173
74188187.3097551819680.690244818031886
75195184.34747462805210.6525253719483
76194189.1334861216034.86651387839723
77211207.8308057997613.16919420023930
78203203.184013802688-0.184013802688412
79194195.689965184857-1.68996518485685
80194191.1050529708362.89494702916429
81163175.793687440199-12.7936874401987
82183180.3748058788612.62519412113912
83181183.651016198034-2.6510161980344
84184179.7488365192654.25116348073493
85171168.7524965923522.24750340764831
86178181.907498781423-3.90749878142293
87179178.1468313066620.853168693337778
88186174.19539378932811.8046062106716
89205197.5734268718517.42657312814865
90204195.1994135174008.80058648259953
91195193.9501417894951.04985821050511
92186192.586844307124-6.58684430712441
93156166.199967869213-10.1999678692126
94167176.711566047109-9.71156604710868
95164169.511449397-5.51144939700015
96165165.294192582807-0.294192582807284
97153150.4208543484262.57914565157353
98160162.218124716795-2.21812471679536
99154160.942237802094-6.9422378020939
100169154.084138057314.9158619426998
101186178.6172409520357.38275904796515
102188176.56637313630711.4336268636928
103187175.24252180134911.7574781986509
104169179.796576813874-10.7965768138739
105131149.363561882391-18.3635618823906
106146153.975742189308-7.97574218930825
107145149.148241638383-4.1482416383835
108137147.293649833780-10.2936498337796
109119125.784467627682-6.7844676276823
110118129.416653420513-11.4166534205128
111113120.113811035301-7.1138110353006
112123118.8066989426344.19330105736555
113142133.4540286061238.54597139387727
114141133.3033641130047.6966358869957
115138129.2925495559858.70745044401522
116124125.713429896508-1.71342989650771
11783100.003562887558-17.0035628875582
118100108.310988013908-8.3109880139077
11996104.220695108887-8.22069510888707
1209897.74930866496630.250691335033650


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
12184.925628675058972.097551186288297.7537061638295
12292.352341583321576.4068273587536108.297855807889
12392.590680913940674.0425916736461111.138770154235
12499.473693687148378.6439991873445120.303388186952
125112.15581751213889.2692902851702135.042344739106
126105.47167416622680.6970397533869130.246308579066
12796.035870256304469.5058052837184122.565935228890
12883.308929113101555.1313020102517111.486556215951
12954.875546569224825.140289641801284.6108034966483
13077.988437021058846.7720169382773109.204857103840
13180.052812759676547.4212814894648112.684344029888
13281.85246591164747.8636238534155115.841307969879
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/20/t12822853966mnppip8nv9ozjy/1r3lq1282285296.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/20/t12822853966mnppip8nv9ozjy/1r3lq1282285296.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/20/t12822853966mnppip8nv9ozjy/2r3lq1282285296.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/20/t12822853966mnppip8nv9ozjy/2r3lq1282285296.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/20/t12822853966mnppip8nv9ozjy/3kckb1282285296.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/20/t12822853966mnppip8nv9ozjy/3kckb1282285296.ps (open in new window)


 
Parameters (Session):
par1 = 12 ;
 
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