Boy-girl neighbours in a random line of 25
Question
A class of boys and girls forms a single line in uniformly random order. Find the expected number of neighbouring positions occupied by one boy and one girl. (For example, the line has such boy–girl adjacencies.)
Short answer
. There are adjacent pairs of positions. Each is mixed with probability , so by linearity the expected count is .
Adapted from QuantQuestions.io; question and answer rewritten by SelfMadeQuant.com.
See the hint and the full worked solution in the question bank (free account).
Open the worked solutionLessons behind this question
- Counting and Combinatorics
- Expectation, Mean, and Variance
- Conditional Expectation and Variance Revisited
Start with a free lesson: Expectation, Variance and Covariance is part of a free topic. Create a free account, no card needed, to read it in full with worked solutions.
Read it free