Home » date » 2008 » May » 29 »

exponential smoothing - eigen gegevensreeks - Manuella Loeckx

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 29 May 2008 01:40:25 -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/29/t1212046872m4w6iivsmx51h1h.htm/, Retrieved Thu, 29 May 2008 09:41:12 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
113000 110000 107000 103000 98000 98000 137000 148000 147000 139000 130000 128000 127000 123000 118000 114000 108000 111000 151000 159000 158000 148000 138000 137000 136000 133000 126000 120000 114000 116000 153000 162000 161000 149000 139000 135000 130000 127000 122000 117000 112000 113000 149000 157000 157000 147000 137000 132000 125000 123000 117000 114000 111000 112000 144000 150000 149000 134000 123000 116000 117000 111000 105000 102000 95000 93000 124000 130000 124000 115000 106000 105000
 
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 time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.915663434874416
beta0.0895749531284736
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13127000122743.5751859824256.42481401785
14123000122649.613222873350.386777127162
15118000118107.388716282-107.388716281886
16114000114202.936887386-202.936887385615
17108000108286.068362664-286.068362664213
18111000111276.631612865-276.631612864556
19151000151294.410955505-294.410955504864
20159000159226.353052911-226.353052910941
21158000158247.427387692-247.427387692267
22148000148396.198542146-396.198542146216
23138000138435.605664984-435.605664984119
24137000137443.212949773-443.212949772977
25136000136214.983508189-214.983508188685
26133000131103.9116344271896.08836557309
27126000127383.546322454-1383.54632245353
28120000121794.435581792-1794.43558179250
29114000113762.822080683237.177919317110
30116000117108.97693637-1108.97693637008
31153000157719.061136631-4719.06113663127
32162000160876.1596330241123.84036697622
33161000160375.456220262624.543779738044
34149000150504.786421154-1504.78642115393
35139000138797.695582466202.30441753412
36135000137788.952174263-2788.95217426325
37130000133680.536134512-3680.53613451167
38127000124788.7660973732211.23390262721
39122000120447.8605522261552.13944777426
40117000117007.055305401-7.05530540106702
41112000110458.5344386771541.46556132342
42113000114443.871764589-1443.87176458853
43149000152852.159291432-3852.15929143186
44157000156584.804447601415.195552398538
45157000154876.5484686632123.45153133676
46147000146060.756456847939.24354315328
47137000136674.123001984325.876998015825
48132000135352.391311146-3352.39131114594
49125000130440.551709414-5440.55170941388
50123000120229.0569353242770.94306467635
51117000116248.370142196751.629857803942
52114000111795.4113051882204.5886948119
53111000107410.7825849913589.21741500919
54112000112994.544436019-994.544436019103
55144000151335.221122636-7335.22112263629
56150000151760.217062282-1760.21706228246
57149000147857.4099473381142.59005266248
58134000138135.357544721-4135.35754472140
59123000124120.483048653-1120.48304865336
60116000120436.755365459-4436.75536545919
61117000113555.2444220323444.75557796756
62111000112162.540261358-1162.54026135805
63105000104463.020482013536.979517986649
6410200099867.14096927482132.8590307252
659500095657.6330475273-657.63304752727
669300095827.7625903503-2827.76259035029
67124000124070.902896474-70.9028964744939
68130000129641.767681409358.23231859073
69124000127442.631976233-3442.63197623273
70115000113876.1445369251123.85546307501
71106000105738.401137215261.59886278458
72105000102934.821259492065.17874051002


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
73102903.30757131798427.8639280625107378.751214571
7498323.554251495492110.0763425352104537.032160456
7592432.299587884784839.7688869762100024.830288793
7687891.740080093279011.091283252296772.3888769343
7782053.85060924872133.454937387791974.2462811082
7882276.55136654370733.228351687893819.8743813983
79109676.90513536092590.3460088345126763.464261886
80114611.56068036694897.2659024947134325.855458238
81111984.00520173990827.0292913772133140.981112101
82103085.61534078181748.228907131124423.001774431
8394865.784616581773406.1867709022116325.382462261
8492316.45841361970038.1589683718114594.757858866
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t1212046872m4w6iivsmx51h1h/1p8tg1212046819.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t1212046872m4w6iivsmx51h1h/1p8tg1212046819.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t1212046872m4w6iivsmx51h1h/2w5hd1212046819.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t1212046872m4w6iivsmx51h1h/2w5hd1212046819.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t1212046872m4w6iivsmx51h1h/32p241212046819.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t1212046872m4w6iivsmx51h1h/32p241212046819.ps (open in new window)


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