title: Calculate Normal Distrubution using Java
body: <p>EDIT:     </p>
  
  <p>Actually I realized that what I need is the value of X. Let me make it clearer. Suppose, I know the probability P = 0.95 since I want to use two standard deviations. I know the ranges <strong>P(-500 &lt; x &lt;500)</strong> that means I know y and z , I know the mean and standard deviation as well. If I want to know what will be the value of x which method should I use. I have found one <a href="http://stattrek.com/Tables/Normal.aspx" rel="nofollow">calculator</a> doing something like this but could not understand which formula to use.    </p>
  
  <p>Original Question:    </p>
  
  <blockquote>
    <p>I want to calculate normal distribution probability of random variables using Java. Was not sure which formula to use to code to solve a problem like <a href="http://stattrek.com/online-calculator/normal.aspx#examples" rel="nofollow">this</a>. If I know the value of mean and Standard deviation and want to find the probability of being x's value between 2 certain values y and z (P(-500
  </blockquote>
  
  <p>Can anyone help me please? </p>