Binary Variable/Examples
Jump to navigation
Jump to search
Examples of Binary Variables
Gender
A record of the gender of a newborn baby will generally be implemented as a binary variable.
Hence, for example, male may be encoded as $0$, and female as $1$.
Presence or Absence
The presence or absence of a bacterium in a clinical sample be implemented as a binary variable.
Hence, for example, absent may be encoded as $0$, and present as $1$.
Bernoulli Trial
The outcome of a Bernoulli trial may be implemented as a binary variable.
Hence, for example, the outcome from a coin-tossing exercise: heads may be encoded as $0$, and tails as $1$.