Session 3: Independence, Conditional Independence, and Acting on Belief

Movement I: Belief and Conditioning

EE 520: Random Processes (Fall 2026). Instructor: John Lipor.

Sessions 1 and 2 built the machine that moves belief: conditioning, and its industrial form, Bayes’ rule. One assumption rode along underneath the repeated-search formula without inspection. When we said “mm failed looks at a cell multiply its odds by αm\alpha^m,” we quietly treated those looks as independent given the target’s location. Today we ask when that is legitimate, discover that the same two observations can be independent in one breath and dependent in the next, and then close the loop the course keeps promising: we turn a posterior into an action. The session thesis has two clauses: independence is a modeling assumption, not a default, and a posterior is only as valuable as the action it improves.

Launch

[Thread A] Two sonar passes sweep the same seafloor region; both come back empty. Were those two pieces of evidence independent? The honest answer is no and yes, and the gap between those two answers is the most important modeling idea in this course. Yes, in the sense that once we fix where the wreck actually is, the second sonar ping knows nothing about the first: the sensor’s noise is fresh each pass. No, in the sense that we do not know where the wreck is, and the first empty pass has already nudged our belief, so it changes what we expect from the second. By the end of the hour we will make both answers precise, name the property that reconciles them (conditional independence), and then use the belief they produce to decide where to look next, at which point Movement I is complete: a belief, moved by evidence, converted into an action.

Development

Independence of events

Conditioning measures how much one event tells us about another. When it tells us nothing, the events are independent.

Definition 1 (Independence). Two events AA and BB are independent if ℙ(A∩B)=ℙ(A)ℙ(B).\begin{equation} \mathbb{P}(A \cap B) = \mathbb{P}(A)\,\mathbb{P}(B). \end{equation} A collection {Ai}i∈I\left\{A_i\right\}_{i \in I} is (mutually) independent if for every finite subset J⊆IJ \subseteq I, ℙ(⋂i∈JAi)=∏i∈Jℙ(Ai).\begin{equation} \mathbb{P}\!\left(\bigcap_{i \in J} A_i\right) = \prod_{i \in J} \mathbb{P}(A_i). \end{equation}

When ℙ(B)>0\mathbb{P}(B) > 0, independence is equivalent to ℙ(A|B)=ℙ(A)\mathbb{P}(A \,|\,B) = \mathbb{P}(A): learning BB leaves belief in AA untouched. That is the reading to carry around, but the product form above is the definition because it is symmetric in AA and BB and survives ℙ(B)=0\mathbb{P}(B) = 0.

Pitfall. Do not conflate disjoint with independent. Disjoint events satisfy A∩B=∅A \cap B = \emptyset, a statement about the sets alone; independence is a statement about the sets and the probability measure. In fact two events with positive probability that are disjoint are as far from independent as possible: ℙ(A∩B)=0\mathbb{P}(A \cap B) = 0 while ℙ(A)ℙ(B)>0\mathbb{P}(A)\mathbb{P}(B) > 0, and observing one rules the other out.

Example 1 (Testing independence numerically). Roll a fair die. Let A={1,2}A = \left\{1,2\right\} and B={2,4,6}B = \left\{2,4,6\right\}, so ℙ(A)=1/3\mathbb{P}(A) = 1/3 and ℙ(B)=1/2\mathbb{P}(B) = 1/2. Their intersection is A∩B={2}A \cap B = \left\{2\right\}, so ℙ(A∩B)=1/6=(1/3)(1/2)=ℙ(A)ℙ(B)\mathbb{P}(A \cap B) = 1/6 = (1/3)(1/2) = \mathbb{P}(A)\mathbb{P}(B): the events are independent, even though nothing about “low” and “even” looks obviously unrelated. Independence is a numerical fact to be checked, not an intuition to be trusted.

Pairwise is not mutual

