Home » date » 2010 » May » 30 »

Paper : Opgave 10 (oef 2) - Ishia Opgenhaffen

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 30 May 2010 15:34:20 +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/May/30/t1275233741nfvx06s1fzdf6v3.htm/, Retrieved Sun, 30 May 2010 17:35:42 +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/May/30/t1275233741nfvx06s1fzdf6v3.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:
KDGP2W62
 
Dataseries X:
» Textbox « » Textfile « » CSV «
121,67 121,65 121,61 121,5 121,41 121,41 121,4 121,38 121,34 121,19 120,96 120,96 120,96 120,9 120,86 120,73 120,53 120,53 120,53 120,52 120,51 120,43 120,29 120,27 120,27 120,24 120,21 120,06 119,86 119,85 119,85 119,83 119,71 119,57 119,2 119,13 119,13 119,09 118,9 118,54 118,12 118,11 118,1 118,08 117,91 117,63 117,28 117,2 117,17 117,14 116,96 116,34 115,99 115,99 115,97 115,92 115,63 115,31 115,13 115,09 115,07 115,01 114,64 113,86 113,34 113,33 113,32 113,26 113,2 112,61 112,28 112,16
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.0943679107239916
gamma0.561964915342722


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13120.96121.369898504274-0.409898504273542
14120.9120.8655669862910.0344330137089486
15120.86120.8271496911880.0328503088119732
16120.73120.6960830395310.0339169604693836
17120.53120.4926170455620.0373829544384705
18120.53120.4932281302020.0367718697980735
19120.53120.583364881395-0.0533648813948702
20120.52120.4758289490320.0441710509684299
21120.51120.4516639454930.0583360545073788
22120.43120.338002330410.0919976695903131
23120.29120.1921006249470.0978993750529327
24120.27120.295922517765-0.0259225177653661
25120.27120.273059597256-0.00305959725645266
26120.24120.2119375361220.0280624638776175
27120.21120.2029190655420.00708093445842906
28120.06120.079420611866-0.0194206118657547
29119.86119.8509212626320.00907873736767328
30119.85119.8488613374430.00113866255692585
31119.85119.925635457316-0.075635457316281
32119.83119.8159978972330.014002102767364
33119.71119.778985913083-0.0689859130832389
34119.57119.5433091899290.0266908100705052
35119.2119.331244612578-0.131244612578044
36119.13119.183442666029-0.0534426660286442
37119.13119.1079827266250.0220172733746864
38119.09119.049227117380.0407728826198195
39118.9119.031408102461-0.131408102460512
40118.54118.734840727712-0.194840727712489
41118.12118.279787348648-0.159787348647626
42118.11118.0417918837290.0682081162710233
43118.1118.124895207823-0.0248952078225813
44118.08118.0100458990730.0699541009267364
45117.91117.978313988091-0.0683139880910062
46117.63117.692700673095-0.0627006730949518
47117.28117.332200408241-0.0522004082406511
48117.2117.211857698109-0.0118576981094094
49117.17117.1303220452460.0396779547538557
50117.14117.0432330376050.0967669623952645
51116.96117.040698067006-0.080698067006395
52116.34116.758916092357-0.418916092356895
53115.99116.022717189286-0.0327171892858331
54115.99115.8667130698220.12328693017848
55115.97115.9650140665090.00498593349128384
56115.92115.8429845786350.0770154213647487
57115.63115.78191902971-0.151919029709674
58115.31115.36841608161-0.0584160816100621
59115.13114.9683201447030.161679855297479
60115.09115.0381608681860.0518391318135514
61115.07115.0026361520830.0673638479172212
62115.01114.9281598043360.0818401956643129
63114.64114.894216225947-0.25421622594709
64113.86114.406059705166-0.546059705165703
65113.34113.497862524992-0.157862524991955
66113.33113.160048701660.169951298339782
67113.32113.2527533172760.0672466827239475
68113.26113.1465992462280.113400753772225
69113.2113.0789673051020.121032694897508
70112.61112.921222240983-0.311222240982588
71112.28112.2272695149970.0527304850031243
72112.16112.1368289140310.0231710859685421


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
73112.018598854337111.747497781139112.289699927535
74111.81636437534111.414472132695112.218256617985
75111.632463229677111.117318829575112.147607629779
76111.354395417347110.732805575737111.975985258958
77110.999660938351110.274521700729111.724800175973
78110.842009792688110.014337329861111.669682255514
79110.771025313691109.840795604924111.701255022458
80110.597540834695109.564103495269111.63097817412
81110.405723022365109.268029311126111.543416733603
82110.104738543368108.861477085018111.348000001718
83109.729170731038108.378853005934111.079488456143
84109.588186252042108.129202804617111.047169699466
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/30/t1275233741nfvx06s1fzdf6v3/1t2z61275233655.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/30/t1275233741nfvx06s1fzdf6v3/1t2z61275233655.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/30/t1275233741nfvx06s1fzdf6v3/2t2z61275233655.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/30/t1275233741nfvx06s1fzdf6v3/2t2z61275233655.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/30/t1275233741nfvx06s1fzdf6v3/34cg91275233655.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/30/t1275233741nfvx06s1fzdf6v3/34cg91275233655.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=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