I have a question about the oft-heard suggestion that a Bonferroni correction is appropriate in the context of posing multiple independent hypotheses and inappropriate elsewhere, in contrast to statements like:
One of the most widespread of these misunderstandings is that the method would be based on an assumption of independence between p-values. This misunderstanding comes from a frequently used, but deficient motivation for Bonferroni, saying that the probability of making a false rejection if all $m_0$ p-values of true hypotheses are independent, and we perform each test at level... By this reasoning, Bonferroni seems like a method that only provides approximate FWER control and that requires an assumption of independence for its validity. In fact, the method of Bonferroni provides exact FWER control under any dependence structure of the p-values.
To explore this question numerically, I wrote a small R script where I simulated multivariate normal data according to some correlation matrix (sampled from a flat LKJ), estimated sample correlations among that data, and computed the corresponding p-values. I then estimated regression coefficients between these samples $x$ and independently generated data (i.e. from $y = a + 0 \cdot x + e$), and then computed the corresponding p-values. After Bonferroni correction, the FWER for both was at the desired value, $\alpha$. This should also apply if the correlation structure / non-independence were in $y$, given the symmetry between $y \sim x$ and $x \ sim y$.
So is this whole 'non-independence between tests' thing actually a thing w/ the Bonferroni? I'm aware there are other motivations for disfavoring the correction, e.g. it only bounding the FWER from above, and with sufficiently many tests over finite data you get ever higher false-negative rates as the significance threshold goes to 0. If the dependence structure between tests is irrelevant to Bonferroni correction, where did this advised requirement of "multiple independent hypotheses" come from?
(sorry if this question is ill-posed -- maybe I'm misunderstanding the term 'independence' here. I usually just fit hierarchical models, cite Gelman, Hill, & Yajima '12, and call it a day, but am working more in a NHST world lately and am trying to wrap my head around different multiple comparisons strategies)