Anki Deck Changes

Commit: 4ff701c1 - add expected value card and switch deck

Author: obrhubr <obrhubr+noreply@noreply.com>

Date: 2026-03-29T16:06:50+02:00

Changes: 1 note(s) changed (1 added, 0 modified, 0 deleted)

Note 1: ETH::2. Semester::A&W

Deck: ETH::2. Semester::A&W
Note Type: Horvath Classic
GUID: bn:Zftw53>
added

Previous

Note did not exist

New Note

Front

ETH::2._Semester::A&W::2._Wahrscheinlichkeitstheorie_und_randomisierte_Algorithmen::4._Zufallsvariablen::2._Erwartungswert
Let \(X\) = number of flips until first heads with \(\Pr[\text{heads}] = p\). What method do we use in a memoryless problem like this?

Back

ETH::2._Semester::A&W::2._Wahrscheinlichkeitstheorie_und_randomisierte_Algorithmen::4._Zufallsvariablen::2._Erwartungswert
Let \(X\) = number of flips until first heads with \(\Pr[\text{heads}] = p\). What method do we use in a memoryless problem like this?

Define \(K_1\) = "first flip is heads." Apply total expectation conditioned on \(K_1\): - 
  • \(\mathbb{E}[X \mid K_1] = 1\) (done immediately) 
  • \(\mathbb{E}[X \mid \bar{K}_1] = 1 + \mathbb{E}[X]\) (memoryless: after tails, the process restarts identically, plus the one spent flip) 
Plugging into \(\mathbb{E}[X] = 1 \cdot p + (1 + \mathbb{E}[X])(1-p)\) and solving yields \(\mathbb{E}[X] = 1/p\). Avoids computing \(\sum k \cdot (1-p)^{k-1} p\) directly.
Field-by-field Comparison
Field Before After
Front Let \(X\) = number of flips until first heads with \(\Pr[\text{heads}] = p\). What method do we use in a&nbsp;<i>memoryless</i>&nbsp;problem like this?
Back Define&nbsp;\(K_1\)&nbsp;= "first flip is heads." Apply total expectation conditioned on&nbsp;\(K_1\): -&nbsp;<br><ul><li>\(\mathbb{E}[X \mid K_1] = 1\)&nbsp;(done immediately)&nbsp;</li><li>\(\mathbb{E}[X \mid \bar{K}_1] = 1 + \mathbb{E}[X]\)&nbsp;(memoryless: after tails, the process restarts identically, plus the one spent flip)&nbsp;</li></ul>Plugging into&nbsp;\(\mathbb{E}[X] = 1 \cdot p + (1 + \mathbb{E}[X])(1-p)\)&nbsp;and solving yields&nbsp;\(\mathbb{E}[X] = 1/p\). Avoids computing&nbsp;\(\sum k \cdot (1-p)^{k-1} p\)&nbsp;directly.
Tags: ETH::2._Semester::A&W::2._Wahrscheinlichkeitstheorie_und_randomisierte_Algorithmen::4._Zufallsvariablen::2._Erwartungswert
↑ Top