Conditional Expectation

Learn what the mean of a random variable becomes once you know something: an event that happened or the value of another random variable. Compute conditional expectations from joint distributions, treat E(Y | X) as a random variable, and use Adam's law (the law of total expectation) and Eve's law (the law of total variance) to find means and variances of two-stage experiments, mixtures and random sums. Finish by seeing E(Y | X) as the best predictor of Y from X and as an orthogonal projection, and by measuring how much of the variance of Y the information in X explains.

IntermediateLesson 7 of 9 in Probability Theory Course

What you will learn

  1. Find the mean of a random variable once you know that an event has happened, for discrete and continuous variables, and combine conditional means over a partition to get the overall mean.
    • Find the mean of a discrete variable given an event
      Build the conditional distribution of a discrete random variable given an event, compute its mean, and check the result.
    • Find the mean of a continuous variable given an event
      Use the conditional density on an event to compute conditional means for uniform, exponential and normal variables, and recognize the memoryless property.
    • Combine conditional means with the law of total expectation
      Compute an overall mean as a weighted average of conditional means over a partition, use first-step analysis, and avoid the two-envelope trap.
  2. Treat E(Y | X = x) as a function of x and E(Y | X) as a random variable, compute both from joint distributions, and use known conditional distributions and symmetry to find them quickly.
    • Compute E(Y | X = x) from a joint distribution
      Find conditional distributions from a joint PMF or joint PDF and compute the conditional mean for each value of the conditioning variable.
    • Treat E(Y | X) as a random variable
      Turn the function E(Y | X = x) into the random variable E(Y | X), find its distribution, and extend the idea to several conditioning variables.
    • Use known conditional distributions and symmetry
      Recognize named conditional distributions (Poisson splitting, multinomial, bivariate normal) and symmetry arguments to find conditional means without integration.
  3. Use linearity, taking out what is known, independence and Adam's law to simplify calculations, reason about the residual Y − E(Y | X), and find means of two-stage experiments and random sums.
    • Use the core properties and Adam's law
      Apply linearity, taking out what is known, the independence property and Adam's law, including its version with extra conditioning, and use the residual's properties.
    • Solve two-stage problems and random sums with Adam's law
      Condition on the first stage of an experiment to find a mean, and find the mean of a sum with a random number of terms.
  4. Compute conditional variances, split a total variance into within-group and between-group parts with Eve's law, and find the variances of mixtures and random sums.
    • Compute conditional variance
      Define Var(Y | X) as a random variable, compute it from conditional distributions, and use its basic properties.
    • Decompose variance with Eve's law
      State, prove and apply Eve's law, and read its two terms as within-group and between-group variation.
    • Find variances of mixtures and random sums
      Use Eve's law to find the variance of a random sum, a Poisson-thinned count and a binomial with a random success probability.
  5. Explain why E(Y | X) is the best predictor of Y from X in mean squared error, measure how much of the variance X explains, and see conditional expectation as an orthogonal projection.
    • Use E(Y | X) as the best predictor of Y
      Prove that the conditional mean minimizes mean squared prediction error, compute that minimum, and compare predictors.
    • Interpret conditional expectation as a projection
      Picture E(Y | X) as the orthogonal projection of Y onto the functions of X, and contrast it with the best linear predictor.

Conditional Expectation study guide

5 chapters

1

Find a mean after an event

Learning that an event happened changes the outcomes you average over and the probabilities you use. Start by rebuilding a discrete or continuous distribution inside that event. Then combine the means of separate cases to recover an overall mean. The same weighted averaging leads to equations for waiting times, where the next step can finish the process or return it to a state you have already described.

1.1 Averages inside an event

A conditional mean answers a question such as “What is the average roll among the rolls that are even?” The condition selects the outcomes that remain possible. Their probabilities must then add to 1 again.

Restrict, rescale, average

For an event A with P(A)>0, the conditional expectation of a discrete variable is

E(Y∣A)=∑yyP(Y=y∣A),P(Y=y∣A)=P(Y=y,A)P(A).

List the possible values inside the event, find their conditional probabilities, and multiply each value by its new probability. Equal weighting works only when the surviving values are equally likely. Given a specified event, the result is a single number.

Roll a fair six-sided die and call its result X. For the event A={X is even}, the surviving values are 2, 4, and 6. The event has probability 1/2, so each surviving value has probability (1/6)/(1/2)=1/3. Thus

E(X∣A)=2+4+63=4.

Given X>3, the surviving values are 4, 5, and 6, and the conditional mean is 5. Both differ from the unconditional mean 3.5 because the information changes the distribution being averaged.

Use an indicator to select the event

The indicator IA is 1 on the event and 0 elsewhere. Multiplying by it removes contributions outside the event:

E(Y∣A)=E(YIA)P(A).

For the even-roll event, E(XIA)=(2+4+6)/6=2. This is an average over all six outcomes, including the zeros produced on odd rolls. Dividing by P(A)=1/2 gives 4. Stopping at 2 forgets the rescaling. A useful check is that the answer must lie between the smallest and largest surviving values; when several values have positive probability, the mean cannot equal an extreme unless all the mass is there.

Transform values before averaging

Linearity still holds inside a condition:

E(aY+bZ+c∣A)=aE(Y∣A)+bE(Z∣A)+c.

For a nonlinear function, apply the function to each outcome first. Conditional LOTUS gives E(g(Y)∣A)=∑yg(y)P(Y=y∣A). For the even die roll,

E(X2∣A)=4+16+363=563,

while (E(X∣A))2=16. Squaring and averaging generally give different results in different orders.

Information that leaves a distribution unchanged

When Y is independent of the event, E(Y∣A)=E(Y). If two fair dice are independent and the first shows 6, the second still has mean 3.5. The sum has conditional mean 6+3.5=9.5.

For a geometric waiting time, information about past failures leaves the future waiting distribution unchanged. Let N count rolls through the first 6. Its mean is 6 rolls. Given four failures, the expected remaining count is still 6, so E(N∣N>4)=4+6=10. The elapsed rolls belong in the total, even though the future starts afresh.

Key Takeaways

  • Conditional probabilities rescale the mass inside an event of positive probability.
  • For a discrete variable, E(Y∣A)=∑yyP(Y=y∣A).
  • The indicator formula is E(Y∣A)=E(YIA)/P(A).
  • For a nonlinear transformation, transform each value before averaging.
  • A geometric waiting time counts both elapsed failures and the fresh expected wait.

1.2 Conditional densities and remaining lifetimes

For a continuous variable, conditioning on an interval keeps the density's shape within that interval and rescales its area to 1. An integral then gives the conditional mean, just as a weighted sum does for a discrete variable.

Normalize the retained density

If Y has density f and A={Y∈B} has positive probability, then

f(y∣A)=f(y)P(A)for y∈B,

with density 0 outside the retained set. Therefore

E(Y∣A)=∫Byf(y) dyP(A).

The denominator is a probability, not the width of the interval unless the original density makes those the same. Check that the conditional density integrates to 1 before computing its mean.

For U∼Unif(0,1), knowing U>0.4 leaves a uniform variable on (0.4,1). Its density there is 1/0.6 and its mean is the midpoint, (0.4+1)/2=0.7.

A normal variable restricted to positive values

Let Z∼N(0,1), with density φ(z). Since φ′(z)=−zφ(z),

∫0∞zφ(z) dz=φ(0)=12π.

The positive half has probability 1/2. Dividing gives E(Z∣Z>0)=2/π≈0.798. Symmetry gives the negative conditional mean as about −0.798. Their equally weighted average is 0.

Total life and remaining life

An exponential lifetime T∼Expo(λ) has rate λ and mean 1/λ. Its memoryless property says that, given survival to time a, the remaining lifetime T−a has the original exponential distribution. Hence

E(T∣T>a)=a+1λ.

For a component with mean life 1,000 hours, survival through 300 hours leaves an expected 1,000 further hours. The expected total is 1,300 hours. Subtracting 300 from the original mean would confuse a fixed scheduled lifetime with a random exponential lifetime.

Memorylessness is a property of the model. If instead T∼Unif(0,2000) hours, survival to 300 hours leaves T∣T>300∼Unif(300,2000). The total mean is 1,150 hours, and the remaining mean is 850 hours.

An event involving another variable

The indicator identity works for any event of positive probability, even when the event involves two variables. Let X,Y be independent uniform variables on (0,1) and suppose Y>X. The event occupies half the unit square. For each fixed y, the allowed values of x run from 0 to y, so

E(YI{Y>X})=∫01∫0yy dx dy=∫01y2 dy=13.

Dividing by 1/2 gives E(Y∣Y>X)=2/3. This calculation weights each possible y by how much of the event lies at that height.

Conditioning on the exact value of a continuous variable needs a different denominator: P(X=x)=0. Conditional densities given a random variable handle that case.

Key Takeaways

  • A conditional density must have total area 1 on the retained set.
  • For an interval event, integrate yf(y) over that interval and divide by its probability.
  • Exponential survival leaves the expected remaining life unchanged.
  • Expected total lifetime includes the time already elapsed.

1.3 Weighted cases and first-step equations

Sometimes a mean is easier to find one case at a time. The cases must be disjoint and cover all outcomes. Weight each case's conditional mean by the probability of entering that case.

Combine a partition

For a partition A1,…,An with positive case probabilities, the law of total expectation is

E(Y)=∑iE(Y∣Ai)P(Ai).

