Home » date » 2008 » Jun » 01 »

cijferreeks - oliezaden - tim deelstra

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 01 Jun 2008 14:44:19 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Jun/01/t1212353115fhr8odz2asweioo.htm/, Retrieved Sun, 01 Jun 2008 20:45:19 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
90.2 94.3 96 99 103.3 113.1 112.8 112.1 107.4 111 110.5 110.8 112.4 111.5 116.2 122.5 121.3 113.9 110.7 120.8 141.1 147.4 148 158.1 165 187 190.3 182.4 168.8 151.2 120.1 112.5 106.2 107.1 108.5 106.5 108.3 125.6 124 127.2 136.9 135.8 124.3 115.4 113.6 114.4 118.4 117 116.5 115.4 113.6 117.4 116.9 116.4 111.1 110.2 118.9 131.8 130.6 138.3 148.4 148.7 144.3 152.5 162.9 167.2 166.5 185.6 193.2 207.8 223.4 246.4
 
Text written by user:
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.572958262964854
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
39698.4-2.39999999999999
49998.72490016888430.275099831115654
5103.3101.8825208902621.4174791097377
6113.1106.9946772587676.10532274123342
7112.8120.292772371423-7.4927723714235
8112.1115.699726528702-3.59972652870165
9107.4112.937233469668-5.53723346966824
10111105.0646297992565.9353702007437
11110.5112.065349199528-1.56534919952776
12110.8110.6684694412330.131530558767082
13112.4111.0438309617111.35616903828911
14111.5113.420859218176-1.92085921817575
15116.2111.4202870571304.77971294287026
16122.5118.8588630823473.64113691765269
17121.3127.245082565903-5.94508256590279
18113.9122.638798385760-8.73879838576049
19110.7110.2318316422550.468168357744901
20120.8107.30007257128413.4999274287163
21141.1125.13496754099315.9650324590074
22147.4154.582264806883-7.18226480688296
23148156.767126838978-8.76712683897773
24158.1152.3439290741255.75607092587549
25165165.741917473317-0.741917473316619
26187172.21682972654214.7831702734582
27190.3202.686969287536-12.3869692875361
28182.4198.889752881150-16.4897528811504
29168.8181.541812713647-12.7418127136468
30151.2160.641285834212-9.44128583421227
31120.1137.631823102487-17.5318231024873
32112.596.48682019107916.0131798089209
33106.298.06170387894238.13829612105772
34107.196.424607887957110.6753921120429
35108.5103.4411620089425.0588379910581
36106.5107.739665036919-1.23966503691916
37108.3105.0293887107083.27061128929230
38125.6108.70331247385416.8966875261461
39124135.684409208694-11.6844092086945
40127.2127.389730404710-0.189730404710346
41136.9130.4810228015966.41897719840412
42135.8143.858828827205-8.0588288272045
43124.3138.141456260838-13.8414562608383
44115.4118.710879524724-3.31087952472438
45113.6107.9138837433525.68611625664758
46114.4109.3717910367775.0282089632226
47118.4113.0527449101705.34725508983026
48117120.116498898069-3.11649889806887
49116.5116.930875102899-0.430875102899449
50115.4116.184001652387-0.784001652387374
51113.6114.634801427474-1.03480142747395
52117.4112.2419033990755.1580966009251
53116.9118.997277467746-2.09727746774587
54116.4117.295625012871-0.895625012870866
55111.1116.282469261229-5.18246926122852
56110.2108.0131306754462.18686932455374
57118.9108.36611552497410.5338844750263
58131.8123.1015916760578.6984083239428
59130.6140.985416599903-10.3854165999025
60138.3133.8350063446564.46499365534402
61148.4144.0932613535714.30673864642898
62148.7156.660842847473-7.96084284747258
63144.3152.399612157848-8.09961215784847
64152.5143.3588724451999.14112755480136
65162.9156.7963570105386.10364298946223
66167.2170.693489695538-3.49348969553768
67166.5172.991865907897-6.49186590789677
68185.6168.57229769390817.0277023060925
69193.2197.428460429489-4.22846042948890
70207.8202.6057290867935.19427091320671
71223.4220.1818295265933.2181704734069
72246.4237.6257068909618.7742931090389


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
73265.653010629461249.730452954411281.57556830451
74284.906021258921255.227647853542314.5843946643
75304.159031888382258.900984542316349.417079234447
76323.412042517842260.782658982306386.041426053378
77342.665053147303260.996765668416424.333340626189
78361.918063776763259.660759993541464.175367559985
79381.171074406224256.875308153954505.466840658494
80400.424085035684252.725709933703548.122460137666
81419.677095665145247.284721965055592.069469365234
82438.930106294605240.615064381105637.245148208105
83458.183116924066232.771398373923683.594835474209
84477.436127553526223.801846794724731.070408312329
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212353115fhr8odz2asweioo/1j8nv1212353054.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212353115fhr8odz2asweioo/1j8nv1212353054.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212353115fhr8odz2asweioo/2eqjh1212353054.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212353115fhr8odz2asweioo/2eqjh1212353054.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212353115fhr8odz2asweioo/3vn9f1212353054.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212353115fhr8odz2asweioo/3vn9f1212353054.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Double ; par3 = multiplicative ;
 
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=0, beta=0)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=0)
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