When to use it
Use for modeling non-negative integer count outcome data.
Required Inputs
- Count outcome vector Y (0, 1, 2...)
- Predictor matrix X
- Exposure / Offset vector (optional)
Fit Poisson count regression models with Incidence Rate Ratios (IRR), log coefficients β, deviance goodness-of-fit, and overdispersion checks.
Run this test live in StatLab npm i @statlab/coreUse for modeling non-negative integer count outcome data.
log(λ) = β₀ + β₁X₁ + ... + log(Exposure), IRR = exp(β_i)
import statsmodels.api as sm
X = sm.add_constant(x_matrix)
model = sm.GLM(y_vals, X, family=sm.families.Poisson()).fit()
print(model.summary())
model <- glm(y ~ x1, data = df, family = "poisson")
summary(model)
import { poissonRegression } from '@statlab/core';
const res = poissonRegression(yVals, xMatrix);
Continuous A/B testing, statistical telemetry analysis, and automated feedback loops for live backend services.
Explore VoxelPulse →Fixed-price AI release-readiness sprints, automated regression testing, and reliability statistical benchmarks.
Explore VoxelAssurance →Explore static calculators across the StatLab inference engine suite.