A delivery averages 30 minutes on dry days and 45 minutes on rainy days. If 20% of days are rainy, the mean is 30(0.8)+45(0.2)=33 minutes. The unweighted average, 37.5 minutes, treats the weather cases as equally common. Here the correct mean is closer to the dry-day mean because dry days occur four times as often.

Taking Y=IB turns each mean into a probability and gives the law of total probability.

Count the first step

In a waiting problem, the first outcome creates a useful partition. Let m be the expected number of independent trials through the first success, with success probability p>0. A first success uses one trial. A first failure uses one trial and leaves the original problem:

m=p⋅1+(1−p)(1+m).

Expanding gives m=1+(1−p)m, so pm=1 and m=1/p. The “1” counts the trial just taken. It appears in every branch, including branches that return to the starting state.

Keep enough history to describe the next step

For two consecutive heads from a fair coin, define a as the expected further flips with no current head, and b as the expected further flips just after one head. From the first state, a head moves to the second state and a tail returns to the first:

a=1+12b+12a.

From the second state, a head finishes and a tail loses the run:

b=1+12⋅0+12a.

The first equation gives a=2+b. Substituting the second equation into this relation gives a=2+1+a/2, so a=6 and b=4. A tail after a head returns to state a; retaining the earlier head would describe a different stopping rule.

Average inside a condition

Given another event B, the weights must describe the cases within B:

E(Y∣B)=∑iE(Y∣Ai∩B)P(Ai∣B),

summing over intersections with positive probability. Mixing conditional means with unconditional weights generally averages over the wrong population.

Diagnose the two-envelope argument

Suppose one envelope contains a positive amount X with finite mean and the other contains 2X. Choose one at random, holding Y while the other holds Z. Both have mean 1.5E(X) by symmetry.

A tempting calculation says that the other amount is twice or half yours with equal chances, then treats your amount as having the same mean in both cases. But when Z=2Y, you hold the smaller amount and E(Y∣Z=2Y)=E(X). When Z=Y/2, you hold the larger amount and its conditional mean is 2E(X). Correct case weighting gives E(Z)=12E(2X)+12E(X)=1.5E(X).

Key Takeaways

  • Weight each conditional mean by the probability of its case.
  • A partition covers every outcome exactly once.
  • First-step equations count the step just taken in every branch.
  • Choose states that preserve the history needed for future outcomes.
  • Within a condition, use conditional case probabilities.
  • In the envelope problem, the held amount has different conditional means in the two cases.
2

Find conditional means from joint distributions

Knowing the value of another random variable creates a whole family of conditional distributions. Each fixed value gives a numerical mean; inserting the random variable itself gives a random mean. Work from joint probabilities or densities, then use named distributions and symmetry when they simplify the calculation. Keep track of which information is known, especially when an interval or a total constrains the remaining values.

2.1 Conditional means from a probability table or density

Fix a value x of the variable you observe. The possible values of Y and their probabilities now come from the conditional distribution at that x. Compute its mean before allowing x to vary.

A discrete joint distribution

For P(X=x)>0,

E(Y∣X=x)=∑yyP(X=x,Y=y)P(X=x).

Suppose X counts children in a household and Y indicates car ownership. The joint probabilities are:

ChildrenNo car, Y = 0Car, Y = 1Total
00.100.200.30
10.200.100.30
20.100.300.40

For an indicator, the conditional mean is the conditional probability of 1. Divide the car entry by its row total. This gives 2/3 for no children, 1/3 for one child, and 3/4 for two children. Using the whole-table car total, 0.6, would ignore which row is known.

A continuous joint distribution

For a joint density and a value with fX(x)>0,

fY∣X(y∣x)=fX,Y(x,y)fX(x),E(Y∣X=x)=∫yfY∣X(y∣x) dy.

Hold x fixed and integrate over y. The denominator is the marginal density of the variable being conditioned on. Division by P(X=x) cannot work for a continuous variable because that probability is zero.

Take f(x,y)=x+y on 0<x<1, 0<y<1. First integrate out y:

fX(x)=∫01(x+y) dy=x+12.

The numerator of the conditional mean is

∫01y(x+y) dy=x2+13.

Therefore E(Y∣X=x)=(3x+2)/(6x+3) for 0<x<1. As x approaches the endpoints from inside the square, the mean approaches 2/3 and 5/9. These are limits; the density's stated support does not include the endpoints. The graph of this conditional mean, called the regression function, is curved.

Let the support determine the limits

If the joint density is 2 on 0<y<x<1, fixing x leaves the interval (0,x) for Y. Its marginal is fX(x)=∫0x2 dy=2x. The conditional density is 1/x on that interval, which is uniform. Hence

E(Y∣X=x)=x/2.

Integrating from 0 to 1 would include impossible pairs above the triangle. For each fixed x, check that the proposed conditional density integrates to 1 over its actual support.

Specify the conditioning variable

A probability-zero set alone need not determine a unique conditional calculation. Different random variables can describe the same zero-probability set while inducing different conditional distributions there, the issue behind the Borel–Kolmogorov paradox. The joint model and the variable in E(Y∣X=x) specify the conditioning procedure. A one-to-one change of that variable preserves its information; merely naming the same zero-probability set does not supply a conditional density.

Key Takeaways

  • Normalize a discrete row by its marginal probability.
  • For continuous conditioning, divide the joint density by fX(x).
  • Integrate only over the support that remains after fixing the observed value.
  • A regression function describes how the conditional mean changes with the observed value.
  • Specify the random variable that defines continuous conditioning.

2.2 A conditional mean can itself be random

Before an observation arrives, the mean you will use after seeing it can vary. Conditional expectation given a random variable records this changing prediction as a random variable of its own.

From a function to a random variable

First find g(x)=E(Y∣X=x). Then define

E(Y∣X)=g(X).

At a fixed x, g(x) is a number. Across outcomes, g(X) changes with X. Conditional expectation exists for an integrable variable, meaning E∣Y∣<∞. A constant is also a random variable, so the conditional mean may be constant in special cases.

ExpressionMeaning
E(Y given X = x)A numerical mean at one observed value
E(Y given X)A function of the random observation
E(Y)One mean over the entire distribution
Break a stick in two stages

Start with a stick of length 1. Choose X∼Unif(0,1), keep the left piece of length X, and choose a uniform point in that piece. Let Y be the new left-piece length. Given X=x, Y is uniform on (0,x) and has mean x/2. Thus E(Y∣X)=X/2.

Because scaling a uniform variable scales its interval, X/2∼Unif(0,1/2). This is the distribution of the conditional mean. It is distinct from the distribution of the actual piece length: the mean takes just the midpoint of each possible retained interval.

Read the distribution from the observed variable

Roll a fair die for N, then flip N fair coins. If Y counts heads, Y∣N=n∼Bin(n,1/2), so E(Y∣N)=N/2. The conditional mean takes 0.5, 1, 1.5, 2, 2.5, and 3, each with probability 1/6. The number of heads is integer-valued, but its mean need not be.

More generally, transfer the probability of each observed value to its conditional mean. If different observed values produce the same mean, add their probabilities. In the household table, the means 2/3,1/3,3/4 inherit probabilities 0.3, 0.3, and 0.4. Their weighted mean is 0.3(2/3)+0.3(1/3)+0.4(3/4)=0.6.

Track the information retained

Independent X and Y give E(Y∣X)=E(Y). At the other extreme, if Y=h(X), its value is already known and E(Y∣X)=h(X).

A one-to-one transformation retains all the information, so E(Y∣X3)=E(Y∣X). A transformation that merges values can lose information. If X is equally likely to be −1 or 1 and Y=X, then E(Y∣X)=X. But X2=1 always, so E(Y∣X2)=0: observing the square gives no sign information.

Observe several variables

Conditional expectation can be a function of several observations. For three independent fair dice and their sum Y,

E(Y∣X1)=X1+7, E(Y∣X1,X2)=X1+X2+3.5.

Keep the observed terms unchanged and average only the unobserved terms. Writing a lowercase x in E(Y∣X)=x/2 leaves a fixed input where the random variable X belongs.

Key Takeaways

  • Compute the function at a fixed value, then substitute the random variable.
  • The distribution of a conditional mean comes from the conditioning variable.
  • A conditional mean can take noninteger values even when the outcome is a count.
  • One-to-one transformations preserve the available information.
  • Conditioning on several observations produces a function of all of them.

2.3 Recognize a conditional distribution or use symmetry

A conditional mean is often available without evaluating a sum or integral. Identify the conditional distribution and use its mean, or show that symmetry forces several conditional means to be equal.

Allocate a Poisson total

Let X∼Pois(λ1) and Y∼Pois(λ2) be independent. Given their total X+Y=n, the share assigned to X is binomial:

X∣X+Y=n∼Bin(n,λ1λ1+λ2).

Its conditional mean is nλ1/(λ1+λ2). Work emails average 6 per hour and personal emails 2 per hour, independently. Given a total of 12, the expected work count is 12(6/8)=9. Before observing the total, the corresponding random mean is E(X∣X+Y)=(X+Y)6/8.

Divide a total among symmetric terms

For i.i.d. variables X1,…,Xn with finite means, let S=∑iXi. Their conditional means given S are equal by symmetry. Linearity says these means add to E(S∣S)=S, so each is S/n.

Three i.i.d. component lifetimes with a known total of 4,500 hours therefore have conditional means of 1,500 hours each. This uses the observed total, not the original unconditional mean. Independence and identical distribution supply the symmetry here; equal means alone would not justify treating the conditional distributions as interchangeable.

Remove one multinomial category

