Prev: spectral-techniques Next: markov-chains
How does one sample
Resrvoir sampling works like this:
With a number
At any time
Theorem 2.1 (Markov’s Inequality): For a real-valued
random variable X s.t.
Basically, if we know the expectation of a distribution of numbers, and that is non-negative, Markov’s inequality can tell us a basic fact about the distribution.
For example, the probability that a student’s GPA is more than twice
the average GPA is at most
Theorem 2.2 (Chebyshev’s Inequality): For a
real-valued random variable X, and any
This is useful for:
Example 2.3: How many people must we poll to
estimate the percentage of people who support candidate C, where an
accuracy of
In order to estimate the expectation of a 0/1 random variable to
error
This can be used to prove “central limit” style exponential bounds on tail probabilities, like how flipping fewer than 400 heads in 1000 tosses of a fair coin is miniscule.
Prev: spectral-techniques Next: markov-chains