Mutual independence asks more than independence of every pair. The gap is easiest to see with two fair coins. Toss them and define A={coin 1 is heads},B={coin 2 is heads},C={the two coins agree}.\begin{equation} A = \left\{\text{coin 1 is heads}\right\}, \quad B = \left\{\text{coin 2 is heads}\right\}, \quad C = \left\{\text{the two coins agree}\right\}. \end{equation} Each has probability 1/21/2. Every pair is independent: ℙ(A∩B)=14=ℙ(A)ℙ(B),ℙ(A∩C)=ℙ(both heads)=14=ℙ(A)ℙ(C),\begin{equation} \mathbb{P}(A \cap B) = \tfrac14 = \mathbb{P}(A)\mathbb{P}(B), \quad \mathbb{P}(A \cap C) = \mathbb{P}(\text{both heads}) = \tfrac14 = \mathbb{P}(A)\mathbb{P}(C), \end{equation} and ℙ(B∩C)=1/4=ℙ(B)ℙ(C)\mathbb{P}(B \cap C) = 1/4 = \mathbb{P}(B)\mathbb{P}(C) by the same token. Yet the three are not mutually independent: knowing AA and BB pins down CC (if both coins are heads they certainly agree), so ℙ(A∩B∩C)=ℙ(both heads)=14≠18=ℙ(A)ℙ(B)ℙ(C).\begin{equation} \mathbb{P}(A \cap B \cap C) = \mathbb{P}(\text{both heads}) = \tfrac14 \neq \tfrac18 = \mathbb{P}(A)\mathbb{P}(B)\mathbb{P}(C). \end{equation}

Pairwise ≠\neq mutual. Checking independence one pair at a time is not enough: any two of A,B,CA, B, C carry no information about each other, but the three together are rigidly linked. Mutual independence must be verified on every subset, not just on pairs. The lesson generalizes: independence is a property of a whole collection under one probability measure, and it can fail at the joint level while holding at every pairwise level.

Conditional independence

We can now settle the launch question. The reconciliation of “no and yes” is that independence can hold once a third event is fixed without holding on its own.

Definition 2 (Conditional independence). Events AA and BB are conditionally independent given CC (with ℙ(C)>0\mathbb{P}(C) > 0) if ℙ(A∩B|C)=ℙ(A|C)ℙ(B|C).\begin{equation} \mathbb{P}(A \cap B \,|\,C) = \mathbb{P}(A \,|\,C)\,\mathbb{P}(B \,|\,C). \end{equation}

Return to two looks at cell 11. Let θ\theta be the target’s location, and take the prior ℙ(cell 1)=p1=0.7\mathbb{P}(\text{cell }1) = p_1 = 0.7 (so ℙ(not cell 1)=0.3\mathbb{P}(\text{not cell }1) = 0.3). Each look at cell 11 fails with the overlook probability α=0.5\alpha = 0.5 if the target is there, and always fails if it is not. Let F1,F2F_1, F_2 be the events “the first (second) look fails.”

Conditionally on the location, the looks are independent. Given that the target is in cell 11, the two looks are separate coin flips of the sensor: ℙ(F1∩F2|cell 1)=α2=0.25=α⋅α=ℙ(F1|cell 1)ℙ(F2|cell 1).\begin{equation} \mathbb{P}(F_1 \cap F_2 \,|\,\text{cell }1) = \alpha^2 = 0.25 = \alpha \cdot \alpha = \mathbb{P}(F_1 \,|\,\text{cell }1)\,\mathbb{P}(F_2 \,|\,\text{cell }1). \end{equation} Given that the target is not in cell 11, both looks fail for certain, ℙ(F1∩F2|not cell 1)=1=1⋅1\mathbb{P}(F_1 \cap F_2 \,|\,\text{not cell }1) = 1 = 1 \cdot 1. So F1F_1 and F2F_2 are conditionally independent given θ\theta.

Marginally, the looks are dependent. Average over the two locations with the law of total probability: ℙ(F1)=p1α+(1−p1)⋅1=(0.7)(0.5)+0.3=0.65,ℙ(F1∩F2)=p1α2+(1−p1)⋅1=(0.7)(0.25)+0.3=0.475.\begin{align} \mathbb{P}(F_1) &= p_1\,\alpha + (1 - p_1)\cdot 1 = (0.7)(0.5) + 0.3 = 0.65, \\ \mathbb{P}(F_1 \cap F_2) &= p_1\,\alpha^2 + (1 - p_1)\cdot 1 = (0.7)(0.25) + 0.3 = 0.475. \end{align} By symmetry ℙ(F2)=0.65\mathbb{P}(F_2) = 0.65 as well, so ℙ(F2|F1)=ℙ(F1∩F2)ℙ(F1)=0.4750.65≈0.731≠0.65=ℙ(F2).\begin{equation} \mathbb{P}(F_2 \,|\,F_1) = \frac{\mathbb{P}(F_1 \cap F_2)}{\mathbb{P}(F_1)} = \frac{0.475}{0.65} \approx 0.731 \;\neq\; 0.65 = \mathbb{P}(F_2). \end{equation} The first failure makes the second failure more likely. The mechanism is exactly Session 2: a failed look in cell 11 lowered our belief that the target is there (from 0.700.70 to 0.35/0.65≈0.5380.35/0.65 \approx 0.538) and correspondingly raised our belief that it is elsewhere, where a second look is guaranteed to fail. The two observations are entangled not through any direct link but through the common cause θ\theta they both depend on.

