Literature DB >> 32054788

Veridical data science.

Bin Yu1,2,3,4, Karl Kumbier5.   

Abstract

Building and expanding on principles of statistics, machine learning, and scientific inquiry, we propose the predictability, computability, and stability (PCS) framework for veridical data science. Our framework, composed of both a workflow and documentation, aims to provide responsible, reliable, reproducible, and transparent results across the data science life cycle. The PCS workflow uses predictability as a reality check and considers the importance of computation in data collection/storage and algorithm design. It augments predictability and computability with an overarching stability principle. Stability expands on statistical uncertainty considerations to assess how human judgment calls impact data results through data and model/algorithm perturbations. As part of the PCS workflow, we develop PCS inference procedures, namely PCS perturbation intervals and PCS hypothesis testing, to investigate the stability of data results relative to problem formulation, data cleaning, modeling decisions, and interpretations. We illustrate PCS inference through neuroscience and genomics projects of our own and others. Moreover, we demonstrate its favorable performance over existing methods in terms of receiver operating characteristic (ROC) curves in high-dimensional, sparse linear model simulations, including a wide range of misspecified models. Finally, we propose PCS documentation based on R Markdown or Jupyter Notebook, with publicly available, reproducible codes and narratives to back up human choices made throughout an analysis. The PCS workflow and documentation are demonstrated in a genomics case study available on Zenodo.
Copyright © 2020 the Author(s). Published by PNAS.

Entities:  

Keywords:  computation; data science; prediction; stability

Year:  2020        PMID: 32054788      PMCID: PMC7049126          DOI: 10.1073/pnas.1901326117

Source DB:  PubMed          Journal:  Proc Natl Acad Sci U S A        ISSN: 0027-8424            Impact factor:   11.205


Data science is a field of evidence seeking that combines data with domain information to generate new knowledge. The data science life cycle (DSLC) begins with a domain question or problem and proceeds through collecting, managing, processing (cleaning), exploring, modeling, and interpreting† data results to guide new actions (Fig. 1). Given the transdisciplinary nature of this process, data science requires human involvement from those who collectively understand both the domain and tools used to collect, process, and model data. These individuals make implicit and explicit judgment calls throughout the DSLC. The limited transparency in reporting such judgment calls has blurred the evidence for many analyses, resulting in more false discoveries than might otherwise occur (2, 3). This fundamental issue necessitates veridical data science, that is, principled inquiry to extract reliable and reproducible information from data, with an enriched technical language to communicate and evaluate empirical evidence in the context of human decisions and domain knowledge. Three core principles, predictability, computability, and stability (PCS), provide the foundation for such a data-driven language and a unified data analysis framework. They serve as minimum requirements for veridical data science.
Fig. 1.

The data science life cycle. The PCS workflow considers predictability, computability, and stability at every step, with a strong emphasis on stability.

The data science life cycle. The PCS workflow considers predictability, computability, and stability at every step, with a strong emphasis on stability. Many ideas embedded in PCS have been widely used across various areas of data science. Predictability plays a central role in science through Popperian falsifiability (4). If a model does not accurately predict new observations, it can be rejected or updated. Predictability has been adopted by the machine-learning community as a goal of its own right and more generally to evaluate the quality of a model or data result (5). While statistics have always considered prediction, machine learning emphasized its importance for empirical rigor. This was in large part powered by computational advances that made it possible to compare models through cross-validation (CV), developed by statisticians Stone (6) and Allen (7). The role of computation extends beyond prediction, setting limitations on how data can be collected, stored, and analyzed. Computability has played an integral role in computer science tracing back to Alan Turing’s seminal work on the computability of sequences (8). Analyses of computational complexity have since been used to evaluate the tractability of machine-learning algorithms (9). Kolmogorov built on Turing’s work through the notion of Kolmogorov complexity, which describes the minimum computational resources required to represent an object (10, 11). Since Turing machine-based notions of computabiltiy are not computable in practice, we treat computability as an issue of algorithm efficiency and scalability. This narrow definition of computability addresses computational considerations at the modeling stage of the DSLC but does not deal with data collection, storage, or cleaning. Stability is a common-sense principle and a prerequisite for knowledge. It is related to the notion of scientific reproducibility, which Fisher (12) and Popper (4) argued is a necessary condition for establishing scientific results. While replicability across laboratories has long been an important consideration in science, computational reproducibility has come to play an important role in data science as well. For example, ref. 13 discusses reproducible research in the context of computational harmonic analysis. More broadly, ref. 14) advocates for “preproducibility” to explicitly detail all steps along the DSLC and ensure sufficient information for quality control. Stability at the modeling stage of the DSLC has been advocated in ref. 15 as a minimum requirement for reproducibility and interpretability. Modeling stage stability unifies numerous previous works, including Jackknife, subsampling, bootstrap sampling, robust statistics, semiparametric statistics, and Bayesian sensitivity analysis (ref. 15 and references therein). These methods have been enabled in practice through computational advances and allow researchers to investigate the reproducibility of data results. Econometric models with partial identification (ref. 16 and references therein) and fundamental theoretical results in statistics, such as the central limit theorem (CLT), can also be viewed as stability considerations. In this paper, we unify and expand on these ideas through the PCS framework. Our framework, which consists of the PCS workflow and transparent PCS documentation, uses predictability as a reality check, computability to ensure results are tractable, and stability to test the reproducibility of results relative to human decisions (). The PCS workflow may be broadly interpreted as the practice of incorporating these three principles into each step of the DSLC (Fig. 1). We detail this workflow at the modeling stage through basic PCS inference (), which can be extended to other steps in the DSLC () through data and model perturbations. PCS documentation justifies decisions made throughout the DSLC in R MarkDown or a Jupyter (iPython) Notebook using narratives, code, and visualizations (). We draw connections between causal inference and the PCS framework, demonstrating the utility of the latter for generating scientific hypotheses (). We conclude by discussing areas for further work, including additional vetting of the framework and theoretical analyses on connections between the three principles. A case study of our framework based on the authors’ work studying gene regulation in Drosophila is documented on Zenodo.

