Home » date » 2010 » Aug » 05 »

Omzet product X

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 05 Aug 2010 15:06:05 +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/Aug/05/t1281020784pabbe0oyop8dv8a.htm/, Retrieved Thu, 05 Aug 2010 17:06:28 +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/Aug/05/t1281020784pabbe0oyop8dv8a.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:
Philippe De Vocht
 
Dataseries X:
» Textbox « » Textfile « » CSV «
73 72 71 69 89 88 73 63 64 64 65 67 69 71 70 72 88 83 76 70 75 71 75 81 87 90 80 85 105 104 98 94 107 112 121 118 120 122 109 112 132 127 116 113 123 125 137 127 123 128 114 120 143 135 119 117 132 139 158 141 139 150 142 149 166 150 139 140 158 169 186 177 175 187 176 185 204 188 171 171 182 185 200 192 185 195 190 195 213 194 171 171 186 182 193 185 172 185 179 182 193 173 155 164 188 186 200 185 173 190 190 193 195 178 163 165 188 182 200 177
 
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'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.691910685724984
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
27273-1
37172.308089314275-1.30808931427501
46971.4030083398455-2.40300833984546
58969.740341191620119.2596588083799
68883.06630492455554.93369507544452
77386.4799812673643-13.4799812673643
86377.1530381851023-14.1530381851023
96467.3603998293563-3.36039982935628
106465.0353032791162-1.03530327911625
116564.31896587732960.681034122670397
126764.79018066414862.20981933585141
136966.31917827614592.68082172385414
147168.17406747340422.82593252659578
157070.1293603856936-0.129360385693644
167270.03985455252271.96014544747729
178871.396100133207416.6038998667926
188382.88451587574890.115484124251140
197682.9644205753498-6.96442057534982
207078.1456635593823-8.14566355938234
217572.50959190032512.49040809967491
227174.2327318763062-3.23273187630622
237571.99597014700623.00402985299382
248174.07449050252956.92550949747054
258778.86632452791928.13367547208081
269084.49410150127115.5058984987289
278088.3036915070588-8.30369150705877
288582.5582786223612.441721377639
2910584.247731735112620.7522682648874
3010498.60644790061975.39355209938034
3198102.338304232195-4.33830423219534
329499.3365851760135-5.33658517601346
3310795.644144867448211.3558551325518
34112103.5013823792068.4986176207943
35121109.38166672492411.6183332750761
36118117.4205156682630.579484331736779
37120117.8214670696022.17853293039789
38122119.3288172833482.67118271665183
39109121.177037148523-12.1770371485235
40112112.75161502499-0.751615024990002
41132112.23156455764819.7684354423520
42127125.9095562802761.09044371972415
43116126.664045942135-10.6640459421347
44113119.285478601710-6.28547860170954
45123114.9364887922918.06351120770901
46125120.5157183613684.48428163863198
47137123.61844074493813.3815592550622
48127132.877284585177-5.87728458517742
49123128.810728577646-5.81072857764642
50128124.7902233829253.20977661707468
51114127.011102123069-13.0111021230695
52120118.0085815310591.99141846894132
53143119.38646524946923.6135347505307
54135135.724922271100-0.724922271099729
55119135.223340805406-16.2233408054058
56117123.998237943987-6.99823794398733
57132119.15608232929612.8439176707035
58139128.04292621222810.9570737877718
59158135.62424265026522.3757573497354
60141151.106268261736-10.1062682617359
61139144.113633258638-5.11363325863758
62150140.5754557641089.42454423589243
63142147.096398629009-5.09639862900934
64149143.5701459588845.42985404111639
65166147.32711999185918.6728800081410
66150160.247085202752-10.2470852027522
67139153.157017453434-14.1570174534336
68140143.361625799408-3.36162579940776
69158141.03568098738916.9643190126113
70169152.77347458826216.226525411738
71186164.00078091283221.9992190871685
72177179.222275676848-2.22227567684845
73175177.684659389410-2.68465938941029
74187175.82711487034511.1728851296546
75176183.557753481931-7.55775348193117
76185178.3284630877086.6715369122922
77204182.94457076753121.0554292324686
78188197.513047246003-9.51304724600266
79171190.930868202687-19.9308682026868
80171177.140487517471-6.14048751747148
81182172.8918185885729.10818141142792
82185179.1938666346615.80613336533926
83200183.21119235288316.7888076471166
84192194.827547764505-2.82754776450469
85185192.871137251846-7.8711372518461
86195187.4250132784867.5749867215142
87190192.666227535326-2.66622753532633
88195190.8214362130604.17856378694017
89213193.71262914822719.2873708517728
90194207.057767140109-13.0577671401094
91171198.022958524159-27.0229585241592
92171179.325484761390-8.32548476139038
93186173.56499289114412.4350071088562
94182182.168907186828-0.168907186827568
95193182.05203849936610.9479615006342
96185189.627050048560-4.62705004856036
97172186.425544676577-14.4255446765771
98185176.4443561674508.55564383254975
99179182.364097558448-3.36409755844849
100182180.0364425099371.96355749006335
101193181.39504891934711.6049510806532
102173189.424638579366-16.4246385793665
103155178.060255637132-23.060255637132
104164162.1046183462511.89538165374944
105188163.41605316600724.5839468339931
106186180.4259486777425.57405132225838
107200184.28269435039215.7173056496083
108185195.157666080161-10.1576660801613
109173188.129468377272-15.1294683772715
110190177.66122753769912.3387724623009
111190186.1985560530943.80144394690575
112193188.8288157411434.17118425885712
113195191.7149027019743.28509729802602
114178193.987896626124-15.9878966261244
115163182.925700108243-19.9257001082425
116165169.138895282798-4.13889528279805
117188166.27514940953321.7248505904666
118182181.3068056788560.693194321144034
119200181.78643423693918.2135657630606
120177194.388595013556-17.3885950135557


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
121182.357240313932160.436308701556204.278171926309
122182.357240313932155.700626768136209.013853859728
123182.357240313932151.687665020079213.026815607786
124182.357240313932148.142175624811216.572305003054
125182.357240313932144.931066923427219.783413704438
126182.357240313932141.974493284643222.739987343222
127182.357240313932139.220086251489225.494394376376
128182.357240313932136.631297310180228.083183317685
129182.357240313932134.181419962247230.533060665618
130182.357240313932131.850236150814232.864244477051
131182.357240313932129.622002829792235.092477798073
132182.357240313932127.484177017957237.230303609907
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/05/t1281020784pabbe0oyop8dv8a/19uzf1281020762.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/05/t1281020784pabbe0oyop8dv8a/19uzf1281020762.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/05/t1281020784pabbe0oyop8dv8a/2klz11281020762.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/05/t1281020784pabbe0oyop8dv8a/2klz11281020762.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/05/t1281020784pabbe0oyop8dv8a/3klz11281020762.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/05/t1281020784pabbe0oyop8dv8a/3klz11281020762.ps (open in new window)


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