Suppose $x_1,\ldots,x_n$ were chosen (independently) following a Bernoulli distribution with probability $p$. Also suppose that, actually $\geq k$ of them were true, so that we could choose some set $A\subseteq [n]$ of cardinality $k$ which $x_i=1$ for all $i\in A$. If we choose some random $x_i$ which $i\notin A$, what would be its distribution? In other words, what would be the probability of such $x_i$ being true?
Edit:
I add an example instance when $n=3$, $p=0.3$ and $k=1$. The calculation below follows the solution which I believe is correct.
There are seven possibilities where $(x_1,x_2,x_3)$ contain at least one $1$:
- $(0,0,1),0.147\times\frac{1}{1-0.343}$
- $(0,1,0),0.147\times\frac{1}{1-0.343}$
- $(1,0,0),0.147\times\frac{1}{1-0.343}$
- $(0,1,1),0.063\times\frac{1}{1-0.343}$
- $(1,0,1),0.063\times\frac{1}{1-0.343}$
- $(1,1,0),0.063\times\frac{1}{1-0.343}$
- $(1,1,1),0.027\times\frac{1}{1-0.343}$
From each cases we can choose some set $A$ of indices of size $k=1$, which by symmetry won't matter much how we choose it. So the desired probability is
$$\frac{1}{1-0.343}\times(0.147\times 3\times0+0.063\times3\times0.5+0.027\times1\times1)=\frac{1}{1-0.343}\times0.1215$$