encyclopegia.org

Dummy variable (statistics)

In regression analysis, a dummy variable (also known as indicator variable or just dummy) is one that takes a binary value (0 or 1) to indicate the absence or presence of some categorical effect that may be expected to shift the outcome. In machine learning this is known as one-hot encoding. Dummy variables are commonly used in regression analysis to represent categorical variables that have more than two levels, such as education level or occupation. In this case, multiple dummy variables would be created to represent each level of the variable, and only one dummy variable would take on a value of 1 for each observation. Dummy variables are useful because they allow the use of categorical variables in our analysis, which would otherwise be difficult to include due to their non-numeric nature.

In regression analysis, a dummy variable (also known as indicator variable or just dummy) is one that takes a binary value (0 or 1) to indicate the absence or presence of some categorical effect that may be expected to shift the outcome. In machine learning this is known as one-hot encoding. Dummy variables are commonly used in regression analysis to represent categorical variables that have more than two levels, such as education level or occupation. In this case, multiple dummy variables would be created to represent each level of the variable, and only one dummy variable would take on a value of 1 for each observation. Dummy variables are useful because they allow the use of categorical variables in our analysis, which would otherwise be difficult to include due to their non-numeric nature. Dummy variables may be extended to more complex cases. For example, seasonal effects may be captured by creating dummy variables for each of the seasons: D1=1 if the observation is for summer, and equals zero otherwise; D2=1 if and only if autumn, otherwise equals zero; D3=1 if and only if winter, otherwise equals zero; and D4=1 if and only if spring, otherwise equals zero. In the panel data fixed effects estimator dummies are created for each of the units in cross-sectional data (e.g. firms or countries) or periods in a pooled time-series. In such regressions, either the constant term or one of the dummies has to be removed making this the base category against which the others are assessed. This is because if dummy variables for all categories were included, their sum would equal 1 for all observations, which is identical to and hence perfectly correlated with the vector-of-ones variable whose coefficient is the constant term; if the vector-of-ones variable were also present, this would result in perfect multicollinearity, so that the matrix inversion in the estimation algorithm would be impossible. This is referred to as the dummy variable trap. ==See also== ==References== ==Further reading== ==External links==

References

  1. Draper, N.R.; Smith, H. (1998) Applied Regression Analysis , Wiley. ISBN 0-471-17082-8 (Chapter 14) Wikipedia revision 1364102463, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1364102463
    Cite this reference

    MLA "Draper, N.R.; Smith, H. (1998) Applied Regression Analysis , Wiley. ISBN 0-471-17082-8 (Chapter 14) Wikipedia revision 1364102463, retrieved 2026-11-18." Draper, N. 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1364102463. Accessed 24 November 2026.

    Chicago "Draper, N.R.; Smith, H. (1998) Applied Regression Analysis , Wiley. ISBN 0-471-17082-8 (Chapter 14) Wikipedia revision 1364102463, retrieved 2026-11-18." Draper, N. 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1364102463.

    APA Draper, N. (2026). Draper, N.R.; Smith, H. (1998) Applied Regression Analysis , Wiley. ISBN 0-471-17082-8 (Chapter 14) Wikipedia revision 1364102463, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1364102463

  2. Use of Dummy Variables in Regression Equations · retrieved 2026-11-17 · rev 1364102463
    Cite this reference

    MLA "Use of Dummy Variables in Regression Equations." Suits, Daniel B. 2026-11-17. https://en.wikipedia.org/wiki/JSTOR_(identifier). Accessed 24 November 2026.

    Chicago "Use of Dummy Variables in Regression Equations." Suits, Daniel B. 2026-11-17. https://en.wikipedia.org/wiki/JSTOR_(identifier).

    APA Suits, Daniel B. (2026). Use of Dummy Variables in Regression Equations. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/JSTOR_(identifier)

Cite this article

MLA

"Dummy variable (statistics)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/dummy-variable-statistics. Accessed 24 November 2026.

Chicago

"Dummy variable (statistics)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/dummy-variable-statistics.

APA

encyclopegia.org. (2026). Dummy variable (statistics). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/dummy-variable-statistics

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

SX Phoenicis variable

stub · references available

variable cost

stub · references available

random variable

stub · references available

Bose-Einstein statistics

stub · references available

lists of tennis records and statistics

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1364102463 · 0.5 · snapshot enwiki-001364102463

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.