CSCI 328 - Formulas & Identities Cheatsheet
This cheatsheet captures all major formulas and identities from the course, organized by topic for quick reference during problem-solving and exam preparation.
PART I: BASIC PROBABILITY & EXPECTATION
Section titled “PART I: BASIC PROBABILITY & EXPECTATION”Complement Rule
Section titled “Complement Rule”Independence of Events
Section titled “Independence of Events”Two events and are independent if:
Linearity of Expectation
Section titled “Linearity of Expectation”For any random variables (with or without independence):
Union Bound
Section titled “Union Bound”PART II: RANDOM VARIABLES & DISTRIBUTIONS
Section titled “PART II: RANDOM VARIABLES & DISTRIBUTIONS”Indicator Random Variable
Section titled “Indicator Random Variable”For an event :
Bernoulli Distribution
Section titled “Bernoulli Distribution”:
Binomial Distribution
Section titled “Binomial Distribution”(sum of independent Bernoulli trials):
Geometric Distribution
Section titled “Geometric Distribution”(number of trials until first success):
Coupon Collector Problem
Section titled “Coupon Collector Problem”Expected number of items needed to collect all distinct types (with uniform sampling):
where is the -th harmonic number.
PART III: VARIANCE & COVARIANCE
Section titled “PART III: VARIANCE & COVARIANCE”Variance Formula
Section titled “Variance Formula”Variance of Sum (Independent Variables)
Section titled “Variance of Sum (Independent Variables)”If are independent:
Standard Deviation
Section titled “Standard Deviation”PART IV: CONCENTRATION INEQUALITIES
Section titled “PART IV: CONCENTRATION INEQUALITIES”Markov’s Inequality
Section titled “Markov’s Inequality”For any non-negative random variable and :
Intuition: Probability of extreme deviation is bounded by expected value ratio.
Chebyshev’s Inequality
Section titled “Chebyshev’s Inequality”For any random variable and :
Alternatively:
Intuition: Values far from the mean are unlikely if variance is small.
Chernoff Bounds
Section titled “Chernoff Bounds”For where are independent Bernoulli random variables, and :
(1) General Form — For any :
(2) Simplified Form — For :
(3) For Large Deviations — For :
Intuition: Exponential bounds for sums of independent Bernoulli variables.
PART VI: BIRTHDAY PARADOX & COLLISION PROBABILITY
Section titled “PART VI: BIRTHDAY PARADOX & COLLISION PROBABILITY”Exact Collision Probability
Section titled “Exact Collision Probability”Probability that balls thrown into bins have no collisions:
This can be written as:
Approximate Collision Probability (for )
Section titled “Approximate Collision Probability (for m2≪nm^2 \ll nm2≪n)”Birthday Paradox (specific case: , )
Section titled “Birthday Paradox (specific case: n=365n = 365n=365, m=23m = 23m=23)”Probability that 23 people have a shared birthday exceeds 50%.
PART VII: BALLS AND BINS
Section titled “PART VII: BALLS AND BINS”Probability a Bin Remains Empty
Section titled “Probability a Bin Remains Empty”When balls are thrown into bins:
Expected Number of Empty Bins
Section titled “Expected Number of Empty Bins”Expected Maximum Load
Section titled “Expected Maximum Load”When balls are thrown into bins: