[This article was first published on R – Statistical Odds & Ends, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
What is the Atkinson index?
The Atkinson index, introduced by Atkinson (1970) (Reference 1), is a measure of inequality used in economics. Given a population with values and an inequality-aversion parameter , the Atkinson index is defined as
While the index is defined for all , we restrict to be . (Some of the properties in the next section would not hold otherwise.)
Properties of the Atkinson index
The Atkinson index has a number of nice properties:
The index lies between 0 and 1, and is equal to 0 if and only if . Smaller values of the index indicate lower levels of inequality.
It satisfies the population replication axiom: If we replicate the population any number of times, the index remains the same.
It satisfies homogeneity: If we multiply by some positive constant , the index remains the same.
It satisfies the principle of transfers: If we transfer
It has only one parameter, , which represents the decision maker’s aversion to inequality. (See Section 2.3 of Reference 3 for one method of eliciting .)
It is computationally scalable: the sums in the numerator and denominator are amenable to the map-reduce paradigm, and so the index can be computed in a distributed fashion.
Some intuition for the Atkinson index
In R, the Atkinson function in the DescTools package implements the Atkinson index. It is so simple that I can reproduce the whole function here (most of the function is dedicated to checking for NA values):
function (x, n = rep(1, length(x)), parameter = 0.5, na.rm = FALSE)
{
x <- rep(x, n)
if (na.rm)
x <- na.omit(x)
if (any(is.na(x)) || any(x < 0))
return(NA_real_)
if (is.null(parameter))
parameter <- 0.5
if (parameter == 1)
A <- 1 - (exp(mean(log(x)))/mean(x))
else {
x <- (x/mean(x))^(1 - parameter)
A <- 1 - mean(x)^(1/(1 - parameter))
}
A
}
To get some intuition for the Atkinson index, let’s look at the index for a population consisting of just 2 people. By homogeneity, we can assume that the first person has value 1; we will denote the second person’s value by x. We plot the Atkinson index for and , with ranging from to :
library(DescTools)
x <- 10^(-40:40 / 10)
eps <- 1
atkinsonIndex <- sapply(x,
function(x) Atkinson(c(1, x), parameter = eps))
# log10 x axis
par(mfrow = c(1, 2))
plot(x, atkinsonIndex, type = "l", log = "x",
ylab = "Atkinson index for (1, x)",
main = "Atkinson index, eps = 1 (log x-axis)")
# regular x axis
plot(x, atkinsonIndex, type = "l", xlim = c(0, 1000),
ylab = "Atkinson index for (1, x)",
main = "Atkinson index, eps = 1 (linear x-axis)")
The two plots show the same curve, with the only difference being the x-axis (log scale on the left, linear scale on the right). The curve is symmetric around when the x-axis is on the log scale. We expect this since, by homogeneity, the index for is the same as the index for .
Next, we look at the Atkinson index for for a range of values for the parameter:
x <- 10^(0:40 / 10)
epsList <- 10^(-2:2 / 4)
plot(c(1, 10^4), c(0, 1), log = "x", type = "n",
xlab = "x", ylab = "Atkinson index for (1, x)",
main = "Atkinson index for various epsilon")
for (i in seq_along(epsList)) {
atkinsonIndex <- sapply(x,
function(x) Atkinson(c(1, x), parameter = epsList[i]))
lines(x, atkinsonIndex, col = i, lty = i, lwd = 2)
}
legend("topleft", legend = sprintf("%.2f", epsList),
col = seq_along(epsList), lty = seq_along(epsList), lwd = 2)
The larger is, the more “inequality-averse” we are. For fixed , the Atkinson index for increases as increases.
Finally, let’s look at what values the Atkinson index might take for samples taken from different distributions. In each of the panels below, we take 100 samples, each of size 1000. The samples are drawn from a log-t distribution with a given degrees of freedom (that is, the log of the values follows a t distribution). For each of these 100 samples, we compute the Atkinson index (with the default ), then make a histogram of the 100 index values. (The t distribution with is basically indistinguishable from the standard normal distribution.)
nsim <- 100
n <- 1000
dfList <- c(50, 10, 5, 3)
png("various-t-df.png", width = 900, height = 700, res = 120)
par(mfrow = c(2, 2))
set.seed(1)
for (dfVal in dfList) {
atkinsonIndices <- replicate(nsim, Atkinson(exp(rt(n, df = dfVal))))
hist(atkinsonIndices, xlim = c(0, 1),
xlab = "Atkinson Index",
main = paste("Histogram of Atkinson indices, df =", dfVal))
}
dev.off()
Abstract: We follow up on last weeks post on using Gapminder data to study the world's income distribution. In order to assess the inequality of the distribution we compute the Gini coefficient for the world's income distribution by Monte Carlo approximation and visualize the result as a time series. Furthermore,…
In the course on inequality measure, we've seen how to compute various (standard) inequality indices, based on some sample of incomes (that can be binned, in various categories). On Thursday, we discussed the fact that incomes can be related to different variables (e.g. experience), and that comparing income inequalities between…
Recently saw this tweet I want to repeat a statistic I use in every talk: by 2040 or so, 70 percent of Americans will live in 15 states. Meaning 30 percent will choose 70 senators. And the 30% will be older, whiter, more rural, more male than the 70 percent.…
July 13, 2018
In "R bloggers"
To leave a comment for the author, please follow the link and comment on their blog: R – Statistical Odds & Ends.