Abstract

In this blog, our goal is to explore the theoretical study conducted by the authors on testing independence in the context of biased sampling. We will specifically concentrate on tests based on the bootstrap method and the suggested Adjusted Hoeffding Statistic. Throughout our exploration, we’ll outline the essential assumptions and intermediate steps. Our aim is to offer a clear and intuitive summary of the paper.

Introduction

Examining the independence of two random variables becomes a complex undertaking when data is acquired through a general biased sampling mechanism. A common scenario is truncation, where observations are confined to a specific ‘observable region’. Almost all cross-sectional samples experience some form of truncation, and the conventional approach to analyzing such data involves assuming independence between the truncation mechanism and the variables of interest. However, if this independence assumption is breached, the outcomes of the analysis may be significantly biased.

In the article, the authors study the problem of detecting dependency from general biased samples. Suppose we are given a sample of \(n\) independent and identically distributed (i.i.d.) observations \(\left\{\left(x_i, y_i\right)\right\}_{i=1}^n\) drawn from a joint distribution having a density \(F_{X, Y}^{(w)}(d x, d y) \propto\) \(w(x, y) F_{X Y}(d x, d y)\), where \(w\) is a known non-negative function having a positive finite expectation with respect to \(F_{X Y}\). Here \(F_{X Y}\) is the joint distribution of the pair \((X, Y)\) in the population}, and \(F_{X, Y}^{(w)}\) is the distribution of observed pairs, tilted by \(w\), the sampling mechanism. Originally the goal would be to test the null hypothesis \(H_0: F_{X Y}(x, y)=F_X(x) F_Y(y)\) for all \((x, y)\). However, because \(F_{X Y}\) is not identifiable on \(\{(x, y): w(x, y)=0\}\), the goal is restricted to testing quasi-independence defined as \(F_{X Y}(d x, d y)=\tilde{F}_X(d x) \tilde{F}_Y(d y)\) for all \((x, y) \in\left\{\left(x^{\prime}, y^{\prime}\right): w\left(x^{\prime}, y^{\prime}\right)>0\right\}\), for some functions \(\tilde{F}_X, \tilde{F}_Y\) (Tsai 1990).

Bootstrap is a well-known method that can be applied to address this test of independence. It requires consistent estimation of the univariate marginal distributions under the alternative hypothesis. Thus, based on this, the paper developed a bootstrap test of independence, identifying 2 settings under which consistent marginal estimations could be attained for both null and alternative hypothesis.

This paper is closely aligned with the concepts covered in our ST793 course. It introduces two novel test statistics and develops their distribution under the null hypothesis. The utilization of the bootstrap approach to derive these distributions is a major part of our course, via which we could attain consistent estimators of the marginals under both the null and the alternative.

The Blog is organized as the followings: In section Preliminaries, we illustrated some basic terminologies W.R.T quasi-independence. In section Bootstrap-Based Tests, we went over the general bootstrap algorithm for our setting, followed by the estimation of marginals under 2 different cases. In section Test Statistics, we introduced the adjusted Hoeffding Statistic and how to compute it, with a special discussion of the scenario when weight function is unknown, which is the case of left-truncated right-censored data. Then in the final section Simulation,we discussed the results obtained from this newly proposed method, with the comparison to ones from classical tests on simulated data.

Preliminaries

This part will discuss some basic definitions under the framework of quasi-independence for later work . First, the author gives the definitions of the joint density, marginals of observed data and the independent density with respect to the pre-mentioned w weighted functions:

Joint density: \[ \begin{equation} \tag{1} f_{X,Y}^{w}(x,y)=w(x,y)f_{X,Y}(x,y)/E_{f_{X,Y}}{w(X,Y)} \end{equation} \]

Marginals: \(f_X^w(x)=\int_{-\infty}^{\infty}f_{X,Y}^{w}(x,y) {\rm d}y\); \(f_Y^w(y)=\int_{-\infty}^{\infty}f_{X,Y}^{w}(x,y) {\rm d}x\)
Independent Density: \([f_{X}f_{Y}]^{(w)}=w(x,y)f_{X}(x)f_Y(y)/E_{f_Xf_Y}w(X,Y)\), with the corresponding weighted function as \([F_XF_Y]^{(w)}\)

