Description Usage Arguments Value Author(s) See Also Examples
Given a possible value for a probability distribution, the probability at that value is computed.
1 | probability(object, val)
|
object |
A discrete probability distribution. |
val |
The value at which the probability should be computed. |
The probability at val
.
Petter Mostad <mostad@chalmers.se>
1 2 | probability(poissondistribution(3), 1)
probability(binomialdistribution(10, 0.24), 2)
|
Loading required package: MASS
[1] 0.1493612
[1] 0.2884986
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.