EconBase
← Back to paper

Proper Correlation Coefficients for Nominal Random Variables

Extracted main text — title through conclusion, appendix excluded. This is what our citation measures are computed over, published so the extraction can be checked by eye.

69,184 characters · 23 sections · 53 citation commands

Rendered from LaTeX for readability, not typeset faithfully. Citation keys are highlighted; maths is left as source; figures, tables and equation environments are summarised rather than reproduced; unrecognised commands are greyed out so nothing is silently dropped. Email addresses are removed.

Proper Correlation Coefficients for Nominal Random Variables

abstractThis paper develops an intuitive concept of perfect dependence between two variables of which at least one has a nominal scale. Perfect dependence is attainable for all marginal distributions. It furthermore proposes a set of dependence measures that are 1 if and only if this perfect dependence is satisfied. The advantages of these dependence measures relative to classical dependence measures like contingency coefficients, Goodman-Kruskal's lambda and tau and the so-called uncertainty coefficient are twofold. Firstly, they are defined if one of the variables exhibits continuities. Secondly, they satisfy the property of attainability. That is, they can take all values in the interval $[0,1]$ irrespective of the marginals involved. Both properties are not shared by classical dependence measures which need two discrete marginal distributions and can in some situations yield values close to 0 even though the dependence is strong or even perfect. Additionally, the paper provides a consistent estimator for one of the new dependence measures together with its asymptotic distribution under independence as well as in the general case. This allows to construct confidence intervals and an independence test with good finite sample properties, as a subsequent simulation study shows. Finally, two applications on the dependence between the variables country and income, and country and religion, respectively, illustrate the use of the new measure.

Keywords: Goodman-Kruskal's Gamma; Confidence Intervals; Independence Tests; Statistical Dependence \newline

Introduction

Most random variables featuring in statistical applications are real-valued or exhibit at least an ordinal scale. Excluding stochastic processes, which can be interpreted as function-valued random variables, the only remaining type of random variables that appear as data in reality are those with a nominal scale. That is, they map to a set $\Omega'$ with finite cardinality consisting of elements that do not allow for any meaningful ordering (see Subsection (ref) for details). While those variables are less interesting from a mathematical point of view as less measures of central tendency or dispersion and no cdf exists, they are still of immense practical relevance.

table[table omitted — 1,009 chars of source]

In particular, the question of how to characterize statistical dependence between random variables when at least one variable is measured on a nominal scale remains largely unexplored in the literature. Most existing work on dependence assumes continuous marginals, since the copula representation is particularly well-behaved in this case sklar1959, nelsenIntroduction2006, genestEverything2007, durante2016principles. Notable exceptions include geenens2020copula, neslehova2007rank, perroneGeometry2019, genestEstimation2013, and genest2007primer. However, these studies focus on random variables whose values exhibit a reasonable ordering.

For example, consider Table (ref) in which the absolute frequencies of Christians, Jews and Muslims living in Germany, Poland and Czechia are displayed. It is evident that the marginal frequencies do not allow for a concentration of either religion in one country, which would probably be the plainest type of (perfect) dependence possible. Instead, we have three primarily Christian countries which have Jewish and Muslim minorities of differing size. In fact, since Poland and Czechia have in the past enacted much stricter migration policies than Germany, the Muslims in this example are almost fully concentrated in Germany. The same holds true for Jews whose (re)settlement in Germany has been considered a great success after the Shoah. Taking the marginal frequencies as given, it is hard to imagine any bivariate distribution with a stronger dependence than the one displayed (besides removing Jews and Muslims completely out of Poland and Czechia). Note that fixing the marginals should always be the starting point for any dependence assessment since the two marginals and the dependence are three orthogonal objects, i.e.\ objects not carrying any information about each other geenens2023dependence. Still, a selection of dependence measures in Table (ref) indicates little to no dependence. This raises the question to which extent those dependence measures sensibly measure the dependence inherent in this table.

In mathematical terms, the nominal case creates several problems which explains why the stated dependence measures behave as they do. As no bivariate cdf exists, Fréchet-Hoeffding bounds frechet1951tableaux, hoeffding1940 and a (partial) dependence ordering tchen1980inequalities, yanagimoto1969partial are not available. Consequently, dependence measures for the nominal case such as contingency coefficients, Goodman-Kruskal's lambda and tau and the uncertainty coefficient cannot adhere to such concepts which causes serious problems in the interpretation of these measures. For example, it is easily possible to construct marginal distributions which constrain the range of these coefficients from $[0,1]$ to $[0,c)$ with $0\le c\le1$ (see Section (ref)). This is especially true for the introductory example and explains why the reported values are so small. However, since the marginal distributions have nothing to do with the dependence (see again geenens2023dependence), any dependence measure showing such behavior is surely suboptimal.

In addition to that, traditional measures critically rely on the assumption that both variables whose dependence shall be assessed are discrete. Thus, nominal-continuous comparisons such as country and income (on an individual level) or nominal-mixed comparisons such as country and precipitation (on a municipality level) are impossible.

The ambition of this paper therefore firstly is to offer a proposal for a definition of perfect dependence in the nominal case that is attainable irrespective of the marginals involved in Section (ref). Section (ref) collects a set of desirable properties whose fulfillment qualifies a dependence measure as proper, one of those being that the measure attains the upper bound 1 if and only if this concept of perfect dependence is satisfied. To the best of my knowledge, existing sets of desirable properties are almost exclusively tailored towards real-valued random variables Renyi1959, Schweizer1981, scarsini1984measures, Mari2001, Embrechts2002, Balakrishnan2009, fissler2023generalised. Appendix B in weiss2008measuring marks a noteworthy exception.

Section (ref) shows the improperness of all existing dependence measures by exploiting their inability to deal with continuities in one marginal distribution and their non-attainability, i.e.\ their characteristic that the upper bound 1 can only be attained if the marginal distributions exhibit a specific structure.

Section (ref) proposes a set of measures that cure the shortcomings of the improper measures in the nominal-nominal case and comply with the properties needed for properness. Additionally, it establishes an analogy between one of those new measures and the maximal correlation by gebelein1941maximal and hirschfeld1935maximal, an undirected dependence measure for real-valued random variables mapping to $[0,1]$. Moreover, it features a proposal for a dependence measure in the nominal-continuous case.

Section (ref) defines a consistent estimator for the measure(s) based on Goodman-Kruskal's $\gamma$ Goodman1954 and computes its asymptotic distribution, both with and without the assumption of independence between the involved random variables. These results can in turn be used to construct confidence intervals and an independence test. Both methods of statistical inference will subsequently (in Section (ref)) be examined with respect to their finite sample performance in a simulation study that features a selected number of DGPs.

The paper closes with two applications in Section (ref), one concerning the dependence between country and income and the other concerning the dependence between country and religion. Section (ref) concludes. The Appendix extends Section (ref), falsifies an alternative concept of perfect dependence and explains which algorithms lead to a fast computation of the estimator. Additionally, it contains all the proofs as well as additional figures.

\sloppy Moreover, I provide an R RCoreTeam package NCor with an implementation of the estimator (by using the algorithms introduced in Appendix (ref)), its confidence intervals and the independence test under https://github.com/jan-lukas-wermuth/NCor. The replication material for all the results in the paper is available under https://github.com/jan-lukas-wermuth/replication_NCor.

Dependence Concepts for Nominal Random Variables

Setup

Consider two random variables $X$ and $Y$ defined on the same probability space $(\Omega, \mathcal{F}, \mathbb{P})$. On the one hand, at least one of the variables has a nominal scale, i.e.\ it maps to a set $\Omega'$ $(\Omega'')$ with $3\leq|\Omega'|<\infty$ $(3\leq|\Omega''|<\infty)$ consisting of arbitrary elements without a natural ordering.\footnote{It can, for example, be an alphabet, the set of all religions or the set of all nationalities.} We assume that these sets contain only elements with positive probability. The reason why the binary case is excluded is that you can always interpret such variables on an ordinal scale, i.e.\ as an event happening or not, and we have already treated this case in pohle2024measuring. On the other hand, at most one of the variables exhibits at least an ordinal scale and therefore maps to $\mathbb{R}$ (or, at least, can be coded by elements of $\mathbb{R}$). Consequently, the marginal distribution(s) of the nominal variable(s) is (are) discrete, and the marginal distribution of the potential other random variable can be either discrete, continuous, or mixed. We are interested in measuring the strength of dependence between these two random variables. Any attempt to measure the direction of dependence is doomed due to the presence of at least one nominal random variable, which makes such an interpretation impossible.\footnote{weiss2008measuring mention a possibility to define negative dependence also in the nominal case. However, a prerequisite for this definition is that the ranges of $X$ and $Y$ are identical. This requirement is considered too strict for our purposes.}

Perfect Dependence

I now introduce a concept of perfect dependence for nominal random variables. Any such concept must be invariant with respect to the marginal distributions, i.e.\ it must be possible to attain perfect dependence irrespective of the shape and values that the involved marginals take pohle2024measuring, pohle2024. The view that this paper holds is that dependence within real-valued random vectors is not fundamentally different from the dependence within the vectors considered here. Therefore, we can start our analysis with an arbitrary $\mathbb{R}^2$-valued random vector $(X,Y)$ with at least one discrete marginal distribution. We assume that this vector exhibits perfect positive or negative dependence. This is equivalent to its CDF $F_{X,Y}$ being identical to the Fréchet-Hoeffding upper bound $(F_{X,Y}(x,y):=\min\{F_X(x),F_Y(y)\})$ or the Fréchet-Hoeffding lower bound $(F_{X,Y}(x,y):=\max\{0,F_X(x)+F_Y(y)-1\})$, respectively. The replacement of the values of the discrete component(s) by elements of $\Omega'$ $(\Omega'')$ shall now only eliminate the directional interpretation. The attribute of perfectness however is sustained such that $(X,Y)$ is perfectly dependent, without any notion of positive or negative dependence.

definition[Perfect Dependence]Consider two cases: \begin{enumerate} • Only $X$ (w.l.o.g.) has a nominal interpretation and we denote $|\Omega'|=:a\in \mathbb{N}_{\ge 3}$. We sort the elements of $\Omega'$ in an arbitrary but fixed way and write $\Omega'=\{\omega'_1, ..., \omega'_a\}$. Then, let $S_a$ be the set of all permutations of $\{1, ..., a\}$. With each $s_a\in S_a$, we associate $X^{s_a}$, the random variable $X$ with the numbering $s_a$ $(\omega'_1:=s_{a}(1), ..., \omega'_a:=s_{a}(a))$. $X$ and $Y$ are perfectly dependent if there exists an $s_a\in S_a$ such that $F_{X^{s_a},Y}$ is equivalent to either the Fréchet-Hoeffding lower or the Fréchet-Hoeffding upper bound. • $X$ and $Y$ have a nominal interpretation and we denote $|\Omega'|=:a\in \mathbb{N}_{\ge 3}, |\Omega''|=:b\in \mathbb{N}_{\ge 3}$. We sort the elements of $\Omega'$ and $\Omega''$ in an arbitrary but fixed way and write $\Omega'=\{\omega'_1, ..., \omega'_a\}$ and $\Omega''=\{\omega''_1, ..., \omega''_b\}$. Then, let $S_a$ be the set of all permutations of $\{1, ..., a\}$ and $S_b$ be the set of all permutations of $\{1, ..., b\}$. With each $s_a\in S_a$, we associate $X^{s_a}$, the random variable $X$ with the numbering $s_a$ $(\omega'_1:=s_{a}(1), ..., \omega'_a:=s_{a}(a))$. Also, with each $s_b\in S_b$, we associate $Y^{s_b}$, the random variable $Y$ with the numbering $s_b$ $(\omega''_1:=s_{b}(1), ..., \omega''_b:=s_{b}(b))$. $X$ and $Y$ are perfectly dependent if there exist $s_a\in S_a$ and $s_b\in S_b$ such that $F_{X^{s_a},Y^{s_b}}$ is equivalent to either the Fréchet-Hoeffding lower or the Fréchet-Hoeffding upper bound. \end{enumerate}

The following lemma shows that the above definition is unnecessarily complicated. In principle, we could drop one of the bounds from our definition.

lemmaIn case 1 of Definition (ref), the following two statements are equivalent: \begin{enumerate}[(i)] • There exists a numbering $s_a\in S_a$ such that $F_{X^{s_a},Y}$ is equivalent to the Fréchet-Hoeffding lower bound. • There exists a numbering $s_a\in S_a$ such that $F_{X^{s_a},Y}$ is equivalent to the Fréchet-Hoeffding upper bound. \end{enumerate} In case 2 of Definition (ref), the following two statements are equivalent: \begin{enumerate}[(i)] • There exist numberings $s_a\in S_a$ and $s_b\in S_b$ such that $F_{X^{s_a},Y^{s_b}}$ is equivalent to the Fréchet-Hoeffding lower bound. • There exist numberings $s_a\in S_a$ and $s_b\in S_b$ such that $F_{X^{s_a},Y^{s_b}}$ is equivalent to the Fréchet-Hoeffding upper bound. \end{enumerate}

Desirable Properties of Dependence Measures

We want to summarize the dependence between $X$ and $Y$ in a single number, a dependence measure.

