prob140.Table.cdf¶
-
Table.
cdf
(x)¶ Finds the cdf of the distribution
Parameters: x : float
Value in distribution
Returns: float
Finds P(X<=x)
Examples
>>> dist = Table().with_columns('Value',make_array(2, 3, 4),'Probability',make_array(0.25, 0.5, 0.25)) >>> dist.cdf(0) 0 >>> dist.cdf(2) 0.25 >>> dist.cdf(3.5) 0.75 >>> dist.cdf(1000) 1