Conditionally i.i.d. given θ\theta is the default sensor model. Repeated measurements of one latent quantity are the workhorse of the rest of the course: given the truth θ\theta, the measurements are independent and identically distributed; marginally they are not, precisely because each one carries information about the shared θ\theta. Every fusion rule, detector, and regression method ahead is built on this “conditionally i.i.d. given θ\theta” assumption. It is what made Session 2’s αm\alpha^m factor legitimate.

Acting on belief: expected utility

A posterior is not the end of the story; it is an input. The course thesis asks how observation should change belief and action, and we now supply the second half. Fix a finite set of possible actions 𝒜\mathcal{A} and a utility u(a,θ)u(a, \theta) recording the payoff of taking action aa when the truth is θ\theta. We do not know θ\theta; we have a belief about it. So we score each action by its average payoff under that belief.

Definition 3 (Expected utility and the optimal action). Under a belief ℙ\mathbb{P} over θ\theta, the expected utility of action aa is 𝔼[u(a,θ)]=∑θu(a,θ)ℙ(θ),\begin{equation} \mathbb{E}[u(a, \theta)] = \sum_{\theta} u(a, \theta)\,\mathbb{P}(\theta), \end{equation} and an optimal action is any a⋆∈arg max⁡a∈𝒜𝔼[u(a,θ)]a^\star \in \operatorname*{arg\,max}_{a \in \mathcal{A}} \mathbb{E}[u(a, \theta)].

Belief in, action out. The belief is the input and the action is the output. Change the belief and the optimal action can change, with the utility held fixed. This is why the loop matters: every observation updates the belief through Bayes’ rule, and the updated belief may call for a different action than the one before it.

A one-shot illustration, continuing the two-cell search. After a failed look in cell 11 our belief that the target is there is 0.5380.538. A recovery vehicle can be sent now (action “commit”) or held back (action “defer”). Committing pays u(commit,present)=+8u(\text{commit}, \text{present}) = +8 if the target is really in cell 11 and u(commit,absent)=−12u(\text{commit}, \text{absent}) = -12 if it is not (a wasted, expensive deployment); deferring pays 00 either way. Then 𝔼[u(commit)]=(0.538)(+8)+(0.462)(−12)≈−1.23<0=𝔼[u(defer)],\begin{equation} \mathbb{E}[u(\text{commit})] = (0.538)(+8) + (0.462)(-12) \approx -1.23 < 0 = \mathbb{E}[u(\text{defer})], \end{equation} so the optimal action is to defer. Note the dependence on belief: with the prior 0.700.70 (before any look) the same utilities give 𝔼[u(commit)]=(0.7)(8)+(0.3)(−12)=+2.0>0\mathbb{E}[u(\text{commit})] = (0.7)(8) + (0.3)(-12) = +2.0 > 0, and committing would be optimal. One failed look flipped the decision. The utility never changed; the belief did.

From belief to the next look

When the action is “which cell to search next,” expected utility takes a concrete and useful form. Suppose a single look at cell ii costs cic_i and, if the target is there, detects it with probability qiq_i (so qi=1−αiq_i = 1 - \alpha_i). A natural objective is detection probability per unit cost.

Proposition 1 (Single-look allocation). Under the current belief (p1,…,pn)(p_1, \dots, p_n), the single look maximizing the expected detection probability per unit cost is the cell maximizing piqici.\begin{equation} \frac{p_i\, q_i}{c_i}. \end{equation}

The proof is one line, and it is deliberately yours: Proof: HW1, Problem 4. The lecture’s job is the modeling, that three ingredients, belief pip_i, sensor quality qiq_i, and cost cic_i, all enter the decision, and that none of them alone decides it.

Remark 1 (The greedy rule, repeated, is optimal). For equal costs there is a striking fact we will use but not prove: repeating the greedy rule, look where piqip_i q_i is largest, then apply Bayes’ rule, then look again, minimizes the expected number of looks to find the target. This is the opening theorem of Stone’s Theory of Optimal Search. We will not prove it, but Homework 1 will make you feel why it is plausible. Anything more, sequencing many looks under a budget, belongs to sequential decision theory and its later course, not here.