definition[Dependence Measure] A dependence measure for the non-deterministic random variables $X$ and $Y$ is a mapping $\delta:D\to \mathbb{R}\ (\mathcal{L}_{X,Y}\mapsto \delta(\mathcal{L}_{X,Y}))$, where we write $\delta(X, Y):=\delta(\mathcal{L}_{X,Y})$ and define $D:=\mathcal{M}_1(\Omega'\times \Omega'')$ or $D:=\mathcal{M}_1(\Omega'\times \mathbb{R})$. $\mathcal{M}_1(\cdot)$ denotes the set of all probability measures on the respective product set, equipped with either $\mathcal{P}(\Omega')\otimes \mathcal{P}(\Omega'')$ or $\mathcal{P}(\Omega')\otimes \mathcal{B}(\mathbb{R})$.

As already mentioned before, a fundamental difference to the case of two real-valued random variables is the impossibility to interpret directions of dependence. Thus, this paper aims to construct a dependence measure that indicates only the strength of dependence, but not the direction. In order to perform a substantial assessment of whether a measure deserves the attribute of properness, we need a set of desirable properties.

definition[Proper Dependence Measure] We call a dependence measure $\delta(X, Y)$ for the non-deterministic random variables $X$ and $Y$ of which at least $X$ (w.l.o.g.) has a nominal scale proper, if it fulfills the following characteristics: \begin{enumerate}[(A)] • Existence: $\delta(X,Y)$ exists for any pair of random variables $X$ and $Y$. • Normalization: $0\le \delta(X,Y)\le 1$. • Independence: $\delta(X, Y)=0$ if and only if $X$ and $Y$ are independent. • Attainability: $\delta(X, Y)=1$ if and only if $X$ and $Y$ are perfectly dependent. • Absolute invariance to strictly monotonic transformations (only applicable if $Y$ has at least an ordinal scale): \begin{align*} \delta(X,g(Y))= \delta(X,Y),\ \text{g: } \mathbb{R}\to \mathbb{R} \text{ strictly monotonic on the range of } Y \end{align*} • \emph{Symmetry}: $\delta(X, Y)=\delta(Y, X)$. \end{enumerate}

Relative to the real-valued case, the most remarkable difference is the absence of negative values in the co-domain of the dependence measure. This is natural because without the option to measure direction of dependence, there is no need to distinguish between positive and negative values. Additionally, a (partial) dependence ordering similar to yanagimoto1969partial and tchen1980inequalities is in my opinion difficult to construct and therefore left for future research. As a consequence, I also do not include any property formalizing compliance of a dependence measure with such a concept. Finally, the attainability axiom uses the novel definition of perfect dependence and is thus fundamentally different from the attainability definition in the real-valued case.

Improper Dependence Measures

This section together with Appendix (ref) reviews the most popular dependence measures for the nominal case and thus extends Appendix B in weiss2008measuring. More precisely, it considers several measures based on Pearson's mean square contingency coefficient. Appendix (ref) contains measures based on proportional reduction of predictive error and an entropy-based measure. Measures of agreement such as Cohen's $\kappa$ cohen1960agreement are left out of the discussion because their assumption that $X$ and $Y$ take exactly the same values is considered too strict for our purposes.

Measures Based on Pearson's Mean Square Contingency Coefficient

table[table omitted — 1,169 chars of source]

The most popular dependence measures for the nominal case arise as normalizations of Pearson's Mean Square Contingency $(MSC)$ coefficient (see Table (ref) and liebetrau1983measures for an overview). This coefficient is the population analogue of the test statistic in Pearson's $\chi^2$ independence test. It is only defined if both marginal distributions are discrete, i.e.\ if $X$ takes the values $x_1, ..., x_a$ and $Y$ takes the values $y_1, ..., y_b$:

align*[align* omitted — 163 chars of source]

Cramér's $V$ Cramer1945, Tschuprow's $T$ Tschuprow1925, Pearson's Contingency Coefficient $PC$ Pearson1904 and Sakoda's $S$ sakoda1977measures are defined as

align*[align* omitted — 267 chars of source]

Even though their improperness is immediate due to the necessity to have two discrete marginal distributions, it is insightful to analyze their violation of the attainability property in more detail. The following lemma is well-known in the literature.

lemma[$MSC$ attainability] It holds that $0\le MSC(X,Y)\le \min\{a,b\}-1$. Additionally, the following two statements hold: \begin{itemize} • We have $MSC(X,Y)=0$ if and only if $X$ and $Y$ are independent. • We have $MSC(X,Y)=\min\{a,b\}-1$ if and only if $\mathbb{P}(X=x_i, Y=y_j)=\mathbb{P}(X=x_i)$ with some $j=1, ..., b$ holds for all $i=1, ..., a$ (in the case of $a\ge b$) or $\mathbb{P}(X=x_i, Y=y_j)=\mathbb{P}(Y=y_j)$ with some $i=1, ..., a$ holds for all $j=1, ..., b$ (in the case of $a\le b$). \end{itemize}

If we interpret the previous lemma with a contingency table with $a$ rows and $b$ columns (see Table (ref)), the second statement is equivalent to each row (if $a\ge b$) or each column (if $a\le b$) containing only one non-zero entry. Equipped with this lemma, we can analyze the attainability properties of the other coefficients.

lemma[attainability] It holds that $0\le V(X,Y),T(X,Y),PC(X,Y),S(X,Y)\le 1$. Additionally, the following statements hold: \begin{itemize} • We have $V(X,Y)=0$ if and only if $T(X,Y)=0$ if and only if $PC(X,Y)=0$ if and only if $S(X,Y)=0$ if and only if $X$ and $Y$ are independent. • We have $V(X,Y)=1$ if and only if $S(X,Y)=1$ if and only if $MSC(X,Y)=\min\{a,b\}-1$. • We have $T(X,Y)=1$ if and only if $MSC(X,Y)=\min\{a,b\}-1$ and $a=b$. • We never have $PC(X,Y)=1$. \end{itemize}

Given the conditions under which the coefficients attain their maximum value of 1, it is evident that it is easily possible to construct marginal distributions which do not allow a fulfillment of these conditions (see e.g.\ the introductory example). Hence, they can be regarded as too strict as the following lemma shows.

lemma[dependence concepts] If a discrete random vector $(X,Y)$ fulfills $MSC(X,Y)=\min\{a,b\}-1$, it also fulfills the concept of perfect dependence defined in Definition (ref). The reverse statement is wrong in the following sense: \begin{enumerate} • The concept of perfect dependence as defined in Definition (ref) may be satisfied with marginals that make $MSC(X,Y)=\min\{a,b\}-1$ impossible. • The concept of perfect dependence as defined in Definition (ref) may be satisfied with marginals that make $MSC(X,Y)=\min\{a,b\}-1$ possible. Still, it may hold that $MSC(X,Y)\ne \min\{a,b\}-1$. \end{enumerate}