where \(w\) is a known non-negative function having a positive finite expectation with respect to \(F_{X Y}\), \(w:R^2\rightarrow R^+\). Essentially, we could understand this \(E_{f_{X,Y}}{w(X,Y)}\) as a normalizing constant to make a valid density function when adding the weight function \(w\) in front of \(f_{X,Y}\). And an important case for the application of this \(w\) is that of truncated samples in which:
\[ \begin{equation} \tag{2} w(x,y)=I_A(x,y)=\begin{cases}1&\text{(x,y)} \in {A} \\ 0&\text{otherwise} \end{cases} \end{equation} \]

Following this, the paper proposes its’ definition of quasi-independence:

Definition 1: We say that the joint distribution \(F_{XY}^{w}\) is quasi-independent with respect to the weight function \(w\), if there exist density functions \(\tilde{f}_x\) and \(\tilde{f}_Y\), such that:

\[ \begin{equation} \tag{3} F_{X, Y}^{(w)}(x, y) \int_{-\infty}^{\infty}\propto w(x, y)\tilde{f}_X(s)\tilde{f}_Y(t) dtds, \ \forall x,y \in \mathbb{R} \end{equation} \] Otherwise, it’s quasi dependent with respect to the weight function \(w\).

Our aim then would be based on the sample \(D=\left\{\left(x_i, y_i\right)\right\}_{i=1}^n\), we want to perform the following hypothesis testing for quasi-dependence:

\[\quad H_0: F_{XY}^{w} \quad is \quad quasi-independent.\\ H_1: F_{XY}^{w} \quad is \quad quasi-dependent.\]

Bootstrap-Based Test

The Bootstrap Algorithm

When we can estimate the univariate marginal distributions from the data, we can generate independent samples from the estimated null distribution using bootstrap method and compute the test statistic for each such sample. We can then reject the null hypothesis if the observed test statistic is greater than the \(1-\alpha\) quantile of the resulting bootstrap distribution.

Algorithm 1: Bootstrap-Based Test of Quasi-Independence

Input:

  • \(\mathcal{D}\): Sample
  • \(w(x, y)\): Bias function
  • \(T:\mathbb{R}^{2n} \to \mathbb{R}\) test statistic

Parameters: \(B\): Number of bootstrap samples

Output: \(p\)-value

Steps:

  1. Estimate the marginals \(\hat{F}_x\) and \(\hat{F}_y\).
  2. Compute the test statistic \(\hat{T} = T(\mathcal{D})\).
  3. For \(i = 1\) to \(B\):
    1. Generate a bootstrap sample \(\mathcal{D}_i\) by sampling with replacement \(n\) i.i.d. samples from \([\hat{F}_X \hat{F}_Y]^w\).
    2. Estimate the marginals \(\hat{F}_{x,i}\) and \(\hat{F}_{y,i}\) of the bootstrap sample \(\mathcal{D}_i\).
    3. Compute the test statistic \(\hat{T}_i = T(\mathcal{D}_i)\).
  4. Compute the \(p\)-value as, \(p= \frac{1}{B+1} \sum_{i=0}^B \mathbb{I}\{T_0 \ge T_i\}\).

The first step of estimating the marginals is discussed in the following section and the second step of computing test-statistic is discussed in the Test-statistic section later.

Estimating the Marginal Distributions

Under a bias-sampling regime, the underlying marginals may not be identifiable. That is why the authors made additional modeling assumptions on either \(F_{XY}\) or \(w(x, y)\) which are discussed in the next sections.

Case 1: Estimating the Marginal Distributions Under Quasi-independence

Let \(\tilde{X} \sim \tilde{F}_X\), \(\tilde{Y} \sim \tilde{F}_Y\), where \(\tilde{F}_X\), and \(\tilde{F}_Y\) are CDFs of \(\tilde{f}_X\), and \(\tilde{f}_Y\) in Equation 3. Using the law of total probability, the marginal density of X under quasi-independence can be written as, \[ \begin{equation} \tag{4} f_{X}(x) = \frac{\mathbb{E}[w(x, \tilde{Y})] \tilde{f}(x)}{\mathbb{E}[w(\tilde{X}, \tilde{Y})]} \end{equation} \] Note that, by law of total probability, \[ f_X(x)=f(x|x:(x,y)\in A)P(x:(x,y)\in A)+f(x|x:(x,y)\notin A)P(x:(x,y)\notin A) \\ \propto \tilde f(x) \int_{-\infty}^{\infty} w(x,\tilde Y)\tilde f_Y(y)dy \\ =\mathbb{E}[w(x, \tilde{Y})] \tilde{f}(x) \]

Thus, to make it a valid density function, we divided it by a normalizing constant: \(\mathbb{E}[w(\tilde{X},\tilde{Y})]\), and obtained the marginal density in Equation (4).

If we have an estimate of \(\tilde{F}_{Y}\), then we can find an estimate for \(\mathbb{E}[w(x,\tilde{Y})]\), which can be used to build an inverse weighting estimate for \(\tilde{F}_{X}\):

\[ \begin{equation} \tag{5} \hat{\tilde{F}}_{X}(x)=\frac{\sum_{i=1}^{n}\mathbb{I}(x_{i}\le x)\hat{\mathbb{E}}[w(x_{i},\tilde{Y})]^{-1}}{\sum_{i=1}^{n}\hat{\mathbb{E}}[w(x_{i},\tilde{Y})]^{-1}} \end{equation} \]

Note that, given the results in equation (4), we easily have the estimated empirical distribution due to:

\[ \tilde f(x) = \frac{\mathbb{E}[w(\tilde X, \tilde{Y})] f_X(x)}{\mathbb{E}[w(x, \tilde{Y})]}\propto{\mathbb{E}[w(x, \tilde{Y})]}^{-1}f_X(x) \]

Thus, we have Equation 5, where the denominator is an estimated normalizing constant to make a valid cumulative density.

We can then use this to estimate \(\tilde{F}_{Y}\) in turn, and perform an iterative process as described in the following Algorithm 2. For \(w(x,y)=\mathbb{I}({x<y})\), the algorithm reduces to the standard product-limit (PL) estimator for left and right truncated data. The following algorithm describes a method for estimating the marginal distributions under quasi-independence. Given a set of data points \(D\), a bias function \(w(x, y)\), and a distance function \(d(F_1, F_2)\), the algorithm iteratively updates estimates of the marginal distributions \(F_x\) and \(F_y\) until they converge. The algorithm terminates when the difference between the current estimates and the previous estimates is less than a specified convergence criterion \(\epsilon\).

Algorithm 2: Estimation of Marginal Distributions Under Quasi-independence

Input:

  • \(D\): sample
  • \(w(x, y)\): Bias function
  • \(d(F_1, F_2)\): Distance function

Parameters: \(\epsilon\): Convergence criterion

Output: \(\tilde{F}_{X,new}\) and \(\tilde{F}_{Y,new}\)

Steps:

  1. Initialize estimates \(\tilde{F}_{X,new}\) and \(\tilde{F}_{Y,new}\), and set \(\tilde{F}_{X,old} = \tilde{F}_{Y,old} \equiv 0\).

  2. While \(d(\tilde{F}_{X,old}, \tilde{F}_{X,new}) + d(\tilde{F}_{Y,old}, \tilde{F}_{Y,new}) > \epsilon\):

    • Set \(\tilde{F}_{X,old} = \tilde{F}_{X,new}\) and \(\tilde{F}_{Y,old} = \tilde{F}_{Y,new}\).

    • Calculate \(\mathbb{E}_{\tilde{F}_{Y,new}}[w(x,Y)]\), and update \(\tilde{F}_{X,new}\) using the Equation (5).

    • Calculate \(\mathbb{E}_{\tilde{F}_{X,new}}[w(X, y)]\), and update \(\tilde{F}_{Y,new}\) using the equivalent of Equation (5) for \(\tilde{F}_{Y}\).

  3. Output \(\tilde F_{x,new}\) and \(\tilde F_{y,new}\).

When the algorithm terminates, the estimates \(\tilde{F}_{x,new}\) and \(\tilde{F}_{y,new}\) are considered to be the marginal distributions under quasi-independence.

