title: Student t-distribution different values
body: <p>When I run student t-distribution in <code>R</code>, I get following:</p>
  
  <pre><code>&gt; pt(1.849, 2, lower.tail=FALSE)
  [1] 0.1028493
  </code></pre>
  
  <p>When I run same with <code>Apache Commons Math</code> library, I get following:</p>
  
  <pre><code>  TDistribution td = new TDistribution(2);
    System.out.println(td.density(1.849));
    O/P: 0.07927663297535456
  </code></pre>
  
  <p>Values are completely different. Is this expected behavior (or) Am i missing something?</p>
  
  <p><strong>EDIT:</strong>
  When I used <code>cumulativeProbability</code> I got following output, which is also far different from R value.</p>
  
  <pre><code>0.8954597327733625
  </code></pre>