The hormonal imbalance in PCOS, particularly elevated levels of androgens and insulin resistance, plays a significant role in the histological changes observed. Elevated androgens can lead to anovulation and the persistence of immature follicles. Insulin resistance can exacerbate hyperinsulinemia, which further stimulates androgen production by the theca cells.