Proper Dependence Measures

The essential idea behind the construction of proper dependence measures is the concept of perfect dependence explained in Subsection (ref) together with property (D) from Definition (ref).

definition[Proper Measure] Consider again the two cases from Definition (ref): \begin{enumerate} • Only $X$ (w.l.o.g.) has a nominal interpretation and we denote $|\Omega'|=:a\in \mathbb{N}_{\ge 3}$. We sort the elements of $\Omega'$ in an arbitrary but fixed way and write $\Omega'=\{\omega'_1, ..., \omega'_a\}$. Then, let $S_a$ be the set of all permutations of $\{1, ..., a\}$. With each $s_a\in S_a$, we associate $X^{s_a}$, the random variable $X$ with the numbering $s_a$ $(\omega'_1:=s_{a}(1), ..., \omega'_a:=s_{a}(a))$. The proposed measure is \begin{align*} \delta^{*}(X, Y)=\max_{s_a\in S_a}\delta(X^{s_a},Y) \end{align*} with some proper correlation coefficient $\delta$ pohle2024. • $X$ and $Y$ have a nominal interpretation and we denote $|\Omega'|=:a\in \mathbb{N}_{\ge 3}, |\Omega''|=:b\in \mathbb{N}_{\ge 3}$. We sort the elements of $\Omega'$ and $\Omega''$ in an arbitrary but fixed way and write $\Omega'=\{\omega'_1, ..., \omega'_a\}$ and $\Omega''=\{\omega''_1, ..., \omega''_b\}$. Then, let $S_a$ be the set of all permutations of $\{1, ..., a\}$ and $S_b$ be the set of all permutations of $\{1, ..., b\}$. With each $s_a\in S_a$, we associate $X^{s_a}$, the random variable $X$ with the numbering $s_a$ $(\omega'_1:=s_{a}(1), ..., \omega'_a:=s_{a}(a))$. Also, with each $s_b\in S_b$, we associate $Y^{s_b}$, the random variable $Y$ with the numbering $s_b$ $(\omega''_1:=s_{b}(1), ..., \omega''_b:=s_{b}(b))$. The proposed measure is \begin{align*} \delta^{*}(X, Y)=\max_{s_a\in S_a, s_b\in S_b}\delta(X^{s_a},Y^{s_b})\end{align*} with some proper correlation coefficient $\delta$ pohle2024. \end{enumerate}

Since Goodman-Kruskal's $\gamma$ is a proper dependence measure with straightforward inference procedures pohle2024inference, the subsequent analysis will focus on this special case.

propositionAssume case 1 from Definition (ref). Then, $\gamma^*(X,Y)$ fulfills all axioms from Definition (ref) besides axiom (C). More precisely, $\gamma^*(X,Y)=0$ does not imply independence between $X$ and $Y$.
propositionAssume case 2 from Definition (ref). Then, $\gamma^*(X,Y)$ is proper.

Relationship to Undirected Dependence Measures for Real-Valued Random Variables

Even though $\gamma^*$ is a measure for nominal random variables, the idea behind its construction is less connected with existing measures for the nominal case than with existing measures for $\mathbb{R}^2$-valued random vectors that map to $[0,1]$. Basically, those measures sacrifice the directional interpretation for a stronger interpretation of the 0 (the measures are 0 if and only if $X$ and $Y$ are independent) and a wider concept of perfect dependence which allows those measures to detect U-shaped relationships, for example. One particularly similar coefficient has been introduced by hirschfeld1935maximal and gebelein1941maximal and is since called the maximal correlation. It is defined as

align*[align* omitted — 50 chars of source]

where $r$ denotes the Pearson correlation and the supremum is taken over the set of all Borel-measurable functions $f,g:\mathbb{R}\to \mathbb{R}$. If we now consider

align*[align* omitted — 62 chars of source]

and restrict the set of functions over which we maximize to the set of all bijective functions, an interesting simplification emerges.

lemmaAssume $X$ and $Y$ are both discrete $\mathbb{R}$-valued random variables. It holds that \begin{align*} S_{\gamma}(X,Y)=\max_{s_a\in S_a, s_b\in S_b}\gamma(X^{s_a}, Y^{s_b}), \end{align*} where $(X^{s_a}, Y^{s_b})$ is defined as in case 2 of Definition (ref), albeit without the necessity to have a nominal interpretation for $X$ and $Y$.

Intuitively, the rank-based nature of $\gamma$ makes it sufficient to consider all possible orderings of the values that $X$ and $Y$ can take. In the case of two discrete distributions, the innovation of our proposal is now to consider nominal random variables together with functions $f:\Omega'\to \mathbb{R}$ (and $g: \Omega''\to \mathbb{R}$)\footnote{holzmann2024lancaster already mention the ad hoc extension of the maximal correlation to $\mathcal{X}$- and $\mathcal{Y}$-valued random variables $X$ and $Y$, where $\mathcal{X}$ and $\mathcal{Y}$ are arbitrary measurable spaces.} and maximize $\gamma$, a correlation coefficient with superior properties relative to Pearson correlation pohle2024.

Statistical Inference

The population coefficient introduced in the previous section is only of practical use if it is possible to construct a consistent estimator for it. Additionally, knowledge about the asymptotic distribution could allow us to construct asymptotically valid confidence intervals as well as an independence test based on the coefficient. In the following, $\overset{d}{\to}$ denotes convergence in distribution and $\overset{p}{\to}$ denotes convergence in probability.

Estimator

Our estimator simply replaces the theoretical distribution $\mathcal{L}_{X,Y}$ implicitly used in Definition (ref) with the empirical distribution $$\widehat{\mathcal{L}}_{X,Y}:=\frac{1}{n}\sum_{i=1}^{n}\delta_{X_i,Y_i}.$$ We make the following sampling assumption:

