Home » date » 2010 » Jan » 19 »

exponential smoothing eigen reeks

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 19 Jan 2010 04:49:31 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/19/t1263901879s82qpaqipea7xbt.htm/, Retrieved Tue, 19 Jan 2010 12:51:23 +0100
 
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/Jan/19/t1263901879s82qpaqipea7xbt.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 «
76.3 71 85.9 109 83.4 101.3 81.6 84.8 88 88.4 85.2 139.5 85.3 79.4 131 91.4 88.2 113.2 81.9 89 95.7 93.2 98 140.5 93 82.1 86.3 84.8 85.7 110.8 87.4 100.4 100.4 99.4 108 161.7 109.3 99.9 110.3 97.5 102.4 122.3 104.4 122.7 127.3 128.4 125.3 187.1 131.4 125.6 142.9 116.6 129.7 155.4 138.7 167.7 155.8 157.1 159.9 244.6 154.3 143.2 147.3 155.1 152.2 166.5 161.2 180.1 169.2 164.5 166.2 267.3
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.246690113402272
beta0.0345331971607616
gamma0.853252708606075


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1385.381.62314004185263.67685995814739
1479.477.17857104773022.22142895226980
15131128.4454029141292.55459708587060
1691.490.18957971241191.21042028758814
1788.287.26565128090640.934348719093578
18113.2112.4154991859510.784500814048712
1981.988.2360701997203-6.3360701997203
208989.9336033969772-0.93360339697719
2195.791.46175999592354.23824000407647
2293.292.41505318735060.784946812649366
239890.3448853425647.65511465743604
24140.5150.981461409249-10.4814614092488
259393.4541160966085-0.454116096608516
2682.186.4078620284123-4.30786202841229
2786.3140.160185743814-53.8601857438139
2884.887.9587463038027-3.1587463038027
2985.783.58750344798422.11249655201576
30110.8107.3843403738943.41565962610629
3187.480.1608757359957.23912426400507
32100.488.40545778937311.9945422106271
33100.496.41008076874693.98991923125315
3499.494.89614140540134.50385859459875
3510898.01431289736519.98568710263487
36161.7148.91672455755812.7832754424425
37109.3100.0216460581069.27835394189353
3899.991.99624315398627.9037568460138
39110.3116.142568305204-5.84256830520438
4097.5107.273099402642-9.77309940264182
41102.4105.009987240767-2.60998724076696
42122.3134.260094240738-11.9600942407381
43104.4100.9983574402433.40164255975670
44122.7112.9736399410459.7263600589545
45127.3115.42405515432511.8759448456752
46128.4115.98805389153912.4119461084614
47125.3125.821040363661-0.521040363661271
48187.1184.8666648007082.2333351992919
49131.4122.5846769033018.81532309669932
50125.6111.84043225349813.7595677465016
51142.9130.87620754275612.0237924572444
52116.6121.904635867697-5.30463586769743
53129.7126.6917765207553.00822347924517
54155.4157.269692224559-1.86969222455920
55138.7131.2717853684787.42821463152194
56167.7152.87680754984414.8231924501557
57155.8158.632476671689-2.83247667168857
58157.1155.4997248113341.60027518866619
59159.9154.2522753820015.6477246179989
60244.6231.73717584819212.8628241518083
61154.3161.44561212402-7.14561212402018
62143.2147.629675817796-4.42967581779587
63147.3163.542011807314-16.2420118073143
64155.1133.37211904069121.7278809593095
65152.2152.322602343346-0.122602343345761
66166.5183.765220364102-17.2652203641022
67161.2156.8219306690214.37806933097886
68180.1185.651291455172-5.55129145517157
69169.2173.796727071584-4.59672707158441
70164.5172.901609962885-8.40160996288535
71166.2171.560705224965-5.36070522496462
72267.3255.88824073613311.4117592638675


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
73166.475390173274147.757267638598185.193512707950
74155.121582977313135.755966874575174.487199080051
75164.751956344182144.462586520229185.041326168136
76162.076288326031141.095829861594183.056746790468
77161.298247363775139.575673267784183.020821459766
78182.366241027696158.923520360589205.808961694803
79172.643077140927148.918033160368196.368121121486
80195.307417356729169.395943421752221.218891291705
81184.411287061899158.430042640031210.392531483768
82181.772756403171155.173233321444208.372279484898
83184.58422612996156.94118569666212.227266563260
84291.100628146095250.789083433606331.412172858583
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/19/t1263901879s82qpaqipea7xbt/1t3op1263901769.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/19/t1263901879s82qpaqipea7xbt/1t3op1263901769.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/19/t1263901879s82qpaqipea7xbt/29cft1263901769.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/19/t1263901879s82qpaqipea7xbt/29cft1263901769.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/19/t1263901879s82qpaqipea7xbt/326nl1263901769.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/19/t1263901879s82qpaqipea7xbt/326nl1263901769.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=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