For (N1,N2,N3)∼Mult3(n;p1,p2,p3), knowing N2=k leaves n−k observations in categories 1 and 3. Their probabilities renormalize to p1/(p1+p3) and p3/(p1+p3). Thus

E(N1∣N2)=(n−N2)p1p1+p3,

when p1+p3>0. For 100 survey answers with probabilities 0.5 “yes,” 0.3 “no,” and 0.2 “unsure,” knowing there are 40 “no” answers leaves 60. The expected “yes” count is 60(0.5/0.7)=300/7≈42.86. Both the number of remaining trials and their category probability change.

Use the bivariate normal mean

For a bivariate normal pair with positive marginal standard deviations,

E(Y∣X=x)=μY+ρσYσX(x−μX),

and the conditional variance is σY2(1−ρ2). In a height model, take fathers' mean as 175 cm, sons' mean as 176 cm, both standard deviations as 7 cm, and correlation 0.5. A father of 189 cm is 2 standard deviations above his mean. The conditional son mean is 176+0.5(14)=183 cm, 1 standard deviation above his mean.

This regression toward the mean concerns conditional averages. It does not shrink the marginal population variance of 49 cm2. Conditional variation remains around each mean, here with variance 36.75 and standard deviation about 6.06 cm. The normal conditional mean is linear; conditional means from other joint distributions can be curved.

Key Takeaways

  • Independent Poisson counts split a known total according to their rate shares.
  • Symmetric i.i.d. terms each have conditional mean equal to the total divided by their number.
  • A fixed multinomial category changes both the remaining count and the remaining category probabilities.
  • A bivariate normal conditional mean is linear in the observation.
  • Regression toward the mean describes conditional averages, not a loss of population variation.
3

Simplify means with conditional expectation

Conditional expectation lets you treat observed quantities as fixed while averaging what is still unknown. Its algebra explains how to simplify products, recover an overall mean, and separate a prediction from its residual. In experiments with a random first stage, choose a condition that makes the second stage familiar. Averaging that simpler result often avoids deriving the full distribution of the final outcome.

3.1 Known factors, towers, and residuals

Once you condition on X, a function of X is known. That simple observation explains which factors can leave a conditional expectation and which must remain inside it. Throughout, expectations used in these operations must exist; the variance and orthogonality statements use finite second moments.

Apply linearity and take out known factors

For constants a,b,

E(aY1+bY2∣X)=aE(Y1∣X)+bE(Y2∣X).

More generally, E(h(X)Y∣X)=h(X)E(Y∣X), and E(h(X)∣X)=h(X). Thus E(XY∣X)=XE(Y∣X). Pulling out Y would require knowing it from the condition; observing X alone does not generally reveal Y.

Independence gives E(Y∣X)=E(Y), but a constant conditional mean is weaker than independence. Let X be equally likely to be 1 or 2, let an independent sign Z be equally likely to be −1 or 1, and set Y=XZ. The sign averages to zero for either value of X, so E(Y∣X)=0. Yet ∣Y∣=X, which is dependence.

With finite second moments, independence implies a constant conditional mean, which implies zero covariance. Neither implication reverses. For X uniform on {−1,0,1} and Y=X2, covariance is zero by symmetry, but E(Y∣X)=X2 varies with X.

Average away the condition

Adam's law, also called the law of total expectation or tower property, states

E(E(Y∣X))=E(Y).

For discrete variables, write g(x)=E(Y∣X=x) and expand:

E(g(X))=∑x∑yyP(Y=y∣X=x)P(X=x).

The probability product is the joint probability. Summing over x leaves the marginal probability of each y, giving ∑yyP(Y=y)=E(Y). Conditional averaging groups the contributions without changing their total.

A tower with extra conditioning keeps the smaller information set:

E(E(Y∣X,Z)∣Z)=E(Y∣Z).

The inner mean uses both observations. The outer mean averages over the part still unknown when only Z is kept. This rule relies on nested information; arbitrary removal or rearrangement of conditions is not a tower identity.

Find a product moment by conditioning

In the two-stage stick model, X∼Unif(0,1) and Y∣X=x∼Unif(0,x). Then E(Y)=E(X/2)=1/4. For the product,

E(XY)=E(XE(Y∣X))=E(X2/2)=1/6.

Since E(X)=1/2, the covariance is 1/6−(1/2)(1/4)=1/24. Taking out the known factor is done inside the conditional mean; Adam's law then performs the final averaging.

The residual has no conditional mean left

Define W=Y−E(Y∣X). Linearity and the known-function rule give E(W∣X)=0, so E(W)=0. For every square-integrable h(X),

E(Wh(X))=E(h(X)E(W∣X))=0.

Thus the residual is uncorrelated with every such function of X. It may still depend on X through its spread: the independent-sign example has zero conditional mean while its size is exactly X.

Key Takeaways

  • Only quantities known from the condition can be taken outside the conditional average.
  • Adam's law gives E(E(Y∣X))=E(Y).
  • Nested conditional averaging leaves the smaller information set.
  • Independence is stronger than a constant conditional mean; zero covariance is weaker.
  • Conditioning can simplify product moments before the final average.
  • A conditional-mean residual is orthogonal to square-integrable functions of the observation.

3.2 Average the easy second-stage mean

A complicated outcome can become familiar after its first stage is fixed. Choose the first-stage variable, calculate the conditional mean of the second stage, and average that function over the first-stage distribution.

Count heads after a random number of flips

Roll a fair die for N, then flip N fair coins and count heads with Y. At N=n, the count is binomial with mean n/2. Before the roll, E(Y∣N)=N/2 is random. Adam's law gives

E(Y)=E(N/2)=12E(N)=12(3.5)=1.75.

No marginal probability for each possible head count is needed. Answering N/2 would stop at the conditional mean; the question about the overall mean still needs the outer average.

Keep a random fraction of a Poisson count

Suppose a bird lays N∼Pois(λ) eggs and each hatches independently with probability p. Given N, the hatch count H is Bin(N,p). Therefore E(H∣N)=Np and E(H)=λp. For λ=10 and p=0.3, the mean is 3. The Poisson model supplies the expected number of opportunities; the binomial model supplies the mean response per opportunity.

A sum with a random number of terms

Let S=X1+⋯+XN, with S=0 when N=0. The terms are i.i.d. with finite mean μ, and the nonnegative integer count N is independent of the sequence. With a fixed count n, linearity gives the mean of n terms as nμ. Hence

E(S∣N)=Nμ,E(S)=E(N)μ,

for finite E(N). The terms do not need a particular named distribution. Independence from the count ensures that learning how many terms there are does not change each term's mean.

A server receives a Poisson count of requests with mean 20 per minute. Each processing time has mean 15 ms, independently of the count and the other times. The expected total processing time for those requests is 20(15)=300 ms. This total adds processing times; it is not a claim about elapsed time when jobs run in parallel.

Check what knowing the count reveals

If the count depends on the term values, learning N can reveal information about those values. For example, stopping at the first long request tells you that earlier requests were short. In that model, E(S∣N)=Nμ can fail because the conditional term means are changed. The independent-count result applies to a count selected without inspecting the sequence.

Replacing the sum by NX1 also changes the model. Under independence from N, this product has the same mean E(N)μ, but it repeats a single random value. A true random sum adds separate values. Their variance calculations therefore need different treatment.

First-step equations follow the same strategy: condition on the next outcome, describe the expected future from its resulting state, then average those conditional means.

Key Takeaways

  • Choose a first-stage variable that makes the second-stage mean easy.
  • For an independent count and i.i.d. terms, E(S∣N)=Nμ.
  • The unconditional random-sum mean is E(N)μ.
  • Learning a value-dependent count can change the term distributions.
4

Separate within-group and between-group variance

A conditional mean tracks the center of each group, while conditional variance tracks the spread around that center. Both can change with the observation. Eve’s law combines the average spread within groups with the spread of their means to recover total variance. This decomposition is especially useful when a random count or a random success probability creates a mixture of simpler distributions.

4.1 Spread around a conditional mean

After observing X=x, use the variance of the conditional distribution at that value. Its center is the conditional mean. Before the observation, both that center and its associated variance can be random.

Define conditional variance

For finite second moments,

Var⁡(Y∣X)=E((Y−E(Y∣X))2∣X).

Expanding the square and taking known factors outside gives the useful computational form

Var⁡(Y∣X)=E(Y2∣X)−(E(Y∣X))2.

At a fixed observed value x, this becomes a number. Substituting X into the variance function gives the random variable Var⁡(Y∣X). It is nonnegative because it averages squared deviations.

The square belongs outside the conditional mean in the second term. Subtracting (E(Y))2 instead would center at the overall mean, which need not be the center of the conditional group.

Read variance from the conditional distribution

If Y∣X=x is Bernoulli with success probability p(x), its variance is p(x)(1−p(x)). In the household example, car-ownership probabilities 2/3,1/3,3/4 give conditional variances 2/9,2/9,3/16. The first two means differ, yet their variances agree because the probabilities are complements.

For the stick model, Y∣X=x∼Unif(0,x). Its interval width is x, so Var⁡(Y∣X)=X2/12. For a binomial number of heads from N fair flips, Var⁡(Y∣N)=N/4. In each case, the named conditional distribution supplies the variance directly.

Scale only the uncertainty left inside the group

Given X, functions h(X) and k(X) are fixed. Therefore

Var⁡(h(X)Y+k(X)∣X)=h(X)2Var⁡(Y∣X).

The shift moves the group center but leaves the spread unchanged; the multiplier scales deviations and is squared in the variance. In particular, Var⁡(h(X)∣X)=0 because nothing about that function remains uncertain.

If X and Y are independent, their conditional and unconditional variances agree. A variance can also be constant while the conditional mean changes. For a bivariate normal pair,

Var⁡(Y∣X)=σY2(1−ρ2).

In the height model with σY=7 cm and ρ=0.5, this is 49(0.75)=36.75 cm2 for every observed height, with conditional standard deviation about 6.06 cm.

A particular condition can increase spread

Let X be equally likely to be 1 or 2, let Z be an independent fair sign, and set Y=XZ. The conditional mean is always 0 and the conditional variance is X2. The overall variance is E(X2)=2.5, yet Var⁡(Y∣X=2)=4. Observing a high-spread group increases the variance for that observation. The average conditional variance cannot exceed total variance; this is an average statement, not a bound for every possible observation.

Key Takeaways

  • Conditional variance measures spread around the conditional mean.
  • Compute it as E(Y2∣X)−(E(Y∣X))2.
  • A known shift leaves conditional variance unchanged; a known multiplier is squared.
  • A function of the conditioning variable has conditional variance zero.
  • Conditional variance may exceed unconditional variance at a particular observed value.

4.2 Eve’s law adds two sources of variation

Groups can have variation within them and different centers from one another. Total variance accounts for both. Assume E(Y2)<∞ so that all the variance terms are finite.

Name the two pieces

Eve's law, the law of total variance, states

Var⁡(Y)=E(Var⁡(Y∣X))+Var⁡(E(Y∣X)).

The first term is the average within-group variance, using the distribution of X as weights. The second is the variance of the conditional means. Read their order as E–V plus V–E. Variances add here; standard deviations do not.

Derive the identity

Write m(X)=E(Y∣X) and v(X)=Var⁡(Y∣X). The conditional second-moment formula gives E(Y2∣X)=v(X)+m(X)2. Averaging with Adam's law yields

E(Y2)=E(v(X))+E(m(X)2).

Also E(Y)=E(m(X)). Subtracting the squared overall mean gives

Var⁡(Y)=E(v(X))+E(m(X)2)−(E(m(X)))2,

whose last two terms are Var⁡(m(X)).

Combine two sections

Suppose 60% of students are in section A, with mean score 70 and standard deviation 10. The other 40% are in B, with mean 80 and standard deviation 5. First find the overall mean:

E(Y)=0.6(70)+0.4(80)=74.

The within term uses the group variances:

0.6(102)+0.4(52)=60+10=70.

The between term uses the squared distances of group means from 74:

0.6(70−74)2+0.4(80−74)2=9.6+14.4=24.

Total variance is 94, so the overall standard deviation is 94≈9.70 points. Averaging just the two variances would miss the variation caused by different section means.

Average over a continuous first stage

For X∼Unif(0,1) and Y∣X=x∼Unif(0,x), the conditional variance is X2/12 and the conditional mean is X/2. Therefore

E(Var⁡(Y∣X))=E(X2)12=136, Var⁡(E(Y∣X))=Var⁡(X)4=148.

Their sum is 7/144. As a separate check, E(Y2∣X)=X2/3 gives E(Y2)=1/9; subtracting (E(Y))2=1/16 gives the same result.

The household indicator offers another check: its overall success probability is 0.6, so its variance is 0.24. Its average conditional variance is 5/24 and its conditional-mean variance is 19/600; these also add to 0.24.

Read the equality cases

Both pieces are nonnegative. The between term equals total variance exactly when the within term is zero, meaning Y is determined by X with probability 1. The within term equals total variance exactly when the conditional mean is constant. Independence ensures a constant mean, but dependence can remain through changing conditional spread.

Key Takeaways

  • Total variance is average conditional variance plus variance of the conditional mean.
  • The within term averages group variances with group probabilities.
  • The between term measures squared differences of group means from the overall mean.
  • The identity follows by averaging conditional second moments.
  • Zero within variance means the outcome is determined by the observation.
  • Zero between variance means the conditional mean is constant.

4.3 Random counts and random probabilities

Mixtures have two sources of uncertainty: the outcome within a chosen model and the random choice of model. Conditioning makes these sources separate enough to calculate with Eve's law.

Variance of a random sum

Let S=∑i=1NXi, taking the empty sum as zero. Assume the terms are i.i.d. with mean μ and variance σ2, and the count is independent of the sequence, with finite second moment. Given N,

E(S∣N)=Nμ,Var⁡(S∣N)=Nσ2.

Eve's law gives

Var⁡(S)=E(N)σ2+Var⁡(N)μ2.

The first term is uncertainty in individual values at a given count. The second is uncertainty in the count, with each extra term changing the conditional mean by μ.

For Poisson requests with mean 20 per minute, and independent processing times with mean 15 ms and standard deviation 5 ms,

Var⁡(S)=20(25)+20(225)=5000 ms2.

The standard deviation is about 70.7 ms. For a Poisson count of mean λ, the formula is also λE(X12), since E(X12)=σ2+μ2.

The product NX1 repeats one time value. Here E(N2)=420 and E(X12)=250, so its variance is 420(250)−3002=15000 ms2. Sharing the same term value creates more variation than adding independent times.

Thin a Poisson count

If N∼Pois(λ) and H∣N∼Bin(N,p), then

Var⁡(H)=E(Np(1−p))+Var⁡(Np) =λp(1−p)+λp2=λp.

The mean also equals λp; indeed the thinned count is Poisson. For a fair die count followed by fair coin flips, the same decomposition instead gives E(N)/4+Var⁡(N)/4=7/8+35/48=77/48.

Draw one success probability for the whole batch

Let P∼Unif(0,1) and Y∣P∼Bin(n,P). The same random probability is used for all trials in the batch. Since E(P)=1/2, E(P2)=1/3, and Var⁡(P)=1/12,

E(Y)=n/2, Var⁡(Y)=nE(P(1−P))+n2Var⁡(P)=n6+n212=n(n+2)12.

For n=10, the mean is 5 and variance 10; the marginal count is uniform on 0 through 10. A Bin(10,0.5) model has the same mean but variance only 2.5.

For any random probability with mean pˉ, rearranging Eve's law gives

Var⁡(Y)=npˉ(1−pˉ)+n(n−1)Var⁡(P).

The excess above the averaged-parameter binomial is n(n−1)Var⁡(P), here 7.5. This excess differs from the between term n2Var⁡(P) because mixing also changes the within term.

Key Takeaways

  • Independent random sums have both a term-variance contribution and a count-variance contribution.
  • For a Poisson count, Var⁡(S)=λE(X12).
  • Repeating one random value is a different model from adding independent values.
  • Poisson thinning gives a count with mean and variance equal to the thinned rate.
  • A shared random success probability can greatly increase batch-count variance.
5

Predict with conditional means and projections

A prediction is a function of the information you observe. Under squared error, the conditional mean gives the smallest average loss, and Eve’s law tells you how much error remains. The projection interpretation explains the same result geometrically: the residual has zero inner product with every available predictor. Restricting predictions to straight lines uses a smaller space and can leave predictable nonlinear behavior behind.

5.1 The predictor with the smallest squared error

Suppose you observe X and predict Y by a function g(X). A prediction rule should be judged across repeated outcomes. Under squared error, its mean squared error, or MSE, is E((Y−g(X))2). Assume E(Y2)<∞ and use square-integrable predictors.

Start with no observation

For a constant prediction c, expand around the overall mean:

E((Y−c)2)=Var⁡(Y)+(E(Y)−c)2.

The second term is nonnegative and vanishes at c=E(Y). The best constant is therefore the overall mean, with error Var⁡(Y). Observing X lets the prediction adapt to the particular group.

Split the error into two pieces

Set m(X)=E(Y∣X). For any candidate g(X),

Y−g(X)=(Y−m(X))+(m(X)−g(X)).

The first piece is the conditional-mean residual. The second is a function of X, so their product has expectation zero. Squaring and averaging gives

E((Y−g(X))2)=E(Var⁡(Y∣X))+E((m(X)−g(X))2).

The first term is the error of using the conditional mean. The second is an extra nonnegative error from choosing a different prediction. It is zero exactly when the two predictors agree with probability 1. Thus E(Y∣X) minimizes MSE, and the minimum is E(Var⁡(Y∣X)).

Measure how much the observation explains

For positive Var⁡(Y), Eve's law yields the explained fraction

Var⁡(E(Y∣X))Var⁡(Y)=1−minimum MSEVar⁡(Y).

In the stick model, predicting with X/2 gives MSE 1/36, while the best constant 1/4 gives 7/144. The explained fraction is (1/48)/(7/144)=3/7, about 43%. The remaining variation comes from the second break after the first length is known.

For the bivariate normal height model, the constant predictor has error 49 cm2 and the conditional mean has error 36.75 cm2. The explained fraction is 25%, equal to ρ2. This equality is a feature of the linear conditional mean in that model; general conditional means can explain nonlinear patterns too.

Compare information sets

An extra observation expands the available prediction rules: you can always ignore it. Consequently,

E(Var⁡(Y∣X1,X2))≤E(Var⁡(Y∣X1)).

For a sum of three independent fair dice, knowing one die gives predictor X1+7 and error 35/6. Knowing two gives X1+X2+3.5 and error 35/12. Only one independent die remains uncertain in the second case. The improvement concerns the average optimal error; individual conditional variances can still increase for some observations.

Match the predictor to the loss

The conditional mean is optimal for squared error. For absolute error E∣Y−g(X)∣, a conditional median is optimal. In a skewed conditional distribution, the median and mean can differ, so the chosen loss is part of what “best prediction” means.

