title: How would you normalize a histogram so the sum of each bin is 1?
body: <p>How would you normalize a histogram <code>A</code> so the sum of each bin is 1</p>
  
  <p>Dividing the histogram by the width of the bin, how do you draw it </p>
  
  <p>I have this</p>
  
  <pre><code>dist        = rand(50)    
  average     = mean(dist, 1);   
  [c,x]       = hist(average, 15);    
  normalized  = c/sum(c);
  bar(x, normalized, 1)
  </code></pre>
  
  <p>In this case, <code>n = 50</code>, </p>
  
  <ul>
  <li>What is it the formula to get values
  of mean and variance^2? We write <code>N(mean, (variance^2) / 50)</code>, but how? </li>
  <li>How do you plot both uniform distribution and normal distribution?.</li>
  </ul>
  
  <p>The histogram must be close to the normal distribution.</p>