2
$\begingroup$

I have an array of values (mass function) Px and I want to approximate a normal distribution function (in Matlab) from them.

I can plot the mass function using bar(Px) and I would like to plot normal distribution graph given these data, too.

How do I do it (mathematical formual will be enough for me)?

  • 1
    To clarify, you have a number of data points which you think are approximately normally distributed and you want to know the normal distribution which best fits the data? If this is incorrect, can you please clarify?2012-10-15
  • 1
    The normal distribution is characterized by its two parameters: its mean and variance. Find the mean and variance of your data ($\bar{x}$ and $s_x^2$, respectively) and plug those in to the normal density function.2012-10-15
  • 0
    to Aaron: that is correct2012-10-16

1 Answers 1

0

The histfit function in the Statistics toolbox seems to do precisely this: http://www.mathworks.in/help/stats/histfit.html