Algorithm 2 may result in low power for testing purposes. Specifically, the truncation model \(w(x,y) = \mathbb{I}(x<y)\). Although the PL estimators remain consistent under the null hypothesis, employing them in our test yields low power, even in scenarios of apparent strong dependence. To achieve satisfactory performance for moderate sample sizes, accurate estimation of the marginals is crucial not only under the null but also under the alternative hypothesis, as illustrated in the subsequent example.

Example: Difficulties in Detecting Quasi-Independence.

To illustrate the point that the PL estimate only works well in null, but fails to provide with considerable power, even in extreme cases when \(X\) and \(Y\) are strongly dependent, the paper has shown a nice example.

Figure 1

Figure 1

  • First, the paper generated 500 pairs of data points from a uniform bivariate distribution over \(\{0<x,y<1:|x-y|<0.3\}\), and have \(w(x,y)=\mathbb{I}{(x<y)}\), as shown in the left panel of Figure 1.
  • Second, the paper estimated the \(\tilde{F_X},\tilde{F_Y}\) via PL estimation, which is shown as the green and red curves in the right panel of Figure 1, respectively,and given the exchangeability of \(X\) and \(Y\), the true underlying marginal of the two will share the same distribution, shown as the blue curve in the right panel. Obviously, we could see that the PL estimates differ considerably from the true.
  • Third, the paper generated samples independently from the estimated PL estimates, \(\hat{F_X},\hat{F_Y}\),and retained only observations satisfying \(\tilde{X}<\tilde{Y}\), as shown in the middle panel of Figure 1.

Comparing the left and middle panels, we could find that the independent variables under selection bias (middle panel) can actually produce data similar to that obtained from highly dependent variables (left panel), which is not ideal. That’s exactly why application of bootstrap tests using estimates of the marginal only consistent under null could lead to quite limited power, \(P(rejection|H_1)\).

Case 2: Left Truncation \(w(x, y) = \mathbb{I}{(x<y)}\)

As we stated in case 1, for a test to perform reasonably well for moderate sample sizes, \(F_X\) and \(F_Y\) should be estimated well not only under the null, but also under the alternative hypothesis, and the example in case 1 exactly illustrated this point. Thus, to fix this problem under truncated settings where there is information loss of data and identifiability issue, this paper proposed a different solution in this subsection. We will explain in details how the author solved this issue with additional assumptions to derive the following proposition for the estimation of marginals:

Proposition 1: Let \(F_{XY}(x,y)\) be an exchangeable joint distribution having a density \(f_{XY}(x,y)≡f_{XY}(y, x)\) and let \(D ∼ [F_{XY}^{w} ]^n\)be a sample with the truncation weight function \(w(x, y )=\mathbb{I}{(x<y)}\) .Let \(\tilde{F}_X^{n}(x)\), \(\tilde{F}_Y^{n}(y)\)be the empirical CDFs of \(F_X(w)\) and \(F_Y(w)\) respectively. Define:

\[ \begin{equation} \tag{6} \hat{F}_X^n=\hat{F}_Y^n=\cfrac{\hat{F}_X^{w,n(x)}+\hat{F}_Y^{w,n}(x)}{2}=\cfrac{\sum_{i=1}^n\mathbb{I}(X_i\leq x)+\sum_{i=1}^n\mathbb{I}(Y_i\leq x)}{2n} \end{equation} \]

Then, \(\hat{F_X^n},\hat{F_Y^n}\rightarrow F_X=F_Y a.s.\)

We will prove this Proposition 1 as follows with assumption: \(X\) and \(Y\) are continuous exchangeable random variables.

Firstly, given \(X\) and \(Y\) are exchangeable, then easily we obtained: \(P(X< Y)=P(Y< X)=\cfrac{1}{2}\),
Based on this, We will easily have: \[ \begin{equation} \tag{7} f_{XY}^w(x,y)=2\mathbb{I}{(x< y)}f_{XY}(x,y) \end{equation} \] Then, let’s calculate the weighted marginals by taking integrals w.r.t \(Y\) on both sides of the above equation: \[ \begin{equation} \tag{8} f_{X}^w(t)=2\int_t^{\infty}f_{X,Y}(t,y)dy=2\int_t^{\infty}f_{X,Y}(y,t)dy \end{equation} \] The second equation sign of Equation 8 is based on the exchangeability of \(X\) and \(Y\). Similarly, we get: \[ \begin{equation} \tag{9} f_{y}^w(t)=2\int_{-\infty}^tf_{X,Y}(x,t)dx \end{equation} \] Therefore, due to continuity assumption, \[ \begin{equation} \tag{10} \cfrac{f_{X}^w(t)+f_{Y}^w(t)}{2}=\int_t^{\infty}f_{X,Y}(y,t)dy+\int_{-\infty}^tf_{X,Y}(x,t)dx=\int_t^{\infty}f_{X,Y}(x,t)dx+\int_{-\infty}^tf_{X,Y}(x,t)dx=f_Y(t) \end{equation} \]

