You are given a (perhaps biased) coin with probability for heads $p$ for some unknown $p$. Construct a random experiment such that with probability at least $0.99$ you can determine the value of $p$ with an error of at most $\frac{1}{1000}$.
I guess some ingenuity and perhaps the use of a well-known inequality could work, but I really have no idea from where to start. Any help appreciated!
You can use Chebyshev's inequality. Toss the coin independently $n$ times. Let $S_n$ be the total number of heads. Then $$ \mathbb P\left(\Bigl|\frac{S_n}{n}-p\,\Bigr|\leq \frac{1}{1000}\right)\geq 1-\frac{\text{Var}(S_n/n)}{\frac{1}{1000^2}} =1- \frac{1000^2 p(1-p)}{n} $$ For any $0<p<1$, the following inequality is valid: $p(1-p)\leq \frac14$. Therefore right-hand side of Chebyshev's inequality is $$ 1- \frac{1000^2 p(1-p)}{n} \geq 1- \frac{1000^2}{4n} $$ Equate it to $0.99$ and find $n=25\,000\,000$. This is a very huge number of tosses since Chebyshev's inequality is very rough and the requested error $0.001$ is very small.
If you will use central limit theorem instead, you will find a smaller value of $n$: $$ \mathbb P\left(\Bigl|\frac{S_n}{n}-p\,\Bigr|\leq 0.001\right)\approx 1-2\Phi\left(-\frac{0.001\sqrt{n}}{\sqrt{p(1-p)}}\right)\geq 1-2\Phi(-0.002\sqrt{n})=0.99 $$ gives $n=1\,658\,725$.