Just world hypothesis

The world is full of injustice, and those who profit by injustice are in a position to administer rewards and punishments. The rewards go to those who invent ingenious justifications for inequality, the punishments to those who try to remedy it.

The just world hypothesis, also known as the just world fallacy, is the idea that all actions have predictable and just consequences. The hypothesis implies (although sometimes only subconsciously) a belief in some sort of universal force that ensures moral balance in the world, in such a way that a person who exhibits good and moral behavior will eventually be rewarded, while evil and immoral actions will eventually be punished. It is both a concept in theology and considered to be a cognitive bias in psychology. It is summed up by the phrase "What goes around, comes around."

Religion
The just world hypothesis is commonly seen in theologies with some form of worldly reward system, such as in Prosperity Gospel beliefs. It is also present in Buddhism, Sikhism, and Hinduism in the form of karma. Gottfried Leibniz, attempting to solve the problem of evil, famously argued that since God is omniscient, omnipotent, and omnibenevolent, that this must be "the best of all possible worlds." Alvin Plantinga has argued that there is no "best of all possible worlds."

A statement of Jesus in is often cited in opposition to the idea that people who suffer "got what was coming to them":

[T]hose eighteen, upon whom the tower in Siloam fell, and slew them, think ye that they were sinners above all men that dwelt in Jerusalem? I tell you, Nay: but, except ye repent, ye shall all likewise perish.

Another biblical example that would go against this idea (in some way) is the story of Job, who had been struck by one misfortune after the other, losing everything in the process, from his wealth to his family. He was accused of being a monster who deserved all this; otherwise, God would not have caused him all this suffering. Little did any know that it was all part of a cosmic bet between the Abrahamic deity and Satan, all to prove that Job would remain faithful to God no matter what. In South Park Episode #506, "Cartmanland," Sheila and Gerald Brovlofski read this part of the Book of Job to Kyle Brovlofski, who was thoroughly disgusted by the thought of God raining misery on such a charitable and devout man just to prove a point to Satan.

Psychology
In psychology, the just world hypothesis also goes under the name of "system justification theory." Just world or system justification can be seen at work when people blame rape victims because their hemlines did not meet specification or define individuals who are poor as just lazy slobs, otherwise they would have pulled themselves up by their bootstraps already. Just world thinking is correlated with religiosity, conservative political orientation, and admiration for political leaders, but also altruism in some cases.

Some accounts associate two motivators underlying the "just world hypothesis." The first is the desire to believe that all the good things one has are attributable primarily or solely to one's self, hard work, and superior character and morality. The second is a refusal to accept that bad things can happen to one's self and one's loved ones due to circumstances beyond control.

Panglossianism
Leibniz's concept of the "best of all possible worlds" was parodied in Voltaire's Candide with the character of Dr. Pangloss. Thus, the term "Panglossianism" is often used synonymously with the just world hypothesis. However, it also carries the additional connotations of blind optimism or a conception of the world in which things are optimized for some purpose.

In evolutionary biology
Stephen Jay Gould and Richard Lewontin famously used the term "Panglossian" to refer to a style of adaptationist thought that overstated the power and prevalence of natural selection. They argued that what may appear evolutionary "design" may actually result from mechanisms other than natural selection or as a by-product of some other adaptation.

The faddish Gaia hypothesis promotes a teleological conception of evolution and the biosphere, seeing nature as a self-equilibrating system that optimizes the planet for life.

The notion of teleology and progress in evolutionary theory is related to the conflation of cultural evolution with biological evolution. The two were linked — as in the work of Jean-Baptiste Lamarck (1744-1829) — until Charles Darwin disputed the connection.

In economics and political theory
There is a noticeable strain of Panglossianism in laissez-faire economic theory. The notion that people pursuing their own rational self-interest will create an optimal society is a common one in this ideology. As Frederic Bastiat wrote, "All men's impulses, when motivated by legitimate self-interest, fall into a harmonious social pattern." This ties into the idea of markets as systems that tend toward equilibrium, full employment, and optimal allocation of capital and resources. Any "interference" in the market is considered a "distortion" of this self-correcting system. An extreme example of this is the Austrian school of economics. Adam Smith's concept of the "invisible hand" is often invoked as the optimizing mechanism of the market, though this is a misrepresentation of Smith's own views.

As above, economic Panglossianism is often tied into the notion of progress and evolution. It also tends to come packaged with Social Darwinist ideologies — Herbert Spencer was a well-known popularizer of said ideas. In more recent times, the ideology of techno-optimism, or "Cornucopianism", has adopted the Panglossian view. Matt Ridley, for one, has advocated this viewpoint in The Rational Optimist.

It is also associated with biological determinism, where the existing class and social structure is justified by appeals to the "innate" inferiority of the lower classes, other races, women or homosexuality. This is exemplified, for example, in the works of eugenicists such as Francis Galton.