Let a function $f$ to be $x\in \left[a,b\right],\:0\le f\left(x\right)\le c$.
We want to calculate the approximation of the definite integral of the function in the range $[a,b]$, we can suppose that the exact integral is very difficult to calculate in this range, but we can for all $x$ calculate $f(x)$ easily.
We can sample a lot of points randomly $\left\{X_i,Y_i\right\}\:_{i=1}^N$ from the rectangle in the range: $x\in[a,b], y\in[0,c]$.
- First of all, we need to find a way to calculate approximately the integral in the range $[a,b]$
My way:
I succeeded to calculate and this will be $s'$. ($s$ - the original integral, $s'$ - the approximate integral)
$s = \int _a^b\:f\left(x\right)dx$
$s'=c\left(b-a\right)\cdot \frac{1}{n}\sum _{j=1}^n\:I_j$
We need to calculate with $a,b,c,s,\epsilon,\delta$ how many points we need to sample for: $p(|s'-s|>\epsilon)<\delta$ and we need also to be helped by Chebyshev's inequality, but I have no idea how to go on with it.