Two groups (for example two countries) report an event count and a case count in each of strata (for example age bands). Implement simpson_check(events, cases) where both inputs are arrays of shape (2, S) with positive case counts, and return a dict with:
"rates": the per-stratum rates = events / cases, shape (2, S)."mix": the stratum mix of each group (cases normalized within each row), shape (2, S)."aggregate": each group's overall rate (total events / total cases), shape (2,)."standardized": each group's rates averaged with a common stratum mix, the pooled mix of both groups' cases ( cases / total cases), shape (2,)."reversal": True if group 0's rate is strictly below group 1's in every stratum while its aggregate rate is strictly above group 1's, or the same with both inequalities flipped; otherwise False.Return the arrays as numpy float arrays and "reversal" as a Python bool.