Let
$\Omega _1, \ldots , \Omega _m$ be probability spaces, let
${\mathbf \Omega }=\Omega _1 \times \cdots \times \Omega _m$ be their product and let
$A_1, \ldots , A_n \subset {\mathbf \Omega }$ be events. Suppose that each event
$A_i$ depends on
$r_i$ coordinates of a point
$x \in {\mathbf \Omega }$,
$x=\left (\xi _1, \ldots , \xi _m\right )$, and that for each event
$A_i$ there are
$\Delta _i$ other events
$A_j$ that depend on some of the coordinates that
$A_i$ depends on. Let
$\Delta =\max \{5,\ \Delta _i\,:\, i=1, \ldots , n\}$ and let
$\mu _i=\min \{r_i,\ \Delta _i+1\}$ for
$i=1, \ldots , n$. We prove that if
${\mathbb P}(A_i) \lt (3\Delta )^{-3\mu _i}$ for all
$i$, then for any
$0 \lt \epsilon \lt 1$, the probability
${\mathbb P}\left ( \bigcap _{i=1}^n \overline {A}_i\right )$ of the intersection of the complements of all
$A_i$ can be computed within relative error
$\epsilon$ in polynomial time from the probabilities
${\mathbb P}\left (A_{i_1} \cap \ldots \cap A_{i_k}\right )$ of
$k$-wise intersections of the events
$A_i$ for
$k = e^{O(\Delta )} \ln (n/\epsilon )$.