Key Takeaways

  • The best constant under squared error is the overall mean.
  • The conditional mean minimizes MSE among functions of the observation.
  • Every competing predictor adds a nonnegative squared-distance term to the minimum error.
  • The minimum MSE equals the average conditional variance.
  • The explained fraction is the between variance divided by total variance when total variance is positive.
  • More observed information cannot increase the minimum average squared error.

5.2 Conditional expectation as an orthogonal projection

Random variables with finite second moments can be compared like vectors. Instead of coordinates and ordinary dot products, use products averaged over the probability model. Variables that agree with probability 1 represent the same vector.

Define distance and orthogonality

The inner product is ⟨U,V⟩=E(UV), and the distance is E((U−V)2). Two variables are orthogonal when their inner product is zero. Square-integrable functions h(X) form the space of predictions available from X.

The conditional mean m(X)=E(Y∣X) is the orthogonal projection of Y onto this space. It belongs to the space, and the residual obeys

E((Y−m(X))h(X))=0

for every square-integrable h(X). This condition characterizes the projection. If another function q(X) has the same property, subtract their conditions and use h(X)=m(X)−q(X). The result is E((m(X)−q(X))2)=0, so the two functions agree with probability 1.

Pythagoras gives total variance

The residual is orthogonal to the projection itself. Hence

E(Y2)=E(m(X)2)+E((Y−m(X))2).

Subtract (E(Y))2=(E(m(X)))2. The squared length of the centered outcome becomes the variance of its conditional mean plus the mean squared residual: Eve's law.

Projecting a function already in the space leaves it unchanged, explaining E(E(Y∣X)∣X)=E(Y∣X). Projecting onto constants gives E(Y). Projecting first onto functions of X and then onto constants gives the same overall mean, which is Adam's law. Keeping Z after conditioning on (X,Z) is projection from a larger prediction space to a contained one.

Restrict the space to straight lines

The best linear predictor allows only functions a+bX. For Var⁡(X)>0 it is

L(X)=E(Y)+Cov⁡(X,Y)Var⁡(X)(X−E(X)).

This smaller space cannot beat the unrestricted conditional mean. The errors agree exactly when the conditional mean is an affine function of X with probability 1, including the bivariate normal case. Here “linear predictor” includes its constant intercept.

Zero slope can hide perfect prediction

Let X be uniform on {−1,0,1} and Y=X2. Then E(X)=E(X3)=0, so covariance is zero. Since E(Y)=2/3, the best linear predictor is the constant 2/3. Its MSE is

Var⁡(Y)=23−49=29.

The unrestricted predictor is X2 and has error zero. The observation determines the outcome perfectly, but the relationship is curved and a straight line misses it.

Orthogonality is weaker than independence. In the independent-sign example Y=XZ with X∈{1,2}, the residual equals Y because its conditional mean is zero. It is orthogonal to every function of X, yet its magnitude reveals X. Projection removes predictable conditional means; it need not remove dependence in the conditional spread.

Key Takeaways

  • Use expected products as inner products for square-integrable random variables.
  • The conditional mean is the projection onto all square-integrable functions of the observation.
  • Orthogonality to that space characterizes the conditional-mean residual.
  • Pythagoras for the projection yields the total-variance identity.
  • A best linear predictor can miss nonlinear predictive information.

Conditional Expectation examples

5 Walkthroughs

1

Average within an event, then across cases

14 steps
Build conditional means and use them in a waiting-time calculation.
  1. 1
    IntroductionWhat information changes

    An average uses both possible values and their probabilities. Knowing an event happened can change both; the result is a conditional mean. You will first rebuild the distribution inside an event, then combine separate cases with their probabilities, which works when the cases form a partition. Finally, a waiting-time problem will use those case averages to describe what happens after the next trial.

  2. 2
    ExplanationMake the retained probabilities add to one

    For an event A with positive probability, use P(Y=y∣A)=P(Y=y,A)/P(A). The denominator rescales the surviving mass. The conditional mean is E(Y∣A)=∑yyP(Y=y∣A). Given the event, this result is a number: it averages across the outcomes still possible inside that event.

  3. 3
    ExampleCondition a fair die on an even result

    Roll a fair six-sided die and call the result X. Knowing it is even leaves 2, 4, and 6. Their original probabilities add to 1/2, so each conditional probability is (1/6)/(1/2)=1/3. The mean is 2/3+4/3+6/3=4. The original mean, 3.5, averages a different set of outcomes.

  4. 4
    TipCheck an indicator calculation

    The indicator IA sets the outcome to zero outside A. For the even-roll event, E(XIA)=(2+4+6)/6=2. This numerator still averages across all six rolls, including three zeros. Divide by the event probability 1/2 to get 4. An indicator selects contributions; division turns them into an average within the selected event.

  5. 5
    ChallengeAverage the transformed values

    For the fair die given an even result, what is E(X2∣X even)? Does squaring the conditional mean give it?

    ---reveal---

    The conditional squared values are 4, 16, and 36, equally likely, so their mean is 56/3. Squaring the conditional mean gives 16. A nonlinear function must be applied to the individual values before they are averaged.

  6. 6
    ExplanationKeep a continuous interval

    For Y with density f, restricting to A={Y∈B} gives conditional density f(y)/P(A) inside B and zero elsewhere. Thus E(Y∣A)=∫Byf(y) dy/P(A). For a uniform distribution restricted to a subinterval, the density remains flat there, so the conditional mean is that subinterval’s midpoint.

  7. 7
    ExampleSeparate elapsed time from the future

    An exponential component lifetime has mean 1,000 hours. Given survival through 300 hours, memorylessness leaves the remaining lifetime with the original distribution. The expected remaining life is still 1,000 hours. The expected total is therefore 300+1000=1300 hours. Subtracting elapsed time from the original mean would treat the random lifetime as a fixed schedule.

  8. 8
    ChallengeChange the lifetime model

    Instead let a lifetime be uniform from 0 to 2,000 hours. After survival to 300 hours, what are its expected total and remaining lifetimes?

    ---reveal---

    The conditional lifetime is uniform on (300,2000), with mean 1,150 hours. Subtracting 300 elapsed hours gives 850 hours remaining. The interval restriction changes the remaining-life distribution; the exponential memoryless calculation does not apply to this model.

  9. 9
    ConnectionPut case means back together

    Disjoint, exhaustive events form a partition. The overall mean is E(Y)=∑iE(Y∣Ai)P(Ai). A delivery averaging 30 minutes in dry weather and 45 in rain has mean 0.8(30)+0.2(45)=33 minutes when rain occurs 20% of the time. An ordinary average of the two means would give rain too much weight.

  10. 10
    ExplanationLet the first step define the cases

    To wait for two heads in a row from a fair coin, track whether you already have one head. Let a be the expected further flips with no current head and b the mean just after one head. A tail resets the run. A head moves from a to b, or from b to completion. Each branch uses one new flip before the next state is reached.

  11. 11
    ExampleWrite and solve the state equations

    From no current head, a=1+12b+12a. From one head, b=1+12⋅0+12a. The first equation gives a=2+b; substituting the second gives a=3+a/2. Thus a is 6 and b is 4. The initial expected wait is six flips, including the two heads that finish the run.

  12. 12
    ChallengeCount the flip that finishes

    A learner writes b=12⋅0+12a for the expected further flips just after one head. What is missing?

    ---reveal---

    The next flip must be counted in both branches, so the equation is b=1+12⋅0+12a. Even when a head finishes the run, that finishing flip still occurs. The zero describes additional flips after completion, not the next flip itself.

  13. 13
    ChallengeCombine conditioning and case weights

    Within a selected event B, two disjoint cases A₁ and A₂ exhaust B. Their conditional means are 4 and 10, and their probabilities within B are 0.75 and 0.25. What is E(Y∣B)?

    ---reveal---

    Use the probabilities within B: 0.75(4)+0.25(10)=5.5. The means describe the intersections with B, so unconditional case probabilities would refer to the wrong population.

  14. 14
    RecapUse the condition to choose the average

    For an event, rebuild the probability distribution inside it and average there. For a continuous interval, normalize the retained density. To recover a mean across cases, attach each case mean to its probability. In a waiting process, each branch counts the next step and then the expected future from the state it reaches. These are all versions of averaging with the correct conditional weights.

2

Turn observed values into a random conditional mean

15 steps
Work through a triangular density and compare direct calculation with distribution shortcuts.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionA family of predictions
  2. 2
    ExplanationRead the support before integrating
  3. 3
    ExampleNormalize one vertical slice
  4. 4
    ExampleFind the mean along the slice
  5. 5
    ChallengeSpot the wrong integration limit
  6. 6
    Key InsightReplace the fixed input by its random variable
  7. 7
    ExampleFind the distribution of the mean
  8. 8
    ChallengeAsk what the observation retains
  9. 9
    ExplanationRecognize a Poisson allocation
  10. 10
    Key InsightUse equal conditional means to divide a total
  11. 11
    ExampleRemove a multinomial category
  12. 12
    ExamplePredict on a bivariate normal scale
  13. 13
    ChallengeKeep population spread separate
  14. 14
    ChallengeCombine a conditional formula with a random total
  15. 15
    RecapChoose the shortest justified route
3

Condition first, then average

12 steps
Use known factors and Adam’s law to simplify product moments and random sums.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionMake the inner average easy
  2. 2
    ExplanationPull out only a known function
  3. 3
    ConnectionAverage the conditional means
  4. 4
    ExampleFind a product moment in two stages
  5. 5
    Key InsightA constant conditional mean can hide dependence
  6. 6
    ChallengeCheck the residual’s conditional mean
  7. 7
    ExplanationFix a random count
  8. 8
    ExampleFinish the outer average
  9. 9
    ChallengeThin a first-stage count
  10. 10
    TipCheck what knowing the count reveals
  11. 11
    ChallengeUse a residual in a product
  12. 12
    RecapKeep the two averages distinct
4

Build total variance from two pieces

17 steps
Compute conditional spread, then apply Eve’s law to groups and random-parameter batches.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionWhere variation comes from
  2. 2
    ExplanationUse the conditional center
  3. 3
    ExampleRead spread from a conditional uniform distribution
  4. 4
    ChallengeA known shift adds no conditional spread
  5. 5
    ExplanationRead Eve’s law in order
  6. 6
    ExampleFind the overall center first
  7. 7
    ExampleCalculate within and between
  8. 8
    Key InsightDerive the decomposition
  9. 9
    ChallengeWhat if the group means agree?
  10. 10
    ExplanationLet the count define the groups
  11. 11
    ExampleCompute a compound Poisson variance
  12. 12
    TipA repeated value is a different sum
  13. 13
    ChallengeCombine thinning variance terms
  14. 14
    ExplanationShare one random probability across a batch
  15. 15
    Key InsightThe between term differs from excess variance
  16. 16
    ChallengeConnect mixture variance to prediction
  17. 17
    RecapName each source before averaging
5

Find the best prediction and see its geometry

14 steps
Split squared error into an unavoidable residual and the cost of choosing another predictor.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionWhat makes a predictor best?
  2. 2
    ExplanationCompare a rule with the conditional mean
  3. 3
    Key InsightThe extra error is nonnegative
  4. 4
    ExampleCompare an observed length with one constant
  5. 5
    ChallengeRead a fraction of explained variance
  6. 6
    ConnectionMore information expands the available rules
  7. 7
    ExplanationUse expected products as dot products
  8. 8
    Key InsightProject onto the available information
  9. 9
    ConnectionPythagoras recovers Eve’s law
  10. 10
    ExampleA smaller prediction space uses only lines
  11. 11
    ExampleA curved relationship with zero covariance
  12. 12
    ChallengeOrthogonality does not remove all dependence
  13. 13
    ChallengeCharge a predictor for its offset
  14. 14
    RecapMatch the space and the loss

Conditional Expectation practice questions

50 Practice Questions in 5 sets

Set 1: Event means and conditional distributions10 Practice Questions

Question 1 of 10

A fair eight-sided die has faces numbered 1 through 8. What is its expected value given a result greater than 5?
  1. 6.5
  2. 6
  3. 7
  4. 7.5
Show answerHide answer
Answer: C
The surviving values are 6, 7, and 8, each with conditional probability 1/3, so their mean is 7. Using 6.5 incorrectly keeps the face 5 in the average; the condition is strictly greater than 5.

Question 2 of 10

An event A has probability 0.4. The only joint masses on A are P(Y=2,A)=0.15 and P(Y=5,A)=0.25. What is E(Y∣A)?
  1. 3.5
  2. 1.55
  3. 3.875
  4. 4.25
Show answerHide answer
Answer: C
The indicator-weighted first moment is 2(0.15)+5(0.25)=1.55, and dividing by 0.4 gives 3.875. The value 1.55 leaves the probabilities unnormalized, so it averages contributions over the whole sample space instead of within the event.

Question 3 of 10

A duration T is uniform on 2 to 10 minutes. What is its expected total duration given T>6?
  1. 8 minutes
  2. 6 minutes
  3. 9 minutes
  4. 4 minutes
Show answerHide answer
Answer: A
Conditioning leaves a uniform distribution on 6 to 10 minutes, whose midpoint is 8 minutes. The original midpoint of 6 minutes ignores the survival information; 4 minutes is half the original interval width, not the conditional total duration.

Question 4 of 10

A waiting time is exponential with mean 12 minutes. Given that the wait has exceeded 5 minutes, what is the expected total wait?
  1. 17 minutes
  2. 10 minutes
  3. 7 minutes
  4. 12 minutes
Show answerHide answer
Answer: A
Memorylessness leaves the expected remaining wait at 12 minutes. Adding the 5 minutes already elapsed gives an expected total of 17 minutes. Answering 12 minutes gives the remaining time, while subtracting 5 incorrectly treats the mean as a fixed deadline.

Question 5 of 10

A measurement takes 18 seconds on average in mode A and 28 seconds in mode B. Each run uses mode A with probability 0.7. What is the overall mean duration?
  1. 19.6 seconds
  2. 21 seconds
  3. 25 seconds
  4. 23 seconds
Show answerHide answer
Answer: B
Weight each mode mean by its probability: 0.7(18)+0.3(28)=21 seconds. The unweighted mean of 23 seconds treats the two modes as equally likely, even though mode A occurs more than twice as often and should pull the overall mean toward 18.

Question 6 of 10

Independent coin flips have head probability 2/3. Starting with no previous flips, what is the expected number of flips until two consecutive heads?
  1. 15/4
  2. 9/2
  3. 3
  4. 9/4
Show answerHide answer
Answer: A
Let a be the mean from no current head and b the mean after one head. The equations are a=1+a/3+2b/3 and b=1+a/3; substitution gives 4a/9=5/3, hence a=15/4. A geometric mean of 9/4 for successive two-flip windows ignores their overlap and the different restart states.

Question 7 of 10

Joint probabilities for (X,Y) are P(0,0)=0.10, P(0,2)=0.30, P(1,0)=0.40, and P(1,2)=0.20. What is E(Y∣X=1)?
  1. 2/5
  2. 1/3
  3. 4/5
  4. 2/3
Show answerHide answer
Answer: D
The row for X=1 has probability 0.6, and its first moment is 2(0.20)=0.40, giving 0.40/0.60=2/3. The value 2/5 is the unnormalized row contribution, so it omits the required division by the probability of the observed row.

Question 8 of 10

The joint density is f(x,y)=6y on 0<y<x<1 and zero elsewhere. What is E(Y∣X=x) for 0<x<1?
  1. x2
  2. 2/3
  3. 2x/3
  4. x/2
Show answerHide answer
Answer: C
The marginal density is ∫0x6y dy=3x2, so the conditional density is 2y/x2 and its mean is 2x/3. The midpoint x/2 would require a uniform conditional density; here larger values of y have greater density.

Question 9 of 10

Let N be uniform on {1,2,4} and Y∣N∼Bin(N,1/4). What is the distribution of E(Y∣N)?
  1. 1/4, 1/2, 1, with probabilities 1/7, 2/7, 4/7
  2. 1/4, 1/2, 1, each with probability 1/3
  3. 1, 2, 4, each with probability 1/3
  4. 0, 1/4, 1/2, each with probability 1/3
Show answerHide answer
Answer: B
The conditional binomial mean is N/4, so the three possible means are 1/4, 1/2, and 1. Their probabilities remain 1/3 because each input is equally likely; larger input values do not receive larger probabilities merely because they produce larger means.

Question 10 of 10

Independent sensor counts satisfy A∼Pois(4) and B∼Pois(6). Given A+B=15, what is E(A∣A+B=15)?
  1. 4
  2. 9
  3. 7.5
  4. 6
Show answerHide answer
Answer: D
Given the total, the first count is binomial with 15 trials and probability 4/(4+6)=0.4, so its mean is 6. The unconditional mean 4 ignores the observed total, while 7.5 incorrectly allocates the total equally despite the unequal rates.
Set 2: Conditional information and two-stage means10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Let X∼Unif(0,2) and Y∣X=x∼Unif(0,x). What is Cov⁡(X,Y)?
  1. 1/3
  2. 1/6
  3. 2/3
  4. 0
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A random count N has mean 7 and is independent of i.i.d. masses Xi, each with mean 0.8 kg. For S=∑i=1NXi, what is E(S)?
  1. 7.8 kg
  2. 0.8 kg
  3. 8.75 kg
  4. 5.6 kg
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

An integrable variable satisfies Y=2X2+1. What is E(Y∣X)?
  1. 2E(X2)+1
  2. 2(E(X))2+1
  3. 2X2+1
  4. 2X+1
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

Let X be uniform on {−2,2} and let Y=3X. What is E(Y∣X2)?
  1. −6
  2. 12
  3. 0
  4. 6
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Four i.i.d. component lifetimes with finite means have a known total of 2,800 hours. What is the conditional mean lifetime of the second component?
  1. 2,800 hours
  2. 700 hours
  3. 1,400 hours
  4. 350 hours
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A multinomial sample has 60 trials with category probabilities 0.2, 0.5, and 0.3. Given that category 2 occurs 35 times, what is E(N1∣N2=35)?
  1. 12
  2. 10
  3. 5
  4. 25
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A bivariate normal pair has means μX=10,μY=40, standard deviations σX=2,σY=6, and correlation 0.5. What is E(Y∣X=14)?
  1. 52
  2. 44
  3. 42
  4. 46
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

If E(Y∣X)=X2 and the relevant moments are finite, what is E(XY∣X)?
  1. XE(Y)
  2. E(X3)
  3. XY
  4. X3
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Independent Bernoulli variables X1,X2 have success probability 1/2. Set N=1 if X1=1 and N=2 otherwise, and let S=∑i=1NXi. What is E(S∣N=2)?
  1. 1/2
  2. 0
  3. 1
  4. 3/4
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Conditional moments satisfy E(Y∣X)=2X and E(Y2∣X)=5X2+3, with finite second moments. What is Var⁡(Y∣X)?
  1. X2+3
  2. X2+9
  3. 3X2+3
  4. 5X2+3−4(E(X))2