Similarly, we could have: \[ \begin{equation} \tag{11} \cfrac{f_{X}^w(t)+f_{Y}^w(t)}{2}=\int_t^{\infty}f_{X,Y}(y,t)dy+\int_{-\infty}^tf_{X,Y}(x,t)dx=\int_t^{\infty}f_{X,Y}(y,t)dy+\int_{-\infty}^tf_{X,Y}(y,t)dy=f_X(t) \end{equation} \] Then, we have: \[ \begin{equation} \tag{12} \cfrac{F_{X}^w(x)+F_{Y}^w(x)}{2}=F_Y(x)=F_X(x) \end{equation} \] Finally based on Glivenko–Cantelli Theorem, we could estimate \(\cfrac{F_{X}^w(x)+F_{Y}^w(x)}{2}\) by, \[ \begin{equation} \tag{13} \cfrac{\hat{F}_X^{w,n}(x)+\hat{F}_Y^{w,n}(x)}{2}=\cfrac{\sum_{i=1}^n\mathbb{I}(X_i\leq x)+\sum_{i=1}^n\mathbb{I}(Y_i\leq x)}{2n}=\hat{F}_X^n=\hat{F}_Y^n \end{equation} \]

Test Statistics

The Adjusted Hoeffding Statistic

The authors modified an existing test statistic by Heller et al. (2016), who proposed a modified Hoeffding Statistic (Hoeffding 1994), to weighted models in general and to truncation in particular. We will start this section with reviewing Hoeffding’s independence test.

Let \(X\) and \(Y\) be two real-valued random variables on the same probability space, with a joint cumulative distribution function \(F(x,y)=P(X \le x,Y \le y)\). Their marginal distribution functions are assumed to be continuous, and are denoted respectively by

\[ \begin{equation} \tag{14} F_X(x)=F(x,\infty)=P(X\le x) \end{equation} \]

\[ \begin{equation} \tag{15} F_Y(y)=F(\infty,y)=P(Y\le y) \end{equation} \]

The null hypothesis, that the two variables are independent, is expressed as: \(F \equiv F_X F_Y\).

In order to measure how much \(F\) departs from independence, Hoeffding proposed the following statistic,

\[ \begin{equation} \tag{16} D=\int (F(x,y)-F_X(x)F_Y(y))^2 dF(x,y) \end{equation} \]

It is clear that \(D=0\) if \(X\) and \(Y\) are independent. Conversely, Hoeffding (1994) (1948b, Theorem 3.1) showed that \(D>0\) whenever the joint distribution is dependent and absolutely continuous, that is, has a joint density function \(f(x,y)\) integrating to \(F(x,y)\).

This test statistic, derived from \(n\) independent observations represented as \((X_{i},Y_{i})\), is essentially formulated by replacing the unknown distribution \(F\) with the empirical distribution. This substitution leads to a finite average for the integrals, resulting in the following expression:

\[ \begin{equation} \tag{17} D_{n}=\frac{\sum_{i,j,k,l,m}\phi(X_{i},Y_{i},...,X_{m},Y_{m})}{n(n-1)(n-2)(n-3)(n-4)} \end{equation} \]

Here, the summation encompasses all combinations of five distinct indices \(i,j,k,l,m\) from the set \({1,...,n}\). Estimators obtained through this process are referred to as U-statistics, a concept pioneered and investigated by Hoeffding (1992). Notably, such estimators are unbiased, \(E(D_{n})=D\), and they also exhibit consistency, \(D_{n}\rightarrow D\) in probability, where \(D\) is the population parameter as above.

