WorksComputer Science
The Cross-Context Threshold Test: Detecting Discrimination Under Environmental Shifts
Abstract
We study how threshold tests for detecting discrimination under environmental shifts, focusing on the Veil-of-Darkness (VoD) setting where visibility changes between daylight and darkness. We show that standard threshold tests, when applied separately to daylight and darkness data, violate key assumptions: risk distributions drift across contexts and thresholds fluctuate arbitrarily. We propose a cross-context threshold test that enforces distributional invariance and monotonic threshold decay. Using New York City stop-and-frisk data and synthetic experiments, we demonstrate that this model yields more reliable thresholds, improves bias detection, and aligns with the counterfactual logic of the VoD test. Our framework generalizes to fairness auditing whenever environmental context influences decisions.
Introduction
Auditors tasked with detecting bias in decision-making systems often face two challenges: (1) adapting existing statistical tests to new contexts, and (2) developing tools that make audit outcomes interpretable and actionable. Both remain under-explored. In policing, for example, officers stop cars or pedestrians to search for contraband. The underlying decision process can be viewed as a binary classifier: each individual has a latent probability of carrying contraband, and an officer chooses a threshold above which to initiate a stop. Observed stop outcomes (successful versus unsuccessful stops) provide indirect evidence of these thresholds. A recent work introduced the threshold test, which estimates decision thresholds for racial groups from observed stop counts, hit counts, and census-based population proportions [8]. By jointly estimating both group-level risk distributions and thresholds, the threshold test addresses the well-known problem of inframarginality [1, 2, 5, 9]. A complementary strategy is the veil-of-darkness (VoD) test [6, 11, 7], which exploits a natural experiment: after sunset, reduced visibility makes it more difficult for officers to identify a person’s race before deciding to stop them. The VoD test assumes that underlying risk distributions remain stable across twilight, so that any observed changes in stop rates or thresholds can be attributed to racial bias. Recent work often combines threshold and VoD tests to study racial disparities in policing [9, 7]. Some researchers extend this by applying threshold tests separately to daylight and darkness subsets, interpreting differences in estimated thresholds as evidence aligned with VoD logic—that racial disparities diminish when race is visually obscured [9]. However, this direct application overlooks key VoD assumptions: (1) the risk distribution for any racial group should not shift abruptly with visibility, and (2) thresholds should converge under reduced visibility. When these assumptions are violated, the test results are unstable or misleading.
To address this gap, we propose the cross-context threshold test (CCTT), which adapts the threshold test to explicitly account for VoD conditions. Our model enforces both distributional invariance across daylight and darkness and monotonic threshold decay under reduced visibility. Through controlled simulation studies, we demonstrate that CCTT more accurately recovers ground-truth thresholds and achieves higher recall in detecting bias than the standard threshold test. Applied to New York City stop-and-frisk data, CCTT uncovers additional racial disparities and better aligns with the counterfactual logic of the VoD framework. Beyond policing, this approach generalizes to other high-stakes domains where context shifts alter decision thresholds but not underlying risk distributions.
Background
Threshold Tests for Discrimination
Outcome tests compare success rates (e.g., hit rates) across groups but suffer from the inframarginality problem: differences in hit rates do not necessarily imply differences in decision thresholds [2, 5, 10]. Threshold tests address this limitation by jointly estimating group-level risk distributions and the thresholds applied to those distributions [8]. The model infers how officers set stop thresholds across racial groups using observed stop counts, hit counts, and population proportions. This approach has become a leading method for identifying disparate treatment in policing data and has been applied at scale across jurisdictions in the United States [9].
The Veil-of-Darkness (VoD) Framework
The veil-of-darkness test, introduced by Grogger and Ridgeway [6], provides a complementary quasi-experimental approach. It exploits the natural transition around sunset: after dark, reduced visibility makes it more difficult for officers to discern a pedestrian’s or driver’s race before deciding to stop them. The core assumption is that the underlying risk distribution of contraband possession does not change abruptly around twilight. Thus, any observed changes in stop rates or thresholds across daylight and darkness can be interpreted as evidence of bias in policing practices [7, 11].
The Gap
Recent work [9] has attempted to combine these approaches by applying threshold tests separately to daylight and darkness stops, interpreting threshold differences as evidence aligned with VoD logic. However, this direct application violates key assumptions. Risk distributions are estimated independently across day and night, leading to instability, and thresholds may fluctuate arbitrarily. As we show in § 6, this motivates the cross-context threshold test (CCTT), which explicitly enforces distributional invariance and monotonic threshold decay across visibility conditions.
The Cross-Context Threshold Test (CCTT)
To analyze how environmental context influences bias detection, we formalize three components of our framework: (1) data curation under contextual conditions, (2) the classification task being audited, and (3) the bias testing method. This structure allows us to clearly identify where context enters the analysis and how it shapes the interpretation of bias metrics.
Problem Setup
Let be a dataset of decision instances, where is the feature vector and is the observed decision outcome (e.g., whether a stop yielded contraband). In many applications, we analyze a curated subset of that meets specific contextual conditions. In our case, the veil-of-darkness (VoD) setting. We denote this curated dataset as:
where encodes two kinds of auxiliary conditions:
Bias-analysis scope (): the subset of instances and outcomes under analysis (e.g., a specific region, time window, or racial groups of interest).
Distribution priors (): assumptions about underlying population composition or distributions.
If no auxiliary conditions are applied, .
The decision process being audited is represented as a function mapping features to outcomes:
Here, may be as simple as a lookup from the dataset (when outcomes are directly observed) or a model that generalizes to new instances from a training paradigm . In this work, we treat as a lookup function to focus on auditing observed historical decisions.
A bias test computes a group-level metric for each of groups :
Examples of include positive rates (PR), true positive rates (TPR), or decision thresholds. A statistically significant difference among these values suggests potential bias. When the bias test is adapted to a specific context , we write .
Assumptions
In this section, we describe the assumptions for the VoD threshold test to define the .
Assumption 1: Risk (signal) distribution for each racial group does not change from daylight to darkness during the intertwilight period.
Assumption 2: Police always find it more difficult to distinguish race at darkness than daylight due to limited visibility.
The Assumption 1 reflects a simple intuition that while group risk distributions may evolve over long time period (e.g., years of demographic or policy change), it is reasonable to treat them as stable across the short temporal window of twilight. This is consistent with the VoD literature [11], which recommends restricting analysis to a narrow twilight window where population characteristics are held constant except for visibility. The implication of Assumption 2 may be interpreted as the thresholds are more similar (i.e., smaller variance) at darkness than daylight among racial groups. Direct enforcement of this assumption is difficult. As a practical alternative, we impose that the threshold in darkness is less than or equal to its daylight counterpart. This condition reflects the interpretation that officers exercise a less selective (i.e., more cautious) decision rule at night for the same racial group. Such behavior is consistent with the VoD literature [6] which suggests that reduced visibility leads officers to rely on lower stopping thresholds. When thresholds are restricted to the interval , this condition also implies Assumption 2 (proof provided in the Supplementary Material). Importantly, lower thresholds do not necessarily translate into a higher number of stops, as stop counts also depend on factors such as street population and patrol exposure.
We first validate the proposed cross-context VoD assumptions under controlled simulation. Then we apply them to more complex real-world policing data and adapt models from prior work.
Simulation Study
For simulation, we introduce the simplified CCTT. Each group-precinct pair is assigned a single latent risk distribution,
Shared across lighting condition (i.e., day and night). Threshold follows
This simplified specification, including the use of a Normal distribution for the risk distribution, is intentional to isolate the roles of distributional invariance and monotone decay. To highlight the impact of applying VoD constraints on existing work, later sections adopt a Logit-Normal Mixture model instead of the Normal distribution, as it is more commonly used in prior threshold-based work [8, 9]. Here, we assess identifiability and bias detection performance on simulated data.
For the context . Let denotes the number of people in a racial group and police precinct at the context . The stop count is
The hit count is
We report the following priors used for this simulation study. , ,
A comparable standard threshold test (TT) does not impose conditions of shared risk distribution or threshold decay. For TT, we define and estimate the risk distributions and thresholds separately for each context. We omit the cross-context constraint (Equation 3), while keeping the remaining steps (Equations 4 and 5) unchanged.
Generating Ground Truth
We simulate 50 precincts for two racial groups (e.g., White and Black). Risk signals for class are generated as
. This construction ensures a separation between innocent and guilty individuals while producing realistic hit rates (10%–20%) when thresholds are applied.
Daytime thresholds are assigned at the precinct level, with a race-specific gap:
Nighttime thresholds are defined by applying a non-negative decay to the daytime thresholds:
The ground-truth population sizes and are drawn independently from a Poisson distribution with mean 2000. For each individual, if the model records a stop , and if additionally , a hit .
This setup guarantees that risk distributions are invariant across day and night while thresholds monotonically decrease in darkness. It also embeds true racial disparities through precinct-level gaps, providing a benchmark for evaluating whether the threshold test (TT) and our cross-context threshold test (CCTT) can correctly recover model parameters and detect bias.
Results
The simulation took approximately 5 minutes on a 32 GB RAM Intel MacBook Pro using R. The results are shown in Figure 1. Fig. 1.1 shows that the TT estimated the day and night risk distributions differ significantly, measured by the difference of between day and night. The differences are arbitrarily positive or negative but the actual difference should be negative. Fig. 1.2 shows that the CCTT’s estimation of threshold decay is positively correlated to the true decay. Fig. 1.3 shows that the TT recovers thresholds with a lower Mean Absolute Error (MAE), better than CCTT. But considering Fig. 1.1, this indicates TT is over-fitted due the flexibility in two risk distributions. So relying on MAE is misleading in determining model performance. Fig. 1.3 shows that actual performance in bias detection. TT only detects bias when it’s absolutely sure (i.e., high precision), so it misses many true biased precincts. CCTT has larger recall and overall higher F1, indicating better performance as bias detection method.

Figure 1. Simulation study outcome. From left to right, 1) TT generates different day night risk distribution. 2) CCTT estimates the decay is positively correlated with true decay. 3) CCTT estimated the ground truth thresholds worse than TT. However, TT appears to overfit due to its flexibility in fitting separate distributions. 4) The F1 and recall scores shows that CCTT is better at detecting the true bias than TT.
Logit-Normal Mixture Model
In this section, we describe modifications to the threshold test models introduced in prior work. The original threshold test represents group-level risk distributions using Beta distributions [10]. Because the Beta distribution is naturally supported on the interval , this formulation also constrains estimated thresholds to lie within that range. Bayesian estimation for beta distributions is time-consuming. A fast threshold test is proposed to utilize a logit-normal mixture model as a proxy for the Beta distribution, thereby speeding up the test by approximately 40 times while achieving the same test results [8]. They apply the threshold test to the NYC stop-and-frisk dataset. Each instance in the dataset represents a pedestrian stop record at a certain time and location in New York City. Police search (frisk) decision is recorded (searched or not searched), as well as the outcome (a hit or not a hit). A hit refers to the fact that the police are correct in their search decisions (i.e., the discovery of contraband). They also propose a threshold test for search (frisk) decision and a threshold test for stop decision by estimating the racial proportion of pedestrians in each police precinct using Census data.
We focus on the threshold test for stop decisions, as opposed to searches, because they are more directly influenced by visibility: an officer may not discern a pedestrian’s race at a distance in darkness, but will almost always do so before deciding to frisk.
Here, we introduce the complete fast threshold test. is the result of stop (guilty = 1, innocent = 0) based on the risk probability .
is the risk signal of the person (pedestrian) that follows a normal distribution given that they are guilty or innocent.
is the risk function that maps a real value to the probability of the risk bounded between 0 and 1, denoted as . Determining the risk distribution for each race is achieved by estimating , , , per race. We can reduce the number of parameters to be estimated following prior work [8]. To ensure heteroskedasticity for , we constrain . This homoskedasticity condition ensures that a higher signal corresponds to a higher risk probability (i.e., monotonicity); otherwise, the likelihood may become non-monotonic and thresholds may be non-identifiable. Without loss of generality, we set and estimate only . Setting for each group is a standard location normalization that does not affect cross-group comparability. Only the difference between and determines the mapping from to risk , and thresholds are estimated in -space, which is invariant to affine shifts. While estimating the distribution, we also need to estimate the stop threshold per race per police region simultaneously. We fit the model to the ground truth data, such as hit count and stop count, to determine the best model parameter values.
Step 1: For each race, we fit the stop count and hit count per police region:
Let be the stop count.
Stop rate can be expressed as the probability of risk above the stop threshold :
Let be the hit count.
Hit rate can be expressed as the expectation of the risk above the stop threshold :
Step 2: Across races, we fit the stop count per police region:
Let be a vector that contains the count of stops for races. Let to be the sum of , the total count of stops between races in one precinct. Let be a vector that contains the stop probabilities for races.
The stop probability can be estimated from the stop rate and the US Census racial proportion, denoted as .
For example, the stop probability for the white race, , follows:
is the racial proportion of whites. The white stop threshold and white stop rate are estimated in Step 1.
Incorporating the assumptions in the fast threshold test model is simple. For Assumption 1, We adapt the model in following steps: We repeat step 1 and 2 for the stop and hit counts for daylight and darkness data. The stop thresholds for daylight stop and hit data and darkness stop and hit data are estimated in each run. But they share the parameters in function in step 1 so the risk distribution remains one per race regardless of daylight and darkness.
For Assumption 2, we use an additional constraint to ensure threshold at darkness is always smaller than the threshold at daylight. First, the daylight threshold is sampled, same as before, from a standard normal distribution.
Then, a parameter is sampled as the decay from the daylight to darkness, also from a standard normal distribution. We set the lower bound for as 0.
Then we set the threshold at darkness at the same race and location (e.g., precinct),
All thresholds are then transformed to stay between 0 and 1 using a normal linkage function.
APPLICATION: NYC STOP-AND-FRISK DATA
We apply CCTT (described in § 5.3) on New York City stop-and-frisk records from 2008–2012. The dataset [8] contains 723,553 stops flagged as suspected contraband possession, along with 2010 Census estimates of racial composition by precinct. The distribution priors used in these threshold tests estimate separate risk distributions for each race within each precinct, capturing precinct-level differences in policing practices. Using the same dataset and distribution priors as the basis of our experiments allows us to validate limitations, assess consistency, and directly compare our results with prior work. Notably, the official NYC stop-and-frisk portal provides data spans from 2003 to recent years. In more recent records, the rank of the police officer is also included.
Data and Curation We further create the curated data for VoD. Since VoD is an effect that police stopping bias is reduced under low visibility (i.e., darkness). This implies that we want to include a stop event that may occur in either darkness or daylight in a given analysis scope (e.g., time-span and geo-boundary). In other words, an event’s counterfactual event has a chance to occur. Such a counterfactual event only differs from the original event in visibility (i.e., darkness or daylight). For a time span of
February 2018, and the geo-boundary of NYC, a stop at 8 PM local time would be impossible to occur in the daylight, unfit for understanding the veil of darkness on police stopping. However, if the time span changes to the year 2018, such a stop can be included in the VoD analysis since 8 PM in May can be at daylight. Such nuanced data curation based on analysis scope is crucial to the rigorousness of downstream statistical testing. To reflect the VoD data condition, We provide the curated VoD data (146,491 records) 1 for promoting reproducibility and transparency. The VoD data is about 20 percent of the total . We follow the tutorial of a recent work [7] for the data curation process. Here are the four steps: 1) We split the data by year. 2) For each year, we identify the stops during intertwilight. 3) For the stop in the inter-twilight, we define two stops between sunset and dusk as ambiguous stops, stops before sunset as daylight stops, and after dusk as darkness stops. 4) We exclude the ambiguous stops and aggregate the remaining stops across the year from 2008 to 2012. The data process took about 5 hours on a 32 GB RAM, Intel MacBook Pro. Note that one could choose not to split the data by year but set the time-span from the first day of 2008 to the last day of 2012, which will likely increase the record count of VoD data. As the possible range of the sunset and dawn time is wider from a longer time span than any sub-time span. However, larger time-span increases the computational cost.
Violation of Standard Threshold Test. We apply the threshold test on both daylight and darkness data. The estimated group-level risk distributions differ sharply rather than overlaying between visibility conditions (Figure 2), violating the VoD assumption that visibility blurs group signals without altering underlying risk distributions.

