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:
- narray_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.
- narray_like or
- Returns:
ndarrayA 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.