学生 t 分布不同值

Student t-distribution different values

当我在 R 中 运行 学生 t 分布时,我得到以下信息:

> pt(1.849, 2, lower.tail=FALSE)
[1] 0.1028493

当我 运行 与 Apache Commons Math 库相同时,我得到以下信息:

  TDistribution td = new TDistribution(2);
  System.out.println(td.density(1.849));
  O/P: 0.07927663297535456

价值观完全不同。这是预期的行为吗(或)我错过了什么吗?

编辑: 当我使用 cumulativeProbability 时,我得到了以下输出,这也与 R 值相差甚远。

0.8954597327733625

Apache Common Math 的输出似乎是密度函数的值。

> dt(1.849, 2)
[1] 0.07927663