What leads you to believe that? All you've done is display a link between "countries with fewer rights for women" and "women in STEM/CS". This would lead a rational person to believe that when women have more options they exercise them (like in the west). When they have fewer options they are stuck with STEM/CS.
First, not all listed countries induce restrictions on women.
One doesn't. The others do. You've simply displayed a link between lack of womens rights and their propensity for CS. Well Done!
Second, the restrictions do not apply in education.
There's no restrictions in the west either.
Albeit in Iran Theology is off limits in Iran, they can study almost everything if they want to.
Just like the west.
And you know for sure that this does not happen in those countries you listed? As far as I know of those cultures, they treat women much much more different than they do men, including toys and such.
Yes they do, however, in another different than ours.
Their young girls have fewer choices than western young girls. Western girls have many more choices, and are *encouraged* from birth to believe that they can do anything they want to, so they go ahead and do whatever they want to. "Follow your heart" is a western expression for kids, not a middle eastern one.
anyway, to change the reputation of STEM topics (without Biology and Pharmacy which are already a women dominated fields) in the public and show our daughters that STEM can be fun for them.
My point still stands: When young girls (like in the west) are told they can do whatever they want to they avoid CS like the plague. When they are not given a choice they can be found in CS. Did your Iranian friends forget to tell you that they didn't get to choose their major; that their parents did? Or is that a fact you conveniently "forgot"?
FWIW, I'm from a culture closely related to the eastern and middle-eastern ones, and the way it normally goes is that the parents choose on their childs behalf, for everything from spouse to college major. Next time you meet with your friends ask them about it - I very much doubt a culture with arranged marriages does not have parents arranging the majors too.