assumption$\{X_i,Y_i\}_{i=1}^n$ is a bivariate i.i.d.\ sample.
definition[Estimator] Consider again the two cases from Definition (ref): \begin{enumerate} • Only $X$ (w.l.o.g.) has a nominal interpretation. The empirical marginal distribution $\widehat{\mathcal{L}}_X:=1/n\sum_{i=1}^{n}\delta_{X_i}$ has almost surely only a finite number of values with positive probability (relative frequency). We denote those values by $x_1, ..., x_k$, where it holds that $\{x_1, ..., x_k\}\subseteq (\omega_1', ..., \omega_a')$. Again, we redefine $x_1:=s_{k}(1), ..., x_k:=s_{k}(k)$ according to a permutation $s_k\in S_k$ and obtain a sample of $(X^{s_k},Y)$ with an artificially created random variable $X^{s_k}$. The maximum of the set of all $k!$ possible coefficients is our estimate: \begin{align*} \widehat{\gamma}^*_n(X,Y)=\max_{s_k \in S_k}\widehat{\gamma}_n(X^{s_k},Y). \end{align*} • $X$ and $Y$ have a nominal interpretation. The empirical marginal distributions $\widehat{\mathcal{L}}_X:=1/n\sum_{i=1}^{n}\delta_{X_i}$ and $\widehat{\mathcal{L}}_Y:=1/n\sum_{i=1}^{n}\delta_{Y_i}$ have almost surely only a finite number of values with positive probability (relative frequency). We denote those values by $x_1, ..., x_k$ and $y_1, ..., y_l$, respectively. It holds that $\{x_1, ..., x_k\}\subseteq (\omega_1', ..., \omega_a')$ and $\{y_1, ..., y_l\}\subseteq (\omega_1'', ..., \omega_b'')$. Again, we redefine $x_1:=s_{k}(1), ..., x_k:=s_{k}(k)$ and $y_1:=s_{l}(1), ..., y_l:=s_{l}(l)$ according to permutations $s_k\in S_k$ and $s_l\in S_l$ and obtain a sample of $(X^{s_k},Y^{s_l})$ with artificially created random variables $X^{s_k}$ and $Y^{s_l}$. The maximum of the set of all $k!\cdot l!$ possible coefficients\footnote{The estimation of this coefficient can be computationally challenging since the factorial increases very fast. For $k,l\le 7$, this is usually of no concern. However, the argument of computational feasibility is also the reason why we do not consider Bootstrap inference.} is our estimate: \begin{align*} \widehat{\gamma}^*_n(X,Y)=\max_{s_k \in S_k, s_l \in S_l}\widehat{\gamma}_n(X^{s_k},Y^{s_l}). \end{align*} \end{enumerate}
propositionUnder Assumption (ref), $\widehat{\gamma}^*_n \overset{p}{\to} \gamma^*$.

Note that however consistent, the estimator will in general be biased in finite samples (see Figure (ref) for a simulation study which shows small mean biases for moderate sample sizes). Due to the small size of the biases and the strong limits that are placed upon bias correction techniques by hirano2012impossibility, I refrain from proposing alternative estimators.\footnote{Also, the results by chernozhukov2013intersection constitute no remedy for this problem since half median unbiasedness is of limited value for a point estimate.}

Asymptotic Distribution

Imagine the true (or one of potentially many true) population numbering(s) was known to the researcher. Then, an alternative estimator $\widehat{\gamma}(X^{s_k^{(*)}},Y)$ or $\widehat{\gamma}(X^{s_k^{(*)}},Y^{s_l^{(*)}})$ could be considered in which $s_k^{(*)}$ and $s_l^{(*)}$ are fixed. In this case, the standard asymptotic distribution of $\widehat{\gamma}$ could be used for statistical inference pohle2024inference. Unfortunately, this is in reality never the case and we have no choice but revert to the estimator introduced in Definition (ref). Since the maximum function in this estimator always chooses one specific numbering and can (also asymptotically) oscillate between several of those, the asymptotic distribution is non-standard. In order to calculate it, we first need the asymptotic distribution of the vector of inputs at the left hand side of ((ref)). Since the length of this vector depends on the number of values that $X$ (and $Y$) can take, this paper can only provide a strategy to compute the asymptotic variance and no closed-form solution.

propositionConsider the two cases of Definition (ref).\footnote{We define the estimator with respect to the number of values with positive probability mass in the theoretical distribution of $X$ (and $Y$) and not with respect to the number of distinct values that occur in the sample. However infeasible in practice, this is convenient for this proposition because there almost surely exists a sample size $N\in \mathbb{N}$ for which $k=a$ and $l=b$ holds. Thus, until the sample size $N$ is reached, our vector of possible estimates grows which is difficult to capture notationally. Since this behavior is irrelevant asymptotically, we directly start with the vector of estimates that would prevail for sample sizes $n\ge N$.} Furthermore, assume that $(X,Y)$ are not perfectly dependent in the sense of Definition (ref). Under Assumption (ref), it holds that \begin{enumerate} • We have \begin{align} \sqrt{n}\left( \begin{pmatrix} \vdots\\ \widehat{\gamma}_n(X^{s_a},Y)\\ \vdots \end{pmatrix}- \begin{pmatrix} \vdots\\ \gamma(X^{s_a},Y)\\ \vdots \end{pmatrix}\right)\overset{d}{\rightarrow}(U^{(1)}, ..., U^{(a!)})\sim\mathcal{N}_{a!}(0,\Sigma^1) \end{align} • We have \begin{align} \sqrt{n}\left( \begin{pmatrix} \vdots\\ \widehat{\gamma}_n(X^{s_a},Y^{s_b})\\ \vdots \end{pmatrix}- \begin{pmatrix} \vdots\\ \gamma(X^{s_a},Y^{s_b})\\ \vdots \end{pmatrix}\right)\overset{d}{\rightarrow}(V^{(1)}, ..., V^{(a!\cdot b!)})\sim\mathcal{N}_{a!\cdot b!}(0,\Sigma^2). \end{align} For the asymptotic covariance matrices we have that $\Sigma^1=A^1\Sigma_U^1A^{1\top}$ with an $a!\times 2\cdot a!$ matrix $A^1$ arising from the Delta Method and a $2\cdot a!\times 2\cdot a!$ matrix $\Sigma_U^1$ which arises from a multivariate CLT for U-statistics. In case 2, we have the same structure with $\Sigma^2=A^2\Sigma_U^2A^{2\top}$ and an $a!\cdot b!\times 2\cdot a!\cdot b!$-dimensional matrix $A^2$ as well as a $2 \cdot a!\cdot b!\times 2\cdot a!\cdot b!$-dimensional matrix $\Sigma_U^2$. \end{enumerate}

Given Proposition (ref) (and the precise structure of the involved matrices, which is given in the proof), we can analyze the asymptotic distribution of our estimator. Since the maximum function is not differentiable, we cannot use the standard Delta Method to obtain our result.\footnote{However, a generalized Delta Method by fang2019inference is applicable and constitutes an alternative way to obtain the result.} Instead, the asymptotic distribution is non-standard and contains several case distinctions. In case our population exhibits perfect dependence in the sense of Definition (ref), the estimator is almost surely equal to 1 (if the sample is large enough such that there is variation in either of the two observed variables). Therefore, we exclude this case in the subsequent proposition.

