Suppose that I have an array of random numbers, e.g.
X=randn(1,1000);hist(X,100);
Using the histogram ,I want to find and plot the PDF and CDF of X, and for a constant value a, I also want to find the probabilities P(X=a) and P(X<=a).
Any help would be appreciated. Thank you.
Best Answer