Hello,
I have this code to plot a certain normal distribution and represent the pnorm
value for a certain x:
x-300
xx - seq(2.5,7.5, by=0.1)
yy - dnorm(xx,5.01,0.77)
d-signif(pnorm(log(x), 5.01,0.77),4)
xpts - round(exp(0:8))
par(bg = antiquewhite)
plot(xx,yy, type=l, col=blue, lwd=2, xaxt=n,
Hello, I'm taking samples from certain distributions and drawing a density
distribution over the histogram of the samples
It works fine for the chi-square and for the normal, but not for the cauchy.
Any
idea what I'm doing wrong? Thanks
x - rchisq(1, df = 4)
hist(x, freq = FALSE,
2 matches
Mail list logo