In welfare economics and social choice theory, a social welfare function (SWF) is a function that aggregates the preferences of individual members of society into a single "collective" preference. It can be viewed as mathematically formalizing Rousseau's idea of a general will. Some authors maintain a distinction between three closely related concepts:
A social choice function (SCF) selects a single best outcome (a single candidate who wins, or multiple candidates if there is a tie). A social ordering function (SOF) lists the candidates from best to worst. A social scoring function (SSF) maps the candidates to a number representing their quality. For example, the standard social scoring function for first-preference plurality is the total number of voters who rank a candidate first. SWFs are studied by economists as a way to identify socially optimal decisions, giving a procedure to rigorously define which of two outcomes should be considered better for society as a whole (e.g., to compare two different possible income distributions). They are also used by democratic governments to choose between several options in elections, based on the preferences of voters; in this context, a SCF is typically referred to as an electoral system. The notion of social utility is analogous to the notion of a utility function in consumer choice. However, a SWF is different in that it is a mapping of individual utility functions onto a single output, in a way that accounts for the judgments of everyone in a society. Social utility function can vary depending on administrative division of society, such as federalism, separatism, or regional integration. There are two different notions of social welfare used by economists:
Ordinal (or ranked voting) functions only use ordinal information; i.e., whether one choice is better than another. Cardinal (or rated voting) functions also use cardinal information; i.e., how much better one choice is compared to another. Arrow's impossibility theorem is a key result of social welfare functions, showing an important difference between social and consumer choice: whereas it is possible to construct a rational (non-self-contradictory) decision procedure for consumers based only on ordinal preferences, it is impossible to do the same in the social choice setting, making any such ordinal decision procedure a second-best.
Terminology and equivalence Every social ordering can be made into a choice function by considering only the highest-ranked outcome. Less obviously, though, every social choice function is also an ordering function. Deleting the best outcome, then finding the new winner, results in a runner-up who is assigned second place. Repeating this process gives a full ranking of all candidates. Because of this close relationship, the three kinds of functions are often conflated by abuse of terminology.
Example Consider an instant-runoff election between Top, Center, and Bottom. Top has the most first-preference votes; Bottom has the second-most; and Center (positioned between the two) has the fewest first preferences.
Under instant-runoff voting, Top is the winner. Center is eliminated in the first round, and their second-preferences are evenly split between Top and Bottom, allowing Top to win. To find the second-place finisher, we find the winner if Top had not run. In this case, the election is between Center and Bottom.
(Note that the finishing order is not the same as the elimination order for sequential elimination methods: despite being eliminated first, Center is the runner-up in this election.)
Ordinal welfare In a 1938 article, Abram Bergson introduced the term social welfare function, with the intention "to state in precise form the value judgments required for the derivation of the conditions of maximum economic welfare." The function was real-valued and differentiable. It was specified to describe the society as a whole. Arguments of the function included the quantities of different commodities produced and consumed and of resources used in producing different commodities, including labor. Necessary general conditions are that at the maximum value of the function:
… excerpt ends here. Continue reading the full article.

