Skip to content

Boy-girl neighbours in a random line of 25

Question

A class of 1515 boys and 1010 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 BGBBGGGBGGBBBBGBGBBGGGBGGBBBBG has 77 such boy–girl adjacencies.)

Short answer

1212. There are 2424 adjacent pairs of positions. Each is mixed with probability 2⋅1525⋅1024=122\cdot\tfrac{15}{25}\cdot\tfrac{10}{24}=\tfrac12, so by linearity the expected count is 24⋅12=1224\cdot\tfrac12=12.

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 solution

Lessons behind this question

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