$\DeclareMathOperator\rk{rk}$ Let $G$ be a finite metabelian $p$-group, i.e. the commutator subgroup $G'$ of $G$ is abelian. Then I ask myself under which conditions does the following hold:
$$\tag{$*$} \rk(G' \cap Z(G)) \le \rk(G/G')$$
where $Z(G)$ is the centre of $G$. I have constructed examples where $(*)$ does not hold, but in most cases it does hold. Do you know of any results in the literature? How high would you guess the percentage of $p$-groups satisfying $(**)$ in a numerical analysis?
Thanks a lot.