PCS Principles in the DSLC

Given a domain problem and data, the purpose of the DSLC is to generate knowledge, conclusions, and actions (Fig. 1). The PCS framework aims at veridical data science through the three fundamental principles. Below we discuss the roles of these three principles, organizing our discussion with respect to the steps in the DSLC.

Stability Assumptions Initiate the DSLC.

The ultimate goal of the DSLC is to generate knowledge that is useful for future actions, be it a biological experiment, a business decision, or government policy. Stability is a useful concept to address whether another researcher making alternative, appropriate decisions would obtain similar conclusions. At the modeling stage, stability has previously been advocated in ref. 15. In this context, stability refers to acceptable consistency of a data result relative to appropriate perturbations of the data or model. For example, jackknife (17–19), bootstrap (20), and cross-validation (6, 7) may be considered appropriate perturbations if the data are deemed approximately independent and identically distributed (i.i.d.) based on domain knowledge and an understanding of the data collection process. Human judgment calls prior to modeling also impact data results. The validity of an analysis relies on implicit stability assumptions that allow data to be treated as an informative representation of some natural phenomena. When these assumptions do not hold, conclusions rarely generalize to new settings unless empirically proved by future data. This makes stability assessments essential to guard against costly future actions and false discoveries, particularly in science, business, and public policy, where data results are used to guide large-scale actions, and in medicine, where human lives are at stake. Below we outline stability considerations that impact the DSLC prior to modeling.

Question or problem formulation.

The DSLC begins with a domain problem or a question, which could be hypothesis driven or discovery based. For instance, a biologist may want to discover biomolecules that regulate a gene’s expression. In the DSLC this question must be translated into a question regarding the output of a model or analysis of data that can be measured/collected. There are often multiple translations of a domain problem into a data science problem. For example, the biologist described above could measure factors binding regulatory regions of the DNA that are associated with the gene of interest. Alternatively, the biologist could study how the gene covaries with regulatory factors across time and space. From a modeling perspective, the biologist could identify important features in a random forest or through logistic regression. Stability relative to question or problem formulation implies that the domain conclusions are qualitatively consistent across these different translations.

Data collection.

To answer a domain question, domain experts and data scientists collect data based on prior knowledge and available resources. When these data are used to guide future decisions, researchers implicitly assume that the data are relevant to a future time. In other words, they assume that conditions affecting data collection are stable, at least relative to some aspects of the data. For instance, if multiple laboratories collect data to answer a domain question, protocols must be comparable across experiments and laboratories if they expect to obtain consistent results. These stability considerations are closely related to external validity in medical research, which characterizes similarities between subjects in a study and subjects that researchers hope to generalize results to. We discuss this idea more in .

Data cleaning and preprocessing.

Statistics and machine-learning models or algorithms help data scientists answer domain questions. Using models or algorithms requires cleaning (preprocessing) raw data into a suitable format, be it a categorical demographic feature or continuous measurements of biomarker concentrations. For instance, when data come from multiple laboratories, biologists must decide how to normalize individual measurements (for example, see ref. 21). When data scientists preprocess data, they are implicitly assuming that their choices do not unintentionally bias essential information in the raw data. In other words, they assume that the knowledge derived from data is stable with respect to their processing choices. If such an assumption cannot be justified, they should use multiple appropriate processing methods and interpret results that are stable across these methods. Others have advocated evaluating results across alternatively processed datasets under the name “multiverse analysis” (22). Although the stability principle was developed independently of this work, it naturally leads to a multiverse-style analysis.

Exploratory data analysis.

Both before the modeling stage and in post hoc analyses, data scientists engage in exploratory data analysis (EDA) to identify interesting relationships in the data and interpret results. When visualizations or summaries are used to communicate these analyses, it is implicitly assumed that the relationships or results are stable with respect to any decisions made by the data scientist. For example, if the biologist believes that clusters in a heatmap are biologically meaningful, the biologist should expect to observe the same clusters with respect to any appropriate choice of distance metric, data perturbation, or clustering method.

Predictability as Reality Check .

After data collection, cleaning/preprocessing, and EDA, models or algorithms are often used to identify more complex relationships in data. Many essential components of the modeling stage rely on the language of mathematics, both in technical papers and in code. A seemingly obvious but often ignored question is why conclusions presented in the language of mathematics depict external reality and to what extent we should trust mathematical conclusions to impact this external reality. This concern has been articulated and addressed by many others in terms of prediction. For instance, Philip Dawid (23) drew connections between statistical inference and prediction under the name “prequential statistics,” highlighting the importance of forecasts in statistical analyses. David Freedman (24) argued that when a model’s predictions are not tested against reality, conclusions drawn from the model are unreliable. Seymour Geisser (25) advocated that statistical analyses should focus on prediction rather than parametric inference, particularly in cases where the statistical model is an inappropriate description of reality. Leo Breiman et al. (5) championed the essential role of prediction in developing realistic models that yield sound scientific conclusions. It can even be argued that the goal of most domain problems is prediction at the metalevel. That is, the primary value of learning relationships in data is often to predict some aspect of future reality.

Formulating prediction.

We describe a general framework for prediction with data , where represents input features and the prediction target. Prediction targets may be observed responses (e.g., supervised learning) or extracted from data (e.g., unsupervised learning). Predictive accuracy is a simple, quantitative metric to evaluate how well a model represents relationships in . It is well defined relative to a prediction function, testing data, and an evaluation metric. We detail each of these elements below.

Prediction function.

The prediction functionrepresents relationships between the observed features and the prediction target. For instance, in the case of supervised learning may be a linear predictor or decision tree. In this setting, is typically an observed response, such as a class label. In the case of unsupervised learning, could map from input features to cluster centroids. To compare multiple prediction functions, we considerwhere denotes a collection of models/algorithms. For example, may define different tuning parameters in lasso (26) or random forest (27). For deep neural networks, could describe different network architectures. For algorithms with a randomized component, such as k-means or stochastic gradient descent, can represent repeated runs. More broadly, may describe a set of competing algorithms such as linear models, random forests, and neural networks, each corresponding to a different problem translation. We discuss model perturbations in more detail in .

Testing (held-out) data.

We distinguish between training data that are used to fit a collection of prediction functions and testing data that are used to evaluate the accuracy of fitted prediction functions . At a minimum, one should evaluate predictive accuracy on a held-out test set generated at the same time and under the same conditions as the training data (e.g., by randomly sampling a subset of observations). This type of assessment addresses questions of internal validity, which describe the strength of a relationship in a given sample. It is also often important to understand how a model will perform in future conditions that differ from those that generated the training data. For instance, a biologist may want to apply a model to new cell lines. A social scientist might use a model trained on residents from one city to predict the behavior of residents in another city. As an extreme example, one may want to use transfer learning to apply part of one’s model to an entirely new prediction problem. Testing data gathered under different conditions from the training data directly addresses questions of external validity, which describe how well a result will generalize to future observations. Domain knowledge and/or empirical validation are essential to assess the appropriateness of different prediction settings. These decisions should be reported in the proposed PCS documentation ().

Prediction evaluation metric.

The prediction evaluation metricquantifies the accuracy of a prediction function by measuring the similarity between and . We adopt the convention that larger values of correspond to worse predictive accuracy. should be selected to reflect domain-specific considerations, such as the types of errors that are more costly. In fact, there is an entire area of research devoted to evaluating probabilistic forecasts through “scoring rules” (ref. 28 and references therein). In some cases, it may be appropriate to consider multiple prediction evaluation metrics and focus on models that are accurate with respect to all. Prediction requires human input to formulate, including the preferred structure of a model/algorithm and what it means for a model to be suitably accurate. For example, the biologist studying gene regulation may believe that the simple rules learned by decision trees are an appealing representation of interactions that exhibit thresholding behavior (29). If the biologist is interested in a particular cell type, the biologist may evaluate prediction accuracy on test data measuring only these environments. If the responses are binary with a large proportion of class-0 responses, the biologist may choose to handle the class imbalance. All of these decisions should be documented and argued for () so that other researchers can assess the strength of conclusions based on transparent evidence. The accompanying PCS documentation provides a detailed example.

Cross-validation.

As alluded to earlier, CV has become a powerful approach to select regularization parameters when data are approximately i.i.d. (6, 7). CV divides data into blocks of observations, trains a model on all but one block, and evaluates the prediction error over each held-out block. In other words, CV incorporates the scientific principle of replication by evaluating whether a model accurately predicts the responses of pseudoreplicates. CV works more effectively as a tool to select regularization parameters than as an estimate of prediction error, where it can incur high variability due to the often positive dependencies between the estimated prediction errors in the summation of the CV error (30). Just as peer reviewers make judgment calls on whether a laboratory’s experimental conditions are suitable to replicate scientific results, data scientists must determine whether a removed block represents a justifiable pseudoreplicate, which requires information from the data collection process and domain knowledge.

Computability.

In a broad sense, computability is the gatekeeper of data science. If data cannot be generated, stored, managed, and analyzed efficiently and scalably, there is no data science. Modern science relies heavily on information technology as part of the DSLC. Each step, from raw data collection and cleaning to model building and evaluation, relies on computing technology and falls under computability in a broad sense. In a narrow sense, computability refers to the computational feasibility of algorithms or model building. Here we use computability in the narrow sense, which is closely associated with the rise of machine learning over the last three decades. Just as scientific instruments and technologies determine what processes can be effectively measured, computing resources and technologies determine the types of analyses that can be carried out. In particular, computability is necessary to carry out predictability and stability analyses within the PCS framework. Computational constraints can also serve as a device for regularization. For example, stochastic gradient descent is widely used for optimization in machine-learning problems (31). Both the stochasticity and early stopping of a stochastic gradient algorithm play the role of implicit regularization. Computational considerations and algorithmic analyses have long been an important part of statistics and machine learning. Even before digital computing, calculus played a computational role in statistics through Taylor expansions applied to different models. In machine learning, computational analyses consider the number of operations and required storage space in terms of observations , features , and tuning (hyper)parameters. When the computational cost of addressing a domain problem or question exceeds available computational resources, a result is not computable. For instance, the biologist interested in gene regulation may want to model interaction effects in a supervised learning setting. However, there are possible order- interactions among regulatory factors. For even a moderate number of factors, exhaustively searching for high-order interactions is not computable. In such settings, data scientists must restrict modeling decisions to draw conclusions. Thus it is important to document why certain restrictions were deemed appropriate and the impact they may have on conclusions (). Increases in computing power also provide an unprecedented opportunity to enhance analytical insights into complex natural phenomena. We can now store and process massive datasets, which can be used to simulate large-scale processes. Simulations provide concrete, quantitative representations of natural phenomena relative to known input parameters, which can be perturbed to assess the stability of data results. As a result, simulation experiments inspired by observed data and domain knowledge are powerful tools to understand how results may behave in real-world settings. They represent a best effort to emulate complex processes, where the reliability of results is not always clear. Pairing such simulation studies with empirical evidence makes the DSLC more transparent for peers and users to review, aiding in the objectivity of science.

Stability at the Modeling Stage.

Computational advances have fueled our ability to analyze the stability of data results in practice. At the modeling stage, stability measures how a data result changes when the data and/or model are perturbed (15). Stability extends the concept of sampling variability in statistics, which is a measure of instability relative to other data that could be generated from the same distribution. Statistical uncertainty assessments implicitly assume stability in the form of a distribution that generated the data. This assumption highlights the importance of other datasets that could be observed under similar conditions (e.g., by another person in the laboratory or another laboratory at another time). The concept of a model (“true”) distribution is a construct. When randomization is explicitly carried out, the model distribution can be viewed as a physical construct. Otherwise, it is a mental construct that must be justified through domain knowledge, an understanding of the data-generating process, and downstream utility. Statistical inference procedures use distributions to draw conclusions about the real world. The relevance of such conclusions requires empirical support for the postulated model distribution, especially when it is a mental construct. In data science and statistical problems, practitioners often do not make much of an attempt to justify this mental construct. At the same time, they take the uncertainty conclusions very seriously. This flawed practice is likely related to the high rate of false discoveries (2, 3). It is a major impediment to progress of science and to data-driven knowledge extraction in general. While the stability principle encapsulates uncertainty quantification when the model distribution construct is well supported, it is intended to cover a much broader range of perturbations, such as problem formulation (e.g., different problem translations), preprocessing, EDA, randomized algorithms, and choice of models/algorithms. Although seldom carried out in practice, evaluating stability across the entire DSLC is necessary to ensure that results are reliable and reproducible. For example, the biologist studying gene regulation must choose both how to normalize raw data and what algorithm(s) will be used in analysis. When there is no principled approach to make these decisions, the knowledge data scientists can extract from analyses is limited to conclusions that are stable across appropriate choices (22, 32, 33). This ensures that other scientists studying the same data will reach similar conclusions, despite slight variation in their independent choices.

Formulating stability at the modeling stage.

Stability at the modeling stage is defined with respect to a stability target, an appropriate perturbation to the data and/or algorithm/model, and a stability metric to measure the change in target upon perturbation. We describe each of these in detail below.

Stability target.

The stability targetcorresponds to the data result or estimand of interest. It depends on input data and a specific model/algorithm used to analyze the data. For simplicity, we will sometimes suppress the dependence on and in our notation. As an example, can represent responses predicted by . Other examples of include features selected by lasso with penalty parameter or saliency maps derived from a convolutional neural network (CNN) with architecture .

Data and model/algorithm perturbations.

To evaluate the stability of a data result, we measure the change in target that results from a perturbation to the input data or learning algorithm. More precisely, we define a collection of data perturbations and model/algorithm perturbations and compute the stability target distributionFor example, appropriate data perturbations include bootstrap sampling when observations are approximately i.i.d., block bootstrap for weakly dependent time series, generative models that are supported by domain knowledge (), and probabilistic models that are justified from an understanding of the data-generating process or explicit randomization. When different prediction functions are deemed equally appropriate based on domain knowledge, each may represent an appropriate model perturbation (). It can be argued that the subjectivity surrounding appropriate perturbations makes it difficult to evaluate results within the PCS framework. Indeed, perturbation choices are both subjective human judgment calls and critical considerations of PCS. The degree to which a data result can be trusted depends on the justification for a perturbation. This is true if the perturbation comes from a probabilistic model, as in traditional statistical inference, or some broader set of perturbations, as in PCS. The goal of PCS is to use and explicitly document perturbations that are best suited to assess stability in complex, high-dimensional data rather than relying on probabilistic models alone, which have little objective meaning when the model is not justified. To ensure that results can be evaluated, the case for an appropriate perturbation must be made in the publication and in the PCS documentation (). These transparent narratives allow readers to scrutinize and discuss perturbations to determine which one should be applied for a particular field and/or type of data, encouraging objectivity.

Stability evaluation metric.

The stability evaluation metric summarizes the stability target distribution in Eq. . For example, if indicates features selected by a model trained on data , we may report the proportion of times each feature is selected across data perturbations . If corresponds to saliency maps derived from different CNN architectures , we may report each pixel’s range of salience across . When the stability evaluation metric combines targets across model/algorithm perturbations, it is important that these different targets are scaled appropriately to ensure comparability. A stability analysis that reveals the target is unstable (relative to a meaningful threshold for a domain problem) may suggest an alternative analysis or target. This raises issues of multiplicity and/or overfitting if the same data are used to evaluate new stability targets. Held-out test data offer one way to mitigate these concerns. That is, training data can be used to identify a collection of targets that are suitably stable. These targets can then be evaluated on the test data. More broadly, the process of refining analyses and stability targets can be viewed as part of the iterative approach to data analysis and knowledge generation described by ref. 34. Before defining a new target or analysis, it may be necessary to collect new data to help ensure reproducibility and external validity.

Data perturbation.

The goal of data perturbation under the stability principle is to mimic a process that could have been used to produce model input data but was not. This includes human decisions, such as preprocessing and data cleaning, as well as data-generating mechanisms. When we focus on the change in target under possible realizations of the data from a well-supported probabilistic model, we arrive at well-justified sampling variability considerations in statistics. Hence data perturbation under the stability principle includes, but is much broader than, the concept of sampling variability. It formally recognizes many other important considerations in the DSLC beyond sampling variability. Furthermore, it provides a framework to assess trust in estimates of when a probabilistic model is not well justified and hence sampling interpretations are not applicable. Data perturbations can also be used to reduce variability in the estimated target, which corresponds to a data result of interest. Random forests incorporate subsampling data perturbations (of both the data units and predictors) to produce predictions with better generalization error (27). Generative adversarial networks (GANs) use synthetic adversarial examples to retrain deep neural networks and produce predictions that are more robust to such adversarial data points (35). Bayesian models based on conjugate priors lead to marginal distributions that can be derived by adding observations to the original data. Thus they can be viewed as a form of data perturbation that implicitly introduces synthetic data through the prior. Empirically supported generative models, including partial differential equations (PDEs), can be used to explicitly introduce synthetic data. As with Bayesian priors, synthetic data perturbations from generative models can be used to encourages stability of data results relative to prior knowledge, such as mechanistic rules based on domain knowledge (for examples see ref. 36).

Algorithm or model perturbation.

The goal of algorithm or model perturbation is to understand how alternative analyses of the same data affect the target estimate. A classic example of model perturbation is from robust statistics, where one searches for a robust estimator of the mean of a location family by considering alternative models with heavier tails than the Gaussian model. Another example of model perturbation is sensitivity analysis in Bayesian modeling (37, 38). Many of the model conditions used in causal inference are in fact stability concepts that assume away confounding factors by asserting that different conditional distributions are the same (39, 40). Modern algorithms often have a random component, such as random projections or random initial values in gradient descent and stochastic gradient descent. These random components provide natural model perturbations that can be used to assess the stability of . In addition to the random components of a single algorithm, multiple models/algorithms can be used to evaluate stability of the target. This is useful when there are many appropriate choices of model/algorithm and no established criteria or established domain knowledge to select among them. The stability principle calls for interpreting only the targets of interest that are stable across these choices of algorithms or models (32). As with data perturbations, model perturbations can help reduce variability or instability in the target. For instance, ref. 41 selects lasso coefficients that are stable across different regularization parameters. Dropout in neural networks is a form of algorithm perturbation that leverages stability to improve generalizability (42). Our previous work (33) stabilizes random forests to interpret decision rules in tree ensembles (33, 43), which are perturbed using random feature selection (model perturbation) and bootstrap (data perturbation).

Dual Roles of Generative Models in PCS.

Generative models include both probabilistic models and PDEs with initial or boundary conditions. These models play dual roles in the PCS framework. On one hand, they can concisely summarize past data and prior knowledge. On the other hand, they can be used to generate synthetic observations that offer a form of data perturbation. When a generative model is used to summarize data, a common target of interest is the model’s parameters. Generative models with known parameters may be used for prediction or to advance understanding through the mechanistic rules they represent. Such models correspond to infinite data, although finite under computational constraints. Generative models with unknown parameters can be used to motivate surrogate loss functions through maximum-likelihood and Bayesian modeling methods. Mechanistic interpretations of such models should not be used to draw scientific conclusions. They are simply useful starting points to optimize algorithms that must be subjected to empirical validation. Generative models that approximate the data-generating process, a human judgment call argued for in the PCS documentation, can be used as a form of data perturbation. Here synthetic data augment the observed data and serve the purpose of domain-inspired regularization. The amount of synthetic data to combine with the observed data reflects our degree of belief in the models and is an interesting area for future exploration. Using synthetic data for domain-inspired regularization allows the same algorithmic and computing platforms to be applied to the combined data. This style of analysis is reminiscent of AdaBoost, which uses the current data and model to modify the data used in the next iteration without changing the base learner (44).

Connections among the PCS Principles.

Although we have discussed the three principles of PCS individually, they share important connections. Computational considerations can dictate tractable predictive models/algorithms, particularly for large, high-dimensional datasets. These computability issues are often addressed in practice through scalable optimization methods such as gradient descent (GD) or stochastic gradient descent (SGD). Evaluating predictability on held-out data is a form of stability analysis where the training/test sample split represents a data perturbation. Other perturbations used to assess stability require multiple runs of similar analyses. Parallel computation is well suited for these perturbations.

PCS Inference through Perturbation Analysis

When data results are used to guide future decisions or actions, it is important to assess the quality of the target estimate. For instance, suppose a model predicts that an investment will generate a return over 1 y. Intuitively, this prediction suggests that “similar” investments return on average. Whether or not a particular investment will realize a return close to depends on whether returns for similar investments ranged from to or from to . In other words, the variability of a prediction conveys important information about how much one should trust it. In traditional statistics, confidence measures describe the uncertainty of an estimate due to sampling variability under a well-justified probabilistic model. However, decisions made throughout the DSLC add another layer of uncertainty that may bias data results. This issue has been previously acknowledged in the modeling stage by the authors of ref. 45, who derive “hacking intervals” to assess the range of a summary statistic optimized over a possible set of data and algorithm perturbations. In the PCS framework, we propose perturbation intervals or perturbation regions in general, to quantify the stability of target estimates relative to different perturbations, including data cleaning and problem translations. Perturbation intervals are conceptually similar to confidence intervals. The primary difference is that they are explicitly connected to perturbations, justified in PCS documentation () and evaluated by independent reviewers and domain experts. As an example, perturbation intervals for a target parameter from a single method based on bootstrap sampling specialize to traditional confidence intervals based on the bootstrap. More broadly, perturbation intervals quantify the variability of a target parameter value across the entire DSLC. For instance, a data scientist may consider multiple preprocessing, subsampling, and modeling strategies to predict investment returns. The resulting perturbation intervals describe the range of returns across worlds represented by each perturbation. Their reliability lies squarely on whether the set of perturbations captures the full spectrum of appropriate choices that could be made throughout the DSLC, which should be evaluated by domain experts and independent reviewers. This highlights the importance of perturbations that could plausibly generate the observed data, represent the range of uncertainty surrounding an analysis to the best degree possible, and are transparently documented for others to evaluate (). As a starting point, we focus on a basic form of PCS inference that generalizes traditional statistical inference. Our approach to inference allows for a range of data and algorithm/model perturbations, making it flexible in its ability to represent uncertainty throughout the DSLC.

PCS Perturbation Intervals.

The reliability of perturbation intervals lies on the appropriateness of each perturbation. Consequently, perturbation choices should be seriously deliberated, clearly communicated, and evaluated by objective reviewers. Here we propose a framework for PCS inference based on a single problem translation and target estimand, leaving the case of multiple translations/estimands to future work. Examples of appropriate threshold include domain accepted baselines, the top performing models, or models whose accuracy is suitably similar to the most accurate model. If the goal of an analysis is prediction, testing data should be held out until reporting the final prediction accuracy of a model in step 4. In such cases, Eq. can be evaluated using a surrogate sample-splitting approach (e.g., CV). If the goal of an analysis extends beyond prediction (e.g., to feature selection), Eq. may be evaluated on held-out test data. Problem formulation: Translate the domain question into a data science problem. Define a prediction target , appropriate data and/or model perturbations, prediction function(s) , training/test split, prediction evaluation metric , stability metric , and stability target . Document why these choices are appropriate in the context of the domain question. Prediction screening: For a threshold , screen out models that do not fit the data (via prediction accuracy): Target value perturbation distributions: For each of the survived models from step 2, compute the stability target under each data perturbation . This results in a joint distribution of the target over data and model perturbations as in Eq. . For a collection of perturbations, requiring stability of across all perturbations is more conservative in terms of type I error than requiring stability for any single perturbation. However, different domain questions require control over different types of error. How and when to combine results across perturbations is thus a human judgment call that should be transparently justified and documented. Perturbation result reporting: Summarize the target value perturbation distribution using the stability metric . For instance, if is one dimensional, we could summarize its perturbation distribution using the 10th and 90th percentiles or a visualization. If is multidimensional, we could report a low-dimensional projection of the perturbation distribution. When perturbation results combine targets across models/algorithms, they may need to be rescaled to ensure comparability. When perturbation intervals are reported separately for model/algorithm perturbation, predictive accuracy evaluated in step 2 may be used as a measure of trust to rank each interval. At a high level, the PCS inference uses perturbation intervals to identify the stable part of accurate models. If perturbation results reveal instability among accurate models, PCS inference can be used to interpret aspects that are shared (i.e., stable) across these models. In this setting, PCS can be viewed as an implicit application of Occam’s razor. That is, it draws conclusions from the stable portion of predictive models to simplify data results, making them more reliable and easier to interpret. If perturbation intervals reveal that complex models are both stable and accurate, PCS inference provides justification for the added complexity.

PCS Hypothesis Testing.

Hypothesis testing from traditional statistics is commonly used in decision making for science and business alike. The heart of Fisherian testing (46) lies in calculating the P value, which represents the probability of an event more extreme than in the observed data under a null hypothesis or distribution. Smaller P values correspond to stronger evidence against the null hypothesis or (ideally) the scientific theory embedded in the null hypothesis. For example, we may want to determine whether a particular gene is differentially expressed between patients with breast cancer and a control group. Given i.i.d. random samples from each population, we could address this question in the classical hypothesis-testing framework using a t test. The P value describes the probability of seeing a difference in means more extreme than observed if the genes are not differentially expressed. While hypothesis testing is valid philosophically, many of the assumptions that it relies on are unrealistic in practice. For instance, unmeasured confounding variables can bias estimates of causal effects. These issues are particularly relevant in the social sciences, where randomized trials are difficult or impossible to conduct. Resource constraints can limit how data are collected, resulting in samples that do not reflect the population of interest, distorting the probabilistic interpretations of traditional statistical inference. Moreover, hypothesis testing assumes empirical validity of probabilistic data-generating models. When randomization is not carried out explicitly, a particular null distribution must be justified from domain knowledge of the data-generating mechanism. Such issues are seldom taken seriously in practice, resulting in settings where the null distribution is far from the observed data. As a result, P values as small as or are now common to report, despite the fact that there are rarely enough data to reliably calculate these values, especially when multiple hypotheses (e.g., thousands of genes) are evaluated. When results are so far off on the tail of the null distribution, there is no empirical evidence as to why the tail should follow a particular parametric distribution. Moreover, hypothesis testing as practiced today often relies on analytical approximations or Monte Carlo methods, where issues arise for such small probability estimates. In fact, there is a specialized area of importance sampling to deal with simulating small probabilities (48, 49), but these ideas have not been widely adopted in practice. PCS hypothesis testing builds on perturbation intervals to address these practical issues and the cognitively misleading nature of small P values. It uses the null hypothesis to define constrained perturbations that represent a plausible data-generating process, which in the best case corresponds to an existing scientific theory. This includes probabilistic models, when they are well founded, as well as other data and/or algorithm perturbations. For instance, generative models based on PDEs can be used to simulate data according to established physical laws. Alternatively, a subset of data can be selected as controls (for example, see ref. 50). By allowing for a broad class of perturbations, PCS hypothesis testing allows us to compare observed data with data that respect some simple structure known to represent important characteristics of the domain question. Of course, the appropriateness of a perturbation is a human judgment call that should be clearly communicated in PCS documentation and debated by researchers. Much like scientists deliberate over appropriate controls in an experiment, data scientists should debate the appropriate perturbations in a PCS analysis.

Formalizing PCS hypothesis testing.

Formally, we consider settings with observable input features , prediction target , prediction functions , and a null hypothesis that qualitatively describes some aspect of the domain question. PCS hypothesis testing translates the null hypothesis into a constrained perturbation and generates dataaccording to this perturbation. The particular choice of constrained perturbation should be explicitly documented and justified by domain knowledge. We use the constrained perturbation to construct and compare perturbation intervals for both and and evaluate whether the observed data are consistent with the hypothesis embedded in .

PCS Inference in Neuroscience and Biology.

The work in ref. 51 considers the null hypothesis that population-level structure in single-neuron data is the expected byproduct of primary features (e.g., correlations across time). This can be viewed as a form of PCS inference. The authors use a maximum-entropy approach, whose constraint is represented by the number of moments, to generate data that share primary features with the observed data but are otherwise random, and compare population-level findings between the observed and simulated data. In the accompanying PCS documentation, we consider the null hypothesis that genomic interactions appear with equal frequency among different classes of genomic elements. We use a sample-splitting strategy which treats inactive elements (class-0 observations) as a baseline to determine whether interactions appear with “unusual” frequency. Once again, these comparisons rely on human judgment to determine when results are sufficiently different. These choices depend on the domain context and how the problem has been translated. They should be transparently communicated by the researcher in the PCS documentation.

PCS Inference Simulation Studies in Sparse Linear Models.

We tested PCS inference in an extensive set of data-inspired simulation experiments in the sparse linear model setting that has been widely studied by the statistics community over the past two decades (). In total, we considered six distinct generative models intended to reflect some of the issues that arise in practice. We compared our proposed PCS inference procedure with selective inference and asymptotic normality results using receiver operating characteristic (ROC) curves. These provide a useful criterion to assess false positives and true positives, which are both important considerations in settings where resources dictate how many findings can be evaluated in follow-up analyses/experiments. Across all models, PCS inference compares favorably to both selective inference and asymptotic normality results (Fig. 2). However, we note that the principal advantage of PCS inference is that it can be easily generalized to more complex settings faced by data scientists today as in the two examples described above.
Fig. 2.

