牌堆游程期望
牌堆中的 run
题目详情
Consider a standard deck with 52 cards; 26 red and 26 black. A run is a maximum contiguous block of cards of the same color. For example, has 52 runs; while has 2 runs. What is the expected number of runs in a shuffled deck of cards?
解析
令 表示第 张牌是否为一个新游程的开始(;对 ,当且仅当颜色与前一张不同)。
游程数 ,因此
对 :
所以