Show answerHide answer

Save this lesson to see this answer.

Set 3: Conditional spread and total variance10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

An outcome has variance 40, and its optimal prediction from X has MSE 30. What fraction of its variance is explained by X?
  1. 1/2
  2. 1/3
  3. 3/4
  4. 1/4
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

If Y∣X=x∼Unif(0,3x) for positive x, what is Var⁡(Y∣X)?
  1. 3X/4
  2. X2/12
  3. 3X2/4
  4. 9X2/4
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Suppose Var⁡(Y∣X)=X+1 and X is nonnegative with finite required moments. What is Var⁡(2Y+X2∣X)?
  1. 4(X+1)
  2. 2(X+1)
  3. 4(X+1)+Var⁡(X2)
  4. 4(X+1)+X4
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A population is 25% group A and 75% group B. Their means are 2 and 6, and their variances are 4 and 8. What is the population variance?
  1. 10
  2. 3
  3. 11
  4. 7
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A square-integrable outcome has Var⁡(Y)=25 and Var⁡(E(Y∣X))=9. What is the average conditional variance?
  1. 16
  2. 25
  3. 34
  4. 4
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Let X take 1 with probability 3/4 and 3 with probability 1/4. Let Z be an independent fair sign and Y=XZ. What are E(Var⁡(Y∣X)) and Var⁡(E(Y∣X)), in that order?
  1. 0 and 3
  2. 3/4 and 9/4
  3. 3 and 0
  4. 9 and 0
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A count N with mean 4 and variance 6 is independent of i.i.d. lengths with mean 2 m and variance 3 m². What is the variance of their random total length?
  1. 30 m²
  2. 36 m²
  3. 12 m²
  4. 24 m²
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Let N∼Pois(5) be independent of i.i.d. variables with mean 3 and variance 2. For S=∑i=1NXi, how much larger is Var⁡(NX1) than Var⁡(S)?
  1. 55
  2. 45
  3. 50
  4. 10
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

One probability P is drawn uniformly on (0,1) for an entire batch, and Y∣P∼Bin(6,P). What is the excess variance of Y over a binomial count with the same mean and a fixed probability?
  1. 4
  2. 3
  3. 1.5
  4. 2.5
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A variable Y has mean 8 and variance 12. What constant prediction minimizes its mean squared error?
  1. 0
  2. 8
  3. 12
  4. 10
Show answerHide answer

Save this lesson to see this answer.

Set 4: Residuals, optimal prediction, and lines10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

In the square-integrable random-variable geometry, what does orthogonality of U and V mean?
  1. Var⁡(U)=Var⁡(V)
  2. E(UV)=0
  3. E(U)=E(V)
  4. E(U2)=E(V2)=0
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A square-integrable outcome has conditional mean m(X) and minimum MSE 7. What is the MSE of the predictor m(X)+2?
  1. 7
  2. 9
  3. 11
  4. 3
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A pair has E(X)=2, E(Y)=5, Var⁡(X)=4, and Cov⁡(X,Y)=−2. What is the best linear predictor of Y from X?
  1. 9−2X
  2. 4+X/2
  3. 6−X/2
  4. 5−X/2
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

Let X be uniform on {−2,0,2} and Y=X2. How much does the best linear predictor’s MSE exceed the unrestricted optimal MSE?
  1. 32/9
  2. 0
  3. 8/3
  4. 16/9
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

For square-integrable Y, let W=Y−E(Y∣X). If h(X) is square-integrable, what is E(Wh(X))?
  1. E(Y)E(h(X))
  2. 0
  3. E(Yh(X))
  4. Var⁡(Y)
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Let X∼Unif(−1,1), let Z be an independent fair sign, and set Y=X2+Z. A proposed predictor is q(X)=1/3. What is E((Y−q(X))X2)?
  1. 1/9
  2. 4/45
  3. 1/5
  4. 0
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Independent fair dice D1,D2 form Y=D1+D2. What is the minimum MSE when only D1 is observed?
  1. 35/12
  2. 0
  3. 49/4
  4. 35/6
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A count N is Poisson with mean 12. Given N, each of N independent items is retained with probability 1/4, and H counts retained items. What is E(H2)?
  1. 3
  2. 9
  3. 39/4
  4. 12
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

The joint density is 2 on 0<y<x<1. What is E(X∣Y=y) for 0<y<1?
  1. 2y
  2. y/2
  3. 1/2
  4. (1+y)/2
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A bivariate normal pair has positive marginal variances and correlation −0.8. What fraction of Y’s variance is explained by X?
  1. −0.64
  2. 0.36
  3. 0.80
  4. 0.64
Show answerHide answer

Save this lesson to see this answer.

Set 5: Transfer across mixtures, information, and prediction10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Independent X and Y are uniform on (0,2). What is E(X∣X+Y<2)?
  1. 2/3
  2. 1/2
  3. 4/3
  4. 1
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

If Y∣X=x is Bernoulli with success probability p(x), what is Var⁡(Y∣X)?
  1. (1−p(X))2
  2. p(X)
  3. p(X)(1−p(X))
  4. p(X)2
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Let Y take values 1, 2, and 4 with probabilities 0.2, 0.5, and 0.3. What is E(Y2∣Y>1)?
  1. 6.8
  2. 8.5
  3. 4.84
  4. 7.5625
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

Each independent device test either passes or fails, with pass probability 3/4. Testing stops as soon as two consecutive results agree. Starting with no tests, what is the expected number of tests?
  1. 16/5
  2. 28/9
  3. 3
  4. 35/13
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A random success probability P has mean 0.3. Given P, a count Y is Bin(20,P). What is E(Y)?
  1. 20
  2. 6
  3. 4.2
  4. 9
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A shared random P has mean 0.4 and variance 0.02, with Y∣P∼Bin(5,P). What are the within and between terms of Eve’s law, in that order?
  1. 1.1 and 0.5
  2. 1.1 and 0.4
  3. 1.2 and 0.5
  4. 1.2 and 0.4
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Let X∼Unif(0,1) and Y∣X=x∼Unif(0,x2). What is the MSE of the predictor g(X)=X2?
  1. 1/60
  2. 1/30
  3. 1/15
  4. 1/20
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Let X be uniform on {−1,0,1}, let Z be an independent fair sign, and let Y=X2+Z. What are the minimum unrestricted MSE and minimum linear MSE, in that order?
  1. 0 and 2/9
  2. 2/9 and 11/9
  3. 1 and 11/9
  4. 1 and 1
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

For integrable Y, what is E(E(Y∣X,Z)∣Z)?
  1. E(Y∣X)
  2. E(Y∣X,Z)
  3. E(Y)
  4. E(Y∣Z)
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Let X be equally likely to be 0 or 1. Given X=0, Y is 0 or 2 equally likely; given X=1, Y is 4 or 8 equally likely. How much does observing X reduce the minimum MSE compared with using only a constant?
  1. 25/4
  2. 5/2
  3. 35/4
  4. 5/4
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

57 Key Terms, each with its definition

A

Adam’s law
Adam’s law states that averaging a conditional expectation over the conditioning variable recovers the original unconditional expectation.
When a stick breaks at a uniform X on (0,1) and the kept piece breaks uniformly again, averaging the conditional mean X/2 gives an overall mean of 1/4.

B

Best linear predictor
The best linear predictor minimizes mean squared error among affine rules with an intercept, using covariance divided by input variance as its slope.
A zero slope misses the nonlinear rule Y = X² when symmetric X makes covariance vanish.
Between-group variance term
The between-group variance term is the variance of conditional means, measuring their weighted squared differences from the overall mean.
Means 70 and 80 around overall mean 74 contribute a between-group term of 24 with weights 0.6 and 0.4.
Bivariate normal conditional mean
A bivariate normal conditional mean is an affine function of the observed variable, with slope equal to correlation times the standard-deviation ratio.
A height observation 2 standard deviations above average predicts a 1-standard-deviation rise when correlation is 0.5.

C