ROC curves showing true positive rate (TPR) and false positive rate (FPR) for feature selection in a linear model setting with observations. Each plot corresponds to a different generative model. Color corresponds to method of inference: red, PCS; blue, selective inference; green, linear model asymptotic normality. Error bars give the 10th and 90th percentiles over replicates.

ROC curves showing true positive rate (TPR) and false positive rate (FPR) for feature selection in a linear model setting with observations. Each plot corresponds to a different generative model. Color corresponds to method of inference: red, PCS; blue, selective inference; green, linear model asymptotic normality. Error bars give the 10th and 90th percentiles over replicates.

PCS Documentation

The PCS framework includes an accompanying R Markdown or Jupyter (iPython) Notebook, which seamlessly integrates narratives, codes, and analyses. These narratives are necessary to describe the domain problem and support assumptions and choices made by the data scientist regarding computational platform, data cleaning and preprocessing, data visualization, model/algorithm, prediction metric, prediction evaluation, stability target, data and algorithm/model perturbations, stability metric, and data conclusions in the context of the domain problem. These narratives should be based on referenced prior knowledge and an understanding of the data collection process, including design principles or rationales. The narratives in the PCS documentation help bridge or connect the two parallel universes of reality and models/algorithms that exist in the mathematical world (Fig. 3). In addition to narratives justifying human judgment calls (possibly with data evidence), PCS documentation should include all codes used to generate data results with links to sources of data and metadata.
Fig. 3.

Assumptions made throughout the DSLC allow researchers to use models such as decision trees, neural networks, or probability distributions as an approximation of reality, which may include physical, chemical, or biological laws. Narratives provided in PCS documentation can help justify assumptions to connect these two worlds.

Assumptions made throughout the DSLC allow researchers to use models such as decision trees, neural networks, or probability distributions as an approximation of reality, which may include physical, chemical, or biological laws. Narratives provided in PCS documentation can help justify assumptions to connect these two worlds. We propose the following steps in a notebook : Domain problem formulation (narrative). Clearly state the real-world question and describe prior work related to this question. Indicate how this question can be answered in the context of a model or analysis. Data collection and storage (narrative). Describe how the data were generated, including experimental design principles, and reasons why the data are relevant to answer the domain question. Describe where data are stored and how they can be accessed by others. Data cleaning and preprocessing (narrative, code, visualization). Describe and justify steps to convert raw data into data for analysis. Ask whether more than one preprocessing method should be used and examine their impacts on the final data results. Exploratory data analysis (narrative, code, visualization). Describe any preliminary analyses that influenced modeling decisions or conclusions along with code and visualizations to support these decisions. Modeling and post hoc analysis (narrative, code, visualization). Carry out PCS inference in the context of the domain question. Specify appropriate model and data perturbations. If necessary, specify null hypotheses and associated perturbations. Interpretation of results (narrative and visualization). Translate the data results to draw conclusions and/or make recommendations in the context of the domain problem. This documentation gives the reader as much information as possible to make informed judgments regarding the evidence and process for drawing a data conclusion in the DSLC. A case study of the PCS framework in the genomics problem discussed earlier is documented on Zenodo.

PCS Recommendation System for Scientific Hypothesis Generation

In general, causality implies predictability and stability over many experimental conditions, but not vice versa. The causal inference community has long acknowledged connections between stability and estimates of causal effects. For instance, many researchers have studied paradoxes surrounding associations that lead to unstable estimates of causal effects (52–54). Estimates in the Neyman–Rubin potential outcomes framework rely on a stable treatment across observational units (55, 56). Sensitivity analyses test the stability of a causal effect relative to unmeasured confounding (57, 58). Stability, particularly with respect to predictions across experimental interventions, has even been proposed as a criterion to establish certain causal relationships under the name “invariance” (39, 59–62). PCS inference builds on these ideas, using stability and predictability to rank target estimates for further studies, including follow-up experiments. In our recent works on DeepTune (32), iterative random forests (iRF) (33), and signed iterative random forests (siRF) (43), we use PCS inference to make recommendations as inputs to downstream human decisions. For example, PCS inference suggested potential relationships between neurons in the visual cortex and visual stimuli as well as third- and fourth-order interactions among biomolecules that are candidates for regulating gene expression. Predictability and stability do not replace physical experiments to prove or disprove causality. However, we hope computationally tractable analyses that demonstrate high predictability and stability suggest hypotheses or intervention experiments that have higher yields than otherwise. This hope is supported by the fact that 80% of the second-order interactions identified by iRF (33) had been verified in the literature through physical experiments.

Conclusion

In this paper, we unified PCS into a framework for veridical data science, composed of both a workflow and documentation. The PCS framework aims to provide responsible, reliable, reproducible, and transparent results across the DSLC. It is a step toward systematic and unbiased inquiry in data science, similar to strong inference (63). Prediction serves a reality check, evaluating how well a model/algorithm represents the natural phenomena that generated the data. Computability concerns with respect to algorithm efficiency determine the tractability of the DSLC and point to the importance of data-inspired simulations. Stability relative to data and model perturbations was advocated in ref. 15 as a minimum requirement for data results’ reproducibility and interpretability. We made important conceptual progress on stability by extending it to the entire DSLC, including problem formulation, data collection, data cleaning, and EDA. In addition, we developed PCS inference to evaluate the variability of data results with respect to a broad range of perturbations encountered in modern data science. Specifically, we proposed PCS perturbation intervals to evaluate the reliability of results and hypothesis testing to draw comparisons with simple structure in the data. We demonstrated that PCS inference performs favorably in a feature selection problem through data-inspired sparse linear model simulations and in a genomics case study. To communicate human judgment calls in the DSLC, we proposed PCS documentation, which integrates narratives justifying choices with reproducible codes and visualizations. This documentation makes data-driven decisions as transparent as possible for others to evaluate. In summary, we have offered a conceptual and practical framework to guide the DSLC, but many open problems remain. Basic PCS inference needs to be extended to multitranslations of the same domain question and vetted in practice well beyond the case studies in this paper and in our previous works, especially by other researchers. Additional case studies will help unpack subjective human judgment calls in the context of specific domain problems. The knowledge gained from these studies can be shared and critiqued through transparent documentation. Based on feedback from practice, theoretical studies of PCS procedures in the modeling stage are also called for to gain further insights under empirically vetted, stylized models. Finally, although there have been some theoretical studies on the connections between the three principles (refs. 64 and 65 and references therein), much more work is necessary (66).

