Learn with Amar
Teaching video
A teaching recording for this chapter has not been published yet. Start with the worked example below and explore the related animations where available.
Undergraduate chapters and video availability01 · Read and understand
What you will learn
- Apply the law of total expectation to a mixed population.
- Justify the conclusion "E[X]=17" using the stated assumptions.
Before you start
Weighted means and conditional expectation.
Keep paper nearby. Read the question once for the context, then again to identify what is known and what you need to find.
Start with a question
A process uses mode A with probability 0.3 and mode B with probability 0.7; conditional output means are 10 and 20. Find the overall mean.
Why this math matters
Apply the law of total expectation to a mixed population. This worked micro-lesson connects a precise mathematical condition to a conclusion you can check. The transfer task asks you to change the setting and decide which parts of the reasoning still apply.

Set up the model
A useful answer starts with clear assumptions:
- The two modes form an exhaustive disjoint partition.
- The output has a finite expectation.
02 · Work through the example
Follow the reasoning, one step at a time.
Try to predict the next step before reading it. After each calculation, explain why the operation makes sense and how it helps answer the original question.

Work through it with Amar
See this example unfold.
The complete worked example, one idea at a time.
Average conditional means with the correct weights
PausedQuestion: Start with the question. Paused.
Question
Start with the question
A process uses mode A with probability 0.3 and mode B with probability 0.7; conditional output means are 10 and 20. Find the overall mean.
Before you calculate
Read what is known and what you need to find. Make a prediction before moving to the first calculation.
Starts paused. Play advances through the full text at a reading pace; pause whenever you need more time. Previous, Next, and the phase buttons let you set your own pace. Playback pauses when this walkthrough leaves the screen or you switch tabs.
Your device’s reduced-motion setting keeps each phase still. Manual controls remain available. The full written solution stays below.
Build the model
E[X|M=A]=10 and E[X|M=B]=20
Conditional means summarize output after the mode is known.
Work through the mathematics
E[X]=0.3·10+0.7·20
Average using mode probabilities, not equal weights.
Check the conclusion
E[X]=17
The result lies between the two component means and is closer to the more common mode.
The result
E[X]=17
The result lies between the two component means and is closer to the more common mode.
Common mistakes to catch
- A simple unweighted mean of subgroup means can be wrong.
- Expectation does not reveal the full output distribution.
03 · Practice independently
Try it before revealing the answer.
Use paper or a calculator as needed. Write your units and reasoning, then open the hint or explanation to check your approach.
Practice 1
If mode A has probability 0.8 instead, what is the mean?
Show a hint
Reweight both modes.
Reveal answer and explanation
12
0.8·10+0.2·20=12.
Practice 2
Must output be constant within each mode?
Show a hint
Conditional means summarize distributions.
Reveal answer and explanation
No
The law only requires integrability, not deterministic conditional outputs.
Take the idea with you
Combine group-level averages only after checking group proportions.
04 · Reflect and continue
Can you explain it in your own words?
Before moving on, explain the main idea without looking at the worked example. Try both practice questions, check your reasoning, and name one mistake you now know how to avoid. Return to a step if you still need support.
Up next: Separate within-group noise from between-group differences
Completion is your own study record, not a test score. It stays in this browser, does not sync to another device, and can be removed by clearing browser data.