<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>On relationships between Chatterjee's and Spearman's correlation coefficients</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>02/20/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10422903</idno>
					<idno type="doi"></idno>
					<title level='j'>arXivorg</title>
<idno>2331-8422</idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Qingyang Zhang</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[In his seminal work, Chatterjee (2021) introduced a novel correlation measure which is distribution-free, asymptotically normal, and consistent against all alternatives. In this paper, we study the probabilistic relationships between Chatterjee's correlation and the widely used Spearman's correlation. We show that, under independence, the two sample-based correlations are asymptotically joint normal and asymptotically independent. Under dependence, the magnitudes of two correlations can be substantially different. We establish some extremal cases featuring large differences between these two correlations. Motivated by these findings, a new independence test is proposed by combining Chatterjee's and Spearman's correlations into a maximal strength measure of variable association. Our simulation study and real data application show the good sensitivity of the new test to different correlation patterns.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Measuring and testing the dependence between two continuous variables is a durable research topic in statistics. Two classical and arguably most widely used dependence measures are Pearson's correlation and Spearman's correlation. Pearson's correlation is powerful in detecting linear dependence, especially when the two variables are bivariate normal. Spearman's correlation is a nonparametric alternative to Pearson's.</p><p>It is sensitive to monotonic relations, and generally robust to outliers since it is rank-based. Under the null hypothesis of independence, the two sample-based correlations are both asymptotically normal, making it easy to calculate p-values. However, the common drawback of these methods is that they generally fail to detect non-monotonic relationships.</p><p>In the past decades, there have been numerous tests developed that are consistent against all alternatives, including the kernel-based test <ref type="bibr">[1]</ref>, distance correlation test <ref type="bibr">[2]</ref>, sign covariance test <ref type="bibr">[3]</ref>, copula-based test <ref type="bibr">[4]</ref>, graph-based test <ref type="bibr">[5]</ref> and maximal information test <ref type="bibr">[6]</ref>, among many others. For a recent survey, see <ref type="bibr">Josse &amp; Holmes (2016)</ref>  <ref type="bibr">[7]</ref>. Some of these tests are popular among practitioners, e.g., the distance correlation test. However, one major bottleneck of these tests is the testing process: because there is a lack of simple asymptotic theory that facilitate analytical computation of p-values, an expensive permutation test is typically required. For instance, the asymptotic null distribution of distance correlation is difficult to derive because it depends on the underlying distributions of random variables, and the standard approach is to approximate the null distribution of distance covariance via permutation, which requires a time complexity of O(Rn 2 ), where R is the number of permutations and n is the sample size.</p><p>Recently, Chatterjee (2021) introduced a rank-based correlation test which is also consistent against all alternatives <ref type="bibr">[8]</ref>. Different from the aforementioned tests, Chatterjee's correlation is asymptotically normal under independence, facilitating quick computation of p-values. Due to its nice properties, Chatterjee's correlation has attracted much attention over the past two years. We begin with a brief review of this method and related literature. Let X and Y be two continuous variables, and (X i ,Y i ) i=1,...,n be n i.i.d. samples of (X,Y ).</p><p>Assuming that X i 's and Y i 's have no ties, the data can be uniquely arranged as (X <ref type="bibr">(1)</ref> ,Y (1) ), ..., (X (n) ,Y (n) ),</p><p>The asymptotic behavior of &#958; n (X,Y ) and related problems have been examined in recent papers. Here we outline a few of them which are most relevant to this work. In his original paper <ref type="bibr">[8]</ref>, Chatterjee showed that</p><p>The limiting quantity &#958;(X,Y ) is also known as Dette-Siburg-Stoimenov's dependence measure <ref type="bibr">[12]</ref>, which is between 0 and  In addition to the simple asymptotic theory, as an empirical finding, Chatterjee's test is powerful to detect non-monotonic associations, especially those with oscillating nature such as the W-shaped scatterplot and the sinusoid <ref type="bibr">[8]</ref>. The only disadvantage of Chatterjee's test is that it may have less statistical power for smoother alternatives (such as linear or other monotonic relationships), compared to other popular tests including distance correlation test and Bergsma-Dassios test. For instance, as shown in Figure <ref type="figure">5</ref> of Chatterjee (2021), the power of &#958; n (X,Y ) quickly deteriorates as the noise level increases, which could be a matter of concern in practice. Motivated by these facts, we propose a versatile test by taking the maximum of Chatterjee's correlation and Spearman's correlation, where the the latter one is powerful to detect monotonic and smoother associations. Two questions arising from this proposal are</p><p>(1) What is the asymptotic joint distribution of the two correlations under independence?</p><p>(2) How much can they differ as a measure of dependence?</p><p>The first question is about analytical calculation of p-values. The second question investigates if the two correlations to be combined are complementary, in the sense that they measure different dependencies.</p><p>In this paper, we give a complete answer to the first question. For the second question, we provide two extremal examples featuring large differences between the two correlations. The idea of combining two complementary correlation metrics is not new. For instance, Zhang, Qi &amp; Ma (2011) showed the asymptotic independence between Pearson's correlation and a quotient-type correlation, and proposed a new test by combining them into a maximal type measure <ref type="bibr">[23]</ref>.</p><p>The remainder of this paper is structured as follows: Section 2 derives the asymptotic joint distribution of S n (X,Y ) and &#958; n (X,Y ) under independence. Section 3 investigates how much the two correlations can differ under dependence. Section 4 proposes the new test of independence, validated by both synthetic data and a real-world dataset. Section 5 discusses the paper with some future perspectives.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Asymptotic joint distribution under independence</head><p>With the same notations in previous section, Spearman's rank correlation can be written as</p><p>where R i represents the rank of Y (i) , i = 1, ..., n. Under the hypothesis of independence, it is well known that</p><p>and S n (X,Y ) are both asymptotically normal, their joint behavior remains unexplored. In this section, we derive the asymptotic joint distribution of &#958; n (X,Y ) and S n (X,Y ) under independence.</p><p>Let Proof. Spearman's correlation can be rewritten as</p><p>.</p><p>For the covariance between &#958; n (X,Y ) and S n (X,Y ), we have</p><p>The following results ( <ref type="bibr">[11]</ref>, Lemma 6.1, page 13) are needed for our derivations</p><p>For the first term in Equation ( <ref type="formula">2</ref>), we have</p><p>Similarly for the second term, we have</p><p>For the third term, we have</p><p>Therefore Cov [S n (X,Y ), &#958; n (X,Y )] = 0. This completes the proof of Lemma 1.</p><p>Remark 1. It is noteworthy that Lemma 1 only indicates the uncorrelatedness between S n (X,Y ) and &#958; n (X,Y ).</p><p>In fact, under finite sample, S n (X,Y ) and &#958; n (X,Y ) are generally dependent. A simple example is given in Table <ref type="table">1</ref>, where n = 3 and Cov</p><p>Next we present a lemma that establishes the central limit theorem for {S n (X,Y ), &#958; n (X,Y )}. The key steps to prove Lemma 2 include (1) the coupling method for permutation oscillation proposed by <ref type="bibr">[9]</ref> (2) the central limit theorem for m-dependent sequence and (3) Cra &#7743;er-Wold device. The detailed proof is a bit lengthy, and we provide it in the Appendix.</p><p>Lemma 2. If X and Y are independent, &#8730; nS n (X,Y ) and &#8730; n&#958; n (X,Y ) are asymptotically joint normal.</p><p>By Lemmas 1 and 2, our main theorem follows immediately Theorem 1. If X and Y are independent, &#8730; nS n (X,Y ) and &#8730; n&#958; n (X,Y ) are asymptotically joint normal and asymptotically independent. To be specific,</p><p>Theorem 1 answers the first question that we asked in Section 1, which enables analytical calculation of p-values for the proposed integrated test (to be further discussed in Section 4). Theorem 1, together with Lemma 1 and Remark 1, give a complete characterization for the joint behavior of S n (X,Y ) and &#958; n (X,Y )</p><p>under independence. The convergence of {S n (X,Y ), &#958; n (X,Y )} to joint normality, as sample size n increases, is illustrated in the Figure <ref type="figure">1</ref> below.</p><p>[Figure <ref type="figure">1</ref> about here] 3 Chatterjee's and Spearman's correlations -how much can they differ?</p><p>In this section, we explore the second question outlined in the Section 1, i.e., how much the two correlations can differ as a metric of dependence. We focus on some extremal cases where the magnitudes of &#958; n (X,Y ) and S n (X,Y ) are largely different. For dependent variables X and Y , &#958; n (X,Y ) is generally, though not always, between 0 and 1, while S n (X,Y ) is between -1 and 1, therefore we take the absolute value of S n (X,Y ), and compare &#958; n (X,Y ) and |S n (X,Y )| instead. We first provide an extremal case where the absolute Spearman's correlation is small but Chatterjee's correlation is large. This extremal case is easy to construct using simple symmetric patterns such as</p><p>Extremal case 1: For any &#949; &gt; 0, there exist ranks</p><p>Proof. Without loss of generality, suppose n is odd. We construct the following ranks</p><p>It is straightforward to show that</p><p>To derive S n (X,Y ), first we have</p><p>For any given &#949; &gt; 0, we can find an odd number n, such that (6n -9)/(n 2 -1) &lt; &#949; and 3/(2n) &lt; &#949;, therefore</p><p>Next we seek an opposite extremal case where |S n (X,Y )| is large but &#958; n (X,Y ) is small. This extremal case is not straightforward because when |S n (X,Y )| = 1, {R 1 , ..., R n } are monotonically increasing or decreasing, therefore &#958; n (X,Y ) = (n-2)/(n+1), which means when |S n (X,Y )| is close to 1, the minimum possible value of &#958; n (X,Y ) may not be close to 0. Mathematically, this can be formulated as the following optimization problem For a given 0 &lt; &#949; &lt; 1, find max</p><p>where {R 1 , ..., R n } perm = [n] represents that {R 1 , ..., R n } is a permutation of {1, ..., n}, given the following inequality constraint</p><p>Unless n is small enough to enumerate all permutations of {R 1 , ..., R n }, the optimization problem above is difficult because of the complicated constraints. It may require advanced integer programming techniques, which is beyond the scope of this work. We leave the optimization problem as an open question and try to give a simple example instead, where &#958; n (X,Y ) is relatively small but |S n (X,Y )| is substantially larger.</p><p>Our intuition is that Spearman's correlation measures the overall monotonic relations while Chatterjee's correlation is sensitive to the local changes. Accordingly we construct a case which is overall monotonic but with wiggly local patterns.</p><p>Extremal case 2: For any &#949; &gt; 0, there exist ranks {R 1 , ..., R n }, such that &#958; n (X,Y ) = &#949; + O(1/n) and</p><p>Proof. We construct n = 2m + p ranks which can be partitioned into two parts, the part of 1 &#8804; i &#8804; 2m has an oscillating pattern while the part of 2m + 1 &#8804; i &#8804; n is monotonically increasing</p><p>Let c = p/m, the following results can be obtained</p><p>For any 1 &gt; &#949; &gt; 0, there exists c &gt; 0 such that &#949;</p><p>We give two examples for this extremal case (1) when n = 100, m = 40 and p = 20, &#958; n (X,Y ) &#8776; 0.058 while S n (X,Y ) &#8776; 0.753 (2) when n = 130, m = 50 and p = 30, &#958; n (X,Y ) &#8776; 0.125 while S n (X,Y ) &#8776; 0.779, both showing substantial difference between the two metrics.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">A new test for independence</head><p>Motivated by the findings in Sections 2 and 3, we propose the following new metric</p><p>As I n (X,Y ) takes advantage of both S n (X,Y ) and &#958; n (X,Y ), it can be used as a versatile test for detecting both monotonic and non-monotonic associations. Moreover, by Theorem 1, one can calculate the asymptotic p-value as follows</p><p>where z &#8805; 0 and &#934;(&#8226;) represents the standard normal distribution function.</p><p>We conducted two simulation studies to evaluate the performance of the proposed test. In the first study, we compared the empirical power of S n (X,Y ), &#958; n (X,Y ) and I n (X,Y ) under different sample sizes {20, 40, 60, 80, 100}. Generating X from Uniform[-1, 1], the following four alternatives were considered, where &#949; &#8869; X and &#949; &#8764; N(0, 1):</p><p>3. Sinusoid: Y = cos(2&#960;X) + 0.75&#949;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Stepwise:</head><p>Figure <ref type="figure">2</ref> summarizes the empirical power over 5, 000 simulation runs (at the significance level of 0.05).</p><p>As expected, Spearman's test has the highest power for the monotonic settings, i.e, linear and stepwise, but extremely low power for the other settings. Chatterjee's test is most powerful for two non-monotonic settings, i.e., quadratic and sinusoid, but it has much lower power for the monotonic settings. For instance, in the linear setting when n = 60, Chatterjee's test has a power of 0.532, while the other two tests both have power higher than 0.98. The new test has satisfactory power for all settings, especially for linear and stepwise settings where the new test is comparable to Spearman's method.</p><p>[Figure <ref type="figure">2</ref> about here]</p><p>In the second study, we examined the p-value bias. The exact p-value was approximated using 5, 000 permutations and the bias was computed as the asymptotic p-value minus the exact p-value. In each simulation run, we generated X from Uniform[-1, 1] and Y from N(0, 1) with sample size {20, 40, 60, 80, 100}.</p><p>Figure <ref type="figure">3</ref> summarizes the bias over 1, 000 simulations runs. It can be seen that the asymptotic p-values are overall close to the exact p-values. However, for a relatively small sample size, e.g., n = 20, the asymptotic p-values is positively biased, indicating the conservativeness of the test. The bias vanishes as sample size increases. In practice, if the sample size is small, e.g., n &lt; 30, we recommend a permutation test based on I n (X,Y ) to avoid power loss.</p><p>[Figure <ref type="figure">3</ref> about here]</p><p>The proposed method was also tested on a transcriptomics dataset by Spellman et al. (1998), which contains the expression levels of 6,223 yeast genes over 23 successive time points during the cell cycle <ref type="bibr">[24]</ref>.</p><p>This dataset was processed by <ref type="bibr">[6]</ref>, where genes with missing observations were excluded. The processed dataset has 4,381 genes, which is available through R package minerva. There have been many papers testing different correlation measures using this particular dataset including Chatterjee (2021).</p><p>For all three methods, p-values were calculated using asymptotic formulas, and then adjusted by Benjamini-Hochberg procedure to control the false discovery rate (FDR) at the level of 0.05. Figure <ref type="figure">4</ref> summarizes the number of significant genes identified by three tests. Out of a total of 4,381 genes, the new test selected 734 genes whose expression levels change during the cell cycle, while the other two tests selected 619 and 385 genes respectively. This is due to the existence of different expression patterns in the data, i.e., some genes have smoother expression change while others have non-monotonic such as oscillating expression change.</p><p>Figure <ref type="figure">5</ref> presents a random sample of four genes that are identified by the new test but missed by Spearman's test. It can be seen that the expression levels of all four genes exhibit certain oscillating patterns. Figure <ref type="figure">6</ref> shows a random sample of four genes that are identified by the new test but missed by Chatterjee's test, where all genes have smoother expression change during the cell cycle.</p><p>[Figure <ref type="figure">4</ref> about here]</p><p>[Figure <ref type="figure">5</ref> about here]</p><p>[Figure <ref type="figure">6</ref> about here]</p><p>5 Discussion and conclusions</p><p>Chatterjee's rank correlation has attracted a lot of attention during the past two years due to its simplicity and nice statistical properties. However, the cost we pay for this simple method is its inferior performance in detecting smoother correlation patterns, such as linear relationships. To boost the power of this ingenious measure, in this paper, we proposed a max-type test by combining Chatterjee's correlation with Spearman's correlation, as the latter one is also rank based but sensitive to smooth correlation patterns. We derive the asymptotic joint distribution of these two correlations under independence, which enables analytical calculation of p-values. Our simulation study and the transcriptomics application illustrated the promise of the new test. Due to the simple calculation and satisfactory performance, the test is readily applicable to many correlative analyses, e.g., the gene-gene interaction and protein-protein interaction network construction.</p><p>There are several possible extensions of this work. First, the new test statistic I n (X,Y ) is generally asymmetric because &#958; n (X,Y ) is asymmetric, i.e., &#958; n (X,Y ) = &#958; n (Y, X). When a symmetric measure is more suitable, one can consider the following modification</p><p>In previous work <ref type="bibr">[16]</ref>, we established the asymptotic joint normality of &#958; n (X,Y ) and &#958; n (Y, X) and showed that the symmetrized metric, i.e., max{&#958; n (X,Y ), &#958; n (Y, X)}, converges to a skew normal distribution under independence. The proof is based on Chatterjee's central limit theorem <ref type="bibr">[25]</ref>. The joint asymptotic behavior of {S n (X,Y ), &#958; n (X,Y ), &#958; n (Y, X)} could be studied in a similar way, and the first and most important step is to construct a valid interaction rule for I sym n (X,Y ) <ref type="bibr">[13,</ref><ref type="bibr">16]</ref>. However, this may require significant efforts and we leave it for future research.</p><p>Second, as we discussed in the simulation study, the asymptotic p-value is generally close to the true p-value, but it tends to be positively biased for small sample, e.g., n &lt; 30, resulting in certain power loss.</p><p>In the case of small sample, we recommend a permutation test for better testing performance. Another way to reduce the potential p-value bias is to use asymptotic expansion method, e.g., Edgeworth expansion, Cornish-Fisher expansion or saddle point approximation, which may improve p-value approximation by incorporating higher-order moments such as skewness and kurtosis.</p><p>6 Appendix: Proof of Lemma 2</p><p>Proof. We first define F(y</p><p>x}/n. For Chatterjee's correlation, using Equations 5-8 in Angus (1995), we have</p><p>where Z P -&#8594; 0. For Spearman's correlation, we define the following function</p><p>where the second term can be rewritten as</p><p>For the first term, using continuous mapping theorem, we have</p><p>We will show that For any two constants, a b, define</p><p>and</p><p>where</p><p>It can be seen that for any j &#8805; 1, Z i+ j is independent of [Z 1 , ..., Z i ], therefore the sequence {Z i } is 1-dependent sequence. Similar to Equations ( <ref type="formula">11</ref>)-( <ref type="formula">14</ref>) in <ref type="bibr">[9]</ref>, we have</p><p>where  </p></div></body>
		</text>
</TEI>