Data Availability.

All data discussed in this paper are available to readers.
  13 in total

1.  A comparison of normalization methods for high density oligonucleotide array data based on variance and bias.

Authors:  B M Bolstad; R A Irizarry; M Astrand; T P Speed
Journal:  Bioinformatics       Date:  2003-01-22       Impact factor: 6.937

2.  Strong Inference: Certain systematic methods of scientific thinking may produce much more rapid progress than others.

Authors:  J R Platt
Journal:  Science       Date:  1964-10-16       Impact factor: 47.728

3.  Increasing Transparency Through a Multiverse Analysis.

Authors:  Sara Steegen; Francis Tuerlinckx; Andrew Gelman; Wolf Vanpaemel
Journal:  Perspect Psychol Sci       Date:  2016-09

4.  Positional information and the spatial pattern of cellular differentiation.

Authors:  L Wolpert
Journal:  J Theor Biol       Date:  1969-10       Impact factor: 2.691

5.  Sex bias in graduate admissions: data from berkeley.

Authors:  P J Bickel; E A Hammel; J W O'connell
Journal:  Science       Date:  1975-02-07       Impact factor: 47.728

6.  Sensitivity Analysis Without Assumptions.

Authors:  Peng Ding; Tyler J VanderWeele
Journal:  Epidemiology       Date:  2016-05       Impact factor: 4.822

7.  Structure in neural population recordings: an expected byproduct of simpler phenomena?

Authors:  Gamaleldin F Elsayed; John P Cunningham
Journal:  Nat Neurosci       Date:  2017-08-07       Impact factor: 24.884

8.  Iterative random forests to discover predictive and stable high-order interactions.

Authors:  Sumanta Basu; Karl Kumbier; James B Brown; Bin Yu
Journal:  Proc Natl Acad Sci U S A       Date:  2018-01-19       Impact factor: 11.205

9.  Why most published research findings are false.

Authors:  John P A Ioannidis
Journal:  PLoS Med       Date:  2005-08-30       Impact factor: 11.613

10.  Improving reproducibility by using high-throughput observational studies with empirical calibration.

Authors:  Martijn J Schuemie; Patrick B Ryan; George Hripcsak; David Madigan; Marc A Suchard
Journal:  Philos Trans A Math Phys Eng Sci       Date:  2018-09-13       Impact factor: 4.226

View more
  12 in total

1.  QnAs with Bin Yu.

Authors:  Farooq Ahmed
Journal:  Proc Natl Acad Sci U S A       Date:  2020-02-12       Impact factor: 11.205

Review 2.  Navigating the pitfalls of applying machine learning in genomics.

Authors:  Sean Whalen; Jacob Schreiber; William S Noble; Katherine S Pollard
Journal:  Nat Rev Genet       Date:  2021-11-26       Impact factor: 53.242

3.  Interoperability of statistical models in pandemic preparedness: principles and reality.

Authors:  Chris Holmes; Sylvia Richardson; George Nicholson; Marta Blangiardo; Mark Briers; Peter J Diggle; Tor Erlend Fjelde; Hong Ge; Robert J B Goudie; Radka Jersakova; Ruairidh E King; Brieuc C L Lehmann; Ann-Marie Mallon; Tullia Padellini; Yee Whye Teh
Journal:  Stat Sci       Date:  2022-05       Impact factor: 4.015

4.  Provable Boolean interaction recovery from tree ensemble obtained via random forests.

Authors:  Merle Behr; Yu Wang; Xiao Li; Bin Yu
Journal:  Proc Natl Acad Sci U S A       Date:  2022-05-24       Impact factor: 12.779

5.  Toward causality and improving external validity.

Authors:  Peter Bühlmann
Journal:  Proc Natl Acad Sci U S A       Date:  2020-10-12       Impact factor: 11.205

6.  Veridical Causal Inference using Propensity Score Methods for Comparative Effectiveness Research with Medical Claims.

Authors:  Ryan D Ross; Xu Shi; Megan E V Caram; Pheobe A Tsao; Paul Lin; Amy Bohnert; Min Zhang; Bhramar Mukherjee
Journal:  Health Serv Outcomes Res Methodol       Date:  2020-10-20

7.  Facilitating the Development of Deep Learning Models with Visual Analytics for Electronic Health Records.

Authors:  Cinyoung Hur; JeongA Wi; YoungBin Kim
Journal:  Int J Environ Res Public Health       Date:  2020-11-10       Impact factor: 3.390

8.  Principles for data analysis workflows.

Authors:  Sara Stoudt; Váleri N Vásquez; Ciera C Martinez
Journal:  PLoS Comput Biol       Date:  2021-03-18       Impact factor: 4.475

9.  Stable reliability diagrams for probabilistic classifiers.

Authors:  Timo Dimitriadis; Tilmann Gneiting; Alexander I Jordan
Journal:  Proc Natl Acad Sci U S A       Date:  2021-02-23       Impact factor: 11.205

10.  Rejoinder: Learning Optimal Distributionally Robust Individualized Treatment Rules.

Authors:  Weibin Mo; Zhengling Qi; Yufeng Liu
Journal:  J Am Stat Assoc       Date:  2021-04-01       Impact factor: 5.033

View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.