For every point \((X_{i},Y_{i})\) , let \(a_{i}\) , \(b_{i}\) , \(c_{i}\) and \(d_{i}\) be the number of other points in the four quadrants around it, as follows.

\[ \begin{equation} \tag{18} a_{i}=|\{j:\begin{matrix}X_{j}<X_{i}\\ Y_{j}>Y_{i}\end{matrix}\}| \\ b_{i}=|\{j:\begin{matrix}X_{j}>X_{i}\\ Y_{j}>Y_{i}\end{matrix}\}| \\ c_{i}=|\{j:\begin{matrix}X_{j}<X_{i}\\ Y_{j}<Y_{i}\end{matrix}\}| \\ d_{i}=|\{j:\begin{matrix}X_{j}>X_{i}\\ Y_{j}<Y_{i}\end{matrix}\}| \end{equation} \]

Hoeffding (1994) gives a formula for computing \(D_{n}\) , which can be rephrased by means of these variables as follows:

\[ \begin{equation} \tag{19} D_{n}=\frac{1}{n(n-1)\cdot\cdot\cdot(n-4)}\sum_{i=1}^{n}[a_{i}(a_{i}-1)d_{i}(d_{i}-1) +b_{i}(b_{i}-1)c_{i}(c_{i}-1)-2a_{i}b_{i}c_{i}d_{i}] \end{equation} \]

The test proposed in this article belongs to a family of tests which compare the observed counts \(o_{\mathcal{A}}\) to the expected counts \(e_{\mathcal{A}}\) for different sets \(\mathcal{A} \in \mathbb{R}^2\) which is based on Pearson’s Chi-squared statistics, and we consider all partitions defined by the data \(\mathcal{D}\). Specifically, each data point \(\left(x_i, y_i\right) \in \mathcal{D}\) defines a partition of \(\mathbb{R}^2\) into four quadrants: \[ \begin{equation} \tag{20} Q_i^{j k} \equiv\left\{\left(x^{\prime}, y^{\prime}\right) \in \mathbb{R}^2: \mathbb{I}{\left\{x^{\prime}>x_i\right\}}=j, \mathbb{I}{\left\{y^{\prime}>y_i\right\}}=k\right\} \quad j, k \in\{0,1\} \end{equation} \]

For example, \(Q_i^{00}=\left(-\infty, x_i\right] \times\left(-\infty, y_i\right]\) and \(P\left((X, Y) \in Q_i^{00}\right)=F_{X Y}^{(w)}\left(x_i, y_i\right)\).

Let \(\left(x_i, y_i\right)\) represent a data point in the sample \(\mathcal{D}\). For a quadrant \(Q_i^{j k}\), the observed number of points is denoted as \(o_i^{j k} \equiv o_{Q_i^{j k}}\), and the expected number of points under the null hypothesis is denoted as \(e_i^{j k} \equiv e_{Q_i^{j k}}\). The computation involves determining, for each quadrant, the scaled squared difference between the observed and expected number of points under the null. The test statistic is then obtained by summing over all sample points, as expressed by the following equation:

\[ \begin{equation} \tag{21} T=\sum_{i=1}^n \sum_{j, k \in\{0,1\}} \frac{\left(o_i^{j k}-e_i^{j k}\right)^2}{e_i^{j k}} \end{equation} \]

The next step is to estimate the expected values \(e_{i}^{jk}\) which requires the estimation of the null distribution. For the bootstrap approach, the estimation of the null distribution can be illustrated with the following example point. Consider, the bottom-left quadrant with respect to a point \((x_i, y_i)\), \(Q_i^{00}\); given estimators \(\hat{F}_X\), \(\hat{F}_Y\) of the univariate CDFs, a natural estimator for the mass that the null puts on \(Q_i^{00}\) is given by, \[ \begin{equation} \tag{22} \widehat{e_i^{00}} = n [\hat{F}_X \hat{F}_Y]^{(w)} (x_i, y_i) \end{equation} \]

Unknown \(w\): Left Truncated Right Censored Data

The author also discussed this subsection, where the bias sampling function \(w\) is unknown and illustrated that the methodology introduced before is still applicable when \(w\) is estimable. He gave an example of left truncation right-censoring, which was quite related to our course topic earlier this semester, thus we decided to include this scenario for detailed discussion.