proposition[Asymptotic Distribution] Assume ((ref)) or ((ref)). \begin{enumerate} • There exists a unique $\gamma$-maximizing population numbering $s_a^{(*)}$ $(s_b^{(*)})$. In this case, $\widehat{\gamma}^*_n$ inherits the standard asymptotic distribution of $\widehat{\gamma}_n$ pohle2024inference. It holds that $$\sqrt{n} \left( \widehat{\gamma}^*_n -\gamma^* \right) \stackrel{d}{\rightarrow} \mathcal{N}(0, \sigma_{\gamma^*}^2) \text{ with } \sigma_{\gamma^*}^2 = \frac{1}{(1-\nu^{(*)})^2} \left( \sigma_{\tau^{(*)}}^2 + \gamma^{*2} \sigma_{\nu^{(*)}}^2 + 2 \gamma^* \sigma_{\tau^{(*)} \nu^{(*)}} \right), $$ where $^{(*)}$ denotes that the respective objects are computed with respect to the numbering $s_a^{(*)}$ $(s_b^{(*)})$. The covariances are in case 1 (see Definition (ref)) defined as \begin{align*}\sigma_{v^{(*)}w^{(*)}} =&\ 4 \mathrm{E} \left[ k_{1}^{(v^{(*)})} (X^{s_a^{(*)}},Y)\, k_{1}^{(w^{(*)})} (X^{s_a^{(*)}},Y) \right] with v,w \in \{\tau, \nu\} and \sigma^2_{v^{(*)}} := \sigma_{v^{(*)}v^{(*)}} \end{align*} and \begin{align*} k_{1}^{(\nu^{(*)})} (x,y) = \mathbb{P}\Big(X^{s_a^{(*)}}=x\Big) + \mathbb{P}\Big(Y=y\Big) - \mathbb{P}\Big(X^{s_a^{(*)}}=x,Y=y\Big) - \nu^{(*)},\\ k^{(\tau^{(*)})}_1 (x,y)= 4\, G_{X^{s_a^{(*)}},Y} (x,y) - 2 \Big(G_{X^{s_a^{(*)}}}(x) + G_Y (y)\Big) + 1 - \tau^{(*)}. \end{align*} In case 2, we have \begin{align*}\sigma_{v^{(*)}w^{(*)}} =&\ 4 \mathrm{E} \left[ k_{1}^{(v^{(*)})} (X^{s_a^{(*)}},Y^{s_b^{(*)}})\, k_{1}^{(w^{(*)})} (X^{s_a^{(*)}},Y^{s_b^{(*)}}) \right] \end{align*} and \begin{align*} k_{1}^{(\nu^{(*)})} (x,y) = \mathbb{P}\Big(X^{s_a^{(*)}}=x\Big) + \mathbb{P}\Big(Y^{s_b^{(*)}}=y\Big) - \mathbb{P}\Big(X^{s_a^{(*)}}=x,Y^{s_b^{(*)}}=y\Big) - \nu^{(*)},\\ k^{(\tau^{(*)})}_1 (x,y)= 4\, G_{X^{s_a^{(*)}},Y^{s_b^{(*)}}} (x,y) - 2 \Big(G_{X^{s_a^{(*)}}}(x) + G_{Y^{s_b^{(*)}}}(y)\Big) + 1 - \tau^{(*)}. \end{align*} • There exist $d$ population numberings $s_a^{(*^1)}, ..., s_b^{(*^d)}$ or $(s_a^{(*^1)}, s_b^{(*^1)}), ..., (s_a^{(*^d)}, s_b^{(*^d)})$ $(d\in \mathbb{N}_{\ge 2})$ with $*^1, ..., *^d \in \{1, ..., a!\}$ or $*^1, ..., *^d \in \{1, ..., a!\cdot b!\}$ that are solutions to the maximization problem in Definition (ref). In case 1, it holds that $$\sqrt{n} \left( \widehat{\gamma}^*_n -\gamma^* \right) \stackrel{d}{\rightarrow} \max\{U^{(*^1)}, ..., U^{(*^d)}\}$$ with $U^{(*^1)}, ..., U^{(*^d)}$ defined as in Proposition (ref). Similarly in case 2, we have $$\sqrt{n} \left( \widehat{\gamma}^*_n -\gamma^* \right) \stackrel{d}{\rightarrow} \max\{V^{(*^1)}, ..., V^{(*^d)}\}$$ with $V^{(*^1)}, ..., V^{(*^d)}$ defined as in Proposition (ref). \end{enumerate}
remThe number of case distinctions implicit in Proposition (ref) is very large. It amounts to \begin{align*} \sum_{d=1}^{a!}\binom{a!}{d} \quad or \quad \sum_{d=1}^{a!\cdot b!}\binom{a!\cdot b!}{d} \end{align*} in the respective cases of one or two nominal random variables.

Confidence Intervals