Figure 2. Issue of threshold test. Estimated risk distribution parameters projected in 2D scatter plot. The vast difference between the orange and blue scatter plots indicates that the risk distributions between daylight and darkness are estimated to be very different, which does not align with the VoD assumption for distribution invariance per racial group.
Visual Audit Dashboard
As practical auditing may involve numerous contexts, traditional static plots is insufficient for comparing the effect of assumptions and decisions. We demonstrate the application of our cross-context threshold test framework in a flexible and extendable visual dashboard (Figure 3) for New York City stop-and-frisk veil-of-darkness (VoD) analysis. The dashboard was developed to address the oversight challenge that human auditors must often compare results from multiple bias detection methods, interpret the magnitude and direction of disparities, and decide which jurisdictions warrant further investigation. Prior work [8] uses a static threshold plot to show the pattern of thresholds between two different groups (e.g., white and minority racial groups). Threshold plots (Figure 3Figure 1a, Figure 2a)) directly encode the thresholds of two groups for the same police precinct, but the degree of bias can only be visually perceived as the distance from the dot to the diagonal line (i.e., dots falling on the diagonal line indicates the equal thresholds the precincts use for stop decision). The static threshold plot also does not support flexible exploration and iterative investigation of the context or the instances (e.g., police precincts) under investigation, which highlight the importance of interactivity in an audit dashboard. Note that the Figure 3Figure 1a reproduces the Figure 4 (left) in prior work ([8]), omitting the size difference of dots (which encoded the population size). Figure 3Figure 2a is the cross-context threshold plot with the exponential axes scaling same as Figure 3Figure 1a. Comparing the figures (Figure 3Figure 1a, Figure 2a)) tells us that the threshold pattern and bias conclusion remains the same between the original threshold test and CCTT–the police favors the white group.