Posterior →\to Action. The whole of Movement I is one loop. A belief (pi)(p_i) selects an action, the look maximizing piqi/cip_i q_i / c_i; the action produces an observation, here a failure FiF_i; the observation drives an update, Bayes’ rule, which returns a new belief; and the cycle repeats with the quantities recomputed. Figure 1 draws the loop with the search quantities on each edge. Belief, action, observation, update: every session in this course is a new set of labels on these four nodes.

The belief–action–observation–update loop of Movement I. A posterior selects the next look through Proposition 1; the look’s outcome updates the posterior through Bayes’ rule; the cycle repeats.

Worked examples

Where should we look? Belief, sensor, and cost together

Four cells carry the prior (p1,p2,p3,p4)=(0.4,0.3,0.2,0.1)(p_1, p_2, p_3, p_4) = (0.4, 0.3, 0.2, 0.1). The sensors and search costs differ by cell: detection probabilities q=(0.5,0.9,0.9,0.9)q = (0.5, 0.9, 0.9, 0.9) and costs c=(2,1,1,3)c = (2, 1, 1, 3). Which cell should we look in first? Score each by Proposition 1: piqici:(0.4)(0.5)2=0.10⏟cell 1,(0.3)(0.9)1=0.27⏟cell 2,(0.2)(0.9)1=0.18⏟cell 3,(0.1)(0.9)3=0.03⏟cell 4.\begin{equation} \frac{p_i q_i}{c_i}:\quad \underbrace{\frac{(0.4)(0.5)}{2} = 0.10}_{\text{cell }1}, \quad \underbrace{\frac{(0.3)(0.9)}{1} = 0.27}_{\text{cell }2}, \quad \underbrace{\frac{(0.2)(0.9)}{1} = 0.18}_{\text{cell }3}, \quad \underbrace{\frac{(0.1)(0.9)}{3} = 0.03}_{\text{cell }4}. \end{equation} The optimal first look is cell 22, not cell 11, even though cell 11 holds the largest prior. Cell 11 is doubly penalized: its sensor is weak (q1=0.5q_1 = 0.5) and its search is expensive (c1=2c_1 = 2). A large prior is not a mandate to look; belief, sensor quality, and cost all vote.

One failed look, then re-rank. Suppose we look in cell 22 and fail. Its overlook probability is α2=1−q2=0.1\alpha_2 = 1 - q_2 = 0.1, so by the failed-search update of Session 2 the evidence is ℙ(F2)=α2p2+(1−p2)=(0.1)(0.3)+0.7=0.73\mathbb{P}(F_2) = \alpha_2 p_2 + (1 - p_2) = (0.1)(0.3) + 0.7 = 0.73, and the posterior is p′=(0.40.73,(0.1)(0.3)0.73,0.20.73,0.10.73)≈(0.548,0.041,0.274,0.137).\begin{equation} p' = \left(\frac{0.4}{0.73},\; \frac{(0.1)(0.3)}{0.73},\; \frac{0.2}{0.73},\; \frac{0.1}{0.73}\right) \approx (0.548,\, 0.041,\, 0.274,\, 0.137). \end{equation} Re-score with the same qq and cc: pi′qici≈0.137⏟cell 1,0.037⏟cell 2,0.247⏟cell 3,0.041⏟cell 4.\begin{equation} \frac{p'_i q_i}{c_i} \approx \underbrace{0.137}_{\text{cell }1}, \quad \underbrace{0.037}_{\text{cell }2}, \quad \underbrace{0.247}_{\text{cell }3}, \quad \underbrace{0.041}_{\text{cell }4}. \end{equation} Now cell 33 leads and the next look moves there: the failed look in cell 22 drained its score and promoted the runners-up. This is the loop of Figure 1 turning once, with every number on the page.

Consolidation

AI corner: a language model is a conditional pmf. A large language model is, stripped to its mathematics, a single object: ℙ(next token|all tokens so far)\mathbb{P}(\text{next token} \,|\,\text{all tokens so far}), a conditional distribution over a finite alphabet, learned from data. Generating text is Session 1’s chain rule run forward. For a four-token string, ℙ(w1w2w3w4)=ℙ(w1)ℙ(w2|w1)ℙ(w3|w1w2)ℙ(w4|w1w2w3),\begin{equation} \mathbb{P}(w_1 w_2 w_3 w_4) = \mathbb{P}(w_1)\,\mathbb{P}(w_2 \,|\,w_1)\,\mathbb{P}(w_3 \,|\,w_1 w_2)\,\mathbb{P}(w_4 \,|\,w_1 w_2 w_3), \end{equation} and the model emits one token at a time by sampling from each conditional in turn. Two takeaways. First, everything such a model “knows” lives in conditional distributions, this course’s central object. Second, a “hallucination” is not a failed database lookup but confident sampling from a conditional distribution that the context has conditioned badly; the machine is doing exactly what its mathematics says, which is why the remedy is better conditioning, not better memory. One look ahead: every homework in this course closes by auditing such a machine’s probability work, and the toolkit for those audits is this course.

