The “war on women” political slogan is in fact a war against common sense.

It is a statistical fraud when Barack Obama and other politicians say that women earn only 77 percent of what men earn — and that this is because of discrimination.

It would certainly be discrimination if women were doing the same work as men, for the same number of hours, with the same amount of training and experience, as well as other things being the same. But study after study, over the past several decades, has shown repeatedly that those things are not the same.

Constantly repeating the “77 percent” statistic does not make them the same. It simply takes advantage of many people’s ignorance — something that Barack Obama has been very good at doing on many other issues.

What if you compare women and men who are the same on all the relevant characteristics?

First of all, you can seldom do that, because the statistics you would need are not always available for the whole range of occupations and the whole range of differences between women’s patterns and men’s patterns in the labor market.

Even where relevant statistics are available, careful judgment is required to pick samples of women and men who are truly comparable.

For example, some women are mothers and some men are fathers. But does the fact that they are both parents make them comparable in the labor market? Actually the biggest disparity in incomes is between fathers and mothers. Nor is there anything mysterious about this, when you stop and think about it.

How surprising is it that women with children do not earn as much as women who do not have children? If you don’t think children take up a mother’s time, you just haven’t raised any children.

How surprising is it that men with children earn more than men without children, just the opposite of the situation with women? Is it surprising that a man who has more mouths to feed is more likely to work longer hours? Or take on harder or more dangerous jobs, in order to earn more money?

More than 90 percent of the people who are killed on the job are men. There is no point pretending that there are no differences between what women do and what men do in the workplace, or that these differences don’t affect income.

Even when you compare women and men with the “same” education, as measured by college or university degrees, the women usually specialize in a very different mix of subjects, with very different income-earning potential.

Although comparing women and men who are in fact comparable is not easy to do, when you look at women and men who are similar on multiple factors, the sex differential in pay shrinks drastically and gets close to the vanishing point. In some categories, women earn more than men with the same range of characteristics.

If the 77 percent statistic was for real, employers would be paying 30 percent more than they had to, every time they hired a man to do a job that a woman could do just as well. Would employers be such fools with their own money? If you think employers don’t care about paying 30 percent more than they have to, just go ask your boss for a 30 percent raise!