I have a set of observation, let's call it $X$ and would like to fit a cdf to it. $X$ has a distribution which is roughly approximable with the normal distribution. This CDF should correspond to a continuous distribution function.
So far I've used a parametric approach by estimating mean and standard deviation and using a normal cdf but I would like to know what other options are available and how to use them.
How does the set of available option change if I require the cdf to be a smooth curve?
kernel-density-estimate
tag, on which there are hundreds of posts. For example, there's one with pictures here. There are other forms of nonparametric density estimation, but this is the most common. There's also wikipedia. It's a standard function in many stats packages. ... ctd $\endgroup$y=rgamma(100,10,1);plot(ecdf(y));d=density(y);
lines(d$x,cumsum(d$y)*(d$x[2]-d$x[1]),type="l",col=2,lwd=2)
$\endgroup$h=d(y)$bw;
r=diff(range(y));
xx=seq(min(y)-r/10,max(y)+r/7,.1);
cdf=rowSums(outer(xx,y,function(x,y) pnorm(x,y,h)))/length(y);
lines(xx,cdf,col=4,lwd=2)
$\endgroup$