Indicator Variables: Marching Bands and Snowboards

Sawyer uses linearity of expectation to count in-step rows, then poses a six-snowboard challenge.

SaSawyer진행자 · Jane Street
채널
Jane Street
게시일
2020년 7월 10일
영상
6:16
읽기
3분
슬라이드
2
원문
영어
YouTube에서 열기
스크롤하면 영상이 오른쪽 아래로 작아져 계속 재생됩니다. 자막은 읽기 언어를 따릅니다.
읽기 언어2개 언어로 읽을 수 있음
이 글은 아직 한국어 번역이 없어 영어 원문으로 표시합니다.
요약

30초 요약

In this Real Numbers episode, Sawyer solves a marching-band probability problem with indicator variables, first for independent starting feet and then for an exactly balanced split. The episode closes with an open challenge to find the expected number of snowboards used over six lessons.

  1. 1Turn a count into indicatorsWrite the number of in-step rows as the sum of ten 0-or-1 variables.
  2. 2Independent startersEach row is in step with probability 1/8, giving an expected count of 5/4.
  3. 3Exactly balanced startersSampling without replacement gives a per-row probability of 51/481 and a total expectation of 510/481.
  4. 4Dependence does not break linearityThe rows affect one another, but their expected values still add.

핵심 정리

  1. An indicator variable has expected value equal to the probability of the event it indicates.
  2. The expected number of in-step rows is 5/4 when each player independently chooses a foot.
  3. With exactly 20 starters on each foot, the expected number of in-step rows is 510/481.
  4. Linearity of expectation applies even when indicator variables are dependent.
  5. The snowboard problem can be approached with one indicator per board.
전문

챕터별로 다듬은 전문 읽기

원본 자막만 보기
01

The snowboard question

Sawyer poses a new expected-value problem about six lessons and six boards. A board is sharpened if it was used at least once.

Welcome to Real Numbers, where we solve problems and discover mathematics along the way. This week’s question continues our exploration of expected value with a snowboarding instructor.

Rachel teaches a private lesson six days a week. Each day her student chooses one of her six snowboards uniformly at random. At the end of the week she sharpens every board used at least once. On average, how many boards does she need to sharpen?

02

Independent marching-band rows

Indicator variables and linearity of expectation yield an average of 1.25 in-step rows when each marcher independently chooses a starting foot.

Before tackling that problem, let us solve the previous episode’s marching-band question. Forty members are arranged in ten rows of four. Each independently starts with the left or right foot, each with probability one half. We want the expected number of rows in which everyone starts on the same foot.

Counting rows with indicator variables
슬라이드 1 / 2Counting rows with indicator variablesThe number of in-step rows is written as the sum of ten indicators.

Let X be the number of in-step rows, and let Xᵢ be 1 if row i is in step and 0 otherwise. Then X is the sum of the ten Xᵢ. Such 0-or-1 variables are called indicator variables, and they turn a complicated count into simpler pieces.

The expected value of an indicator is the probability that its condition holds: 0 times the probability of failure plus 1 times the probability of success. For the first row, there are two ways to be in step: all four start left or all four start right.

Each of those outcomes has probability (1/2)⁴ = 1/16, so the probability a row is in step is 1/8. Every row has the same expectation. By linearity of expectation, the total is ten times 1/8, or 5/4: an average of 1.25 good photo opportunities.

03

A fixed split and dependent rows

With exactly 20 starters on each foot, the expectation changes to approximately 1.06. Linearity remains valid even though the row indicators are dependent.

The bonus question changes the distribution: exactly 20 musicians start on each foot, and they are randomly arranged in rows. We can use the same indicators, but the probability that a row is in step changes.

Whichever foot the first player uses, 19 of the remaining 39 players use that foot. The probabilities for the next two positions are 18/38 and 17/37. Thus the chance that the first row is in step is (19/39)(18/38)(17/37) = 51/481, or about 0.106.

All ten rows have that same expectation, so linearity gives 510/481, approximately 1.06 in-step rows. The indicators are not independent: whether one row is in step subtly changes the chances for another.

A dependent-rows example
슬라이드 2 / 2A dependent-rows exampleIf the first nine indicators equal one, the balanced split forces the tenth row to be in step.

To see the dependence, suppose the first nine rows are all in step. Because there are exactly 20 starters on each foot, the four remaining musicians must all start on the same foot. The tenth row is then certainly in step, unlike its unconditional probability.

Linearity of expectation still applies even when the indicators are dependent, so we do not need to calculate all the interactions among rows. The expected count is lower than in the independent version: once three starters on a row use the same foot, fewer of that type remain to complete the row.

04

Return to snowboards

The episode closes by inviting viewers to apply the indicator-variable idea to the new question.

Now return to Rachel’s six lessons and six snowboards. Count the boards used at least once, perhaps by defining an indicator for each board. How many does she expect to sharpen?

같은 채널의 다른 글

슬라이드 6장15:33EN
JSJane Street· 2026년 10월 26일Figgie Strategy: Reading Hands, Winning Majorities and Pricing CardsBradley, Mike · Jane StreetJane Street traders Bradley and Mike analyze three games to show how private information, market competition and timing affect card prices.Decision MakingMathematicsFintech
1:48:29EN
JSJane Street· 2026년 10월 16일How AI Is Changing Programming: John Krazit and Ron MinskyRon Minsky, John Krazit · Jane StreetJane Street’s AI tooling lead and the Signals and Threads host examine agent infrastructure, security, code review and the changing experience of writing software.코딩 에이전트Developer productivity평가(Evals)+2
1:36:37EN
JSJane Street· 2026년 9월 23일Aaron Bauer on Teaching Software Engineering in the Age of AIRon Minsky, Aaron Bauer · Jane StreetHow learning goals, active practice and editor design shape engineering education when models can generate the code.AI in EducationSoftware engineeringEducation+2
슬라이드 9장1:05:45EN
JSJane Street· 2026년 9월 11일Cyrus Omar on Live Programming and a Computational Commons for Humans and AICyrus OmarA demonstration of Hazel shows how immediate feedback, structured collaboration and carefully scoped permissions could support people and AI agents working together.Programming LanguagesHuman-AI Collaboration개발 워크플로와 테스트+2
1:25:00EN
JSJane Street· 2026년 9월 2일Eric Mannes on Turning Messy External Data Into Trading ResearchRon, Eric Mannes · Jane StreetFrom commodity futures and an Excel risk system to point-in-time datasets and AI, Eric Mannes explains the domain knowledge behind data engineering at Jane Street.Data quality & curation개발 워크플로와 테스트Investing+2
슬라이드 7장1:16:29EN
JSJane Street· 2026년 8월 26일Grant Sanderson and Alok Puranik: Positional Encodings Through Group TheoryGrant Sanderson, Alok Puranik · 3Blue1BrownStarting with assumptions about attention, they derive matrix exponentials and connect rotations, decay and Jordan blocks to RoPE and ALiBi.Transformers & attentionMathematics머신러닝 기초+1