Home » date » 2008 » May » 31 »

Exponential Smoothing - huurprijzen - Charlotte Van Opstal

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sat, 31 May 2008 05:38:49 -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/May/31/t121223418374q61ajefouybs5.htm/, Retrieved Sat, 31 May 2008 11:43:03 +0000
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
103,6 103,7 103,8 104 104 104,1 104,2 104,3 104,4 104,5 104,7 104,7 104,9 105 105,2 105,3 105,4 105,5 105,7 105,8 105,9 106 106,1 106,2 106,6 106,8 107 107,1 107,3 107,4 107,6 107,7 107,9 108,2 108,3 108,5 108,92 109,23 109,41 109,65 109,91 110,01 110,2 110,49 110,57 110,72 110,94 111,09 111,28 111,41 111,62 111,76 111,89 112,04 112,12 112,3 112,47 112,59 112,78 112,73 112,99 113,1 113,33 113,38 113,68 113,65 113,81 113,88 114,02 114,25 114,28 114,38 114,73 114,97 115,05 115,29 115,37 115,54 115,76 115,92 116,02 116,21 116,26 116,51
 
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 time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.887355825989984
beta0.0349852410870049
gamma0.000576885537757277


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13104.9104.1271944444440.772805555555522
14105104.9502145707890.0497854292106865
15105.2105.233204132377-0.0332041323768379
16105.3105.341521622037-0.0415216220372798
17105.4105.445336193378-0.0453361933779775
18105.5105.544358449621-0.0443584496208302
19105.7105.730371232915-0.0303712329146464
20105.8105.815352799030-0.0153527990297135
21105.9105.909017775501-0.00901777550140537
22106106.008024220962-0.00802422096217015
23106.1106.103496529381-0.00349652938086820
24106.2106.1987112971280.00128870287225880
25106.6106.5649291612770.0350708387225751
26106.8106.7287820158770.0712179841233507
27107107.026962758075-0.0269627580747454
28107.1107.137190057582-0.0371900575823929
29107.3107.2413545211240.058645478876457
30107.4107.432380128908-0.0323801289084713
31107.6107.629129258405-0.0291292584052911
32107.7107.715358834682-0.0153588346823170
33107.9107.8091636405830.0908363594173522
34108.2108.0000209799720.199979020028181
35108.3108.2897684783000.0102315216998079
36108.5108.4072934096060.0927065903936608
37108.92108.8675998601830.0524001398166831
38109.23109.0603364931080.169663506892405
39109.41109.462427414518-0.0524274145180925
40109.65109.5658276553770.084172344623255
41109.91109.7972274162350.112772583764993
42110.01110.057494886986-0.0474948869858167
43110.2110.261580607339-0.0615806073390814
44110.49110.3387563018860.151243698114456
45110.57110.605316922304-0.0353169223036645
46110.72110.7052353425630.0147646574374249
47110.94110.8458664439570.0941335560430474
48111.09111.0556993555510.0343006444495018
49111.28111.480214817270-0.20021481726954
50111.41111.456995934128-0.0469959341281623
51111.62111.668288570797-0.0482885707969274
52111.76111.776968967715-0.0169689677150870
53111.89111.917081039623-0.0270810396231838
54112.04112.047355287642-0.00735528764214166
55112.12112.282421427464-0.162421427464082
56112.3112.262361951690.0376380483099013
57112.47112.4168076882480.0531923117517152
58112.59112.5867221343360.00327786566450072
59112.78112.7082625085650.0717374914349165
60112.73112.888619969027-0.158619969027185
61112.99113.126343579847-0.136343579847320
62113.1113.146206628359-0.0462066283589593
63113.33113.344619540014-0.0146195400138112
64113.38113.470643580129-0.0906435801289831
65113.68113.5305574147080.149442585292434
66113.65113.808130290408-0.158130290408451
67113.81113.895372642246-0.0853726422463126
68113.88113.932065151143-0.0520651511434664
69114.02113.9924977594220.0275022405778316
70114.25114.1243997134550.125600286544966
71114.28114.343072456016-0.0630724560163856
72114.38114.388189873547-0.00818987354749368
73114.73114.748469277854-0.0184692778538533
74114.97114.8656632885720.104336711427564
75115.05115.195065939976-0.145065939975581
76115.29115.1986852196830.0913147803172336
77115.37115.419077800185-0.049077800185259
78115.54115.5133108637160.0266891362842614
79115.76115.763134534343-0.00313453434252153
80115.92115.8739326968040.0460673031958976
81116.02116.02562436465-0.00562436464988991
82116.21116.1312846970270.078715302972796
83116.26116.310033091394-0.0500330913940132
84116.51116.3688210058220.141178994177665


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
85116.868376511980116.629965754023117.106787269937
86117.009274125983116.685574216604117.332974035362
87117.250144517287116.855151502630117.645137531945
88117.391075479099116.932095306168117.850055652029
89117.536166639935117.017686994605118.054646285264
90117.681214093457117.106232293045118.256195893869
91117.913784512921117.284402957392118.543166068450
92118.033896077006117.351633725510118.716158428502
93118.149804923115117.415777709017118.883832137212
94118.265734780856117.480768026473119.050701535239
95118.377455892096117.542158317358119.212753466833
96118.485036198328117.599850789270119.370221607386
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t121223418374q61ajefouybs5/184g81212233923.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t121223418374q61ajefouybs5/184g81212233923.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t121223418374q61ajefouybs5/2pg9r1212233923.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t121223418374q61ajefouybs5/2pg9r1212233923.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t121223418374q61ajefouybs5/37wfc1212233923.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t121223418374q61ajefouybs5/37wfc1212233923.ps (open in new window)


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