Home » date » 2010 » Aug » 05 »

Tijdreeks 2 - stap 27

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 05 Aug 2010 14:38:15 +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/05/t1281019081iga32tinv0upn5w.htm/, Retrieved Thu, 05 Aug 2010 16:38:05 +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/05/t1281019081iga32tinv0upn5w.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:
Ghielens Nick
 
Dataseries X:
» Textbox « » Textfile « » CSV «
80 79 78 76 74 73 74 76 77 77 78 80 90 90 89 82 78 76 74 78 81 82 88 99 117 113 106 100 97 96 100 104 104 111 117 118 140 147 134 126 116 114 120 122 117 119 132 134 154 152 132 130 123 129 124 128 128 129 141 138 155 160 142 133 131 140 134 134 134 136 145 137 152 168 160 157 147 161 159 164 163 158 175 163
 
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
alpha1
beta0.0183448029323068
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
378780
47677-1
57474.9816551970677-0.981655197067695
67372.963646925930.0363530740699929
77471.96431381590982.03568618409020
87673.0016580777892.99834192221104
97775.05666206947561.94333793052441
107776.0923122208420.907687779158053
117876.10896357427471.89103642572533
128077.14365426484242.85634573515759
139079.196053364460410.8039466355396
149089.39424963638050.605750363619464
158989.4053620074273-0.405362007427314
168288.3979257212848-6.39792572128482
177881.2805570347523-3.28055703475231
187677.2203758624416-1.22037586244159
197475.1979883077418-1.19798830774175
207873.1760114483214.82398855167898
218177.26450656764933.73549343235072
228280.33303345852071.66696654147933
238881.36361363121896.63638636878113
249987.485356831336811.5146431686632
2511798.696590691101818.3034093088982
26113117.032363127863-4.03236312786285
27106112.958390220931-6.95839022093071
28100105.830739923602-5.83073992360164
299799.7237761487536-2.72377614875363
309696.673809012073-0.673809012073036
3110095.66144811853254.33855188146747
3210499.74103799780964.25896200219036
33104103.8191678164360.180832183563993
34111103.8224851472077.17751485279268
35117110.9541552427266.04584475727449
36118117.0650650733570.934934926642981
37140118.08221627034121.9177837296592
38147140.4842936935746.51570630642567
39134147.603823041730-13.6038230417305
40126134.354263588904-8.35426358890399
41116126.201006269721-10.201006269721
42114116.013870819992-2.01387081999174
43120113.9769267566686.02307324333214
44122120.0874188483641.91258115163636
45117122.122504772682-5.12250477268245
46119117.0285334321081.97146656789221
47132119.06469959778312.9353004022166
48134132.3019951345321.69800486546774
49154134.33314469916719.6668553008326
50152154.693929283959-2.69392928395933
51132152.644509682132-20.6445096821315
52130132.265790220379-2.26579022037873
53123130.2242247453-7.22422474529992
54129123.0916977660095.90830223399129
55124129.200084406156-5.20008440615578
56128124.1046898824943.8953101175065
57128128.176148578959-0.176148578959385
58129128.1729171679920.827082832008443
59141129.18808983955311.8119101604466
60138141.404777003701-3.40477700370096
61155138.34231704054016.6576829594604
62160155.6478989517404.35210104826024
63142160.727737387812-18.7277373878116
64133142.384180736064-9.38418073606417
65131133.21202978978-2.21202978977993
66140131.1714505392068.82854946079397
67134140.333408539242-6.33340853924241
68134134.217223407700-0.217223407700232
69134134.213238487094-0.213238487093690
70136134.2093266690701.79067333092965
71145136.2421762184428.75782378155759
72137145.402836769831-8.40283676983094
73152137.24868838521614.7513116147839
74168152.51929828978215.4807017102177
75160168.80328871191-8.80328871191008
76157160.641794115334-3.64179411533388
77147157.574986119968-10.5749861199681
78161147.38099008358513.6190099164146
79159161.630828136635-2.63082813663513
80164159.5825661129204.41743388708022
81163164.663603067045-1.66360306704476
82158163.633084596622-5.63308459662224
83175158.52974676979616.4702532302038
84163175.831890319549-12.8318903195495


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
85163.596491820388147.477366090804179.715617549973
86164.192983640777141.187054193133187.19891308842
87164.789475461165136.355084207689193.223866714641
88165.385967281553132.254010767216198.517923795890
89165.982459101942128.604879206357203.360038997527
90166.578950922330125.265995391784207.891906452876
91167.175442742719122.153982643268212.196902842169
92167.771934563107119.215028948480216.328840177733
93168.368426383495116.412109978487220.324742788504
94168.964918203884113.718525167057224.21131124071
95169.561410024272111.114311293551228.008508754993
96170.157901844660108.584109421917231.731694267404
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/05/t1281019081iga32tinv0upn5w/16qbn1281019091.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/05/t1281019081iga32tinv0upn5w/16qbn1281019091.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/05/t1281019081iga32tinv0upn5w/26qbn1281019091.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/05/t1281019081iga32tinv0upn5w/26qbn1281019091.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/05/t1281019081iga32tinv0upn5w/3cwlj1281019091.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/05/t1281019081iga32tinv0upn5w/3cwlj1281019091.ps (open in new window)


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