You have perhaps already seen it, but /u/TheLionHearted offered a response to a previous question on the origins of wizard hats, which they assume "are interchangeable terms for the same artifact based off of wearer gender". There's always more to be said on the subject of course.