Quoto

Learn / Library / Statistics

Matching neighbours in a row

StatisticsHard

A row of cards, red and black, is shuffled so that all colour patterns are equally likely. Let be the number of the neighbouring position pairs whose cards have the same colour. What is ?

Checking an answer needs JavaScript. The hint and the solution open without it.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Write S as a sum of indicators and compare the covariances of neighbouring and separated pairs.

Solution
  1. Each indicator equals with probability , so its variance is , and the variances sum to .
  2. For overlapping pairs the covariance is , since cards in a row share a colour with probability .
  3. For the other pairs the probability that both are same-coloured is , so the covariance is .
  4. The covariance total is , so .

Answer: