MATLAB Answers


How to retrieve probabilities from normplot applied to data in matlab?

Asked by MatlabFan on 8 Jun 2013

Hi all,

I have some data to which I've applied the function normplot to see whether or not the distribution is normal. How can I have output the probabilities of the line and data in the normplot ?

Thank you.


Log in to comment.


1 Answer

Answer by Tom Lane
on 9 Jun 2013
 Accepted Answer

If you turn on the data cursor in the figure and then click on a point, these values are shown for that point.

If you want to reproduce the calculations, here's one way to do it. This "pop" variable is already sorted; you would need to sort your data to reproduce this.

load census
n = length(pop);
p = ((1:n)'-.5)/n;
popn = mean(pop) + std(pop) * norminv(p);


Log in to comment.

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!