Compound Poisson sum
A compound Poisson sum adds i.i.d. terms over an independent Poisson count, giving variance equal to the rate times one term’s second moment.
A Poisson request count and independent processing times create a compound Poisson total processing time.
Conditional density given an event
A conditional density given an event describes a continuous variable inside that event, normalized so that its retained area is 1.
A uniform density restricted from (0,1) to (0.4,1) has height 1/0.6 on the shorter interval.
Conditional distribution
A conditional distribution gives the probabilities of a variable’s values after specified information is known, with total probability 1.
Restricting a fair die to even results gives probability 1/3 to each surviving face: 2, 4, and 6.
Conditional expectation given an event
The conditional expectation given an event is the mean of a variable under the distribution restricted to that event of positive probability.
For an even result from a fair die, the conditional expectation of the roll is 4 instead of 3.5.
Conditional LOTUS
Conditional LOTUS computes the expectation of a transformed variable by averaging its transformed values under the conditional distribution.
To find a conditional second moment, square each surviving value before averaging with the new probabilities.
Conditional median
A conditional median divides a conditional distribution so that at least half its probability lies on each side, minimizing conditional absolute error.
For a skewed conditional distribution, absolute-error and squared-error predictions can choose different centers.
Conditional PDF
A conditional probability density describes a continuous variable at a specified input, using joint density divided by the input’s positive marginal density.
For joint density 2 on 0 < y < x < 1, the conditional PDF of Y at X = x is 1/x on (0,x).
Conditional PMF
A conditional probability mass function assigns probabilities to a discrete variable’s values after a specified observation, using normalized joint masses.
In a joint table, divide each entry of the observed row by its row total to obtain the conditional PMF.
Conditional second moment
A conditional second moment is the expectation of a variable’s square within its conditional distribution, before subtracting the squared conditional mean.
For a Bernoulli outcome, the conditional second moment equals its conditional success probability.
Conditional standard deviation
A conditional standard deviation is the square root of conditional variance and expresses conditional spread in the outcome’s original units.
A conditional height variance of 36.75 cm² corresponds to a standard deviation of about 6.06 cm.
Conditional support
The conditional support consists of the values still possible for the variable being averaged after the conditioning value is fixed.
In the triangle 0 < y < x < 1, observing X = x leaves only the interval (0,x) for Y.
Conditional symmetry
Conditional symmetry makes interchangeable variables have equal conditional means under information that treats them identically.
Given a total of 4,500 hours for three i.i.d. lifetimes, each conditional mean must be 1,500 hours.
Conditional variance
Conditional variance measures expected squared deviation from the conditional mean and is itself a function of the observed information.
When a retained first piece of length X is broken uniformly, the conditional variance of the final length is X²/12, growing as X widens that interval.
Conditional-mean random variable
A conditional-mean random variable assigns to each possible observation the mean of the outcome’s conditional distribution at that observation.
When a die roll N sets how many fair coins are flipped, the conditional-mean random variable for heads is N/2 before the die is observed.

E

Empty sum
An empty sum is a sum containing no terms and is defined to equal zero, making random-sum formulas include the case of a zero count.
If no requests arrive during an interval, the sum of their processing times contributes zero to the total.
Eve’s law
Eve’s law decomposes total variance into the average conditional variance plus the variance of the conditional expectation, for finite second moments.
Two sections with different score means need both within-section and between-section contributions to variance.
Explained variance fraction
The explained variance fraction is the variance of the conditional mean divided by positive total variance, measuring improvement over the best constant.
For a stick broken twice at uniform points, the first piece’s length explains 3/7 of total variance, leaving 4/7 as the optimal squared-error fraction.

F

First-step analysis
First-step analysis conditions on the next outcome of a process to build equations for expected remaining time from the states it can reach.
For consecutive heads, a tail resets the run while one head changes the expected future waiting state.

I

Independent count
An independent count is a count chosen independently of the sequence of term values, so conditioning on it leaves their distributions unchanged.
A Poisson arrival count can be independent of the processing times subsequently assigned to its requests.
Indicator variable
An indicator variable equals 1 when an event occurs and 0 otherwise, allowing that event to select contributions inside an expectation.
Multiplying a roll by the indicator of an even result sets all contributions from odd rolls to zero.
Information-preserving transformation
An information-preserving transformation retains the distinctions among all input values, as a one-to-one function does for the observed variable.
Cubing a real observation retains its value, while squaring a random sign loses the distinction between signs.
Inner product
An inner product for square-integrable random variables is their expected product, providing the geometric test for orthogonality.
A residual with zero expected product against every function of X is orthogonal to the prediction space.
Integrability
Integrability means that the expectation of a random variable’s absolute value is finite, allowing a finite conditional expectation to be defined.
A bounded piece length is integrable, so its conditional expectation exists when a stick is broken in two stages.

J

Joint PMF
A joint probability mass function assigns a probability to each pair of values of two discrete random variables, with total mass 1.
A household table records probabilities for both the number of children and the car-ownership indicator.

K

Known conditional shift
A known conditional shift adds a function of observed information to an outcome, changing its conditional mean while leaving its conditional variance unchanged.
Adding X to 3Y given X shifts each group center; only the multiplier 3 changes the conditional spread.

L

Law of total expectation over events
The law of total expectation over events computes an overall mean by weighting each partition case’s conditional mean by its probability.
A delivery’s dry-day and rainy-day means receive weights 0.8 and 0.2 when rain occurs on 20% of days.

M

Mean independence
Mean independence of Y from X means that the conditional mean of Y given X equals its unconditional mean, even if other features change.
Multiplying an independent fair sign by positive X gives mean independence while the magnitude still reveals X.
Mean squared error
Mean squared error is the expected square of the difference between an outcome and its prediction, combining systematic offsets and residual variation.
Predicting every outcome two units above its conditional mean adds 4 to the smallest possible MSE.
Memoryless property
The memoryless property says that, after survival for a given time or count, the remaining wait has the original waiting distribution.
An exponential component with mean life 1,000 hours still has that expected remaining life after survival.
Minimum MSE
The minimum MSE based on observed information is the average conditional variance, achieved by predicting with the conditional mean.
Knowing two dice in a three-die sum leaves a minimum MSE equal to the variance of the last unobserved die.
Mixture distribution
A mixture distribution averages conditional distributions over a random model choice or parameter, using that choice’s probabilities as weights.
Drawing one probability P for a whole binomial batch creates a mixture when P is averaged out.
Multinomial conditional distribution
A multinomial conditional distribution reallocates the remaining trials among the remaining categories after one category count is fixed.
Knowing 40 of 100 survey answers are “no” leaves 60 trials whose “yes” probability is renormalized.
Multiple conditioning variables
Multiple conditioning variables are observations used together to define a conditional distribution and a mean that is a function of all of them.
Knowing two dice in a three-die sum leaves the prediction equal to their sum plus the third die’s mean.

O

Orthogonal projection
An orthogonal projection is the closest element in a subspace under mean squared distance, with the remaining error orthogonal to that subspace.
Conditional expectation projects an outcome onto the square-integrable functions of the observed variable.
Orthogonality
Orthogonality means that the expected product of two square-integrable random variables is zero, without requiring them to be independent.
A fair sign times a positive observed scale can be orthogonal to functions of the scale while depending on it.
Overdispersion
Overdispersion is variance greater than that of a specified comparison model with the same mean, such as a binomial with a fixed averaged probability.
Ten trials with a uniform shared probability have variance 10, exceeding the fixed-probability variance 2.5.

P

Partition
A partition is a collection of disjoint events that together cover the sample space, so every outcome belongs to exactly one case.
Dry and rainy days form two cases when each day is classified by exactly one of those weather states.
Poisson allocation
Poisson allocation is the binomial division of a known total from independent Poisson counts, with probabilities given by their rate shares.
Work and personal email counts with rates 6 and 2 give a work share of 3/4 after the total is known.
Poisson thinning
Poisson thinning retains each item of a Poisson count independently with a fixed probability, producing another Poisson count with a reduced mean.
Eggs laid with Poisson mean 10 and hatch probability 0.3 give a Poisson hatch count with mean and variance 3.

R

Random sum
A random sum adds a random nonnegative integer number of terms, so both the count and the term values can contribute to its uncertainty.
The total processing time for a random request count adds the separate processing times of all those requests.
Regression function
A regression function gives the conditional mean of one variable as a function of the observed value of another, and can be nonlinear.
The density x + y on the unit square gives the curved regression function (3x + 2)/(6x + 3).
Regression toward the mean
Regression toward the mean makes the bivariate normal predicted standardized deviation smaller in magnitude when the correlation has magnitude below 1.
The effect concerns predicted height deviations, while individual heights still vary around those conditional means.
Remaining lifetime
The remaining lifetime is the additional time from a survival observation until failure, found by subtracting elapsed time from total lifetime.
After 300 hours of use, a total lifetime of 1,300 hours corresponds to 1,000 further hours of operation.
Residual
A conditional-mean residual is the outcome minus its conditional expectation, giving an error with mean zero at each conditioning value.
When a uniform break at X leaves a piece that is broken uniformly again, subtracting X/2 from the final length leaves the variation from the last break.

S

Shared random probability
A shared random probability is a success probability drawn once for an entire batch and used by all trials within that batch.
Trials can be independent given P yet become dependent after the shared probability is averaged out.
Square-integrable random variable
A square-integrable random variable has a finite second moment, allowing expected squared distances and inner products to be used.
The finite second moment assumption makes both the projection’s squared length and its residual MSE finite.
State in a waiting process
A state in a waiting process records the history needed to determine the distribution of future progress toward the stopping condition.
Waiting for two heads needs a state with no current head and another state with one current head.

T

Taking out what is known
Taking out what is known moves a function of the conditioning variable outside a conditional expectation because its value is fixed by the observation.
Given X, the factor X leaves the expectation of XY, while the unobserved factor Y generally stays inside.
Tower property with extra conditioning
The tower property with extra conditioning averages a mean based on more information down to the mean based on a contained information set.
Averaging E(Y given X and Z) while retaining Z gives the same prediction as conditioning on Z directly.
Truncated distribution
A truncated distribution is the distribution obtained by retaining values in a specified set and rescaling their original probability mass or density.
Conditioning a standard normal variable on being positive produces its positive-half truncated distribution.
Two-stage experiment
A two-stage experiment first generates an input and then generates an outcome from a distribution determined by that input.
Rolling a die and then flipping that many coins gives a simple conditional binomial distribution for heads.

V

Variance decomposition
A variance decomposition expresses total squared spread as a sum of distinct nonnegative components tied to specified sources of variation.
For a random count, separate variation among term values from variation caused by changes in the count.

W

Within-group variance term
The within-group variance term is the average of conditional variances, weighted by how frequently each group occurs in the population.
Section variances 100 and 25 with weights 0.6 and 0.4 give a within-group variance contribution of 70.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started