How to fit an ecdf to a distribution?

3 visualizaciones (últimos 30 días)
Maria Amr
Maria Amr el 7 de Feb. de 2021
Hello every one, I would appreciate if some body can help me how to fit an ecdf to a distribution?
My code is a cdf Gaussian and I just want to fit an ecdf to the populations. Thank you!
for i=1:lxv
CG1(i)=(-1/((sqrt(2*pi))*Sn))*exp((-(x(i)-MU)^2)/(2*sig^2));
end
CGX=Sn.*(sort(CG1))+Mn;
figure (1)
plot(y,CGX,'^b','LineWidth',1);

Respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by