Work these in class.

  1. (Mechanical, conditional independence.) Two looks at a cell that holds the target with prior p1=0.8p_1 = 0.8; each look overlooks a present target with probability α=0.25\alpha = 0.25 and always fails otherwise. Compute ℙ(F1)\mathbb{P}(F_1), ℙ(F1∩F2)\mathbb{P}(F_1 \cap F_2), and ℙ(F2|F1)\mathbb{P}(F_2 \,|\,F_1), and say whether F1,F2F_1, F_2 are marginally independent.
    Answer: ℙ(F1)=(0.8)(0.25)+0.2=0.4\mathbb{P}(F_1) = (0.8)(0.25) + 0.2 = 0.4; ℙ(F1∩F2)=(0.8)(0.0625)+0.2=0.25\mathbb{P}(F_1 \cap F_2) = (0.8)(0.0625) + 0.2 = 0.25; ℙ(F2|F1)=0.25/0.4=0.625≠0.4=ℙ(F2)\mathbb{P}(F_2 \,|\,F_1) = 0.25/0.4 = 0.625 \neq 0.4 = \mathbb{P}(F_2), so they are not marginally independent (they are conditionally independent given the location).

  2. (Mechanical, allocation.) Three cells with belief (0.5,0.3,0.2)(0.5, 0.3, 0.2), detection probabilities q=(0.4,0.9,0.9)q = (0.4, 0.9, 0.9), and costs c=(1,1,2)c = (1, 1, 2). Which cell is the optimal single look?
    Answer: scores piqi/ci=(0.20,0.27,0.09)p_i q_i / c_i = (0.20,\, 0.27,\, 0.09); cell 22 wins, though cell 11 has the largest prior.

  3. (Conceptual.) A colleague fuses two passes of the same sonar over one region by multiplying their likelihoods as if the passes were independent, without conditioning on the target’s location. In one sentence, what goes wrong?
    Answer: the passes are only conditionally independent given the location; treating them as marginally independent double-counts the shared latent cause and overstates the evidence.

Synthesis

Movement I is now complete, and the course slogan has all three of its clauses answered for the search problem. What is uncertain? A latent θ\theta, the target’s cell. What is observed? Looks, whose outcomes depend on θ\theta. How should observation change belief and action? Belief moves by conditioning and Bayes’ rule; action follows by maximizing expected utility, which for search is the rule arg max⁡ipiqi/ci\operatorname*{arg\,max}_i p_i q_i / c_i. Independence turned out to be the subtle hinge: not a default to assume but a modeling choice to verify, and the right version of it, conditional independence given θ\theta, is what lets us treat repeated sensor readings as clean, i.i.d. evidence while still letting each reading teach us about the shared cause. The four nodes, belief, action, observation, update, are the shape of everything ahead. Movement II keeps the loop and changes the objects inside it: the latent θ\theta and the observations become numbers, random variables, and we will need expectation, distributions, and densities to run the same machine on them.

Self-check questions

  1. In the two-coin example, every pair of A,B,CA, B, C is independent, yet the three are not mutually independent. In one sentence, why?
    Answer: any two of the events leave the third genuinely uncertain, but AA and BB together determine CC, so ℙ(A∩B∩C)=1/4≠1/8=ℙ(A)ℙ(B)ℙ(C)\mathbb{P}(A \cap B \cap C) = 1/4 \neq 1/8 = \mathbb{P}(A)\mathbb{P}(B)\mathbb{P}(C).

  2. Two looks at one cell are conditionally independent given the target’s location but marginally dependent. What couples them marginally?
    Answer: the shared latent cause θ\theta; the first outcome shifts belief about θ\theta, which changes the probability of the second (here a first failure raises the chance of a second).

  3. In the allocation rule arg max⁡ipiqi/ci\operatorname*{arg\,max}_i p_i q_i / c_i, give one reason the cell with the largest prior can be the wrong place to look.
    Answer: a weak sensor (small qiq_i) or a high cost cic_i can pull that cell’s score below a rival’s, as cell 11 fell behind cell 22 in the worked example.