Assume we repeatedly conduct $n$ Bernoulli trials in parallel, each with probability $p$ of success. We repeat this until we have at least $L$ successes. I am looking for the expected number of repetitions. For example, consider we throw $n$ coins in parallel, keeping a sum of all heads that showed up in total so far. Until this sum exceeds our threshold $L$, we repeat to throw $n$ coins in parallel, update our total and then stop once the total is higher than $L$. What is the expected number of repetitions?
The approach from this answer does not seem to be directly applicable here, since in the answer we stop after we reached $L$ successes and repeat the Bernoulli trials sequentially. While in the question posed here, we conduct $n$ parallel trials sequentially.
EDIT
Find below a python script that simulates the above experiment a 1000 times and returns the average number of repetitions needed. It also compares it to the formula mentioned in the comments, which seems to be close, but not exactly matching:
from scipy.stats import bernoulli
import numpy as np
import tqdm
n = 1024
p = 0.05
L = 6000
def run_experiment_once():
count = 0
tries = 0
while count < L:
r = bernoulli.rvs(p, size=n)
count += np.sum(r)
tries += 1
return tries
def run_experiment():
res = []
for i in tqdm.tqdm(range(1000)):
res.append(run_experiment_once())
return np.mean(res)
sim = run_experiment()
q = 1-p
formula_res = L/(n*(p/q))
print("Simulation", sim)
print("formula_res", formula_res)