{
  "id": "offset-statistics",
  "title": "Offset (statistics)",
  "lang": "en",
  "source_lang": "en",
  "summary": "An offset is a known term added to a statistical model’s linear predictor with its coefficient fixed, usually at one.",
  "category": "mathematics",
  "subcategory": "probability-statistics",
  "type": "concept",
  "aliases": [
    "Offset term",
    "Regression offset"
  ],
  "generated_at": "2026-11-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/offset-statistics/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/offset-statistics/",
      "json": "https://aiwiki.page/zh/offset-statistics.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "In statistics, an offset is a known term added to a model’s linear predictor with its coefficient fixed at one, rather than estimated from the data. Offsets are especially common in generalized linear models, where they incorporate a predetermined contribution to the modeled response. A typical example is the logarithm of observation time in a count model: it allows counts collected over different durations to be compared through an underlying event rate. An offset may vary between observations; “fixed” refers to its coefficient and its treatment as a supplied quantity, not to a requirement that its value be constant."
    },
    {
      "heading": "Mathematical definition",
      "text": "For a generalized linear model, let \\(Y_i\\) be the response for observation \\(i\\), and let its conditional mean be\n\n\\[\\mu_i=\\operatorname{E}(Y_i\\mid \\mathbf{x}_i,o_i).\\]\n\nA model containing an offset has the form\n\n\\[g(\\mu_i)=\\eta_i =o_i+\\beta_0+\\sum_{j=1}^{p}x_{ij}\\beta_j,\\]\n\nwhere:\n\n- \\(g\\) is the link function;\n- \\(\\eta_i\\) is the linear predictor;\n- \\(o_i\\) is the supplied offset;\n- \\(\\beta_0\\) is an estimated intercept;\n- \\(x_{ij}\\) are explanatory variables with estimated coefficients \\(\\beta_j\\).\n\nThe offset enters additively on the link scale, which need not be the scale of the response. With an identity link, adding an offset adds the same amount to the conditional mean. With a logarithmic link, an offset multiplies the conditional mean after transformation back to the response scale.\n\nMore generally, a known contribution \\(c z_i\\), with predetermined coefficient \\(c\\), can be included by defining \\(o_i=c z_i\\). Several known contributions can be combined into one offset."
    },
    {
      "heading": "Offsets, intercepts, and ordinary predictors",
      "text": "An offset differs from an ordinary explanatory variable because its coefficient is not fitted. Including \\(z_i\\) as an ordinary predictor gives\n\n\\[g(\\mu_i)=\\beta_0+\\gamma z_i+\\cdots,\\]\n\nwhere the data determine \\(\\gamma\\). Including it as an offset instead imposes \\(\\gamma=1\\).\n\nAn intercept is also different: it is an estimated constant shared across observations. An offset may vary from observation to observation and is supplied externally to the coefficient-estimation procedure.\n\nIf the offset is constant, \\(o_i=c\\), and the model has an unrestricted intercept, it can be absorbed into a redefined intercept, \\(\\beta_0^{*}=\\beta_0+c\\). In that setting, adding the constant offset does not change the set of possible fitted means. Observation-specific offsets generally cannot be absorbed this way.\n\nThe term is also distinct from bias of an estimator, which concerns the difference between an estimator’s expected value and the quantity being estimated. An offset is a model component, not a statement that an estimator is biased."
    },
    {
      "heading": "Exposure in count models",
      "text": "The most familiar application is modeling event counts when observations have different amounts of exposure, such as time under observation, distance traveled, or area surveyed.\n\nSuppose \\(Y_i\\) follows a Poisson distribution with mean \\(\\mu_i\\). Let \\(t_i>0\\) denote exposure and \\(\\lambda_i\\) the expected count per unit exposure. If\n\n\\[\\mu_i=t_i\\lambda_i\\]\n\nand the rate satisfies\n\n\\[\\log\\lambda_i=\\beta_0+\\sum_{j=1}^{p}x_{ij}\\beta_j,\\]\n\nthen\n\n\\[\\log\\mu_i =\\log t_i+\\beta_0+\\sum_{j=1}^{p}x_{ij}\\beta_j.\\]\n\nThus the logarithm of exposure is the offset. Its fixed coefficient expresses a substantive assumption: holding explanatory variables constant, expected count is proportional to exposure. Doubling exposure doubles expected count.\n\nFor example, two identical machines observed for 100 and 200 operating hours would have expected event counts in a ratio of one to two under this model. Their fitted event rates would nevertheless be equal.\n\nThe same mean structure can be used with count distributions other than the Poisson. The offset specifies how exposure affects the mean; it does not by itself determine the response distribution or its variance.\n\nTesting proportionality to exposure\n\nTreating \\(\\log t_i\\) as an offset imposes proportionality rather than testing it. An alternative model is\n\n\\[\\log\\mu_i =\\beta_0+\\gamma\\log t_i+\\sum_{j=1}^{p}x_{ij}\\beta_j.\\]\n\nHere \\(\\gamma\\) is estimated. The proportional-exposure model corresponds to the restriction \\(\\gamma=1\\), which can be examined using statistical hypothesis testing when the model and data support such an analysis.\n\nExposure must be positive for its logarithm to be finite. Zero-exposure observations cannot be handled by directly substituting zero into this offset."
    },
    {
      "heading": "Other uses",
      "text": "Known baseline expectations\n\nSuppose \\(E_i>0\\) is an externally supplied expected count. A model of the form\n\n\\[\\log\\mu_i=\\log E_i+\\beta_0+\\mathbf{x}_i^{\\mathsf T}\\boldsymbol{\\beta}\\]\n\nmodels the ratio of the conditional mean to that baseline:\n\n\\[\\frac{\\mu_i}{E_i} =\\exp\\!\\left(\\beta_0+\\mathbf{x}_i^{\\mathsf T}\\boldsymbol{\\beta}\\right).\\]\n\nThis formulation appears in applications where expected counts are constructed from reference rates. The model then estimates relative departures from the supplied baseline.\n\nUpdating a baseline prediction\n\nIn logistic regression, an existing baseline probability \\(p_{0i}\\), with \\(0<p_{0i}<1\\), can be incorporated through its logit:\n\n\\[\\operatorname{logit}(p_i) =\\operatorname{logit}(p_{0i})+\\alpha+\\mathbf{x}_i^{\\mathsf T}\\boldsymbol{\\beta}.\\]\n\nThe baseline log-odds act as an offset. With only the additional intercept \\(\\alpha\\), the model applies a common multiplicative adjustment to the baseline odds. Estimating a coefficient on the baseline logit instead would allow a different kind of updating and would no longer treat that term as an offset.\n\nKnown additive contributions\n\nIn linear regression with an identity link,\n\n\\[Y_i=o_i+\\beta_0+\\mathbf{x}_i^{\\mathsf T}\\boldsymbol{\\beta}+\\varepsilon_i.\\]\n\nFitting this model by ordinary least squares is equivalent to regressing \\(Y_i-o_i\\) on the explanatory variables, including the intercept. This response-subtraction equivalence does not generally hold for nonlinear link functions."
    },
    {
      "heading": "Estimation and interpretation",
      "text": "In maximum likelihood estimation, the offset enters the fitted mean and therefore affects the likelihood. It can change coefficient estimates and their standard errors, even though no coefficient is estimated for the offset itself.\n\nBecause its coefficient is fixed, an offset does not add an estimated regression parameter. Predictions for new observations nevertheless require the corresponding offset values. In an exposure model, predicting a count for a specified observation period is different from predicting a rate per unit exposure.\n\nAn offset is also not an observation weight. An offset changes the modeled mean through the linear predictor; a weight changes how an observation contributes to the fitting criterion or represents features of its sampling or variance structure, depending on the model."
    },
    {
      "heading": "Assumptions and limitations",
      "text": "Using an offset fixes part of the model structure. Its validity depends on whether the imposed contribution is appropriate. A logarithmic exposure offset, for example, assumes proportionality of expected count to exposure after accounting for the other predictors.\n\nOffsets are ordinarily treated as known during fitting. If a supplied baseline or exposure is measured with substantial error or estimated from other data, conventional uncertainty calculations conditional on that offset need not reflect this additional uncertainty. Explicit modeling or suitable uncertainty-propagation methods may then be needed.\n\nFinally, changing exposure units changes both the offset and the interpretation of the intercept. Converting observation time from hours to days adds a constant to the log-exposure offset; with a freely estimated intercept, the intercept shifts correspondingly while fitted counts remain unchanged."
    }
  ],
  "links": [
    "statistics",
    "generalized-linear-model",
    "conditional-expectation",
    "estimator-bias",
    "poisson-distribution",
    "natural-logarithm",
    "variance",
    "statistical-hypothesis-testing",
    "logistic-regression",
    "logit",
    "linear-regression",
    "ordinary-least-squares",
    "maximum-likelihood-estimation",
    "standard-error"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}