Probability Theory Foundations
Foundations of Probability Theory and Bayesian Reasoning
Probability theory provides a formal language for representing uncertainty, reasoning from incomplete information, and updating beliefs when new evidence becomes available. These ideas are central to statistics, machine learning, artificial intelligence, and theories of human language processing.
Probability Spaces
A probability space consists of:
A sample space, written Ω, containing every possible outcome.
A collection of events, where each event is a subset of Ω.
A probability function that assigns a real number to each event.
Sample space and events
The sample space Ω is the complete set of logically possible outcomes for an experiment or situation.
Examples include:
Rolling a die:
Ω={1,2,3,4,5,6}
“The die comes up four or five” is an event.
Flipping a coin:
“The coin comes up heads” is an event.
Producing the next word in a conversation:
“The next word is angel” is an event.
An event is simply a subset of the sample space. It may contain one outcome or many outcomes.
An event represents a proposition or condition whose probability can be evaluated.
The Axioms of Probability
A probability function P assigns a number to each event and must satisfy three fundamental axioms.
1. Non-negativity
For every event E:
Probabilities cannot be negative.
2. Disjoint union
Two events E1 and E2 are disjoint if they cannot occur together. In set notation:
For disjoint events, the probability of their union is the sum of their individual probabilities:
The union E1∪E2 represents the possibility that either E1 or E2 occurs.
More generally, probabilities are additive across mutually exclusive outcomes. This allows probabilities of larger, non-atomic events to be computed from probabilities of smaller events.
3. Properness
The probability of the entire sample space must equal one:
Because Ω contains every possible outcome, something in the sample space must occur.
A valid probability distribution is non-negative, additive over disjoint events, and normalized so that the total probability is 1.
Set Theory and Boolean Logic
Probability can be described either using set-theoretic language or Boolean logical language. The two descriptions correspond closely.
Subset and implication
If event A is a subset of event B, written:
then every situation in which A is true is also a situation in which B is true. In Boolean logic, this corresponds to the implication:
Intersection and conjunction
The intersection A∩B consists of outcomes in which both A and B occur.
In Boolean logic, this corresponds to conjunction:
If two events are disjoint, their intersection is empty:
Logically, this means that the two events cannot both be true:
Union and disjunction
The union A∪B consists of outcomes in which at least one of A or B occurs.
In Boolean logic, this corresponds to disjunction:
The ability to move between set-based and logical descriptions is useful because probability problems can be represented either as relationships among sets or as relationships among propositions.
A Linguistic Example: Word Order and Pronouns
A recurring example concerns word order in human languages and the position of object noun phrases.
Noun phrases
A noun phrase, abbreviated NP, is a phrase that functions as a noun-like constituent in a sentence. Examples include:
“I”
“the boy”
“every girl in the room”
“no one”
“the apple”
“the hope for justice”
Noun phrases can serve as subjects or objects.
In the sentence:
“I ate the apple.”
“I” is the subject noun phrase.
“the apple” is the object noun phrase.
“ate” is the verb.
Preverbal and postverbal objects
An object is preverbal when it occurs before the verb and postverbal when it occurs after the verb.
Modern English generally places objects after the verb:
“I ate the apple.”
Here, “the apple” is postverbal.
Historical English allowed greater variation. An object noun phrase could occur:
Before the verb: object–verb order
After the verb: verb–object order
A verb phrase containing an object and a verb could therefore have either of the following general structures:
Object + verb
Verb + object
This type of variation also reflects a broader cross-linguistic tendency.
Pronouns and non-pronominal noun phrases
A pronoun is a noun-like form such as:
“me”
“her”
“them”
A non-pronominal noun phrase is a noun phrase that is not a pronoun, such as:
“the apple”
“anyone in the room”
“the hope for justice”
Across the languages of the world, there is a broad tendency for pronoun objects to occur earlier in sentences, on average, than non-pronominal objects.
This tendency can be represented probabilistically using two properties:
X: whether the object is preverbal or postverbal
Y: whether the object is a pronoun or not a pronoun
Random Variables and Instantiations
A random variable represents a property whose value can vary across possible outcomes.
In this example:
X represents object position:
Preverbal
Postverbal
Y represents object type:
Pronoun
Not pronoun
Uppercase letters generally represent random variables, while lowercase letters represent particular values of those variables.
For example:
X is the random variable representing position.
x may represent the particular value “preverbal.”
Y is the random variable representing object type.
y may represent the particular value “pronoun.”
This distinction is useful because probability can refer either to a variable in general or to one of its specific possible values.
Joint Probability Distributions
A joint distribution specifies probabilities for combinations of values from multiple random variables.
For the variables X and Y, there are four logically possible combinations:
Preverbal pronoun
Preverbal non-pronoun
Postverbal pronoun
Postverbal non-pronoun
A hypothetical joint distribution assigns the following probabilities:
Preverbal pronoun
Preverbal non-pronoun
Postverbal pronoun
Postverbal non-pronoun
The values form a contingency table:
Object position | Pronoun | Not pronoun |
|---|---|---|
Preverbal | 0.224 | 0.655 |
Postverbal | 0.014 | 0.107 |
Each cell represents a fine-grained event involving a particular value of X and a particular value of Y.
A joint distribution represents the probability of combinations of variable values, not merely the probabilities of the variables considered separately.
Checking properness
The probabilities of all four mutually exclusive outcomes must sum to one:
Therefore, this table satisfies the properness axiom.
Example of disjoint union
Define an event E1 as:
The object is preverbal and a pronoun, or
The object is postverbal and not a pronoun.
These two possibilities are mutually exclusive. They cannot both occur in the same sentence, so the disjoint union rule applies:
Substituting the values:
Thus, the probability of this combined event is 0.331.
Marginal Probability Distributions
A marginal distribution gives the distribution of one random variable while ignoring or “summing out” another variable.
If X and Y are random variables, the marginal probability of a particular value x is:
The summation includes every possible value of Y.
This operation is called marginalization. It removes the variable that is not currently of interest by adding together all joint probabilities associated with the desired value of the remaining variable.
Marginal distribution of object position
To find the probability that the object is preverbal, sum the two cells in the preverbal row:
To find the probability that the object is postverbal:
The marginal distribution of X is therefore:
Preverbal: 0.879
Postverbal: 0.121
These values sum to one:
Marginal distribution of object type
The marginal probability that the object is a pronoun is found by summing the pronoun column:
The marginal probability that the object is not a pronoun is:
Thus, the marginal distribution of Y is:
Pronoun: 0.238
Not pronoun: 0.762
Again, the values sum to one:
Conditional Probability
A conditional probability measures the probability of one event when another event is already known to hold.
The conditional probability of B given A is defined as:
where:
P(B∣A) is the probability of B given A.
P(A,B) is the joint probability that both A and B occur.
P(A) is the probability of the conditioning event.
The denominator must be nonzero:
because division by zero is undefined.
Conditional probability incorporates additional information into a probability judgment.
Linguistic interpretation
Suppose a listener is processing historical English and hears a verb such as:
“I devoured ...”
The listener knows that an object is likely to follow because the verb is transitive. However, the object has not yet been heard.
The listener may want to estimate:
How likely is the upcoming object to be a pronoun, given that it is postverbal?
This is not the same as the marginal probability that an object is a pronoun. The listener has additional information: the object is known to be postverbal.
The relevant conditional probability is:
Using the definition of conditional probability:
Substituting the values from the joint and marginal distributions:
Thus, given that an object is postverbal, the probability that it is a pronoun is approximately 0.116.
The value 0.116 does not appear directly in the original joint table. It must be calculated by combining a joint probability with a marginal probability.
Importance of conditional probability
Conditional probability is fundamental to:
Statistical inference
Machine learning
Artificial intelligence
Scientific reasoning
Human language comprehension
Prediction under uncertainty
When an intelligent agent receives new information, conditional probability provides a formal way to describe how that information changes the agent’s expectations.
The Chain Rule
The chain rule rewrites a joint probability as the product of a marginal probability and a conditional probability.
For two events:
This follows directly from the definition of conditional probability:
Multiplying both sides by P(E1) gives:
The order can also be reversed:
Both expressions describe the same joint probability.
Three-variable form
For three events, the joint probability can be decomposed as:
The first factor conditions on the preceding events, the second factor conditions on the first event, and the final factor is a marginal probability.
General form
For n variables:
The exact conditioning structure depends on the selected ordering.
Important properties
The chain rule applies to any number of variables.
Variables can be ordered in different ways.
There is no intrinsically correct ordering for the mathematical identity.
Different orderings may be more useful for different models or computational tasks.
Chain-rule decomposition breaks a complex joint distribution into simpler conditional distributions.
The chain rule expresses a joint probability as a sequence of conditional probabilities multiplied together.
This decomposition plays an important role in probabilistic models and machine-learning systems.
Bayes’ Rule
Bayes’ rule, also called Bayes’ theorem or Bayesian inversion, rewrites a conditional probability in the opposite direction.
For two events A and B:
Bayes’ rule transforms the probability of A given B into a form involving the reverse conditional probability, P(B∣A).
Derivation from the chain rule
The joint probability of A and B can be written in two ways:
and:
Because both expressions equal the same joint probability, they can be set equal:
Dividing by P(B) gives:
Bayes’ rule is valid only when:
If P(B)=0, the conditional probability P(A∣B) is not defined by this formula.
Background variables
Bayes’ rule can also be applied while conditioning on an additional variable or collection of variables, represented here by I:
The background information I remains on the conditioning side while A and B exchange roles.
This is important in realistic reasoning because probability calculations often occur in the presence of known context.
Priors, Likelihoods, Posteriors, and Normalization
Bayes’ rule is especially useful for describing belief updating.
Prior probability
The prior probability represents the belief about an event before incorporating new evidence.
For event A, the prior is:
It describes how likely A is without considering the additional information B.
In the linguistic example:
is the prior probability that an object is a pronoun.
Posterior probability
The posterior probability represents the updated belief after incorporating evidence.
The posterior is:
It describes how likely A is after learning that B holds.
For the linguistic example:
is the posterior probability that the object is a pronoun after learning that it is postverbal.
Likelihood
The likelihood is the probability of observing the evidence if the hypothesis is true:
It asks:
If A is true, how likely would the evidence B be?
In the linguistic example, the likelihood might be:
This asks how likely a pronoun is to occur postverbally.
Normalizing constant
The denominator:
is the marginal probability of the evidence. It is often called the normalizing constant because it ensures that the resulting posterior distribution is a proper probability distribution.
Bayes’ rule can therefore be described as:
The normalizing constant is often the most computationally difficult component, especially when many possible values must be considered.
Applying Bayes’ Rule to the Linguistic Example
Suppose the available information is represented differently from the original joint table. Instead of directly listing all joint probabilities, the representation provides:
The prior probability that an object is a pronoun.
The probability of each word order given that the object is a pronoun.
The corresponding probabilities for non-pronouns, obtainable through properness.
The goal remains to calculate:
Bayes’ rule gives:
This is useful because the first two quantities are directly available in the alternative representation:
P(X=postverbal∣Y=pronoun) is a likelihood.
P(Y=pronoun) is a prior.
The remaining quantity, P(X=postverbal), must be computed by marginalization.
Computing the normalizing constant
The marginal probability of postverbal position is obtained by summing over all possible values of Y:
There are two possible values of Y:
Pronoun
Not pronoun
Therefore:
Each joint probability can be rewritten using the chain rule:
Thus:
Using the equivalent values represented by the original table:
The Bayesian calculation then yields:
This is the same result obtained earlier through the direct definition of conditional probability.
Bayes’ rule allows the same probability to be computed from a different representation of knowledge: a prior distribution and conditional likelihoods rather than a complete joint table.
Incremental Language Processing
The linguistic example illustrates incremental language processing, the process by which a listener updates interpretations and predictions continuously as each word arrives.
During real-time comprehension, a listener may continually update beliefs about:
What the speaker means
Which syntactic structure is being used
What word or phrase is likely to come next
Whether an upcoming object will be a pronoun or a full noun phrase
Which interpretation best fits the information heard so far
For example, after hearing a transitive verb such as “devoured,” the listener anticipates an object. If the object has not yet occurred, the listener can use the fact that it will be postverbal to update the probability that the upcoming object is a pronoun.
The relevant update is:
rather than merely:
This distinction demonstrates how new structural information changes predictions.
Speaker and listener perspectives
The available probability representation may reflect a possible order of decisions from the speaker’s perspective:
The speaker decides whether to refer to an entity with a pronoun or a non-pronominal expression.
The speaker then determines where the object will appear.
This corresponds naturally to probabilities such as:
However, the listener may need the reverse conditional:
The listener observes the position information and wants to infer the likely object type. Bayes’ rule converts the speaker-oriented representation into the listener-oriented probability.
Whether actual language production follows this exact decision order is an empirical scientific question. Nevertheless, the representation provides a plausible model for reasoning about the relationship between language production and comprehension.
Partition Functions and Proportionality
The normalizing constant P(B) is sometimes called the partition function, especially in probabilistic modeling.
Bayes’ rule can be written explicitly as:
In some applications, the normalizing constant is not needed immediately. The posterior can instead be represented up to proportionality:
This notation means that the posterior is proportional to the product of the likelihood and the prior. The expression gives the relative weight of different possible values of A, but it does not yet guarantee that the probabilities sum to one.
To obtain a proper probability distribution, the values must eventually be normalized using:
The normalizing constant can be computationally expensive in large models because it may require summing over many possible hypotheses.
Key Relationships
Joint probability: Describes combinations of values from multiple random variables.
Marginal probability: Describes one variable after summing over the possible values of another.
Conditional probability: Describes the probability of one event given another event.
Chain rule: Decomposes a joint probability into a product of conditional and marginal probabilities.
Bayes’ rule: Reverses a conditional relationship using a prior, likelihood, and normalizing constant.
Prior: Belief before evidence is incorporated.
Likelihood: Probability of the evidence under a particular hypothesis.
Posterior: Updated belief after evidence is incorporated.
Normalizing constant: Ensures that posterior probabilities form a proper distribution.
Incremental processing: Continuous updating of beliefs as new information arrives.
These concepts form a connected system: joint distributions can be marginalized, conditional probabilities can be derived from joint and marginal probabilities, joint distributions can be decomposed using the chain rule, and Bayes’ rule can invert conditional relationships to support inference from observed evidence.

Ask anything
We've read this whole study set, so questions about it get the best answers.