I want to give an approximation of $\pi$ in this way: I inscribe a circle in a square then I throw darts at random on the square from far away. If the darts falling on the square are $n$ and the darts falling on the circle are $m<n$ I approximate $\pi$ with $4 \frac{m}{n}$.
Suppose I want an approximation such that $|4\frac{m}{n}-\pi|<0,0001$.
How can I quantify how many shots I have to do at least (before doing the experiment)?
I know that the strong law of large numbers tells me that $P(\lim_{n\to\infty} 4\frac{m}{n}=\pi)=1$, but I can't do an infinite number of shots so I try with the weak law: $\lim_{n\to\infty}P(|4\frac{m}{n}-\pi|<0,0001)=1$. Again, this seems to be unhelpful to my cause.
Maybe I could take the compromise that I want an approximation such that $|4\frac{m}{n}-\pi|<0,0001$ with a probability greater than $0,95$, but even if I succeed in this goal, nothing assures me that in $5\%$ of cases, the approximation obtained is such that $|4\frac{m}{n}-\pi|>3$.
What your approach to this problem would be?
I guess the dart shots are independent. Then, every dart falls within the circle with probability $\frac{\pi}{4}$.
The probability that the random variable $m$ takes value $k$ after $n$ shots is $P(m(n) = k) = \binom{n}{k} (\frac{\pi}{4})^k (1 - \frac{\pi}{4})^{n-k}$.
Now the probability that $4 \frac{m}{n} \leq \pi + \varepsilon$ is the same as the probability that $m \leq \lfloor \frac{n(\pi + \varepsilon)}{4} \rfloor$. Symmetrically, the probability that $4 \frac{m}{n} \geq \pi - \varepsilon$ is the same as the probability that $m \geq \lceil \frac{n(\pi - \varepsilon)}{4} \rceil$. Thus, the probability to have $|4\frac{m}{n} - \pi| \leq \varepsilon$ is given by:
$Q(n) = P(|4\frac{m}{n} - \pi|) = \sum_{k = \lceil \frac{n(\pi - \varepsilon)}{4} \rceil}^{\lfloor \frac{n(\pi + \varepsilon)}{4} \rfloor} \binom{n}{k} (\frac{\pi}{4})^k (1 - \frac{\pi}{4})^{n-k}$.
You cannot be sure to obtain the desired precision after $n$ shots, but you can always compute $n$ so that $Q(n) \geq 1-\eta$ for any $\eta$ you deem acceptable. This will give you an estimate of $n$.