Home » date » 2010 » Dec » 20 »

Prijsevolutie korte sigaretten (Opgave 10, deel 2)

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Mon, 20 Dec 2010 10:32:02 +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/Dec/20/t12928412109tgpd7ryayfafzl.htm/, Retrieved Mon, 20 Dec 2010 11:33:34 +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/Dec/20/t12928412109tgpd7ryayfafzl.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:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
4.23 4.38 4.43 4.44 4.44 4.44 4.44 4.44 4.45 4.45 4.45 4.45 4.45 4.45 4.45 4.45 4.46 4.46 4.46 4.48 4.58 4.67 4.68 4.68 4.69 4.69 4.69 4.69 4.69 4.69 4.69 4.73 4.78 4.79 4.79 4.8 4.8 4.81 5.16 5.26 5.29 5.29 5.29 5.3 5.3 5.3 5.3 5.3 5.3 5.3 5.3 5.35 5.44 5.47 5.47 5.48 5.48 5.48 5.48 5.48 5.48 5.48 5.5 5.55 5.57 5.58 5.58 5.58 5.59 5.59 5.59 5.55
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.500243980146683
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
34.434.53-0.0999999999999996
44.444.52997560198533-0.0899756019853308
54.444.49496584873210-0.0549658487320954
64.444.46746951379021-0.0274695137902112
74.444.4537280548791-0.0137280548791017
84.444.44686067806671-0.0068606780667082
94.454.443428665164110.00657133483588712
104.454.45671593585729-0.00671593585729369
114.454.45335632937363-0.00335632937363162
124.454.45167734580908-0.00167734580908263
134.454.45083826366546-0.000838263665464467
144.454.45041892731304-0.000418927313040385
154.454.45020936144657-0.000209361446573020
164.454.45010462964325-0.000104629643249865
174.464.450052289294070.00994771070593092
184.464.46502857169095-0.00502857169095172
194.464.46251305897382-0.00251305897381737
204.484.461255916350410.0187440836495893
214.584.490632531359490.089367468640515
224.674.635338069567850.0346619304321507
234.684.7426774916068-0.062677491606796
244.684.7213234537398-0.0413234537398015
254.694.7006516447676-0.0106516447675951
264.694.70532322359395-0.0153232235939456
274.694.69765787323463-0.00765787323463307
284.694.69382706824828-0.00382706824828105
294.694.69191260039547-0.00191260039546837
304.694.69095583356121-0.000955833561208763
314.694.69047768357619-0.000477683576192156
324.734.690238725242790.0397612747572129
334.784.750129063583040.0298709364169589
344.794.81507181970697-0.0250718197069695
354.794.81252979282723-0.0225297928272346
364.84.80125939959146-0.00125939959145871
374.84.81062939252723-0.0106293925272318
384.814.805312102902870.00468789709713135
395.164.817657195205260.342342804794745
405.265.33891212245036-0.0789121224503582
415.295.39943680823397-0.109436808233968
425.295.37469170370846-0.0846917037084589
435.295.33232518875994-0.0423251887599356
445.35.3111522678742-0.0111522678742064
455.35.31557341300515-0.0155734130051508
465.35.30778290689899-0.00778290689898586
475.35.30388955457473-0.00388955457472662
485.35.30194382831327-0.00194382831326756
495.35.30097143990112-0.000971439901117144
505.35.30048548293851-0.00048548293850903
515.35.30024262302106-0.000242623021056154
525.355.300121252315330.049878747684672
535.445.375072795581840.0649272044181606
545.475.49755223873978-0.0275522387397791
555.475.51376939717064-0.0437693971706397
565.485.49187401972138-0.0118740197213771
575.485.49593411283562-0.0159341128356161
585.485.48796316881062-0.00796316881062076
595.485.48397964155022-0.0039796415502158
605.485.48198884982158-0.00198884982157921
615.485.48099393967092-0.00099393967091821
625.485.48049672733391-0.000496727333912261
635.55.480248242475350.0197517575246513
645.555.510128940274370.0398710597256278
655.575.58007419788419-0.0100741978841858
665.585.59503464103782-0.0150346410378157
675.585.59751365236498-0.0175136523649817
685.585.58875255319902-0.00875255319901846
695.595.58437414115030.00562585884970446
705.595.59718844317301-0.00718844317301492
715.595.59359246774909-0.00359246774908772
725.555.59179535738374-0.0417953573837355


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
735.530887481454445.42556164278445.63621332012448
745.511774962908895.321874724855345.70167520096243
755.492662444363335.209011452767145.77631343595951
765.473549925817775.086467160994255.86063269064129
775.454437407272214.954697648545425.95417716599901
785.435324888726664.814252956829916.0563968206234
795.41621237018114.665641386258806.16678335410339
805.397099851635544.50930968550936.28489001776179
815.377987333089984.345647148483736.41032751769623
825.358874814544434.174994070709546.54275555837931
835.339762295998873.997649917563026.68187467443472
845.320649777453313.813880219887946.82741933501868
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/20/t12928412109tgpd7ryayfafzl/1lp9w1292841119.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t12928412109tgpd7ryayfafzl/1lp9w1292841119.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t12928412109tgpd7ryayfafzl/2wh9z1292841119.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t12928412109tgpd7ryayfafzl/2wh9z1292841119.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t12928412109tgpd7ryayfafzl/3wh9z1292841119.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t12928412109tgpd7ryayfafzl/3wh9z1292841119.ps (open in new window)


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