Code
pi_resumptive <- .35
bernoulli_mass <- c(
gap = 1 - pi_resumptive,
resumptive = pi_resumptive
)
sum(bernoulli_mass)
sum(c(0, 1) * bernoulli_mass)
pi_resumptive * (1 - pi_resumptive)The categorical distribution permits any finite number of unordered labels. Its binary case can be coded with zero and one. Suppose an elicited wh dependency either contains a resumptive pronoun or contains a gap.
X(\omega)\equiv \begin{cases} 1 & \text{if the response contains a resumptive pronoun},\\ 0 & \text{if the response contains a gap}. \end{cases}
The Bernoulli distribution represents one draw with two possible values, 0 and 1.
Its PMF is denoted by p_X, where
p_X(x)\equiv\mathbb{P}(X=x).
Let
\pi\equiv p_X(1).
Since the two masses must sum to one,
p_X(0)=1-\pi.
We write
X\sim\operatorname{Bernoulli}(\pi).
The single parameter \pi is the probability of the outcome coded as 1. The coding statement must thus be part of the model description.
The two row PMF can be written as
p_X(x)=\pi^x(1-\pi)^{1-x}, \qquad x\in\{0,1\}.
Substitute x=1:
\begin{aligned} p_X(1) &=\pi^1(1-\pi)^0\\ &=\pi. \end{aligned}
Substitute x=0:
\begin{aligned} p_X(0) &=\pi^0(1-\pi)^1\\ &=1-\pi. \end{aligned}
The exponents select the appropriate factor. Any nonzero number raised to the zeroth power is one, so the unused factor drops out.
Suppose resumptive pronouns occur with probability .35 in the represented elicitation context. Then
\pi=.35
and
1-\pi=.65.
The complete PMF is
| x | linguistic outcome | p_X(x) |
|---|---|---|
| 0 | gap | .65 |
| 1 | resumptive pronoun | .35 |
The table concerns one response. It does not say that exactly 35 of every 100 finite samples must contain a resumptive pronoun.
The expected value is
\begin{aligned} \mathbb{E}[X] &=0(1-\pi)+1(\pi)\\ &=\pi. \end{aligned}
For a zero and one variable, the mean is the probability of 1.
The variance is
\begin{aligned} \operatorname{Var}(X) &=(0-\pi)^2(1-\pi)+(1-\pi)^2\pi\\ &=\pi(1-\pi). \end{aligned}
With \pi=.35, the variance is
.35(.65)=.2275.
The variance approaches zero as \pi approaches either endpoint because the outcome becomes increasingly predictable.
pi_resumptive <- .35
bernoulli_mass <- c(
gap = 1 - pi_resumptive,
resumptive = pi_resumptive
)
sum(bernoulli_mass)
sum(c(0, 1) * bernoulli_mass)
pi_resumptive * (1 - pi_resumptive)The results are 1, .35, and .2275.
We could define 1 to mean gap and 0 to mean resumptive pronoun. The new Bernoulli parameter would be .65. The underlying probabilities of the two linguistic outcomes would not change.
Coefficient signs in later binary regression models depend on this coding. Reversing the event marked by 1 reverses which probability the model describes.
The interpretation of \pi depends on which event is coded as 1. The number .35 is not a free standing “Bernoulli probability.” It is the probability of the declared target event.
Write the coding definition immediately before the parameter statement. Then \pi=p_X(1) can be translated back into the linguistic event without guessing.
The Bernoulli family represents one binary draw. The next page represents the number of target outcomes across a fixed number of comparable draws.