# Poisson regression, log link, by Fisher scoring (IRLS), with an exposure or a log offset, version 2.0.1

stats-poisson-regression\@2.0.1: this version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, and what was not checked. This version's record is not rewritten; a correction is added under Changes.

## What this page can and cannot show

**Level: Checked against a reference; statsmodels and Rodríguez's printed fit; the no-finite-MLE rule our derivation, its source not read. Reference kind: another program's fit of our model; an outside program, statsmodels GLM; SciPy; mpmath (tolerances), statsmodels 0.15.0; scipy 1.18.1; mpmath 1.4.1; a reference program this project wrote itself, second implementation (Python 3.13; NumPy, SciPy distribution functions and mpmath only), 2026-11-14, iteratively reweighted least squares in double precision, polished by Fisher scoring in mpmath 1.4.1 at 60 digits and rounded once; the condition test in double precision as the record states it; not an outside program.**

Checked by this project, not independently reviewed. Every method on this page has its equations, constants, sources and cases on record, and its cases agree with the stated reference within the stated tolerance. A reader can follow each method's worked example by hand; that shows the stated method gives the stated answer for one set of inputs, and does not test the code. The other cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed them.

[Every version of this method](https://www.drybench.com/methods/m/stats-poisson-regression) · [Every method](https://www.drybench.com/methods/m) · [What the levels mean](https://www.drybench.com/methods/levels)

## Version 2.0.1

**Level: Checked against a reference; statsmodels and Rodríguez's printed fit; the no-finite-MLE rule our derivation, its source not read. Reference kind: another program's fit of our model; an outside program, statsmodels GLM; SciPy; mpmath (tolerances), statsmodels 0.15.0; scipy 1.18.1; mpmath 1.4.1; a reference program this project wrote itself, second implementation (Python 3.13; NumPy, SciPy distribution functions and mpmath only), 2026-11-14, iteratively reweighted least squares in double precision, polished by Fisher scoring in mpmath 1.4.1 at 60 digits and rounded once; the condition test in double precision as the record states it; not an outside program.** `stats-poisson-regression@2.0.1`

Built, not hosted. Generated from a snapshot of the library's records taken on 2026-11-25, as committed on 2026-11-25. A later snapshot replaces this one, so these records and this page can change.

**Verification statement:** Against statsmodels 0.15.0 (exposure as offset), tolerances from its measured error against an in-house 50-digit solve; Rodríguez's printed piecewise-exponential fit (GLM notes §7.5, Tables 7.1–7.3, read 10 November 2026) at printed precision; the no-finite-MLE rule our derivation (published source not read), decided exactly; estimates converged to about 1e-10 of their SE.

From counts per row, an exposure or log offset as stated, and numeric covariates and factors, the maximum-likelihood coefficients of a Poisson log-linear regression with SE from the expected information, Wald z, p and intervals, rate ratios, deviance, null deviance, log-likelihood, AIC, Pearson χ² and the dispersion statistic X²/(n − p); data with no finite MLE refused before fitting.

- **How results are reported:** estimates, SE, z, p and the fit statistics in full double precision; each interval's coverage echoed in unit 1 whatever unit the level was given in (95 % is echoed as 0.95, the offered level the call was taken as); rates per the exposure's unit; dispersion reported, never corrected; no goodness-of-fit p
- **Uncertainty:** Wald intervals from the expected information with dispersion 1; their coverage is not checked (small samples, near separation).
- **Iterates:** newton, at most 100 iterations
- **Computes through this project's own routines:** each IRLS step as weighted least squares by Householder QR: the step, (X′WX)⁻¹ and the reciprocal condition; the Wald interval's z quantile; the Wald test's two-sided p; the full log-likelihood for the AIC
- **Reference, as its record states it:** statsmodels 0.15.0 GLM, with Rodriguez's printed fit
- **Level confirmed by this project's ruling of** 21 November 2026

[What this page can and cannot show](#what-this-page-can-and-cannot-show)

### What was checked

148 cases in 3 files, linked by this exact version.

Run through the tool at build against another program's fit of our model; an outside program, statsmodels GLM; SciPy; mpmath (tolerances), statsmodels 0.15.0; scipy 1.18.1; mpmath 1.4.1; a reference program this project wrote itself, second implementation (Python 3.13; NumPy, SciPy distribution functions and mpmath only), 2026-11-14, iteratively reweighted least squares in double precision, polished by Fisher scoring in mpmath 1.4.1 at 60 digits and rounded once; the condition test in double precision as the record states it; not an outside program: 87 agree within the tolerance the file states, 61 refuse as the case expects, 0 differ, 0 were not run.

- **File 1, 14 cases**
  - **Where the expected values came from:** another program's fit of our model
  - **Recorded on:** 2026-11-14
  - **Reference:** in-house 50-digit computation (mpmath), mpmath 1.4.1; scipy 1.18.1; licence BSD-3-Clause
  - **Tolerance as the file states it:** the reciprocal condition relative 1e-8 against the 50-digit computation (absolute 1e-21 below 1e-12); the computed cases as their own rule states; codes and statuses exact

- **File 2, 24 cases**
  - **Where the expected values came from:** an outside program, statsmodels GLM; SciPy; mpmath (tolerances) statsmodels 0.15.0; scipy 1.18.1; mpmath 1.4.1
  - **Recorded on:** 2026-11-14
  - **Reference:** statsmodels GLM; SciPy; mpmath (tolerances), statsmodels 0.15.0; scipy 1.18.1; mpmath 1.4.1; licence BSD-3-Clause
  - **Tolerance as the file states it:** estimates, SE, z, limits, ratios and fit statistics relative max(1e-9, 10 × statsmodels' measured error against the 50-digit solve) per case (where units differ under one path, absolute: the larger of that size of the smallest magnitude and 100 × the measured error times the largest, an interval limit's magnitude being |estimate| + half-width; the log-likelihood absolute at that size of its magnitude); p that times (z\_max² + 1) and the odds and rate ratios that times max(1, |ln ratio|), their sensitivities; no absolute rule looser than 1e-7 relative on any value it governs; Rodriguez's printed values at half a unit of their print; counts, df, names, codes and statuses exact

- **File 3, 110 cases**
  - **Where the expected values came from:** an outside program, second implementation (Python 3.13; NumPy, SciPy distribution functions and mpmath only) 2026-11-14
  - **Recorded on:** 2026-11-14
  - **Reference:** second implementation (Python 3.13; NumPy, SciPy distribution functions and mpmath only), 2026-11-14; licence BSD-3-Clause
  - **Tolerance as the file states it:** every number relative 1e-8 (absolute 1e-12 below 1e-4, in its own unit: a coefficient that is 0 by symmetry, or the deviance of a near-exact fit, comes out as rounding residue from the fit; p absolute 1e-307 below 1e-297); counts, df, statuses, codes and strings exact

Apart from the worked example, the cases and their values are not printed here. This shows agreement with this project's recorded cases. It does not show that a method suits your work, and it is not a qualification.

### What was not checked

An undecided separation is an internal invariant (an error, no number); non-convergence (NO\_CONVERGENCE, equation stopping) is reached by valid inputs with log offsets several hundred below the others': the start's underflow rule by stored reference values#e2-start-underflow, and the halving rule by, for example, counts 5, 400, 5, 1517 at x = 3, 3, 2, 4 with log offsets 0, 0, 0, −729.2070388793945, which no fixture case holds, since only a double-precision replay of the engine decides it; quasi-likelihood SE and overdispersion correction; negative binomial; zero inflation; the Wald intervals' coverage; interactions; the log-likelihood and AIC at very large counts (lgamma differences, n ≳ 1e6).

### Equations

**Equation 1**

```equation
L = Σ {y η − exp(η) − log y!}, μ = exp(η), η = Xβ + offset (offset = log exposure, the stated log offset, or 0)
deviance 2Σ{y log(y/μ) − (y − μ)}, a row with y = 0 contributing 2μ (0·log 0 = 0), each term computed as m·h(y/m) with h(r) = r ln r − r + 1 ≥ 0, which is y log(y/m) − (y − m): with d = (y − μ)/μ, m = μ, h is the series Σ_{k≥2} (−d)^k/(k(k − 1)), summed in double precision from k = 2 until a term no longer changes the sum, when |d| < 1/4, and y log(y/m) − (y − m) directly otherwise, a row with y = 0 giving m
so no term is negative
null deviance: the same with μ = exposure·Σy/Σexposure on every row, exposure = exp(offset) (the intercept-only fit, in closed form)
Pearson χ² X² = Σ (y − μ)²/μ
AIC = −2L + 2p
dispersion statistic X²/(n − p), reported, never used to correct the SE
rate ratio exp(β)
the start is equation start
an exposure may be any positive normal double, the smallest included, and a log offset any finite double: one far from the other rows' (an exposure of 2.2250738585072014e-308 h beside 1 h) can leave the weights at β₀ spread so widely that the rank test of equation condition fails, and the call is refused DESIGN_ILL_CONDITIONED
```

| Symbol | Meaning and unit |
| --- | --- |
| y | count (a count) |
| μ | the row's fitted mean count |
| η | the row's linear predictor |
| n | rows |
| p | coefficients |
| L | the log-likelihood |
| E | the row's exposure, in the unit you state (offset = log E), as-given |

Source: Green PJ. Iteratively reweighted least squares for maximum likelihood estimation, and some robust and resistant alternatives. J R Statist Soc B 1984;46(2):149-192, section §3.2 example (ii), Poisson with mean exp(η); the canonical link, observed = expected information, the author's copy of the version of record, from his website; read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning dcb373621450. Behind a subscription, checked 2026-11-11. No erratum found (searched Crossref: update and relation metadata for 10.1111/j.2517-6161.1984.tb01288.x), 2026-11-11.

**Equation 2**

```equation
X: a column of 1s (the intercept), then each covariate in the order given (its value, or log10 of it on 'log10'), then each factor's levels other than its reference, sorted by name (UTF-16 code units), each a 0/1 indicator of the row's level (treatment coding)
a covariate's coefficient is per its unit (per log10 unit on 'log10'), an indicator's is the difference from the reference
p = the number of columns. A linear covariate's coefficient is in 1/u, u the covariate's unit as given, wrapped in parentheses when u is compound (1/mg, 1/(ug/mL))
the reply's units table gives its UCUM code where the tool has a hand-written one, and otherwise { none } with the kit's reason: no code is derived at run time. Order of checks: the kit's argument checks (OUT_OF_RANGE, NOT_AN_INTEGER, UNITS_DIFFER and the kit's other codes)
then the response's own conditions (binomial LENGTHS_DIFFER for trials, then EVENTS_EXCEED_TRIALS
Poisson the offset arguments, MISSING_ARGUMENT, CONFLICTING_ARGUMENT, LENGTHS_DIFFER, NONPOSITIVE_EXPOSURE)
NO_PREDICTORS
the design's, DUPLICATE_NAME, then per covariate LENGTHS_DIFFER and NONPOSITIVE_ON_LOG, per factor LENGTHS_DIFFER, then per factor REFERENCE_NOT_A_LEVEL, FACTOR_ONE_LEVEL and TOO_MANY_LEVELS, then TOO_MANY_COEFFICIENTS and TOO_FEW_ROWS
then INVALID_OPTION for the level
each an invalid input, the first met answering. Then rank, the condition test before the fit, separation (or the Poisson no-finite-MLE test), and the fit
```

| Symbol | Meaning and unit |
| --- | --- |
| X | the design matrix, one row per data row |
| p | coefficients (columns of X) |

Source: Green PJ. Iteratively reweighted least squares for maximum likelihood estimation, and some robust and resistant alternatives. J R Statist Soc B 1984;46(2):149-192, section §1.2: D = X, the design; the column order and treatment coding are the library's, stated, the author's copy of the version of record, from his website; read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning dcb373621450. Behind a subscription, checked 2026-11-11. No erratum found (searched Crossref: update and relation metadata for 10.1111/j.2517-6161.1984.tb01288.x), 2026-11-11.

**Equation 3**

```equation
SE = √diag (DᵀAD)⁻¹ at the fit
z = β̂/SE
p = 2(1 − Φ(|z|))
interval β̂ ± z₍₁₊ₗ₎/₂·SE
the ratio exp(β̂) with limits exp of the interval's
```

| Symbol | Meaning and unit |
| --- | --- |
| β̂ | a coefficient's estimate (per its covariate's unit), as-given |
| z₍₁₊ₗ₎/₂ | the standard normal quantile Φ⁻¹((1 + l)/2), l the caller's level |
| Φ | the standard normal distribution function |

Source: Green PJ. Iteratively reweighted least squares for maximum likelihood estimation, and some robust and resistant alternatives. J R Statist Soc B 1984;46(2):149-192, section §1.2, the asymptotic covariance (DᵀAD)⁻¹; the Wald z, p and interval are the library's standard large-sample forms, stated, the author's copy of the version of record, from his website; read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning dcb373621450. Behind a subscription, checked 2026-11-11. No erratum found (searched Crossref: update and relation metadata for 10.1111/j.2517-6161.1984.tb01288.x), 2026-11-11.

**Equation 4**

```equation
the likelihood equations Dᵀu = 0 with u = ∂L/∂η, D = X
Fisher scoring (DᵀAD)(β* − β) = Dᵀu with A = E[−∂²L/∂η∂ηᵀ], solved as the weighted least-squares regression of A⁻¹u + Dβ on D with weights A (IRLS)
asymptotic covariance (DᵀAD)⁻¹ with dispersion 1
```

| Symbol | Meaning and unit |
| --- | --- |
| u | score per row |
| A | working weight |

Source: Green PJ. Iteratively reweighted least squares for maximum likelihood estimation, and some robust and resistant alternatives. J R Statist Soc B 1984;46(2):149-192, section §1.2, eqs. (1)–(4) and the covariance σ²(DᵀAD)⁻¹; §3.3, u\_i = π\_i(y\_i − mu\_i)/(τ\_i²δ\_i), A\_ii = π\_i/(τ\_i²δ\_i²), the author's copy of the version of record, from his website; read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning dcb373621450. Behind a subscription, checked 2026-11-11. No erratum found (searched Crossref: update and relation metadata for 10.1111/j.2517-6161.1984.tb01288.x), 2026-11-11.

**Equation 5**

```equation
The condition test, stated as computed. Applied to the unweighted design before the fit (W = I) and to the weighted design at the converged iterate (W = diag A at the β̂ where the stopping rule is met, A the working weight of equation score: binomial nμ(1 − μ) for the logit, nφ(η)²/(Φ(η)Φ(−η)) for the probit, Poisson μ). (1) M = √W·X, each row of X times the square root of its weight. (2) For each column j, c_j = ‖M_·j‖₂, the square root of the sum of the squared entries taken in row order in double precision
s_j = 2^(−round(log₂ c_j)), round to the nearest integer with a half rounded toward +∞, and s_j = 1 when c_j = 0
column j of M is multiplied by s_j (exact, a power of two). (3) R is the p × p upper-triangular factor of the QR factorisation of the scaled M (Householder reflections, no pivoting)
R is unique up to the signs of its rows, which change neither norm below. (4) R⁻¹ is formed explicitly by back-substitution in double precision
‖B‖₁ is the largest over columns of the sum of the absolute values of the column's entries
rcond = 1/(‖R‖₁·‖R⁻¹‖₁), computed so and never estimated. (5) The design is refused DESIGN_ILL_CONDITIONED when rcond < 1e-4, strictly
an rcond within rounding of 1e-4 may fall on either side. (6) The rank test: at the Householder step for column j, if the norm of the column's entries from row j down is at most 1e-7 times the norm of column j of the scaled M, the matrix has lost rank
before the fit that is RANK_DEFICIENT, and on a weighted design it is DESIGN_ILL_CONDITIONED. The rank test is applied to every weighted least-squares solve (the start's regression with the weights of μ₀, then the solve at each iterate from the start's β₀ on, the converged one included)
the rcond test of step (5) only before the fit and at the converged iterate. A weight that overflows to infinity fails the rank test. (7) What the refusal serves: at the converged iterate, the rcond of step (4) as belowThresholdReciprocalCondition (unit 1)
before the fit, and for a failed rank test, no number.
```

| Symbol | Meaning and unit |
| --- | --- |
| W | the diagonal matrix of row weights (the identity before the fit) |
| M | the weighted design √W·X |
| c\_j | the Euclidean norm of column j of M |
| s\_j | the power of two that scales column j |
| R | the triangular factor of the scaled M |
| rcond | the reciprocal 1-norm condition of R |

Source: Green PJ. Iteratively reweighted least squares for maximum likelihood estimation, and some robust and resistant alternatives. J R Statist Soc B 1984;46(2):149-192, section §1.2: the weighted least-squares regression (3) the test is applied to; the column scaling, the condition number, its threshold and the rank test are the library's own, stated (Drybench ruling, 10 November 2026, J4 and K4), the author's copy of the version of record, from his website; read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning dcb373621450. Behind a subscription, checked 2026-11-11. No erratum found (searched Crossref: update and relation metadata for 10.1111/j.2517-6161.1984.tb01288.x), 2026-11-11.

**Equation 6**

```equation
ℓ is L of the method's likelihood equation, the full log-likelihood with Σ log C(n, y) (binomial) or −Σ log y! (Poisson), computed in double precision (log-gamma for the constants). Each iteration first checks the stopping rule: stop when the Newton decrement uᵀ(DᵀAD)⁻¹u ≤ 1e-20 (the squared norm of the step regression's fitted values) at the current β. Otherwise the step is tried at full length and then halved, at most 10 times, 11 trials in all
the first trial whose ℓ is finite and not below ℓ − 64·ε·|ℓ| (ℓ at the current β, ε = 2⁻⁵²) is accepted. If no trial is accepted, or 100 iterations pass without the stopping rule being met, the call is answered with the kit's NO_CONVERGENCE, an error with no number. Far-side underflow: a row observed on the far side (binomial y < n at η > 0, or y > 0 at η < 0
Poisson y > 0) whose tail quantity (logit μ(1 − μ)
probit Φ(−|η|) or φ(|η|)
Poisson μ) is below the smallest normal double, 2.2250738585072014e-308, makes ℓ count as not finite at that β, so a trial reaching it is never accepted. At the start, while ℓ at β₀ is not finite for this or any reason, β₀ is halved toward β = 0, at most 10 times
if ℓ is still not finite, NO_CONVERGENCE. A probit row whose Φ(−|η|) or φ(|η|) is 0 in double precision has weight 0 (Drybench ruling, 10 November 2026, rulings K3 and H4
J4
the level review, C1)
```

| Symbol | Meaning and unit |
| --- | --- |
| decrement | uᵀI⁻¹u |

Source: Green PJ. Iteratively reweighted least squares for maximum likelihood estimation, and some robust and resistant alternatives. J R Statist Soc B 1984;46(2):149-192, section §1.2: iterate (3) until convergence; the stopping rule, cap, halving and underflow rule are the library's own, stated, not Green's (Drybench ruling, 10 November 2026, engine rulings), the author's copy of the version of record, from his website; read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning dcb373621450. Behind a subscription, checked 2026-11-11. No erratum found (searched Crossref: update and relation metadata for 10.1111/j.2517-6161.1984.tb01288.x), 2026-11-11.

**Equation 7**

```equation
The start, the library's own and not Green's: μ₀ = (y + 0.5)/(n + 1) (binomial) or y + 0.1 (Poisson)
η₀ = logit μ₀, Φ⁻¹(μ₀) or log μ₀, less the offset
β₀ is the weighted least-squares regression of η₀ on X with weights A at μ₀ (equation score's working weights at η = η₀ + offset), through equation condition's column-scaled solve, whose rank test applies
```

| Symbol | Meaning and unit |
| --- | --- |
| μ₀ | the row's starting mean (probability or count) |
| η₀ | the row's starting linear predictor less its offset |
| β₀ | the starting coefficients, as-given |

Source: Green PJ. Iteratively reweighted least squares for maximum likelihood estimation, and some robust and resistant alternatives. J R Statist Soc B 1984;46(2):149-192, section §1.2: the iteration (3) the start feeds; the start itself is the library's own, stated, and no claim is made about what Green says of starting values (Drybench ruling, 10 November 2026, engine rulings), the author's copy of the version of record, from his website; read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning dcb373621450. Behind a subscription, checked 2026-11-11. No erratum found (searched Crossref: update and relation metadata for 10.1111/j.2517-6161.1984.tb01288.x), 2026-11-11.

**Equation 8**

```equation
Our derivation, published source not yet read (Drybench ruling, 10 November 2026, ruling K2): no finite MLE exactly when some d ≠ 0 has x′d = 0 on every positive-count row and x′d ≤ 0 on every zero-count row
decided by the feasibility of Konis' dual LP X̄ᵀλ = −X̄ᵀe, λ ≥ 0 (phase one, a floating simplex steering, an exact BigInt certificate or an exact simplex deciding), with X̄ holding each positive-count row as x and as −x and each zero-count row as −x
the offset does not enter
```

| Symbol | Meaning and unit |
| --- | --- |
| d | a direction in coefficient space |
| x | a row of the design X |
| X̄ | the signed rows, as defined in the text |
| λ | the dual LP's multipliers |
| e | a vector of 1s |

Source: Konis K. Linear programming algorithms for detecting separated data in binary logistic regression models. DPhil thesis, University of Oxford, 2007, section §4.4.3 (the dual LP used for the test); the sign rule is the library's derivation from the Poisson log-likelihood, stated in Drybench's engine rulings, K2, the thesis as deposited in the Oxford University Research Archive; read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 40ad9b65eb92. Free to read (Oxford University Research Archive terms and conditions of use; © K. Konis 2007), checked 2026-11-11. No erratum found (searched the archive record's versions and notes), 2026-11-11.

### Conventions

- `RECIPROCAL_CONDITION_THRESHOLD` = 0.0001: Fixed by the method; not an argument. The threshold of the condition test (equation condition): a design whose reciprocal condition, computed as that equation states, is strictly below it before the fit or at the converged iterate is refused DESIGN\_ILL\_CONDITIONED.

What each mode computes:

- `offset = none`: Equal exposure per row: η = Xβ.
- `offset = exposure`: η = Xβ + log(exposure); exp(β) are rate ratios per the exposure's unit.
- `offset = log-offset`: η = Xβ + the stated log offset.

### Constants

Constants: none used.

### Worked example

Worked example: one case of stats-poisson-regression\@2.0.1, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.

**Inputs**

- offset = exposure
- response.counts\[0\] = 1
- response.counts\[1\] = 3
- response.counts\[2\] = 5
- response.counts\[3\] = 7
- response.countLabel = colonies
- response.exposure\[0\] = 1 h
- response.exposure\[1\] = 1 h
- response.exposure\[2\] = 1.5 h
- response.exposure\[3\] = 1.5 h
- replicates = independent
- level = 0.95
- factors\[0\].name = group
- factors\[0\].values\[0\] = A
- factors\[0\].values\[1\] = A
- factors\[0\].values\[2\] = B
- factors\[0\].values\[3\] = B
- factors\[0\].reference = A

**Steps**

1. rate-ratio = 2, from response.counts, response.exposure; by equation 1; gives coefficients\[1\].rateRatio.estimate.
2. estimate = 0.69314718, from rate-ratio; by equation 2; gives coefficients\[1\].estimate.
3. se = 0.57735027, from response.counts; by equation 4; gives coefficients\[1\].se.
4. z = 1.2005661, from estimate, se; by equation 3; gives coefficients\[1\].z.

The working, as the case writes it:

```equation
statsmodels' largest relative error against the 50-digit solve on beta and SE: 1.60e-16
the case tolerance is relative max(1e-9, 10 × that)
max fitted |eta| 1.79
effective relative bound under the absolute rules 1.0e-09 (at most 1e-7)
```

**Answer**

- `coefficients[1].rateRatio.estimate` = **2**
- `coefficients[1].estimate` = **0.69314718**
- `coefficients[1].se` = **0.57735027**
- `coefficients[1].z` = **1.2005661**

Where these values came from: an outside program, statsmodels GLM; SciPy; mpmath (tolerances) statsmodels 0.15.0; scipy 1.18.1; mpmath 1.4.1; statsmodels 0.15.0 GLM (Newton, tol 1e-15; SE from its expected information); z, p and limits from SciPy.

At build the tool returned this answer within the tolerance the file states: estimates, SE, z, limits, ratios and fit statistics relative max(1e-9, 10 × statsmodels' measured error against the 50-digit solve) per case (where units differ under one path, absolute: the larger of that size of the smallest magnitude and 100 × the measured error times the largest, an interval limit's magnitude being |estimate| + half-width; the log-likelihood absolute at that size of its magnitude); p that times (z\_max² + 1) and the odds and rate ratios that times max(1, |ln ratio|), their sensitivities; no absolute rule looser than 1e-7 relative on any value it governs; Rodriguez's printed values at half a unit of their print; counts, df, names, codes and statuses exact.

Who worked this case: not recorded.

### What it refuses, and its input ranges

- `RANK_DEFICIENT`: the design's columns are not linearly independent; columns are never dropped silently Next: Remove the predictor that is a combination of the others.
- `DESIGN_ILL_CONDITIONED`: the condition test of equation condition refuses: the reciprocal condition is strictly below the threshold RECIPROCAL\_CONDITION\_THRESHOLD on the unweighted design before the fit or on the weighted design at the converged iterate, or the rank test fails on a weighted design at the start's iterate or any later one (Drybench ruling, 10 November 2026, J4; K4). Only the refusal at the converged iterate serves a number, its reciprocal condition as belowThresholdReciprocalCondition; the refusal before the fit and a failed rank test serve none Next: Centre or rescale the covariate (subtract its mean, or fit it on log10), or remove a predictor that nearly duplicates another.
- `MLE_NOT_FINITE`: some coefficient direction leaves every positive count's fit unchanged and lowers zero counts' means, so the MLE is infinite (Drybench ruling, 10 November 2026, K2 derivation), decided exactly before fitting Next: Remove or combine the predictor that separates the outcomes, or use a method with a penalised likelihood.
- `LENGTHS_DIFFER` (invalid input): two columns of one call differ in length (a method condition until the kit holds it; Drybench's J5)
- `REFERENCE_NOT_A_LEVEL` (invalid input): a factor's reference is not one of its levels
- `FACTOR_ONE_LEVEL` (invalid input): a factor with one level
- `TOO_MANY_LEVELS` (invalid input): a factor with more than 12 levels
- `TOO_MANY_COEFFICIENTS` (invalid input): more than 20 coefficients
- `TOO_FEW_ROWS` (invalid input): no more rows than coefficients
- `NONPOSITIVE_ON_LOG` (invalid input): a log10 covariate with a value at or below 0
- `NO_PREDICTORS` (invalid input): no covariate and no factor
- `OUT_OF_RANGE` (invalid input): level, taken in unit 1, at or below 0 or at or above 1 (100 % included); a count below 0 (the kit's bounds)
- `NOT_AN_INTEGER` (invalid input): a count (events, trials or counts) that is not a whole number (the kit's count rule)
- `UNITS_DIFFER` (invalid input): the values of one covariate, or the exposures, in more than one unit (the kit's rule for a unit group)
- `DUPLICATE_NAME` (invalid input): two predictors (covariates and factors together) share a name
- `INVALID_OPTION` (invalid input): level, taken in unit 1 (95 % is 0.95), is not within 1e-12 (absolute, exclusive) of 0.9, 0.95 or 0.99; a level within 1e-12 of one of them is taken as exactly that level, so one ulp from 0.95 is 0.95, and 0.95 + 2e-12 or 0.8 is refused
- `NONPOSITIVE_EXPOSURE` (invalid input): an exposure at or below 0
- `CONFLICTING_ARGUMENT` (invalid input): response.exposure and response.logOffset both given, or either given with an offset mode that does not take it
- `MISSING_ARGUMENT` (invalid input): offset 'exposure' without response.exposure, or 'log-offset' without response.logOffset

### Changes

No correction is logged for stats-poisson-regression\@2.0.1.

## Tools that use it

- [`stats_poisson_regression`](https://www.drybench.com/methods/tools/stats-poisson-regression)

## Cite this version

Poisson regression, log link, by Fisher scoring (IRLS), with an exposure or a log offset. Drybench; stats-poisson-regression\@2.0.1; [https://www.drybench.com/methods/m/stats-poisson-regression/2.0.1](https://www.drybench.com/methods/m/stats-poisson-regression/2.0.1) (accessed \[date\]).