Figure 3. Interactive audit dashboard for veil-of-darkness analysis. Panels show: threshold plots (1a,2a), bias plots (1b, 2b), contrastive bias plot (2c), and consensus plot (3), comparing bias judgment based on thresholds derived from the original TT and the CCTT. Plots correspond to: 1a, 1b: threshold test without context. 2a, 2b, 2c: threshold test under VoD context 3: summarizes precinct-level bias values from all three tests using parallel coordinates, enabling auditors to see which precinct jurisdictions are flagged under each method.
We introduce three additional plots (bias plot, contrastive bias plot, and consensus plot) to support direct encoding of bias and cross-context comparison. The bias plot (Figure 3Figure 1b, Figure 2b)) directly encodes the magnitude of disparity as the vertical distance from a fairness baseline. The contrastive bias plot (Figure 3Figure 2c) focuses on the change in disparity between daylight and darkness (i.e., the threshold decay). The consensus plot (Figure 3Figure 3) summarizes results from multiple bias test outcomes, allowing auditors to identify precincts flagged as biased under at least one case.
The dashboard supports interactive filtering and cross-highlighting across plots, enabling an auditor to, for example, select precincts with bias above a chosen threshold in one plot and immediately see their status in others. This allows auditors to discover precincts where disparities are both large and consistent across bias test methods (Figure 3(i)).
For the contrastive bias plot (Figure 3Figure 2c), we bring in light pollution data to infer the effect of the veil-of-darkness (VoD) from underlying policing practices. We use the average masked composite from the VIIRS Nighttime Lights (VNL V2) dataset [4], which provides a stable measure of persistent anthropogenic light. Transient sources such as fires and boats are removed through masking, ensuring data reflect long-term urban light pollution. This dataset balances between spatial resolution (~500 m) and file size (~262 MB), and is sufficient for precinct-level aggregation in New York City.
In Figure 3Figure 2c, the precinct at the far right corresponds to Times Square, which exhibits the highest light pollution. According to the VoD logic, policing outcomes should be fairer at night, since reduced visibility implies that officers rely on lower thresholds across racial groups. However, this does not mean that they are affected equivalently due to light pollution. We formalize stop bias within an explanatory causal model (ECM)2, which specifies bias as the causal effect of visibility and policing practice. The visibility affects the police practice, then police practice affects the stop bias, so changes in stop bias cannot be interpreted in isolation. In structural form,
In precincts with high levels of light pollution, the difference between daylight and darkness is minimal, yet we observe substantial reductions in stop bias (e.g., precinct alias No.17). Since visibility effects are unlikely to explain such drops, these reductions are more plausibly associated with changes in policing practices. This does not imply that policing in these contexts is unbiased or fair. A reduction in disparity under specific conditions should be interpreted only as evidence of practice shifts, not as the absence of bias (e.g., precinct No.17 has large bias even after bias decrease at night). In precincts with low levels of light pollution, where the transition from daylight to darkness substantially reduces visibility (e.g., precinct on the far left of the Figure 3Figure 2c), one would expect bias to diminish if officers relied less on racial cues. Yet our results show little or no reduction. This persistence suggests that policing practices may actively counteract the expected visibility effect, sustaining disparities even when race is less identifiable. Using ECM framing, we can disentangle environmental influences from institutional practices and prevent over-interpretation of statistical outcomes as straightforward evidence of fairness. Our study does not claim full causal identification, but to align the cross-context threshold test framework with broader causal inference literature and clarify how observed disparities should be interpreted.
Discussion
While our study emphasized visibility as the primary environmental context shaping bias detection, the framework naturally extends to other contextual dimensions within policing and to domains beyond law enforcement. Within policing, institutional roles create additional layers of decision-making. Patrol officers, supervisors, and specialized units differ in authority, oversight, and exposure. Similar to the veil-of-darkness (VoD) setting, the risk distribution of racial groups should remain invariant across these organizational contexts. Differences in estimated thresholds therefore reflect institutional practices rather than population risk heterogeneity. Moreover, environmental and organizational factors can intersect: for example, supervisors may apply different daylight versus darkness thresholds than frontline officers. Such intersections enrich contextual auditing.
The CCTT framework extends beyond policing. In AI model auditing, visibility can be reinterpreted as the amount of context available in prompts: high-context prompts expose more features, while low-context prompts obscure them, analogous to visibility changes in policing. CCTT allows auditors to separate shifts in underlying “risk distributions” from shifts in decision thresholds, clarifying whether disparities stem from model mechanisms or input conditions. In medical imaging, differing image resolutions create challenges: low-quality scans may obscure signals from similar disease (e.g., pneumonia and lung cancer), shifting diagnostic thresholds while disease prevalence remains constant. By curating datasets across imaging conditions and holding latent distributions fixed, threshold analysis can reveal systematic decision shifts attributable to degraded visibility. These examples show that the CCTT framework is flexible and generalizable. Furthermore, embedding context directly into threshold tests yields more interpretable and actionable evidence.
CCTT has several limitations. First, threshold tests require specifying a parametric form for the risk distribution. Choices such as Normal, Beta, or logit-normal mixtures may still fail to capture the true underlying distributions. Second, while CCTT runs in comparable time to the fast threshold test, it still requires minutes of MCMC sampling in R. This constrains flexibility and reduces the ability to redefine contexts interactively in an auditing dashboard.
Conclusion
We introduce the Cross-Context Threshold Test (CCTT), a framework for adapting threshold tests to settings where environmental or institutional context influences decision-making. Standard threshold tests, when applied separately to daylight and darkness, violate the assumptions of the veil-of-darkness (VoD) framework by allowing risk distributions to drift arbitrarily and thresholds to fluctuate inconsistently. CCTT addresses these issues by explicitly enforcing distributional invariance across contexts and monotonic threshold decay, aligning statistical tests with the counterfactual logic of VoD. Through simulation studies, we show that CCTT yields higher recall and F1 scores while maintaining perfect precision in detecting biased precincts compared to the standard threshold test. Applied to New York City stop-and-frisk data, CCTT uncovered additional instances of racial disparities that are overlooked by existing approaches. We also provide a visualization tool to illustrate threshold shifts and cross-context comparisons, highlighting how these methodological advances can be interpreted for oversight. While this paper focused on visibility as an environmental context, the framework extends naturally to organizational settings (e.g., officer rank or unit) and to other domains where context alters decision thresholds without changing underlying risk distributions. Examples include medical imaging under varying resolutions and AI auditing under different prompt conditions. By embedding contextual assumptions directly into threshold tests, CCTT advances both the methodological rigor and the practical utility of fairness audits.
Acknowledgements
We thank the anonymous reviewers for their valuable feedback. We also thank members of the Digital Technology for Democracy Lab at the University of Virginia and Xinyue Ye’s research group for helpful discussions and suggestions. This work was supported in part by the University of Virginia.
Checklist
For all models and algorithms presented, check if you include:
(a) A clear description of the mathematical setting, assumptions, algorithm, and/or model. [Yes]
(b) An analysis of the properties and complexity (time, space, sample size) of any algorithm. [No]
(c) (Optional) Anonymized source code, with specification of all dependencies, including external libraries. [Yes]
For any theoretical claim, check if you include:
(a) Statements of the full set of assumptions of all theoretical results. [Yes]
(b) Complete proofs of all theoretical results. [Yes]
(c) Clear explanations of any assumptions. [Yes]
For all figures and tables that present empirical results, check if you include:
(a) The code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL). [Yes]
(b) All the training details (e.g., data splits, hyperparameters, how they were chosen). [Yes]
(c) A clear definition of the specific measure or statistics and error bars (e.g., with respect to the random seed after running experiments multiple times). [Yes]
(d) A description of the computing infrastructure used. (e.g., type of GPUs, internal cluster, or cloud provider). [Yes]
If you are using existing assets (e.g., code, data, models) or curating/releasing new assets, check if you include:
(a) Citations of the creator If your work uses existing assets. [Yes]
(b) The license information of the assets, if applicable. [Yes]
(c) New assets either in the supplemental material or as a URL, if applicable. [Yes]
(d) Information about consent from data providers/curators. [Not Applicable]
(e) Discussion of sensible content if applicable, e.g., personally identifiable information or offensive content. [Not Applicable]
If you used crowdsourcing or conducted research with human subjects, check if you include:
(a) The full text of instructions given to participants and screenshots. [Not Applicable]
(b) Descriptions of potential participant risks, with links to Institutional Review Board (IRB) approvals if applicable. [Not Applicable]
(c) The estimated hourly wage paid to participants and the total amount spent on participant compensation. [Not Applicable]
The Cross-Context Threshold Test: Detecting Discrimination Under Environmental Shifts: Supplementary Materials
Proof in Section 3.2 Assumption 2
We aim to show that thresholds across races exhibit reduced variance at night compared to daytime.
Let the daytime thresholds be
and the corresponding nighttime thresholds be
where for each race ,
Here represents the ratio of the nighttime threshold to the daytime threshold for race .
We assume that nighttime thresholds are not inflated overall relative to daytime thresholds:
To quantify cross-racial disparity, we define the pairwise variance functional
The corresponding nighttime variance is
The ratio between night and day variances is then
Each term in the numerator of (23) scales the daytime difference by a factor that depends smoothly on and . Since all weights are positive and the function is quadratic in the ’s, the overall ratio must lie between the smallest and largest squared scaling factors:
If for all , then both bounds in (24) are strictly less than one, implying
Therefore, the cross-racial threshold variance decreases at night, indicating that nighttime thresholds are more homogeneous across races.
References
- [1]David Arnold, Will Dobbie, and Crystal S Yang. Racial bias in bail decisions. The Quarterly Journal of Economics, 133(4):1885–1932, 2018.
- [2]Ian Ayres. Outcome tests of racial disparities in police practices. Justice research and Policy, 4(1-2):131–142, 2002.DOI
- [3]Thomas Banitz, Maja Schlüter, Emilie Lindkvist, Sonja Radosavljevic, Lars-Göran Johansson, Petri Ylikoski, Rodrigo Martínez-Peña, and Volker Grimm. Model-derived causal explanations are inherently constrained by hidden assumptions and context: The example of baltic cod dynamics. Environmental Modelling & Software, 156:105489, 2022.DOI
- [4]Christopher D Elvidge, Mikhail Zhizhin, Tilottama Ghosh, Feng-Chi Hsu, and Jay Taneja. Annual time series of global viirs nighttime lights derived from monthly averages: 2012 to 2019. Remote Sensing, 13(5):922, 2021.DOI
- [5]Robin S Engel. A critique of the “outcome test” in racial profiling research. Justice Quarterly, 25(1):1–36, 2008.DOI
- [6]Jeffrey Grogger and Greg Ridgeway. Testing for racial profiling in traffic stops from behind a veil of darkness. Journal of the American Statistical Association, 101(475):878–887, 2006.
- [7]Jedidiah L Knode, Scott E Wolfe, and Travis M Carter. Pulling back the veil of darkness: A proposed road map to disentangle racial disparities in traffic stops, a research note. Criminology, 62(2):364–375, 2024.DOI
- [8]Emma Pierson, Sam Corbett-Davies, and Sharad Goel. Fast threshold tests for detecting discrimination. In International conference on artificial intelligence and statistics, pages 96–105. PMLR, 2018.arxiv.org/abs/1702.08536
- [9]Emma Pierson, Camelia Simoiu, Jan Overgoor, Sam Corbett-Davies, Daniel Jenson, Amy Shoemaker, Vignesh Ramachandran, Phoebe Barghouty, Cheryl Phillips, Ravi Shroff, et al. A large-scale analysis of racial disparities in police stops across the united states. Nature human behaviour, 4(7):736–745, 2020.DOI
- [10]Camelia Simoiu, Sam Corbett-Davies, and Sharad Goel. The problem of infra-marginality in outcome tests for discrimination. The Annals of Applied Statistics, 2017.
- [11]Robert E Worden, Sarah J McLean, and Andrew P Wheeler. Testing for racial profiling with the veil-of-darkness method. Police Quarterly, 15(1):92–111, 2012.DOI