For a left truncation right censoring model, we first defined n triplets, \((X_i,Y_i,C_i)\), and assumed: \(F_{X_i,Y_i}\propto f_{X,Y}(x,y)I_{x<y}\) for some \(f_{X,Y}\), and \((X_i,Y_i)\perp C_i\), and essentially our observations are :

\[Triplets: (X_i,min(Y_i,X_i+C_i),\Delta_i),\\ \Delta_i=\mathbb{I}{(Y_i<X_i+C_i)}=\begin{cases}1&\text{uncensored} \\ 0&\text{censored} \end{cases}\]

Specifically, the paper proposed to use censored observations for the estimation of \(w\) and uncensored observations to test the independence. The conditional density for an uncensored observation will be: \[ \begin{equation} \tag{23} \cfrac{S(y-x)f_{XY}\mathbb{I}{(x<y)}}{E_{f_{xy}}[S(y-x)\mathbb{I}{(x<y)}]} \end{equation} \] Due to that: \[ \begin{equation} \tag{24} Y = P(\{(X_i,Y_i):(X_i<Y_i)\}|\Delta_i=1) \propto P(\{(X_i,Y_i):(X_i<Y_i)\},\Delta_i=1) \\ = f_{XY}(x,y)\mathbb{I}{(x<y)}*P(Y_i<X_i+C) \\ = f_{XY}(x,y)\mathbb{I}{(x<y)}*P(C>Y_i-X_i) \\ = f_{XY}(x,y)\mathbb{I}{(x<y)}*S(Y-X) \\ \end{equation} \]

Then, to make it a valid density function, we divided by a normalizing constant and obtained: \[ \begin{equation} \tag{25} \cfrac{S(y-x)f_{XY}I_{(x<y)}}{E_{f_{xy}}[S(y-x)I_{(x<y)}]} \end{equation} \]

Where, \(s(t)=P(C>t)\) is the survival function of \(C\). If we treat \(S(y-x)\mathbb{I}{(x,y)}\) as a new weight function, then this conditional density is exactly what we have defined as the joint density: \(f_{X,Y}^{w}(x,y)=w(x,y)f_{X,Y}(x,y)/E_{f_{X,Y}}{w(X,Y)}\) in the preliminary. The only difference is now we have a function involving both the continuous and truncated part. Thus, all methodology derived in previous part are quite flexible to adjust for such functions. Specially, the survival function S could be estimated by standard K-M estimator.

Simulation

For this part, we refer to the code from Github to replicate how this paper investigated the performance of bootstrap tests based on simulated datasets, under the scenario of truncation for bivariate Gaussian distribution (monotone exchangeable) and lifetime distribution (monotone nonexchangeable) with or without censoring. Note here, given we mentioned in earlier section that the paper proposed to use censored observations for the estimation of \(w\) and uncensored observations to test the independence in Bootstrap, thus we only focused on the comparision of power based on uncensored samples among different methods in the following table.

The rejection rate i.e. the power of the tests at a significance level \(\alpha = 0.05\) are calculated by averaging the results of 500 replications. For uncensored setting, a sample size of 100 was selected and B= 1000 bootstrap null datasets was used except for minP2 (B=100, replication =100). We show the results for monotone dependence models with an exchangeable joint distributions, where consistent estimators of the marginals exist such as bivariate Gaussian distributions with different correlations (\(\rho\)), Gumbel Copula (GC) with dependence parameter \(\theta =1.6\), Clayton Copula (CC) with dependence parameter \(\theta=0.5\). To show that the bootstrap does not perform well under model misspecification, the result for Lifetime Distribution (LD) with monotone nonexchangeable joint distribution is also displayed. We can see that the bootstrap performs really well under the alternative (\(\rho \ne 0\)). It is also visible that the bootstrap test does not achieve the desired rejection rate under the null hypothesis (\(\rho = 0\)) due to the assumption of monotone non-exchangeablity of joint distribution of lifetime distribution data.

