If you assume a constant rate of harassment (say 5% of men harass women per year) then a woman who works alongside 20 men and 5 women (a common ratio in tech) will get harassed more than a woman who works with 12 women and 13 men (a more typical non tech ratio).
And in truth I wouldn’t be surprised if as women get more outnumbered the frequency of harassment tends to go up.
I'm not sure that's a statement I'd make. I don't think I know enough to say that.
It's tempting to let myself get nerd-sniped into a longer, less productive discussion comparing different fields and pontificating on different possible causes, but then I'd be making the same mistake as so many other people here.
What we really need in these conversations is fewer people like James DaMore writing dissertations on the subject and more people saying, "hey guys, stop being dumb ass holes."
This is a problem that is better resolved by calling out socially repugnant behavior rather than dissecting it.