3.2.2.3.33.1.18. statsmodels.discrete.discrete_model.PoissonResults.predict_prob¶
-
PoissonResults.
predict_prob
(n=None, exog=None, exposure=None, offset=None, transform=True)[source]¶ Return predicted probability of each count level for each observation
Parameters: n : array-like or int
The counts for which you want the probabilities. If n is None then the probabilities for each count from 0 to max(y) are given.
Returns: ndarray
A nobs x n array where len(n) columns are indexed by the count n. If n is None, then column 0 is the probability that each observation is 0, column 1 is the probability that each observation is 1, etc.