Females influence the gender of their offspring so they inherit either their mother’s or grandfather’s qualities. “High-quality” females — those which produce more offspring — are more likely to have daughters. Weaker females, whose own fathers were stronger and more successful, produce more sons.