Table 1: Power at a significance level of \(\alpha = 0.05\) for left-truncated data \((w(x, y) = \mathbb{I}(x<y)\) for uncensored data. Norm(\(\rho\)) - Bivariate normal distribution with correlation \(\rho\). GC - The Gumbel Copula, CC - the Clayton Copula, with dependence parameter \(\theta\). LD - Lifetime Distribution with correlation \(\rho\), CNorm(\(\rho\)) - non-exchangeable joint distribution with dependence parameter \(\rho\).

Setting Model Tsai minP2 Bootstrap
Monotone Exchangeable Norm(-0.9) 1 1 1
Monotone Exchangeable Norm(-0.7) 0.998 0.960 1
Monotone Exchangeable Norm(-0.5) 0.764 0.510 0.998
Monotone Exchangeable Norm(-0.3) 0.284 0.130 0.828
Monotone Exchangeable Norm(0.0) 0.056 0.050 0.058
Monotone Exchangeable Norm(0.3) 0.178 0.110 0.780
Monotone Exchangeable Norm(0.5) 0.352 0.140 1
Monotone Exchangeable Norm(0.7) 0.498 0.290 1
Monotone Exchangeable Norm(0.9) 0.658 0.260 1
Monotone Exchangeable GC (0 = 1.6) 0.196 0.130 1
Monotone Exchangeable CC (0 = 0.5) 0.110 0.130 0.782
Monotone Non-Exchangeable LD (p = 0.0) 0.042 0.010 0.996
Monotone Non-Exchangeable LD (p = 0.4) 0.634 0.330 0.704

References

Heller, Ruth, Yair Heller, Shachar Kaufman, Barak Brill, and Malka Gorfine. 2016. “Consistent Distribution-Free k-Sample and Independence Tests for Univariate Random Variables.” The Journal of Machine Learning Research 17 (1): 978–1031.
Hoeffding, Wassily. 1992. “A Class of Statistics with Asymptotically Normal Distribution.” Breakthroughs in Statistics: Foundations and Basic Theory, 308–34.
———. 1994. “A Non-Parametric Test of Independence.” The Collected Works of Wassily Hoeffding, 214–26.
Tsai, Wei-Yann. 1990. “Testing the Assumption of Independence of Truncation Time and Failure Time.” Biometrika 77 (1): 169–77.

Peer-review

ST 793 Peer Review

Reviewer: Kevin Collins, Michael Lightfoot

December 5, 2023

  1. a para that describes in your own words what the BLOG post assigned is about:

The primary problem presented in the blog is to test whether or not the distributions from which the data are drawn are independent when there is believed to be biased sampling involved. This blog discusses the primary formulation, estimators, and algorithms necessary to conduct such a test, such as the construction of the Adjusted Hoeffding statistic. This statistic can test the null hypothesis that the joint distribution of two variables is “quasi-independent”, a term described as independent under the framework of biased sampling via a sampling function. They then discuss a few cases of different sampling functions and how to estimate marginal pdfs in those scenarios. They intend to replicate the bootstrap simulations performed in the paper, as bootstrap is used to estimate marginal distributions under the null hypothesis of quasi-independence.

  1. list at least 3 things you appreciated in the assigned BLOG post:
  • The inclusion of the two algorithms is a nice touch! Both are very easy to follow, and it is appreciated that they appear at the front of the blog so we know what we are working towards.
  • The overall format of the blog is nice, the organization in the table of contents is incredibly helpful.
  • The two cases describing estimation of the marginal distributions are thorough and easy to read!
  1. provide constructive criticism for 1-3 things that if done can improve the BLOG post:
  • There is some confusion surrounding Algorithm 2 - I believe equation 10 is not the correct equation that you’re referencing? Additionally, the notation of tildes, hats, and nothing are not consistent throughout algorithms 1 and 2. It’s not clear which statistic you end up using in Algorithm 2.
  • Some symbols not appearing in HTML, i.e. in the paragraph before equation 18. It would be good to check the document over in your browser to make sure everything pops up! Additionally, placing the tildes and hats only over the first letter and not the subscripts will make the equations much cleaner.
  • Could use more clarity in the section where you describe the different types of tests, it’s unclear what the Adjusted Hoeffding test is vs the one shown in equation 16. For example, Are you also estimating the joint distribution (not the product of marginals) to calculate the test statistic?