#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck:cracked.guide::TAOCP Vol 4B::Mathematical Preliminaries Redux
#columns:Front	Back	Tags
TAOCP Mathematical Preliminaries Redux: what does it cover?	An unnumbered probability tutorial that opens the volume (cited as MPR). It reviews probability spaces, k-wise independence and conditional probability, then makes conditional expectation E(X|Y) precise as a random variable. Next come inequalities: Markov, Chebyshev, Jensen, the first and second moment principles, Ross's conditional expectation inequality and the FKG inequality. Then martingales (Pólya's urn, optional stopping, Kolmogorov's maximal inequality, the Hoeffding-Azuma tail bound), Doob martingales and the method of bounded differences, applied to a hashing example. It ends with 'almost sure' versus 'quite sure' (superpolynomially unlikely to fail) statements.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::about
TAOCP: Mathematical Preliminaries Redux: why does it matter?	Tail bounds are how you reason about randomized algorithms, load balancing and hashing guarantees. This is advanced but very useful math.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::why
TAOCP: Mathematical Preliminaries Redux, a common trap: “Reading E(X|Y) as a number.” What's the catch?	In MPR it is a random variable, a function of Y; that is what makes E X = E(E(X|Y)) work.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::trap
TAOCP: Mathematical Preliminaries Redux, a common trap: “Treating pairwise independence as full independence.” What's the catch?	Exercise 6 builds a counterexample.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::trap
TAOCP: Mathematical Preliminaries Redux: what traps should you watch for?	<ul><li>Applying an inequality whose conditions (independence, bounded differences) do not hold.</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::traps
TAOCP: Mathematical Preliminaries Redux, exercise 13 (rated 15): what is it asking?	Decide whether 'B makes A likelier, and C makes B likelier' means C makes A likelier. It doesn't always, and that surprises people.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercise
TAOCP: Mathematical Preliminaries Redux, exercise 17 (rated 15, recommended): what is it asking?	A conditional probability in the playing-card example. A warm-up for the notation.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercise
TAOCP: Mathematical Preliminaries Redux, exercise 6 (rated M22, recommended): what is it asking?	Build random bit vectors that are pairwise independent but not 3-wise independent.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercise
TAOCP: Mathematical Preliminaries Redux, exercise 22 (rated M20, recommended): what is it asking?	Derive the union bound from the indicator-variable identity for expectations.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercise
TAOCP: Mathematical Preliminaries Redux, exercise 35 (rated M22, recommended): what is it asking?	Two true-or-false identities about nested conditional expectations. Tests whether you understand E(X|Y) as a random variable.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercise
TAOCP: Mathematical Preliminaries Redux, exercise 48 (rated M20, recommended): what is it asking?	Show that the second moment principle gives a one-sided bound slightly better than Chebyshev's.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercise
TAOCP: Mathematical Preliminaries Redux, exercise 54 (rated M22, recommended): what is it asking?	Bound the probability that a random graph has a triangle, using the first and second moment principles.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercise
TAOCP: Mathematical Preliminaries Redux, exercise 66 (rated M22, recommended): what is it asking?	Classify every martingale whose nth value is always plus or minus n.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercise
TAOCP: Mathematical Preliminaries Redux: how many exercises, and how are they rated?	147 exercises, rated 10 to HM34.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::exercises
TAOCP: Mathematical Preliminaries Redux: what should you be comfortable with first?	<ul><li>1.2 Mathematical Preliminaries</li><li>Probability: expectation, variance</li></ul>	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::prereqs
TAOCP: Mathematical Preliminaries Redux: how should you work through it?	Make a one-page sheet of each inequality with a tiny example. Simulate one in code (e.g. flips of a coin) and compare the actual tail to the bound.	cracked.guide cracked.guide::phase::taocp-4b cracked.guide::section::mathematical_preliminaries_redux cracked.guide::kind::approach
