prob140.emp_dist¶
-
prob140.
emp_dist
(values)[source]¶ Takes an array of values and returns an empirical distribution
Parameters: - values : array
Array of values that will be grouped by the distribution
Returns: - Table
A distribution
Examples
>>> x = make_array(1, 1, 1, 1, 1, 2, 3, 3, 3, 4) >>> emp_dist(x) Value | Proportion 1 | 0.5 2 | 0.1 3 | 0.3 4 | 0.1