Displaying several graphs in one graph!
Posted: Thu Jan 01, 2009 10:14 am
Hi!
I'm trying to plot a histogram of a series called dly with daily data from a stock index.
Within the same plot I also want to have the normal distribution superimposed. I
don't know how to do this. I have tried the following code below but its not exactly
what I want.
dly.stats
dly.hist
series z = nrnd
freeze(graphEmpNorm) dly.cdfplot(c)
graphEmpNorm.addtext(b) Empirical Cumulative Distribution Function
freeze(graphTheorNorm) z.cdfplot(c)
graphTheorNorm.addtext(b) Gaussian Cumulative Distribution Function
show graphEmpNorm graphTheorNorm
Does anyone know how to plot a histogram of a series with the bell shaped normal
distribution superimposed?
Thanks!
I'm trying to plot a histogram of a series called dly with daily data from a stock index.
Within the same plot I also want to have the normal distribution superimposed. I
don't know how to do this. I have tried the following code below but its not exactly
what I want.
dly.stats
dly.hist
series z = nrnd
freeze(graphEmpNorm) dly.cdfplot(c)
graphEmpNorm.addtext(b) Empirical Cumulative Distribution Function
freeze(graphTheorNorm) z.cdfplot(c)
graphTheorNorm.addtext(b) Gaussian Cumulative Distribution Function
show graphEmpNorm graphTheorNorm
Does anyone know how to plot a histogram of a series with the bell shaped normal
distribution superimposed?
Thanks!