nlogL = geolike(p, x)
[nlogL, avar] = geolike(p, x)
| Parameter | Description |
|---|---|
| p | scalar in the range [0, 1]: success probability. |
| x | nonnegative integer finite real nonempty array: failure counts before success. |
| Parameter | Description |
|---|---|
| nlogL | scalar: negative log-likelihood. |
| avar | scalar: asymptotic variance estimate. |
geolike returns the negative log-likelihood for geometric distribution data and the asymptotic variance estimate.
x = [0 1 2 3 5 8];
[nlogL, avar] = geolike(0.25, x);
| Version | Description |
|---|---|
| 2.0.0 | initial version |