Home » date » 2010 » Aug » 11 »

Tijdreeks 1 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: Wed, 11 Aug 2010 13:42:05 +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/11/t1281534099ljrobcmcg3dd1aq.htm/, Retrieved Wed, 11 Aug 2010 15:41: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/Aug/11/t1281534099ljrobcmcg3dd1aq.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:
Marianne Nykjaer
 
Dataseries X:
» Textbox « » Textfile « » CSV «
268 267 266 264 284 283 268 258 259 259 260 262 255 259 258 258 288 289 271 268 274 284 284 279 273 280 276 271 298 297 278 270 280 289 288 293 285 283 275 268 295 290 267 252 268 278 280 278 261 263 259 265 294 285 255 231 246 258 265 260 238 241 239 233 265 255 224 194 210 222 230 225 206 204 207 195 230 221 195 162 182 203 211 206 187 181 189 174 213 201 177 140 165 192 197 196 176 164 177 165 208 195 164 123 147 173 176 170 157 145 148 135 175 168 140 109 129 150 150 152
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.131066859076249
beta0.192073350226661
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
32662660
4264265-1
5284263.84375869019720.1562413098027
6283265.96782178241417.0321782175861
7268268.111199468881-0.111199468880557
8258268.004849102474-10.0048491024741
9259266.349902573036-7.34990257303565
10259264.857901786057-5.85790178605691
11260263.413983396093-3.41398339609327
12262262.204436556555-0.204436556554924
13255261.410408362313-6.41040836231332
14259259.641604426522-0.64160442652161
15258258.612747464200-0.612747464199515
16258257.5722471124460.427752887553822
17288256.67889031765631.3211096823442
18289260.62312049667728.3768795033234
19271264.8958320285636.10416797143716
20268266.4029982926761.59700170732361
21274267.3596280720096.64037192799077
22284269.1444442612314.8555557387699
23284272.37997924522411.6200207547762
24279275.4839704613663.51602953863431
25273277.614311115199-4.61431111519943
26280278.5628708085091.43712919149090
27276280.340752713723-4.34075271372285
28271281.252069720199-10.2520697201994
29298281.13051874961816.8694812503824
30297284.98838420254512.0116157974549
31278288.511930318781-10.5119303187805
32270288.818753918452-18.8187539184518
33280287.563076446760-7.56307644676025
34289287.5922489727091.40775102729083
35288288.832639037869-0.832639037868546
36293289.758426983653.24157301634989
37285291.299813926765-6.29981392676501
38283291.432046896729-8.43204689672945
39275291.072542639377-16.0725426393769
40268289.307005170526-21.3070051705262
41295286.3190109869728.68098901302847
42290287.4799881412182.52001185878237
43267287.896905285385-20.8969052853852
44252284.718572537776-32.7185725377756
45268279.167138902158-11.1671389021582
46278276.1592573937031.84074260629654
47280274.902617741845.09738225815977
48278274.2011394187823.79886058121815
49261273.425102166603-12.4251021666029
50263270.209845953033-7.20984595303258
51259267.496633078963-8.49663307896282
52265264.4008669872100.599133012789537
53294262.51233723250531.4876627674946
54285265.46495466906419.5350453309355
55255267.342764116597-12.3427641165966
56231264.731726898528-33.7317268985279
57246258.468127813007-12.4681278130072
58258254.6776036030033.32239639699739
59265253.04033330876111.9596666912393
60260252.8362009428017.16379905719879
61238252.183833975882-14.1838339758823
62241248.376429569067-7.37642956906689
63239245.275552713591-6.27555271359094
64233242.160980737222-9.16098073722236
65265238.43760211453126.5623978854694
66255240.06506830025114.9349316997490
67224240.544537716172-16.5445377161721
68194236.481592300834-42.4815923008337
69210227.949707855236-17.9497078552356
70222222.181266415188-0.181266415187537
71230218.73711550292911.2628844970706
72225217.0764504363457.92354956365526
73206215.177580236703-9.17758023670271
74204210.806278126015-6.80627812601548
75207206.5744308215830.425569178417078
76195203.301152498974-8.30115249897415
77230198.67511322151931.3248867784812
78221200.03132126850920.9686787314915
79195200.558048624364-5.55804862436398
80162197.468080322886-35.4680803228862
81182189.565008671361-7.56500867136131
82203185.12866004173917.8713399582611
83211184.47607490056526.5239250994354
84206185.62528216222220.3747178377780
85187186.4814544725580.518545527442285
86181184.748194743731-3.74819474373098
87189182.3613480251786.63865197482184
88174181.502997098763-7.50299709876276
89213178.60226081535134.3977391846495
90201182.05926661979318.9407333802070
91177183.967193781927-6.96719378192682
92140182.304055029179-42.3040550291788
93165174.944443514279-9.94444351427862
94192171.57575873831220.4242412616883
95197172.70157114547524.2984288545247
96196174.94686075183321.0531392481673
97176177.296801659332-1.29680165933232
98164176.684759742071-12.6847597420713
99177174.260802068512.73919793148994
100165173.927371885104-8.92737188510375
101208171.84009935600436.1599006439956
102195176.57257965864518.4274203413551
103164179.444819649786-15.4448196497861
104123177.488716684159-54.4887166841589
105147169.043529254827-22.0435292548266
106173164.2958968929348.70410310706595
107176163.79738114353312.2026188564671
108170164.0645990919705.93540090802958
109157163.659812926461-6.65981292646097
110145161.436554511906-16.4365545119065
111148157.518108054075-9.51810805407467
112135154.266827500942-19.2668275009417
113175149.25278111031525.7472188896854
114168150.78675648770117.2132435122986
115140151.635544467583-11.6355444675829
116109148.41029397791-39.4102939779101
117129140.552561804427-11.5525618044268
118150136.05522568999913.9447743100006
119150135.25079736866014.7492026313398
120152134.92310601564817.0768939843519


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
121135.330399283344102.105376737128168.555421829561
122133.49947769373399.8713665238017167.127588863665
123131.66855610412397.5045233757499165.832588832495
124129.83763451451294.9908966482832164.68437238074
125128.00671292490192.3193049731988163.694120876603
126126.1757913352989.4815387343311162.870043936249
127124.34486974567986.4723783395158162.217361151842
128122.51394815606883.2894330805575161.738463231579
129120.68302656645779.9328325885497161.433220544365
130118.85210497684676.4048201780365161.299389775656
131117.02118338723672.7093021580612161.33306461641
132115.19026179762568.8514011559819161.529122439267
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/11/t1281534099ljrobcmcg3dd1aq/1raxl1281534121.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/11/t1281534099ljrobcmcg3dd1aq/1raxl1281534121.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/11/t1281534099ljrobcmcg3dd1aq/2raxl1281534121.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/11/t1281534099ljrobcmcg3dd1aq/2raxl1281534121.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/11/t1281534099ljrobcmcg3dd1aq/321f61281534121.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/11/t1281534099ljrobcmcg3dd1aq/321f61281534121.ps (open in new window)


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