Constructing confidence intervals for the new correlation coefficient is complicated due to the non-standard asymptotic distribution described in Proposition (ref). Although a complicated distribution could still be exploited (see, e.g., the confidence intervals for Cole's C cole1949 in pohle2024measuring constructed by an inverted testing procedure), the problem is that the researcher does not know which of the many possible asymptotic distributions prevails in her particular setting.

Facing a similar problem, holzmann2024lancaster propose several methods to construct confidence intervals using standard procedures or bootstrap. For some of those methods, they also take into account the case distinctions they have in their asymptotic distribution. I refrain from such an involved approach for the following reasons. Firstly, I do not consider bootstrap because due to the rapidly increasing nature of the factorial, estimating the coefficient is already computationally intensive enough (see also footnote (ref)). Secondly, the number of case distinctions in our asymptotic distribution is so large that I do not see any promising path to combine them in an attempt to construct (possibly conservative) confidence intervals (see Remark (ref)). Instead, we make a simplifying assumption.

assumptionThere exists a unique $\gamma$-maximizing population numbering $s_a^{(*)}$ $(s_b^{(*)})$.

With this assumption (and the assumption that $(X,Y)$ are not perfectly dependent), we are in the well-behaved first case of Proposition (ref) and can construct our confidence intervals with asymptotic coverage probability $1-\alpha$ as

align*[align* omitted — 187 chars of source]

where $z_{1-\alpha/2}=\Phi^{-1}(1-\alpha/2)$ and $\widehat{\sigma}_{\gamma^*}$ is equal to $\widehat{\sigma}_{\gamma}$ as defined in pohle2024inference relative to the numbering that $\widehat{\gamma}^*_n$ has chosen.

lemmaUnder Assumptions (ref) and (ref), $\widehat{\sigma}^2_{\gamma^*} \overset{p}{\to} \sigma^2_{\gamma^*}$.

The simulation section shows that this approach delivers good coverage probabilities for a set of reasonable DGPs.

Independence Test

Independence tests for two discrete (or even nominal) random variables are readily available in the literature and have been in scientific use for decades. Notable examples are the Chi-square test of independence and the G-Test mcdonald2014handbook. However, if we consider a nominal variable together with a continuous or discrete-continuous variable, testing options are quite limited. One possibility would be to discretize the continuous part and revert to the G-Test, but the arbitrariness in choosing the width and number of bins is suboptimal. Another option would be to regress the continuous variable on dummy variables that jointly determine the value of the nominal variable and subsequently perform a global F-Test on all the slope coefficients.

lemmaLet $X:\Omega \to \Omega'$ and $Y:\Omega \to \mathbb{R}$ with $\Omega':=\{\omega_1', ..., \omega_a'\}$. Consider the regression model $$Y=b_1+\sum_{j=2}^{a}b_j\mathds{1}_{\{X=\omega_j'\}}+U \ a.s.$$ with $U:\Omega \to \mathbb{R}$ independent from $X$. It holds that $$X\perp\!\!\!\perp Y \Leftrightarrow b_j=0\ \forall j\in\{2, ..., a\}.$$

If the real-valued variable is discrete-continuous, one could in principle extend this strategy to corner solution models such as Tobit.

Since we know the asymptotic distribution of our correlation coefficient under independence, we can add a further option based on this coefficient. Unlike as in the construction of confidence intervals, Assumption (ref) is clearly inappropriate. Therefore, the asymptotic distribution is more complicated.\footnote{For an analytical expression of its pdf, see Corollary 4 in arellano2008exact. Lemma 4 in holzmann2024lancaster also gives the cdf, albeit only in the bivariate case.}

lemmaSuppose $(X,Y)$ are independent and either only $X$ (case 1) or $X$ and $Y$ (case 2) have a nominal scale. In case 1, it holds that $$\sqrt{n} \widehat{\gamma}^*_n \stackrel{d}{\rightarrow} \max\{U^{(1)}, ..., U^{(a!)}\}$$ with $U^{(1)}, ..., U^{(a!)}$ defined as in Proposition (ref). Similarly in case 2, we have $$\sqrt{n} \widehat{\gamma}^*_n \stackrel{d}{\rightarrow} \max\{V^{(1)}, ..., V^{(a!\cdot b!)}\}$$ with $V^{(1)}, ..., V^{(a!\cdot b!)}$ defined as in Proposition (ref).

In order to exploit this lemma for an independence test, we need to be able to compute p-values via the cdf of the limiting distribution. Since for arbitrary $\mathbb{R}$-valued random variables $W_1, ..., W_n$, it holds that

align*[align* omitted — 93 chars of source]

this can easily be done via the results obtained in Proposition (ref) and an R package that is able to evaluate the CDF of a multivariate normal distribution, for example mvtnorm mvtnorm\footnote{If $a$ and $b$ are large (see Appendix (ref) for precise values), a very high-dimensional normal CDF has to be evaluated. At least in case 2, it is then advisable to use a computationally less challenging independence test, of which plenty exist.}. However, we need to estimate the matrices $A^1$ and $\Sigma_U^1$ (case 1) or $A^2$ and $\Sigma_U^2$ (case 2). For the $A$-matrices, we just replace the several $\tau$ and $\nu$ by their empirical counterparts and possibly reduce the size of the matrix if not all values with positive probability are present in the sample. For the $\Sigma_U$-matrices, we estimate $\sigma_{v(i)w(j)}$ with $v, w\in\{\tau, \nu\}$ and $i,j\in \{1, ..., k!\}$ or $i,j\in \{1, ..., k!\cdot l!\}$ in the spirit of pohle2024inference, where $k,l$ are defined as in Definition (ref).

Simulations

As a means to evaluate the finite sample performance of the introduced confidence intervals and the independence test, this section presents simulated coverage rates as well as size and power values for a collection of DGPs. Additionally, it shows simulated mean bias values to showcase the finite sample performance of the proposed estimator. Each simulation contains $MC=1,000$ pairs of iid observations, features several degrees of dependence and different sample sizes.

DGPs

Nominal-Continuous DGPs

The first two DGPs are inspired by classical linear regression in which nominal explanatory variables can be accounted for by including binary indicators. $X$ is defined via $\mathbb{P}(X=A)=\mathbb{P}(X=B)=\mathbb{P}(X=C)=1/3$ and $Y$ via

align*[align* omitted — 142 chars of source]

The second pair of DGPs is based on the multinomial logit model with $X\sim \mathcal{N}(0,1), t(1)$ and

align*[align* omitted — 258 chars of source]

For both DGPs, $\alpha = 0$ leads to independent $X$ and $Y$ and the larger $\alpha$ gets in absolute value, the stronger the dependence\footnote{In Section (ref), I admit that I do not have any concept of dependence ordering in the nominal case. Therefore, the word “stronger” shall be understood in a heuristic sense.}.

Nominal-Nominal DGPs

Table (ref) shows two DGPs in which both variables have a nominal scale. The first has one uniform and one skewed marginal distribution while the second features two uniform distributions. Again, $\alpha = 0$ corresponds to independence and the farther $\alpha$ is away from 0, the stronger the dependence\textsuperscript{(ref)}.

table[table omitted — 1,345 chars of source]

Results

This subsection presents the simulation results for the confidence intervals and the estimator by means of empirical coverage rate and mean bias graphs and the simulation results for the independence test by means of p-value histograms and power tables.

figure[figure omitted — 781 chars of source]

For the empirical coverage rates, we desire a value close to the nominal value of $90\%$. Although Assumption (ref) is clearly not satisfied for the nominal-continuous DGPs in the independence case $\gamma^*=0$, the coverage rates in Figure (ref) still appear acceptable, especially for stronger dependencies. The nominal-nominal DGPs are deliberately designed such that Assumption (ref) is never satisfied (note that $y_2/y_3$ and $x_1/x_2$ occur with the same marginal and joint probabilities irrespective of the choice of $\alpha$) and this feature is reflected by low coverage probabilities, especially for $n=50$. For larger sample sizes, the empirical coverage rate increases almost to the nominal level. Interestingly, the mean bias plots in Figure (ref) show a similar behavior as the empirical coverage rate plots. The bias is large and positive under independence and decreases both with the sample size and the degree of dependence. That is because the bias arises also mainly due to violations of Assumpotion (ref). Intuitively, the bias increases with the intensity of permutation switching of the estimator across the Monte Carlo replications. If Assumption (ref) was satisfied robustly, i.e.\ in the sense that also in finite samples, the estimator (almost) always chooses the same numbering, there would be no bias.

Regarding the independence test, recall that under the null hypothesis $(\alpha = 0)$, the histograms shall converge to a continuous uniform distribution on $[0,1]$. For $\alpha \ne 0$, we desire a high rejection rate of the null hypothesis, i.e.\ high power.

Figure (ref) displays p-value histograms for all the considered DGPs under independence where the test has been conducted based on $\gamma^*$. They all show convergence towards the desired distribution, albeit at different rates. Figure (ref) in turn shows the results if we change our testing procedure to traditional approaches (global F-Test and $\chi^2$ test\footnote{The G-Test shows worse results than the $\chi^2$ test and is therefore omitted.}). The uniformity of our p-value histograms no longer holds for those DGPs in which the continuous variable follows a Cauchy distribution. This illustrates the major strength of the new testing approach: Due to the rank-based nature of the new measure, it does not rely on any moment conditions.

Comparing the power values of the different tests in Table (ref), we find major advantages of the $\gamma^*$ independence test in the two Cauchy cases. However, there are also large differences in one DGP for which no assumption that the traditional tests make is violated. The DGP defined in Table (ref) delivers a remarkable increase in power if we switch from the $\chi^2$ independence test to the $\gamma^*$ independence test. The reason for that may be the slow convergence of the $\chi^2$ test statistic to its limiting distribution if some cells in the contingency table have very small probabilities bruce2015. For the remaining DGPs, the traditional tests have usually more power.

figure[figure omitted — 841 chars of source]
table[table omitted — 1,187 chars of source]

Application

This section illustrates the two major innovations of this paper in two data examples.

Case Study on Countries and Income

Firstly, the proposed coefficient is the first coefficient which is able to summarize the dependence within a bivariate random vector if one marginal distribution is continuously distributed and the other has a nominal scaling. A self-evident example for such a situation is the fundamental observation of economics: People in some countries have higher incomes than people in others.

Figure (ref) displays the dependence between the variables country and income measured by the new coefficient. Each colored point is located at a border triangle and represents the value of the coefficient for those three countries. That is, the variable country always takes exactly three values and the income data is chosen accordingly. The same information with the corresponding confidence intervals is displayed in Figure (ref), where the x-axis shows the border triangle (see the country abbreviations in Table (ref)). It is clearly visible that border triangles featuring countries like France or Poland that have large sample sizes exhibit narrower confidence intervals than other border triangles, for example the one between Hungary, Austria and Slovenia.

With respect to the sizes of the coefficients, those comparisons in which two countries with a similar mean income (see Table (ref)) such as France and Germany are a part of exhibit rather small values. In contrast to that, the Republic of Serbia, Hungary and Romania have a clear income order which is reflected by a larger coefficient. However, other comparisons like Slovakia, the Czech Republic and Austria also have an unambiguous income order in terms of the mean but still yield a small coefficient estimate. The reason for this behavior is of course that even heavily differing means can be explained by few outliers, a differing number of zeros and other factors that have little influence on a rank-based measure like $\widehat{\gamma}^*$.

figure[figure omitted — 642 chars of source]
table[table omitted — 1,069 chars of source]

\nocite{LIS2025}

Case Study on Countries and Religions

Secondly, the proposed coefficient satisfies the property of attainability. As described in Section (ref), the traditional measures only satisfy this property if the marginal distributions have a certain structure. In the balanced setting of a $3\times 3$ contingency table, this amounts to the requirement that the marginals are identical in terms of the probability mass. That means that the values of the variables can differ but for each value of the first variable there needs to exist a value of the second variable with the same marginal probability mass.

An example for a comparison in which this requirement is particularly heavily violated is the one between the variables country and religion. Population data on those variables is available in the world religion database WRD2025. Since we only consider the three monotheistic world religions Christianity, Islam and Judaism and perform the analysis for each border triangle separately, we are indeed in the setting of $3\times 3$ contingency tables. However, the marginals in those tables are typically very different. For example, European countries usually have Christian population majorities and very little Muslims and even fewer Jews. As a consequence, the marginal distribution of the variable religion is skewed towards Christianity but the marginal distribution of the variable country may be more balanced.

figure[figure omitted — 611 chars of source]

The differing assessments of dependence between the new coefficient and the old coefficients, where Cramér's V serves as a representative for the traditional measures, are now nicely illustrated in Figure (ref). The maps for the remaining measures are located in Appendix (ref) (Figure (ref)), but display qualitatively similar correlation patterns to the one for Cramér's V. Two observations are immediate: On the one hand, the new coefficient generally yields larger values. On the other hand, the difference varies heavily across the comparisons. One particularly good example for the strength of the new coefficient are the border triangles Germany, Austria, Switzerland and Germany, Poland, Czechia. Cramér's V indicates a rather weak dependence for both triangles, although the value for the latter triangle is a little larger. The newly proposed coefficient however yields almost the same value as Cramér's V for the German-speaking triangle and a value close to one for the other triangle. Indeed, the dependence in both comparisons is very different. Germany, Austria and Switzerland have very similar social structures and religious groups of similar (relative) size. Thus, the dependence between country and religion is weak in this example. But in contrast to Germany, Poland and Czechia have enforced very restrictive migration policies in the past, which results in small religious minorities, especially on the Muslim side. Because both countries also barely have Jews, the Muslims and the Jews are in this example almost fully concentrated in Germany. The reason why Cramér's V yields such a small value is therefore not the weak dependence but the extremely skewed marginal distribution of the variable religion which is not matched by an equally skewed marginal distribution of the variable country. An additional reason is the structurally different definition of perfect dependence that I defend in this paper which can lead to large differences between traditional measures and $\gamma^*$ even if the marginal probabilities were such that the traditional measures are attainable (see Table (ref)).

Another nice example is the border triangle Bulgaria, Greece and Turkey. While Bulgaria and Greece have Christian majorities, Turkey is a primarily Muslim country. This situation of an obvious statistical dependence which consists of large religious blocks concentrated in different countries is nicely captured by both coefficients.

Conclusion

This paper has proposed a new concept of perfect dependence between two random variables of which at least one has a nominal scale that is attainable irrespective of the involved marginal distributions. In addition to that, it introduces the notion of proper dependence measures to the nominal case by defining a set of desirable properties which each such measure has to fulfill. All existing dependence measures fail to satisfy some of the axioms, especially since the existence axiom requires the ability to deal with a nominal-continuous combination of marginal distributions and the attainability axiom requires compliance with the previously defined concept of perfect dependence. As a result, new measures are necessary which are also proposed in this paper. For one of those, I develop asymptotic theory that can subsequently be exploited for confidence intervals and independence testing. Simulations show good finite sample performance for both methods of statistical inference and two applications illustrate the superiority of the new coefficient relative to existing ones.

Future research could continue the quest for a proper dependence measure also in the case in which only one nominal random variable is present. Also, it would be interesting to extend the notion of margin-freeness to nominal random variables and include this feature into the set of desirable properties geenens2020copula.