<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Machine Learning and Medicine</title>
    <description>By Sam Finlayson, MD-PhD student at Harvard-MIT</description>
    <link>http://localhost:4000/</link>
    <atom:link href="http://localhost:4000/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Fri, 16 May 2025 03:54:38 -0400</pubDate>
    <lastBuildDate>Fri, 16 May 2025 03:54:38 -0400</lastBuildDate>
    <generator>Jekyll v4.3.3</generator>
    
      <item>
        <title>Induction, Inductive Biases, and Infusing Knowledge into Learned Representations</title>
        <description>&lt;p&gt;&lt;sub&gt;&lt;sup&gt;Note: This post is a modified excerpt from the introduction to my PhD thesis.&lt;sub&gt;&lt;sup&gt;&lt;br /&gt;&lt;/sup&gt;&lt;/sub&gt;&lt;/sup&gt;&lt;/sub&gt;&lt;/p&gt;

&lt;h4&gt;Outline:&lt;/h4&gt;

&lt;div style=&quot;padding-top: 10px; font-size:large&quot;&gt;

&lt;a href=&quot;#Induc&quot;&gt;Inductive Generalization and Inductive Biases&lt;/a&gt;&lt;br /&gt;

&lt;a href=&quot;#Phil&quot;&gt;-Philosophical Foundations for the Problem of Induction&lt;/a&gt;&lt;br /&gt;

&lt;a href=&quot;#InduBias&quot;&gt;-Inductive Biases in Machine Learning&lt;/a&gt;&lt;br /&gt;

&lt;a href=&quot;#LearnRep&quot;&gt;Learned Representations of Data and Knowledge&lt;/a&gt;&lt;br /&gt;

&lt;a href=&quot;#LearnBack&quot;&gt;-Background on Representation Learning&lt;/a&gt;&lt;br /&gt;

&lt;a href=&quot;#Knowledge&quot;&gt;-Infusing Domain Knowledge into Neural Representations&lt;/a&gt;&lt;br /&gt;

&lt;/div&gt;

&lt;h2 id=&quot;-inductive-generalization-and-inductive-biases&quot;&gt;&lt;a name=&quot;Induc&quot;&gt;&lt;/a&gt; Inductive Generalization and Inductive Biases&lt;/h2&gt;

&lt;p&gt;Our goal in building machine learning systems is, with rare exceptions, to create algorithms whose utility extends beyond the dataset in which they are trained. In other words, we desire intelligent systems that are capable of generalizing to future data. The process of leveraging observations to draw inferences about the unobserved is the principle of &lt;em&gt;induction&lt;/em&gt;&lt;label for=&quot;induct_term&quot; class=&quot;margin-toggle sidenote-number&quot;&gt;&lt;/label&gt;&lt;input type=&quot;checkbox&quot; id=&quot;induct_term&quot; class=&quot;margin-toggle&quot; checked=&quot;&quot; /&gt;&lt;span class=&quot;sidenote&quot;&gt;Terminological note: In a non-technical setting, the term &lt;em&gt;inductive&lt;/em&gt; – denoting the inference of general laws from particular instances – is typically contrasted with the adjective &lt;em&gt;deductive&lt;/em&gt;, which denotes the inference of particular instances from general laws. This broad definition of induction may be used in machine learning to describe, for example, the model fitting process as the &lt;em&gt;inductive step&lt;/em&gt; and the deployment on new data as the &lt;em&gt;deductive step&lt;/em&gt;. By the same token, some AI methods such as automated theorem provers are described as deductive. In the setting of current ML research, however, it is much more common for the term ‘inductive’ to refer specifically to methods that are structurally capable of operating on new data points without retraining. In contrast, &lt;em&gt;transductive&lt;/em&gt; methods require a fixed or pre-specified dataset, and are used to make internal predictions about missing features or labels. While many ML methods are assumed to be inductive in both senses of the term, this section concerns itself primarily with the broader notion of induction as it relates to learning from observed data. In contrast, Chapters 1 and 2 involve the second use of this term, as I propose new methods that are inductive but whose predecessors were transductive &lt;a class=&quot;citation&quot; href=&quot;#chami2020machine&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;1&lt;/span&gt;&lt;/a&gt;.&lt;/span&gt;.
&lt;!--. --&gt;&lt;/p&gt;

&lt;h3 id=&quot;-philosophical-foundations-for-the-problem-of-induction&quot;&gt;&lt;a name=&quot;Phil&quot;&gt;&lt;/a&gt; Philosophical Foundations for the Problem of Induction&lt;/h3&gt;

&lt;p&gt;Even ancient philosophers appreciated the tenuity of inductive generalization. As early as the second century, the Greek philosopher Sextus Empiricus argued that the very notion of induction was invalid, a conclusion independently argued by the Charvaka school of philosophy in ancient India &lt;a class=&quot;citation&quot; href=&quot;#empiricus1933outlines&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;2,3&lt;/span&gt;&lt;/a&gt;. The so-called “problem of induction,” as it is best known today, was formulated by 18th-century philosopher David Hume in his twin works &lt;em&gt;A Treatise of Human Nature&lt;/em&gt; and &lt;em&gt;An Enquiry Concerning Human Understanding&lt;/em&gt; &lt;a class=&quot;citation&quot; href=&quot;#humeTreatise&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;4,5&lt;/span&gt;&lt;/a&gt;. In these works, Hume argues that all inductive inference hinges upon the premise that the future will follow the past. This premise has since become known as his “Principle of Uniformity of Nature” (or simply, the “Uniformity Principle”), the “Resemblance Principle,” or his “Principle of Extrapolation” &lt;a class=&quot;citation&quot; href=&quot;#garrett2011reason&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;6&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In the &lt;em&gt;Treatise&lt;/em&gt; and the &lt;em&gt;Inquiry&lt;/em&gt;, Hume examines various arguments – intuitive, demonstrative, sensible, probabilistic – that could be proposed to establish the principle of extrapolation and, having rejected them all, concludes that inductive inference itself is “not determin’d by reason.” Hume thus places induction outside the scope of reason itself, casting it therefore as non-rational if not irrational. In his 1955 work &lt;em&gt;Fact, Fiction, and Forecast&lt;/em&gt;, Nelson Goodman extended and reframed Hume’s arguments, proposing “a new riddle of induction”&lt;a class=&quot;citation&quot; href=&quot;#goodman1955fact&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;7&lt;/span&gt;&lt;/a&gt;. For Goodman, the key challenge was not the validity of induction per se, but rather the recognition that for any set of observations, there are multiple contradictory generalizations that could be used to explain them.&lt;/p&gt;

&lt;p&gt;At least among scientists, the best known formal response to the problem of induction comes from the philosopher of science Karl Popper. In &lt;em&gt;Conjectures and Refutations&lt;/em&gt;, Popper argues that science may sidestep the problem of induction by relying instead upon scientific conjecture followed by criticism &lt;a class=&quot;citation&quot; href=&quot;#popper2014conjectures&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;8&lt;/span&gt;&lt;/a&gt;.  Stated otherwise, according to Popper, the central goal of scientists should be to formulate falsifiable theories which can be provisionally treated as true when they survive repeated attempts to prove them false &lt;label for=&quot;popper_stats&quot; class=&quot;margin-toggle sidenote-number&quot;&gt;&lt;/label&gt;&lt;input type=&quot;checkbox&quot; id=&quot;popper_stats&quot; class=&quot;margin-toggle&quot; /&gt;&lt;span class=&quot;sidenote&quot;&gt; Popper’s framing is frequently used to justify the statistical hypothesis testing frameworks proposed by the likes of Neyman, Pearson, and Fisher. However, the compatibility of Popperian falsification and statistical hypothesis testing is a matter of debate &lt;a class=&quot;citation&quot; href=&quot;#hilborn1997ecological&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;9,10,11&lt;/span&gt;&lt;/a&gt;. &lt;/span&gt;. Popper’s arguments may be helpful as we frame our evaluation of any specific ML system that has already been trained – and thus instantiated, in a sense, as a “conjecture” that can be refuted. However, the training process of ML systems is itself an act of inductive inference and thus relies on a Uniformity Principle in a way that Popper’s conjecture-refutation framework does not address.&lt;/p&gt;

&lt;p&gt;This thesis is not a work of philosophy. However, I consider it important to acknowledge that the entire field of machine learning – the branch of AI concerned with constructing computers that learn from experience &lt;a class=&quot;citation&quot; href=&quot;#mitchell1997machine&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;12&lt;/span&gt;&lt;/a&gt; – is predicated upon a core premise that has, for centuries, been recognized as unprovable and arguably non-rational. To boot, even if the inductive framework is accepted as valid, there are an infinite number of contradictory generalizations that are equally consistent with our training data. While these observations may be philosophical in spirit and may appear impractical, they provide a framing for extremely practical questions:&lt;/p&gt;

&lt;p&gt;Under which circumstances can we reasonably expect the future to resemble the past, as far as our models are concerned? Given an infinite number of valid generalizations from our data – most of which are presumably useless or even dangerous – what guiding principles do we leverage to choose between them? What are the falsifiable empirical claims that we should be making about our models, and how should we test them? If we are to assume that prospective failure of our systems is the most likely outcome, as Popper would, what reasonable standards can be set to nevertheless trust ML in safety-critical settings such as healthcare?&lt;/p&gt;

&lt;p&gt;Each of these questions will be repeatedly considered throughout the course of this thesis.&lt;/p&gt;

&lt;h3 id=&quot;-inductive-biases-in-machine-learning&quot;&gt;&lt;a name=&quot;InduBias&quot;&gt;&lt;/a&gt; Inductive Biases in Machine Learning&lt;/h3&gt;

&lt;p&gt;As outlined above, the paradigm of machine learning presupposes the identification – a la Hume – of some set of tasks and environments for which we expect the future to resemble the past. At this point, we are thus forced to determine guiding principles – a la Goodman – that give our models strong &lt;em&gt;a priori&lt;/em&gt; preferences for generalizations that we expect to extrapolate well into the future. When such guiding principles are instantiated as design decisions in our models, they are known as &lt;em&gt;inductive biases&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;In his 1980 report &lt;em&gt;The Need for Biases in Learning Generalizations&lt;/em&gt;, Tom M. Mitchell argues that inductive biases constitute the heart of generalization and indeed a key basis for learning itself:&lt;/p&gt;

&lt;div class=&quot;epigraph&quot;&gt;&lt;blockquote&gt;&lt;p&gt;If consistency with the training instances is taken as the sole determiner of appropriate generalizations, then a program can never make the inductive leap necessary to classify instances beyond those it has observed. Only if the program has other sources of information, or biases for choosing one generalization over the other, can it non-arbitrarily classify instances beyond those in the training set....
  &lt;br /&gt;&lt;br /&gt;
  The impact of using a biased generalization language is clear: each subset of instances for which there is no expressible generalization is a concept that could be presented to the program, but which the program will be unable to describe and therefore unable to learn. If it is possible to know ahead of time that certain subsets of instances are irrelevant, then it may be useful to leave these out of the generalization language, in order to simplify the learning problem. ...&lt;br /&gt;&lt;br /&gt;

  Although removing all biases from a generalization system may seem to be a desirable goal, in fact the result is nearly useless. An unbiased learning system’s ability to classify new instances is no better than if it simply stored all the training instances and performed a lookup when asked to classify a subsequent instance.&lt;/p&gt;&lt;footer&gt;Tom M. Mitchell, &lt;cite&gt;The Need for Biases in Learning Generalizations&lt;/cite&gt;&lt;/footer&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;A key challenge of machine learning, therefore, is to design systems whose inductive biases align with the structure of the problem at hand. The effect of such efforts is not merely to endow the model with the capacity to learn key patterns, but also – somewhat paradoxically – to deliberately hamper the capacity of the model to learn other (presumably less useful) patterns, or at least to drive the model away from learning them. In other words, inductive biases stipulate the properties that we believe our model should have in order to generalize to future data; they thus encode our key assumptions about the problem itself.&lt;/p&gt;

&lt;p&gt;The machine learning toolkit has a wide array of methods to induce inductive biases in learning systems &lt;label for=&quot;inductive_biases&quot; class=&quot;margin-toggle&quot;&gt;⊕&lt;/label&gt;&lt;input type=&quot;checkbox&quot; id=&quot;inductive_biases&quot; class=&quot;margin-toggle&quot; checked=&quot;&quot; /&gt;&lt;span class=&quot;marginnote&quot;&gt;&lt;img src=&quot;/assets/thesis_images/inductive_biases.png&quot; /&gt;&lt;/span&gt; . For example, regularization methods such as L1-/L2-penalties &lt;a class=&quot;citation&quot; href=&quot;#tibshirani1996regression&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;13&lt;/span&gt;&lt;/a&gt;, dropout &lt;a class=&quot;citation&quot; href=&quot;#srivastava2014dropout&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;14&lt;/span&gt;&lt;/a&gt;, or early stopping &lt;a class=&quot;citation&quot; href=&quot;#prechelt1998early&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;15&lt;/span&gt;&lt;/a&gt; are a simple yet powerful means to impose Occam’s razor onto the training process. By the same token, the maximum margin loss of support vector machines &lt;a class=&quot;citation&quot; href=&quot;#cortes1995support&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;16&lt;/span&gt;&lt;/a&gt;, or model selection based on cross-validation can be described as inductive biases &lt;a class=&quot;citation&quot; href=&quot;#girosi1995regularization&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;17,18&lt;/span&gt;&lt;/a&gt;. Bayesian methods of almost any form induce inductive biases by placing explicit prior probabilities over model parameters. Machine learning systems that build on symbolic logic, such as inductive logic programming &lt;a class=&quot;citation&quot; href=&quot;#muggleton1991inductive&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;19&lt;/span&gt;&lt;/a&gt;, encode established knowledge into very strict inductive biases, by forcing algorithms to reason about training examples explicitly in terms of hypotheses derived from pre-specified databases of facts. As nicely synthesized in Battaglia et al, the standard layer types of modern neural networks each have distinct invariances that induce corresponding &lt;em&gt;relational inductive biases&lt;/em&gt;; for example, convolutional layers have spatial translational invariance and induce a relational inductive bias of locality, whereas recurrent layers have a temporal invariance that induces the inductive bias of sequentiality &lt;a class=&quot;citation&quot; href=&quot;#battaglia2018relational&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;20&lt;/span&gt;&lt;/a&gt;. Such relational inductive biases are extremely powerful when well-matched to the data on which they are applied.&lt;/p&gt;

&lt;p&gt;In the next section, I will introduce the neural representation learning framework – the dominant paradigm of machine learning today – and discuss inductive biases in this setting, with a special emphasis on recent tools for infusing external knowledge into the inductive biases of our models.&lt;/p&gt;

&lt;h2 id=&quot;learned-representations-of-data-and-knowledge&quot;&gt;&lt;a name=&quot;LearnRep&quot;&gt;&lt;/a&gt;Learned Representations of Data and Knowledge&lt;/h2&gt;

&lt;p&gt;The performance of most information processing systems, including machine learning systems, typically depends heavily upon the data representations (or features) they employ. Historically, this meant the devotion of significant labor and expertise to &lt;em&gt;feature engineering&lt;/em&gt;, the design of data transformations and preprocessing techniques to extract and organize discriminative features from data prior to the application of ML. &lt;em&gt;Representation learning&lt;/em&gt;&lt;a class=&quot;citation&quot; href=&quot;#bengio2013representation&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;21,22&lt;/span&gt;&lt;/a&gt; is an alternative to feature engineering, and refers to the training of learned representations of data (or knowledge graphs &lt;a class=&quot;citation&quot; href=&quot;#bordes2013translating&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;23&lt;/span&gt;&lt;/a&gt;) that are optimized for utility in downstream tasks such as prediction or information retrieval.&lt;/p&gt;

&lt;h3 id=&quot;--background-on-representation-learning&quot;&gt;&lt;a name=&quot;LearnBack&quot;&gt;&lt;/a&gt;  Background on Representation Learning&lt;/h3&gt;

&lt;p&gt;Many canonical methods in statistical learning can be considered representation learning methods. For example, low-dimensional data representations with desirable properties are learned by unsupervised methods such as principal components analysis &lt;a class=&quot;citation&quot; href=&quot;#pearson1901liii&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;24&lt;/span&gt;&lt;/a&gt;, k-means clustering &lt;a class=&quot;citation&quot; href=&quot;#forgy1965cluster&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;25&lt;/span&gt;&lt;/a&gt;, independent components analysis &lt;a class=&quot;citation&quot; href=&quot;#jutten1991blind&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;26&lt;/span&gt;&lt;/a&gt;, and manifold learning methods such as Isomap &lt;a class=&quot;citation&quot; href=&quot;#tenenbaum2000global&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;27&lt;/span&gt;&lt;/a&gt; and locally-linear embeddings &lt;a class=&quot;citation&quot; href=&quot;#roweis2000nonlinear&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;28&lt;/span&gt;&lt;/a&gt;. Within the field of machine learning, the most popular paradigm for representation learning are neural networks&lt;a class=&quot;citation&quot; href=&quot;#bengio2013representation&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;21,22&lt;/span&gt;&lt;/a&gt;, which provide an extremely flexible framework that can in theory be used to approximate any continuous function &lt;a class=&quot;citation&quot; href=&quot;#cybenko1989approximation&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;29&lt;/span&gt;&lt;/a&gt;. Over the past two decades, representation learning with neural networks has steadily outperformed traditional feature engineering methods on a large family of tasks, including speech recognition &lt;a class=&quot;citation&quot; href=&quot;#dahl2010phone&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;30&lt;/span&gt;&lt;/a&gt;, image processing &lt;a class=&quot;citation&quot; href=&quot;#hinton2006fast&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;31&lt;/span&gt;&lt;/a&gt;, and natural language processing &lt;a class=&quot;citation&quot; href=&quot;#mikolov2011empirical&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;32&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A common feature of all the representation learning methods just mentioned is that they are designed to learn data representations that have lower dimensionality than the original data. This basic inductive bias is motivated by the so-called &lt;em&gt;manifold hypothesis&lt;/em&gt;, which states that most real world data – images, text, genomes, etc. – are captured and stored in high dimensions but actually consist of some lower-dimensional data manifold embedded in that high-dimensional space.&lt;/p&gt;

&lt;p&gt;Another desirable property of learned representations is that they be &lt;em&gt;distributed representations&lt;/em&gt;&lt;a class=&quot;citation&quot; href=&quot;#bengio2013representation&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;21,22&lt;/span&gt;&lt;/a&gt;, composed of multiple elements that can be set separately from each other. Distributed representations are highly expressive: \(n\) learned features with \(k\) values can represent \(k^n\) different concepts, with each feature element representing a degree of meaning along its own axis. This results in a rich similarity space that improves the generalizability of resultant models. The benefits of distributed representations apply to any data type, but are particularly obvious from a conceptual level when considering settings such as natural language processing &lt;a class=&quot;citation&quot; href=&quot;#mikolov2013distributed&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;33&lt;/span&gt;&lt;/a&gt;, where the initial data representation are encoded as symbols that lack any relationship with their underlying meaning. For example, the two sentences (or their equivalent triples, in a knowledge graph setting) ‘ibuprofen impairs renal function’ and ‘Advil damages the kidneys’ have zero tokens or ngrams in common. Thus, machine learning programs based only on symbols would be unable to extrapolate from one sentence to the other without relying upon explicit mappings such as ‘ibuprofen has_name Advil’, ‘impairs has_synonym damages’, etc. In contrast, the distributed representations of these sentences should, in principle, be nearly identical, facilitating direct extrapolation.&lt;/p&gt;

&lt;p&gt;Over the past decade, neural networks have established themselves as the &lt;em&gt;de facto&lt;/em&gt; approach to representation learning for essentially every ML problem in which their training has been shown feasible &lt;a class=&quot;citation&quot; href=&quot;#bengio2013representation&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;21,22&lt;/span&gt;&lt;/a&gt;. While some neural architectures – e.g. Word2vec&lt;a class=&quot;citation&quot; href=&quot;#mikolov2013efficient&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;34&lt;/span&gt;&lt;/a&gt; –  are designed exclusively to produce embeddings that will be utilized in downstream tasks, the primary appeal of neural networks is that &lt;em&gt;every&lt;/em&gt; deep learning architecture serves as a representation learning system. More specifically, the activations of each layer of neurons serves as a distributed representation of the input that is progressively refined in a hierarchical manner to produce representations of increased abstraction with increasing depth &lt;label for=&quot;depth_comment&quot; class=&quot;margin-toggle sidenote-number&quot;&gt;&lt;/label&gt;&lt;input type=&quot;checkbox&quot; id=&quot;depth_comment&quot; class=&quot;margin-toggle&quot; /&gt;&lt;span class=&quot;sidenote&quot;&gt;  While even single-layer neural networks can provably approximate any continuous function, this guarantee is impractical because the proof assumes an infinite number of hidden nodes&lt;a class=&quot;citation&quot; href=&quot;#cybenko1989approximation&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;29&lt;/span&gt;&lt;/a&gt;. Deep neural networks, in contrast, allow for feature re-use that is exponential in the number of layers, which makes deep networks more expressive and more statistically efficient to train. &lt;a class=&quot;citation&quot; href=&quot;#haastad1991power&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;35,21&lt;/span&gt;&lt;/a&gt; &lt;/span&gt;. In this light, a typical supervised neural network architecture of depth \(k\), for example, can arguably be best understood as a representation learning architecture of depth \(k-1\) followed by a simple linear or logistic regression.&lt;/p&gt;

&lt;p&gt;Representations learned by neural networks have a number of desirable properties. First, neural representations are low-dimensional, distributed, and hierarchically organized, as described above. Neural networks have the ability to learn parameterized mappings that are strongly nonlinear but can still be used to directly compute embeddings for new data points. Yoshuo Bengio and others have extensively argued that neural networks have a higher capacity for generalization versus other well-established ML methods such as kernels &lt;a class=&quot;citation&quot; href=&quot;#bengio2005non&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;36,37&lt;/span&gt;&lt;/a&gt; and decision trees &lt;a class=&quot;citation&quot; href=&quot;#bengio2010decision&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;38&lt;/span&gt;&lt;/a&gt;, specifically because they avoid an excessively strong inductive bias towards &lt;em&gt;smoothness&lt;/em&gt;; in other words, when making a new prediction for some new data point \(x\), deep representation learning methods do not exclusively rely upon the training points that are immediately nearby \(x\) in the original feature space.&lt;/p&gt;

&lt;p&gt;Representation learning using neural networks also benefits from being modular, and therefore flexible &lt;label for=&quot;flexibility_cost&quot; class=&quot;margin-toggle sidenote-number&quot;&gt;&lt;/label&gt;&lt;input type=&quot;checkbox&quot; id=&quot;flexibility_cost&quot; class=&quot;margin-toggle&quot; /&gt;&lt;span class=&quot;sidenote&quot;&gt;  The flexibility of neural networks doesn’t come without a price: In addition to obvious concerns about highly parameterized models and overfitting&lt;a class=&quot;citation&quot; href=&quot;#friedman2001elements&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;39&lt;/span&gt;&lt;/a&gt;, for example, the ease of implementing complicated DL architectures has arguably produced a research culture focused on ever-larger – and more costly&lt;a class=&quot;citation&quot; href=&quot;#lacoste2019quantifying&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;40&lt;/span&gt;&lt;/a&gt; – models that are often poorly characterised and very difficult to reproduce. &lt;a class=&quot;citation&quot; href=&quot;#lipton2018troubling&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;41&lt;/span&gt;&lt;/a&gt; &lt;/span&gt; and extensible to design. For example, given two neural architectures that each create a distributed representation of a unique data modality, these can be straightforwardly combined into a single, fused architecture that creates a composite multi-modal representation (e.g. combining audio embeddings and visual embeddings into composite video embeddings&lt;a class=&quot;citation&quot; href=&quot;#ngiam2011multimodal&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;42&lt;/span&gt;&lt;/a&gt;). Such an approach is leveraged in Chapter 2. Another example of the power afforded by the modularity of neural architectures are &lt;em&gt;Generative Adversarial Networks&lt;/em&gt; (GANs) &lt;a class=&quot;citation&quot; href=&quot;#goodfellow2014generative&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;43&lt;/span&gt;&lt;/a&gt; , which learn to generate richly structured data by pitting a data-simulating ‘generator’ model against a jointly-trained ‘discrimator’ model that is optimized to distinguish real from generated data. In Supplemental Chapter 1, I demonstrate this approach using a GAN trained to simulate hip radiographs.&lt;/p&gt;

&lt;p&gt;Taken together, neural architectures can be designed to expressively implement a broad array of inductive biases, while still allowing the network parameters to search over millions of compatible functions.&lt;/p&gt;

&lt;h3 id=&quot;-infusing-domain-knowledge-into-neural-representations&quot;&gt;&lt;a name=&quot;Knowledge&quot;&gt; Infusing Domain Knowledge into Neural Representations&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;Neural networks have largely absolved the contemporary researcher of the need to hand-engineer features, but this reality has not eliminated the role of external knowledge in designing our models and their inductive biases. In this section, I compare and contrast various approaches to explicitly and implicitly infuse domain knowledge into neural representations.&lt;/p&gt;

&lt;p&gt;The first paradigm involves the design of layers and architectures that align the representational capacity of the network with our prior knowledge of the problem domain. For instance, if we know that the data we provide have a particular property (e.g. unordered features), we can enforce corresponding constraints in our architecture (e.g. permutation invariance, as in DeepSet &lt;a class=&quot;citation&quot; href=&quot;#zhang2019deep&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;44&lt;/span&gt;&lt;/a&gt; or self-attention&lt;a class=&quot;citation&quot; href=&quot;#vaswani2017attention&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;45&lt;/span&gt;&lt;/a&gt; without position encodings). This is an example of a relational inductive bias &lt;label for=&quot;rel_ind_bias&quot; class=&quot;margin-toggle&quot;&gt;⊕&lt;/label&gt;&lt;input type=&quot;checkbox&quot; id=&quot;rel_ind_bias&quot; class=&quot;margin-toggle&quot; checked=&quot;&quot; /&gt;&lt;span class=&quot;marginnote&quot;&gt;&lt;img src=&quot;/assets/thesis_images/relational.png&quot; /&gt;&lt;/span&gt;  &lt;a class=&quot;citation&quot; href=&quot;#battaglia2018relational&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;20&lt;/span&gt;&lt;/a&gt;. Relatedly, we can manually wire the network in a manner that corresponds with our prior understanding of relationships between variables. Peng et al &lt;a class=&quot;citation&quot; href=&quot;#peng2019combining&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;46&lt;/span&gt;&lt;/a&gt; adopted this approach by building a feed forward neural network for single cell RNA-Seq data in which the input neurons for each gene were wired according to the Gene Ontology &lt;a class=&quot;citation&quot; href=&quot;#ashburner2000gene&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;47&lt;/span&gt;&lt;/a&gt;; this approach strictly weakens the capacity of the network, but may be useful if we have a strong prior that particular relationships would be confounding, for example. An alternative means to a similar end is to perform graph convolutions over edges that reflect domain knowledge &lt;a class=&quot;citation&quot; href=&quot;#mcdermott2019deep&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;48&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Another explicit paradigm for infusing knowledge into neural networks is to augment the architecture with the ability to query external information. For example, models can be augmented with knowledge graphs in the form of fact triples, which they can query using an attention mechanism &lt;label for=&quot;attention&quot; class=&quot;margin-toggle&quot;&gt;⊕&lt;/label&gt;&lt;input type=&quot;checkbox&quot; id=&quot;attention&quot; class=&quot;margin-toggle&quot; checked=&quot;&quot; /&gt;&lt;span class=&quot;marginnote&quot;&gt;&lt;img src=&quot;/assets/thesis_images/attention.png&quot; /&gt;&lt;/span&gt; &lt;a class=&quot;citation&quot; href=&quot;#annervaz2018learning&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;49,50&lt;/span&gt;&lt;/a&gt;. More generally, attention can be used to allow modules to incorporate relevant information from embeddings of any knowledge source or data modality. For example, &lt;a class=&quot;citation&quot; href=&quot;#xu2015show&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;51&lt;/span&gt;&lt;/a&gt; introduced an architecture in which a language model attends to images to generate image captions. Self-attention, or intra-attention, is an attention mechanism that allows for relating different positions within a single sequence &lt;a class=&quot;citation&quot; href=&quot;#cheng2016long&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;52,45&lt;/span&gt;&lt;/a&gt;, image &lt;a class=&quot;citation&quot; href=&quot;#parmar2018image&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;53&lt;/span&gt;&lt;/a&gt;, or other instance of input data; this allows representations to better share and synthesis information across features.&lt;/p&gt;

&lt;p&gt;Transfer learning&lt;a class=&quot;citation&quot; href=&quot;#yang200610&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;54,55&lt;/span&gt;&lt;/a&gt; provides a family of methods to infuse knowledge into a learning algorithm that has been gained from a previous learning task. This is related to, but distinct from &lt;em&gt;multi-task learning&lt;/em&gt;, which seeks to learn several tasks simultaneously under the premise that performance and efficiency can be improved by sharing knowledge between the tasks during learning. While there are many forms of transfer learning &lt;label for=&quot;transfer&quot; class=&quot;margin-toggle&quot;&gt;⊕&lt;/label&gt;&lt;input type=&quot;checkbox&quot; id=&quot;transfer&quot; class=&quot;margin-toggle&quot; checked=&quot;&quot; /&gt;&lt;span class=&quot;marginnote&quot;&gt;&lt;img src=&quot;/assets/thesis_images/transfer.png&quot; /&gt;&lt;/span&gt; &lt;a class=&quot;citation&quot; href=&quot;#zhuang2019comprehensive&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;56&lt;/span&gt;&lt;/a&gt;, the canonical form in the setting of deep learning is &lt;em&gt;pretraining&lt;/em&gt;. In pretraining, model weights from a trained neural network are used to initialize some subset of the weights in another network; these parameters can then be either frozen or “fine-tuned” with further training on a the target task. Initial transfer learning experiments were conducted using unsupervised pretraining with autoencoders 
&lt;label for=&quot;autoencoders&quot; class=&quot;margin-toggle sidenote-number&quot;&gt;&lt;/label&gt;&lt;input type=&quot;checkbox&quot; id=&quot;autoencoders&quot; class=&quot;margin-toggle&quot; /&gt;&lt;span class=&quot;sidenote&quot;&gt;  Autoencoders &lt;a class=&quot;citation&quot; href=&quot;#hinton2006reducing&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;57&lt;/span&gt;&lt;/a&gt; learn representations guided by the inductive bias that a good representation should be able to be used to reconstruct its raw input. They are an example of an ‘encoder-decoder’ architecture, which consist of an encoder, which take the raw input and use a series of layers to embed it into a low-dimensional space, and a decoder, which takes an embedding from the encoder and tries to construct raw data; this combined architecture is then trained in an end-to-end fashion. When the decoder is trained specifically to reconstruct the exact same input passed into the encoder, this is called an autoencoder. (Alternatively, decoders can be trained to produce related data, a prominent example being Seq2seq models that can, for example, encode a sentence from one language and decode it into another&lt;a class=&quot;citation&quot; href=&quot;#sutskever2014sequence&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;58&lt;/span&gt;&lt;/a&gt;.) &lt;em&gt;Variational autoencoders&lt;/em&gt; &lt;a class=&quot;citation&quot; href=&quot;#kingma2013auto&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;59&lt;/span&gt;&lt;/a&gt; combine autoencoding with stochastic variational inference to build generative models that can be use for sampling entirely new data. &lt;/span&gt; before transferring weights to a supervised model for a downstream task; this technique is an example of inductive &lt;em&gt;semi-supervised learning&lt;/em&gt;&lt;a class=&quot;citation&quot; href=&quot;#van2020survey&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;60&lt;/span&gt;&lt;/a&gt;. In the past decade, supervised pretraining has become very popular, with the quintessential example being the initialization of an image processing architecture with all but the final layer of a model trained on the ImageNet dataset &lt;a class=&quot;citation&quot; href=&quot;#deng2009imagenet&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;61&lt;/span&gt;&lt;/a&gt;. More recently, &lt;em&gt;self-supervised&lt;/em&gt; transfer learning has received significant attention, particularly in natural language processing. In self-supervised learning, subsets of a data or feature set are masked, and neural networks are trained to predict them from remaining features. The resulting representations can then be used directly for downstream tasks, such as information retrieval, or be leveraged for transfer learning. Word embeddings &lt;a class=&quot;citation&quot; href=&quot;#mikolov2013distributed&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;33&lt;/span&gt;&lt;/a&gt; are arguably the first widespread instance of self-supervised transfer learning, with more recent methods including language model pretraining &lt;a class=&quot;citation&quot; href=&quot;#howard2018universal&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;62,63,45&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Contrastive learning&lt;/em&gt; methods &lt;label for=&quot;contrastive&quot; class=&quot;margin-toggle&quot;&gt;⊕&lt;/label&gt;&lt;input type=&quot;checkbox&quot; id=&quot;contrastive&quot; class=&quot;margin-toggle&quot; checked=&quot;&quot; /&gt;&lt;span class=&quot;marginnote&quot;&gt;&lt;img src=&quot;/assets/thesis_images/contrastive.png&quot; /&gt;&lt;/span&gt;  learn representations by taking in small sets of examples and optimize embeddings to bring similar data together while driving dissimilar data apart. This is a form of &lt;em&gt;metric learning&lt;/em&gt;. Early methods in this field include Siamese (missing reference) and Triplet networks &lt;a class=&quot;citation&quot; href=&quot;#hoffer2015deep&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;64&lt;/span&gt;&lt;/a&gt;, which were initially developed to learn deep representations of images. Recent analyses suggest that many methods developed in the past several years have failed to advance beyond triplet networks &lt;a class=&quot;citation&quot; href=&quot;#musgrave2020metric&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;65&lt;/span&gt;&lt;/a&gt;. Contrastive methods have been used in the pretraining step of a semi-supervised framework to achieve the current state-of-the-art in limited data image classification &lt;a class=&quot;citation&quot; href=&quot;#chen2020simple&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;66&lt;/span&gt;&lt;/a&gt;. In addition, contrastive optimization can be leveraged using multi-modal data to create aligned representations across modalities &lt;a class=&quot;citation&quot; href=&quot;#deng2018triplet&quot;&gt;&lt;span style=&quot;vertical-align: super&quot;&gt;67&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The methods described in this section can be described as a spectrum. Hand-engineered architectures are based on strong and specific prior assumptions about the problem domain, and are used to fundamentally alter the &lt;em&gt;representational capacity&lt;/em&gt; of the network. In contrast, self-supervised and contrastive architectures make very minimal specific assumptions about the problem domain, and do nothing to alter the representational capacity of the algorithm; instead their innovation lies in devising &lt;em&gt;training schemes and loss functions&lt;/em&gt; that will guide the network to learn underlying relationships and find a generalizable solution. In between these two extremes, augmenting networks with access to external knowledge through attention mechanisms often make the assumption that specific knowledge will be helpful, but allow the model to determine for itself which knowledge to employ. Transfer learning makes the assumption that other specific learning tasks will provide useful knowledge and experience for the target domain, but makes minimal assumptions about precisely what this knowledge would be. Despite (arguably significant) philosophical differences, these and yet other paradigms are not mutually exclusive, and share the common goal of improving generalization and data efficiency by introducing richer domain understanding into the neural networks.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;figure&gt;&lt;img src=&quot;/../assets/thesis_images/knowledge_paradigms.png&quot; /&gt;&lt;figcaption class=&quot;maincolumn-figure&quot;&gt;Example paradigms for infusing domain knowledge into learned representations.&lt;/figcaption&gt;&lt;/figure&gt;

&lt;p&gt;Finally, while this section – and indeed several chapters of this thesis – focuses on the design of neural architectures and training curricula, the role of domain knowledge is truly inescapable when it comes to the evaluation of deployable systems. Accordingly, the topic of deployment analysis will also be a major theme of this thesis.&lt;/p&gt;

&lt;p&gt;The current draft of my full PhD thesis can be found &lt;a href=&quot;https://www.dropbox.com/s/slw2vkxajgwgp6i/PhD_Thesis.pdf?dl=0&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;bibliography&quot;&gt;Bibliography&lt;/h3&gt;

&lt;ol class=&quot;bibliography&quot;&gt;&lt;li&gt;&lt;span id=&quot;chami2020machine&quot;&gt;1.Chami, I., Abu-El-Haija, S., Perozzi, B., Ré, C., and Murphy, K. (2020). Machine Learning on Graphs: A Model and Comprehensive Taxonomy.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;empiricus1933outlines&quot;&gt;2.Empiricus, S., and Bury, R.G. (1933). Outlines of pyrrhonism. Eng. trans, by RG Bury (Cambridge Mass.: Harvard UP, 1976), II &lt;i&gt;20&lt;/i&gt;, 90–1.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;perrett1984problem&quot;&gt;3.Perrett, R.W. (1984). The problem of induction in Indian philosophy. Philosophy East and West &lt;i&gt;34&lt;/i&gt;, 161–174.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;humeTreatise&quot;&gt;4.Hume, D. (1739). A treatise of human nature (Oxford University Press).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;humeEnquiry&quot;&gt;5.Hume, D. (1748). An Enquiry Concerning Human Understanding (Oxford University Press).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;garrett2011reason&quot;&gt;6.Garrett, D., and Millican, P.J.R. (2011). Reason, Induction, and Causation in Hume’s Philosophy (Institute for Advanced Studies in the Humanities, The University of Edinburgh).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;goodman1955fact&quot;&gt;7.Goodman, N. (1955). Fact, fiction, and forecast (Harvard University Press).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;popper2014conjectures&quot;&gt;8.Popper, K. (2014). Conjectures and refutations: The growth of scientific knowledge (routledge).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;hilborn1997ecological&quot;&gt;9.Hilborn, R., and Mangel, M. (1997). The ecological detective: confronting models with data (Princeton University Press).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;mayo1996ducks&quot;&gt;10.Mayo, D.G. (1996). Ducks, rabbits, and normal science: Recasting the Kuhn’s-eye view of Popper’s demarcation of science. The British Journal for the Philosophy of Science &lt;i&gt;47&lt;/i&gt;, 271–290.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;queen2002experimental&quot;&gt;11.Queen, J.P., Quinn, G.P., and Keough, M.J. (2002). Experimental design and data analysis for biologists (Cambridge University Press).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;mitchell1997machine&quot;&gt;12.Mitchell, T.M., and others (1997). Machine learning.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;tibshirani1996regression&quot;&gt;13.Tibshirani, R. (1996). Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society: Series B (Methodological) &lt;i&gt;58&lt;/i&gt;, 267–288.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;srivastava2014dropout&quot;&gt;14.Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I., and Salakhutdinov, R. (2014). Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research &lt;i&gt;15&lt;/i&gt;, 1929–1958.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;prechelt1998early&quot;&gt;15.Prechelt, L. (1998). Early stopping-but when? In Neural Networks: Tricks of the trade (Springer), pp. 55–69.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;cortes1995support&quot;&gt;16.Cortes, C., and Vapnik, V. (1995). Support-vector networks. Machine learning &lt;i&gt;20&lt;/i&gt;, 273–297.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;girosi1995regularization&quot;&gt;17.Girosi, F., Jones, M., and Poggio, T. (1995). Regularization theory and neural networks architectures. Neural computation &lt;i&gt;7&lt;/i&gt;, 219–269.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;mitchell1980need&quot;&gt;18.Mitchell, T.M. (1980). The need for biases in learning generalizations (Department of Computer Science, Laboratory for Computer Science Research …).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;muggleton1991inductive&quot;&gt;19.Muggleton, S. (1991). Inductive logic programming. New generation computing &lt;i&gt;8&lt;/i&gt;, 295–318.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;battaglia2018relational&quot;&gt;20.Battaglia, P.W., Hamrick, J.B., Bapst, V., Sanchez-Gonzalez, A., Zambaldi, V., Malinowski, M., Tacchetti, A., Raposo, D., Santoro, A., Faulkner, R., et al. (2018). Relational inductive biases, deep learning, and graph networks. arXiv preprint arXiv:1806.01261.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;bengio2013representation&quot;&gt;21.Bengio, Y., Courville, A., and Vincent, P. (2013). Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence &lt;i&gt;35&lt;/i&gt;, 1798–1828.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;goodfellow2016representation&quot;&gt;22.Goodfellow, I., Bengio, Y., and Courville, A. (2016). Representation learning. Deep Learning, 517–548.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;bordes2013translating&quot;&gt;23.Bordes, A., Usunier, N., Garcia-Duran, A., Weston, J., and Yakhnenko, O. (2013). Translating embeddings for modeling multi-relational data. In Advances in neural information processing systems, pp. 2787–2795.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;pearson1901liii&quot;&gt;24.Pearson, K. (1901). LIII. On lines and planes of closest fit to systems of points in space. The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science &lt;i&gt;2&lt;/i&gt;, 559–572.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;forgy1965cluster&quot;&gt;25.Forgy, E.W. (1965). Cluster analysis of multivariate data: efficiency versus interpretability of classifications. biometrics &lt;i&gt;21&lt;/i&gt;, 768–769.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;jutten1991blind&quot;&gt;26.Jutten, C., and Herault, J. (1991). Blind separation of sources, part I: An adaptive algorithm based on neuromimetic architecture. Signal processing &lt;i&gt;24&lt;/i&gt;, 1–10.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;tenenbaum2000global&quot;&gt;27.Tenenbaum, J.B., De Silva, V., and Langford, J.C. (2000). A global geometric framework for nonlinear dimensionality reduction. science &lt;i&gt;290&lt;/i&gt;, 2319–2323.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;roweis2000nonlinear&quot;&gt;28.Roweis, S.T., and Saul, L.K. (2000). Nonlinear dimensionality reduction by locally linear embedding. science &lt;i&gt;290&lt;/i&gt;, 2323–2326.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;cybenko1989approximation&quot;&gt;29.Cybenko, G. (1989). Approximation by superpositions of a sigmoidal function. Mathematics of control, signals and systems &lt;i&gt;2&lt;/i&gt;, 303–314.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;dahl2010phone&quot;&gt;30.Dahl, G., Ranzato, M.A., Mohamed, A.-rahman, and Hinton, G.E. (2010). Phone recognition with the mean-covariance restricted Boltzmann machine. In Advances in neural information processing systems, pp. 469–477.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;hinton2006fast&quot;&gt;31.Hinton, G.E., Osindero, S., and Teh, Y.-W. (2006). A fast learning algorithm for deep belief nets. Neural computation &lt;i&gt;18&lt;/i&gt;, 1527–1554.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;mikolov2011empirical&quot;&gt;32.Mikolov, T., Deoras, A., Kombrink, S., Burget, L., and Černockỳ, J. (2011). Empirical evaluation and combination of advanced language modeling techniques. In Twelfth Annual Conference of the International Speech Communication Association.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;mikolov2013distributed&quot;&gt;33.Mikolov, T., Sutskever, I., Chen, K., Corrado, G.S., and Dean, J. (2013). Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pp. 3111–3119.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;mikolov2013efficient&quot;&gt;34.Mikolov, T., Chen, K., Corrado, G., and Dean, J. (2013). Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;haastad1991power&quot;&gt;35.Håstad, J., and Goldmann, M. (1991). On the power of small-depth threshold circuits. Computational Complexity &lt;i&gt;1&lt;/i&gt;, 113–129.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;bengio2005non&quot;&gt;36.Bengio, Y., and Monperrus, M. (2005). Non-local manifold tangent learning. In Advances in Neural Information Processing Systems, pp. 129–136.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;bengio2006curse&quot;&gt;37.Bengio, Y., Delalleau, O., and Roux, N.L. (2006). The curse of highly variable functions for local kernel machines. In Advances in neural information processing systems, pp. 107–114.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;bengio2010decision&quot;&gt;38.Bengio, Y., Delalleau, O., and Simard, C. (2010). Decision trees do not generalize to new variations. Computational Intelligence &lt;i&gt;26&lt;/i&gt;, 449–467.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;friedman2001elements&quot;&gt;39.Friedman, J., Hastie, T., and Tibshirani, R. (2001). The elements of statistical learning (Springer series in statistics New York).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;lacoste2019quantifying&quot;&gt;40.Lacoste, A., Luccioni, A., Schmidt, V., and Dandres, T. (2019). Quantifying the Carbon Emissions of Machine Learning. arXiv preprint arXiv:1910.09700.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;lipton2018troubling&quot;&gt;41.Lipton, Z.C., and Steinhardt, J. (2018). Troubling Trends in Machine Learning Scholarship.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;ngiam2011multimodal&quot;&gt;42.Ngiam, J., Khosla, A., Kim, M., Nam, J., Lee, H., and Ng, A.Y. (2011). Multimodal deep learning.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;goodfellow2014generative&quot;&gt;43.Goodfellow, I., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., and Bengio, Y. (2014). Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;zhang2019deep&quot;&gt;44.Zhang, Y., Hare, J., and Prugel-Bennett, A. (2019). Deep set prediction networks. In Advances in Neural Information Processing Systems, pp. 3207–3217.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;vaswani2017attention&quot;&gt;45.Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł., and Polosukhin, I. (2017). Attention is all you need. In Advances in neural information processing systems, pp. 5998–6008.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;peng2019combining&quot;&gt;46.Peng, J., Wang, X., and Shang, X. (2019). Combining gene ontology with deep neural networks to enhance the clustering of single cell RNA-Seq data. BMC bioinformatics &lt;i&gt;20&lt;/i&gt;, 284.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;ashburner2000gene&quot;&gt;47.Ashburner, M., Ball, C.A., Blake, J.A., Botstein, D., Butler, H., Cherry, J.M., Davis, A.P., Dolinski, K., Dwight, S.S., Eppig, J.T., et al. (2000). Gene ontology: tool for the unification of biology. Nature genetics &lt;i&gt;25&lt;/i&gt;, 25–29.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;mcdermott2019deep&quot;&gt;48.McDermott, M., Wang, J., Zhao, W.N., Sheridan, S.D., Szolovits, P., Kohane, I., Haggarty, S.J., and Perlis, R.H. (2019). Deep Learning Benchmarks on L1000 Gene Expression Data. IEEE/ACM transactions on computational biology and bioinformatics.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;annervaz2018learning&quot;&gt;49.Annervaz, K.M., Chowdhury, S.B.R., and Dukkipati, A. (2018). Learning beyond datasets: Knowledge graph augmented neural networks for natural language processing. arXiv preprint arXiv:1802.05930.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;kishimoto2018knowledge&quot;&gt;50.Kishimoto, Y., Murawaki, Y., and Kurohashi, S. (2018). A knowledge-augmented neural network model for implicit discourse relation classification. In Proceedings of the 27th International Conference on Computational Linguistics, pp. 584–595.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;xu2015show&quot;&gt;51.Xu, K., Ba, J., Kiros, R., Cho, K., Courville, A., Salakhudinov, R., Zemel, R., and Bengio, Y. (2015). Show, attend and tell: Neural image caption generation with visual attention. In International conference on machine learning, pp. 2048–2057.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;cheng2016long&quot;&gt;52.Cheng, J., Dong, L., and Lapata, M. (2016). Long short-term memory-networks for machine reading. arXiv preprint arXiv:1601.06733.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;parmar2018image&quot;&gt;53.Parmar, N., Vaswani, A., Uszkoreit, J., Kaiser, Ł., Shazeer, N., Ku, A., and Tran, D. (2018). Image transformer. arXiv preprint arXiv:1802.05751.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;yang200610&quot;&gt;54.Yang, Q., and Wu, X. (2006). 10 challenging problems in data mining research. International Journal of Information Technology &amp;amp; Decision Making &lt;i&gt;5&lt;/i&gt;, 597–604.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;pan2009survey&quot;&gt;55.Pan, S.J., and Yang, Q. (2009). A survey on transfer learning. IEEE Transactions on knowledge and data engineering &lt;i&gt;22&lt;/i&gt;, 1345–1359.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;zhuang2019comprehensive&quot;&gt;56.Zhuang, F., Qi, Z., Duan, K., Xi, D., Zhu, Y., Zhu, H., Xiong, H., and He, Q. (2019). A Comprehensive Survey on Transfer Learning. arXiv preprint arXiv:1911.02685.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;hinton2006reducing&quot;&gt;57.Hinton, G.E., and Salakhutdinov, R.R. (2006). Reducing the dimensionality of data with neural networks. science &lt;i&gt;313&lt;/i&gt;, 504–507.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;sutskever2014sequence&quot;&gt;58.Sutskever, I., Vinyals, O., and Le, Q.V. (2014). Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pp. 3104–3112.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;kingma2013auto&quot;&gt;59.Kingma, D.P., and Welling, M. (2013). Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;van2020survey&quot;&gt;60.Van Engelen, J.E., and Hoos, H.H. (2020). A survey on semi-supervised learning. Machine Learning &lt;i&gt;109&lt;/i&gt;, 373–440.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;deng2009imagenet&quot;&gt;61.Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., and Fei-Fei, L. (2009). Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition (Ieee), pp. 248–255.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;howard2018universal&quot;&gt;62.Howard, J., and Ruder, S. (2018). Universal language model fine-tuning for text classification. arXiv preprint arXiv:1801.06146.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;devlin2018bert&quot;&gt;63.Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. (2018). Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;hoffer2015deep&quot;&gt;64.Hoffer, E., and Ailon, N. (2015). Deep metric learning using triplet network. In International Workshop on Similarity-Based Pattern Recognition (Springer), pp. 84–92.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;musgrave2020metric&quot;&gt;65.Musgrave, K., Belongie, S., and Lim, S.-N. (2020). A Metric Learning Reality Check. arXiv preprint arXiv:2003.08505.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;chen2020simple&quot;&gt;66.Chen, T., Kornblith, S., Norouzi, M., and Hinton, G. (2020). A simple framework for contrastive learning of visual representations. arXiv preprint arXiv:2002.05709.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;deng2018triplet&quot;&gt;67.Deng, C., Chen, Z., Liu, X., Gao, X., and Tao, D. (2018). Triplet-based deep hashing network for cross-modal retrieval. IEEE Transactions on Image Processing &lt;i&gt;27&lt;/i&gt;, 3893–3903.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;

&lt;style&gt;
.bibliography {
font-size: small;
width: 50%;
}
.bibliography li{
  margin: 0px;
}
&lt;/style&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
  $(document).ready(function(){
    $(&quot;input:checkbox&quot;).prop(&quot;checked&quot;, &quot;true&quot;);
});
&lt;/script&gt;

</description>
        <pubDate>Mon, 22 Jun 2020 06:00:00 -0400</pubDate>
        <link>http://localhost:4000/2020/06/22/Induction-Intro/</link>
        <guid isPermaLink="true">http://localhost:4000/2020/06/22/Induction-Intro/</guid>
        
        
      </item>
    
      <item>
        <title>Comments on ML &quot;versus&quot; statistics</title>
        <description>&lt;p&gt;&lt;strong&gt;Why am I writing this?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Over the last few years, I’ve observed many vigorous debates about “machine learning versus statistics.” Often, these are sparked by some paper/blog post/press release that either (a) involves some use of logistic regression (or some other type of GLM) being described as machine learning, or (b) performs a meta-analysis attempting to pit the fields against each other.&lt;/p&gt;

&lt;p&gt;I have allowed myself to get pulled down this rabbit hole far too many times, wasting hours of my time in fruitless debate. As such, I have decided to write this post as a way to inoculate myself against the urge to enter future discussions. The first two sections explain why I consider most ML “versus” Stats debates to be fundamentally flawed, even in their very premise. The following two sections explain why I &lt;em&gt;do&lt;/em&gt; validate where people are coming from in having these debates, but still think they (the debates!) are a colossal waste of time.&lt;/p&gt;

&lt;p&gt;As time goes on, I might even write a bot to post this on relevant twitter threads. If I do, I will &lt;em&gt;intentionally&lt;/em&gt; code this bot using logistic regression and call it machine learning, just to maximize peskiness.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Outline&lt;/strong&gt;&lt;/p&gt;

&lt;div style=&quot;padding-top: 10px; font-size:large&quot;&gt;

&lt;a href=&quot;#Sect1&quot;&gt;-Neglected historical context: The term &quot;machine learning&quot; was not coined to contrast with statistics, but to contrast the field with competing paradigms for building intelligent computer systems.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;

&lt;a href=&quot;#Sect2&quot;&gt;-Arguments about who &quot;owns&quot; regression miss the point.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;

&lt;a href=&quot;#Sect3&quot;&gt;-Distinctions in goals have yielded a divergence in methods and cultures, which explains shifting connotations of the term &quot;machine learning.&quot;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;

&lt;a href=&quot;#Sect4&quot;&gt;-Isn&apos;t this whole &quot;debate&quot; a massive waste of time?&lt;/a&gt;

&lt;/div&gt;

&lt;h3 id=&quot;-neglected-historical-context-the-term-machine-learning-was-not-coined-to-contrast-with-statistics-but-to-contrast-the-field-with-competing-paradigms-for-building-intelligent-computer-systems&quot;&gt;&lt;a name=&quot;Sect1&quot;&gt;&lt;/a&gt; Neglected historical context: The term “machine learning” was &lt;em&gt;not&lt;/em&gt; coined to contrast with statistics, but to contrast the field with competing paradigms for building intelligent computer systems.&lt;/h3&gt;

&lt;p&gt;Before getting to Machine Learning (ML), a couple paragraphs on Artificial Intelligence (AI). These days, many people – including me – reflexively wince when they hear the term “AI,” because it is (a) used by slimey buzzword peddlers to such an extent that it is now nearly synonymous with “snakeoil,” (b) overloaded with connotations of sentient killer robots, and (c) almost exclusively used to refer to machine learning, anyway. This is all quite unfortunate. However, try to set that aside for just &lt;em&gt;one&lt;/em&gt; paragraph.&lt;/p&gt;

&lt;p&gt;Engineers have dreamed of building something “smart” for thousands of years, but the term “artificial intelligence” itself was coined by John McCarthy in preparation for the famous “Dartmouth Conference” of 1956. McCarthy defined artificial intelligence as “the science and engineering of making intelligent machines,” and that’s not too bad for a pithy one-liner. Importantly for this discussion, McCarthy was able to convince his colleagues to adopt this term at Dartmouth in large part because it was &lt;em&gt;vague&lt;/em&gt;.  At that point in time, computer scientists who were trying to crack intelligence were focused &lt;em&gt;not&lt;/em&gt; on data-driven methods, but on things like automata theory, formal logic, and cybernetics. McCarthy wanted to create a term that would capture all of these paradigms (and other ones yet to come) rather than favoring any specific approach.&lt;/p&gt;

&lt;p&gt;It was with this context that Arthur Samuel (one of the attendees at the Dartmouth Conference) coined the term “Machine Learning” in 1959, which he defined as:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Field of study that gives computers the ability to learn without being explicitly programmed.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Samuels and his colleagues wanted to help computers becomes “smart” by equipping them with the capacity to recognize patterns and iteratively improve over time. While this may seem like an obvious approach today, it took decades before this became the dominant mode of AI research (as opposed to, say, building systems that exhibit “intelligence” by applying propositional logic over curated knowledge graphs).&lt;/p&gt;

&lt;p&gt;In other words, machine learning was coined to describe a design process for computers that &lt;em&gt;leverages&lt;/em&gt; statistical methods to improve performance over time. The term was created by computer scientists, for computer scientists, and designed as a contrast with &lt;em&gt;non-data-driven approaches&lt;/em&gt; to building smart machines. It was &lt;em&gt;not&lt;/em&gt; designed to be a contrast with &lt;em&gt;statistics&lt;/em&gt;, which is focused on using (often overlapping) data-driven methods to inform humans.&lt;/p&gt;

&lt;p&gt;Another extremely widely-referenced definition of ML comes from Tom M. Mitchell’s 1997 textbook, which said:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;The field of machine learning is concerned with the question of how to construct computer programs that automatically improve with experience,&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;and offered the accompanying semi-formal definition:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P if its performance at tasks in T, as measured by P, improves with experience E.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is all very much in accordance with Arthur Samuel’s definition, and I could pull other more recent definitions with similar verbiage. Another passage from Mitchell that I think gets less circulation than it deserves, however, is the following (taken with a little reformatting from a 2006 article called &lt;a href=&quot;http://www.cs.cmu.edu/~tom/pubs/MachineLearning.pdf&quot;&gt;“The Discipline of Machine Learning&lt;/a&gt;”):&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Machine Learning is a natural outgrowth of the intersection of Computer Science and Statistics. We might say the defining question of Computer Science is “How can we build machines that solve problems, and which problems are inherently tractable/intractable?” The question that largely defines Statistics is “What can be inferred from data plus a set of modeling assumptions, with what reliability?”&lt;/p&gt;

  &lt;p&gt;The defining question for Machine Learning builds on both, but it is a distinct question. Whereas Computer Science has focused primarily on how to manually program computers, Machine Learning focuses on the question of how to get computers to program themselves (from experience plus some initial structure). Whereas Statistics has focused primarily on what conclusions can be inferred from data, Machine Learning incorporates additional questions about what computational architectures and algorithms can be used to most effectively capture, store, index, retrieve and merge these data, how multiple learning subtasks can be orchestrated in a larger system, and questions of computational tractability.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;-arguments-about-who-owns-regression-miss-the-point&quot;&gt;&lt;a name=&quot;Sect2&quot;&gt;&lt;/a&gt; Arguments about who “owns” regression miss the point&lt;/h3&gt;

&lt;p&gt;Given the history just described, I must admit that I’ve been frustrated at times by the authoritarian tone with which many have tried to enforce a false dichotomization between statistics and ML methods. In particular, there appears to be a strange fixation by specific online personalities on insisting that regression-powered applications must &lt;em&gt;not&lt;/em&gt; be described as ML. In reading some of these discussions, one might even come away thinking that there is a conspiracy at play to annex regression away from statistics.&lt;/p&gt;

&lt;p&gt;To me, this is only slightly less silly than trying to stir up a turf war to target anyone who uses logistic regression and calls it “econometrics.” For at least 60 years, “machine learning” has been about building the best learning computers that we can, not some weird methods competition with statistics. This is why, when it comes to teaching “ML methods,” almost every introductory machine learning textbook or course that I’ve ever seen – Mitchell, Murphy, Bishop, Ng, etc. –  spends much of its efforts on teaching GLMs and their variants. It’s also why it’s &lt;em&gt;perfectly sensible&lt;/em&gt; for specialized textbooks to include plots like &lt;a href=&quot;https://images.app.goo.gl/WxjjxjUXSxQw75To7&quot;&gt;this one&lt;/a&gt;, which routinely makes the rounds to much pearl-clutching. Would I expect such a plot to be useful to statisticians? Or course not!  But they make sense in context of the ML/AI fields, which are concerned with different ways to make programs act “smart”.  And to put it bluntly for any [c]rank-y colleagues in statistics: &lt;em&gt;You don’t get to decide&lt;/em&gt; which taxonomies another field finds useful in framing its own problems and history.&lt;/p&gt;

&lt;p&gt;The great irony with the whole recurring snafoo around who “owns” regression – and all of its variants – is that it simultaneously undersells &lt;em&gt;both&lt;/em&gt; machine learning &lt;em&gt;and&lt;/em&gt; statistics, for many reasons that include the following four:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;First, it minimizes – or even defines away – the core role that classic statistical methods &lt;em&gt;continue&lt;/em&gt; to play in efforts to build computer programs that learn.&lt;/li&gt;
  &lt;li&gt;Second, it ignores the impact that ML has had on statistics, when in reality AI and CS have been a &lt;em&gt;massive&lt;/em&gt; boon to statistics research. This includes the generation of new statistical paradigms (e.g. Judea Pearl and others’ work on causality, now one of many booming subareas of stats that came from ML) and a wide array of algorithmic and computational tools that have enabled the rise of statistical computing.&lt;/li&gt;
  &lt;li&gt;Third, a false dichotomy between ML and stats minimizes the wide – and critical to modeling decisions – variation &lt;em&gt;within&lt;/em&gt; each purported class. It’s also silly. For example, take a simple logistic regression model implemented in pytorch. Now consider (a) adding 1000 polynomial interaction terms between all the features and a ridge penalty, and (b) adding a second fully connected layer. The dichotomous approach to ML vs stats would say that (b) fundamentally alters the entire class of model from stats to ML, and minimizes the arguably larger impact on modeling induced by (a). By the same token, I’m always shocked when I see meta-analyses that claim they’re going to compare the accuracy of ML “versus” statistics, and then use embarrassingly horrible and out-of-date ML models (like a single decision tree) or bad statistical practices. In short, the spectrum is so broad (and the execution so essential) within each of these purportedly distinct methodological camps that most statements about the whole collections are minimally helpful. It’s all about picking the right tool for a specific job, and then taking the time and effort to use that tool properly!&lt;/li&gt;
  &lt;li&gt;Fourth, the above dispute also ignores the fact that many top researchers, publication venues, and papers in stats or ML are fully-fledged citizens of both communities.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In my opinion, the careers of Trevor Hastie and Rob Tibshirani highlight the best of what happens when statisticians interact richly with machine learning researchers. Rather than getting caught up in drawing methodological border lines, they have taken tools developed first by machine learning researchers and helped formally situate them &lt;em&gt;within&lt;/em&gt; the world of statistics proper. In this light, I enjoy their frequent use of the term “statistical learning” (as in the title of their textbook), which I think nicely emphasizes the fact that their &lt;em&gt;goals&lt;/em&gt; are those of statistics, even if many of the &lt;em&gt;methods&lt;/em&gt; in the book have been developed by and for people in ML. (I’ll also point out, a bit immaturely, that I’ve never heard a machine learning researcher complain that Hastie and Tibshirani are trying to annex their methods by not using the phrase “machine learning” when describing neural networks, tree-based methods, etc.) Of course, all of the above is to say nothing of the new methods Hastie and Tibs have generated themselves, which have impacted the daily work of both statisticians and machine learning researchers.&lt;/p&gt;

&lt;p&gt;All the above being said, I do appreciate that perfectly reasonable people have come to think of ML as a disjoint set of &lt;em&gt;methods&lt;/em&gt; from statistics. The following sections elaborate on why I think this has happened, and what I think this means as a takeaway for the overall discussion.&lt;/p&gt;

&lt;h3 id=&quot;-distinctions-in-goals-have-yielded-a-divergence-in-methods-and-cultures-which-explains-shifting-connotations-of-the-term-machine-learning--disconnects-in-language-doom-many-debates-to-futility-before-they-begin&quot;&gt;&lt;a name=&quot;Sect3&quot;&gt;&lt;/a&gt; Distinctions in goals have yielded a divergence in methods and cultures, which explains shifting connotations of the term “machine learning.”  Disconnects in language doom many “debates” to futility before they begin.&lt;/h3&gt;

&lt;p&gt;As stated above, the field of machine learning research was founded as computer scientists sought to build and understand intelligent computer systems, and this continues to be the case today. Major ML applications include things like speech recognition, computer vision, robotics/autonomous systems, computational advertising (sigh…), surveillance (sigh…), chat-bots (sigh…), etc. In seeking to solve these problems, machine learning researchers will almost &lt;em&gt;always&lt;/em&gt; start by first trying classical statistical methods, including the relevant simple GLM (in fact, this is often considered a mandatory baseline for publication in many applied ML areas). Hence my whole discussion about ML not being predicated on a specific method. &lt;em&gt;However&lt;/em&gt;, computer scientists have, of course, also significantly added to this toolkit over the years through the development of additional methods.&lt;/p&gt;

&lt;p&gt;As with evolution in any other context, the growing phylogeny of statistical methods used for machine learning have been shaped by selective pressures. Compared to statisticians, machine learning researchers typically care much less about &lt;em&gt;understanding&lt;/em&gt; any specific action taken by their algorithms (though it is certainly important, and increasingly a bigger priority). Rather, they usually care most about minimizing &lt;em&gt;model errors&lt;/em&gt; on held-out data. As such, it makes sense that methods developed by ML researchers are typically more flexible even at the expense of interpretability, for example. &lt;a href=&quot;https://projecteuclid.org/euclid.ss/1009213726&quot;&gt;Leo Breiman&lt;/a&gt; and others have written about how these cultures have informed methods development, such as random forests. This often-divergent evolution has made it easy to draw (fuzzy) boundaries between ML and statistics research based entirely on &lt;em&gt;methods&lt;/em&gt;. To boot, many statisticians are unaware of the history of ML, and have thus, for years, only ever been exposed to the field by means of the methods it periodically emits. It is thus unsurprising that they would be interested in defining the field in any other terms, even if it is dissapointing.&lt;/p&gt;

&lt;p&gt;By the same token, a sharp division based on &lt;em&gt;use&lt;/em&gt; (like I advocated for above) is now complicated by the fact that many ML people say they’re doing machine learning even when they’re applying their methods for pure data analysis rather than to drive a computer program. While arguably incorrect in a strict historical sense, I don’t fault people for doing this – probably out of a mixture of habit, cultural affiliation, and/or because it sounds cool.&lt;/p&gt;

&lt;p&gt;Taken together, people now use “machine learning” to mean very different things. Sometimes, people use it to mean: “I’m using a statistical method to make my program learn” or “I’m developing a data analysis that I hope to deploy in an automated system.” Other times, they mean: “I’m using a method – perhaps for a statistical data analysis – that was originally developed by the machine learning community, like random forests.”  Still other times (maybe most of the time…?), they mean: “I consider myself a machine learning researcher, I’m working with data, and I can call this work whatever I darn well please.”&lt;/p&gt;

&lt;p&gt;These different uses of the term aren’t really surprising or problematic, because this is simply how language evolves. But it does make it extremely frustrating when a hoard of data scientists (oh no, another hypey term! I use it here as union of ML and statistics) collectively try to debate whether or not a specific project can be branded as ML or must be branded “just statistics.” Usually, when this happens, people enter the discussion with wildly different assumptions – poorly defined, and seldom articulated – about what the words mean in the first place. And then they rarely take the time to understand where others are coming from or what they are actually trying to say. Instead, they typically just talk past each other, louder instead of clearer.&lt;/p&gt;

&lt;h3 id=&quot;-isnt-this-whole-debate-a-massive-waste-of-time&quot;&gt;&lt;a name=&quot;Sect4&quot;&gt;&lt;/a&gt; Isn’t this whole “debate” a massive waste of time?&lt;/h3&gt;

&lt;p&gt;Finally, let’s lay our cards out on the table w.r.t. a few real problems: There are many machine learning researchers (or at the very least, machine learning hobbyists), who exhibit an inadequate understanding of statistics for people who work with data for a living. At times, I &lt;em&gt;am&lt;/em&gt; such a machine learning researcher! (Though I’d wager that many professional statisticians sometimes feel the same way, too.) Relatedly, but more seriously, ML research moves so fast, and is sometimes so culturally disconnected from the field of statistics, that I think that it is all-too-common for even prominent ML researchers to re-discover or re-invent parts of statistics. That’s a problem and a waste. Finally, there is a massive brand dilution in ML, because a large third-party population of applied researchers have essentially co-opted the term “machine learning,” applying it to papers just to make them sound fancy, even when in reality they are doing machine learning &lt;em&gt;neither&lt;/em&gt; in the sense of automated system building &lt;em&gt;nor&lt;/em&gt; in the sense of using new methods that came from ML.&lt;/p&gt;

&lt;p&gt;I feel that the solution to all of these problems is to increase recognition that most of ML’s data methods actually live &lt;em&gt;within&lt;/em&gt; statistics. Rather than doubling down on a false partition between the two fields, our priority needs to be the cultivation of a robust understanding of statistical principles, whether they are being used for data analysis or for programming intelligent systems. Endless debates about what to &lt;em&gt;call&lt;/em&gt; a lot of this work end up distracting people from essential conversations about how to &lt;em&gt;carry out&lt;/em&gt; good work by matching the right &lt;strong&gt;specific&lt;/strong&gt; tool to the right problem. If anything, a fixation on a false dichotomy between stats and ML methods probably drives many people &lt;em&gt;further&lt;/em&gt; into the habit of using unnecessarily complex methods, just to feel (whether for pride or for money) like they are doing “real ML” (whatever on earth that means). It also directly feeds the issue that causes people to call their work ML just for the sake of sounding methodological fancy.&lt;/p&gt;

&lt;p&gt;Finally, this golden age of statistical computing is driving these two fields closer than ever. ML research, of course, lives within computer science, and the modern statistician is increasingly dependent upon the algorithms and software stack that have been pioneered by CS departments for decades. Modern statisticians – especially in fields like computational biology – are also increasingly finding use for methods pioneered by ML researchers for, say, regression in high dimensions or at large scale. On the flip side, the ML community is becoming increasingly concerned with topics like interpretability, fairness, certifiable robustness, etc., which is leading many researchers’ priorities to align more directly with the traditional values of statistics. At the very least, even when a system is deployed using the most convoluted architectures possible, it’s pretty universally recognized that classical statistics is necessary to measure and evaluate performance.&lt;/p&gt;

&lt;h3 id=&quot;in-summary&quot;&gt;In summary:&lt;/h3&gt;

&lt;p&gt;The whole debate is misguided, the terms are overloaded, the methodological dichotomy is false, ML people care (and increasingly so) about statistics, stats people are increasingly dependent upon CS and ML, and there is no regression annexation conspiracy. There’s a lot of hype out there right now, but that doesn’t change the fact that, &lt;em&gt;often&lt;/em&gt;, when people use different terminology than you, that’s because they come from a different background or have different goals in mind, not because they are stupid or dishonest. Let’s just all be friends and strive to do good work together and learn from each other. Kumbaya.&lt;/p&gt;
</description>
        <pubDate>Fri, 31 Jan 2020 05:00:00 -0500</pubDate>
        <link>http://localhost:4000/2020/01/31/Comments-ML-Statistics/</link>
        <guid isPermaLink="true">http://localhost:4000/2020/01/31/Comments-ML-Statistics/</guid>
        
        
      </item>
    
      <item>
        <title>All the DAGs from Hernan and Robins&apos; Causal Inference Book</title>
        <description>&lt;style type=&quot;text/css&quot; rel=&quot;stylesheet&quot;&gt;
p {
    width: 100%;
}

th, td, thead, table {
    border: 1px solid #999;
}

tbody tr td:first-child {
  min-width: 12em;
}
&lt;/style&gt;

&lt;p&gt;This is my preliminary attempt to organize and present all the DAGs from Miguel Hernan and Jamie Robin’s excellent &lt;a href=&quot;https://www.hsph.harvard.edu/miguel-hernan/causal-inference-book/&quot;&gt;Causal Inference Book&lt;/a&gt;.  So far, I’ve only done Part I.&lt;/p&gt;

&lt;p&gt;I love the Causal Inference book, but sometimes I find it easy to lose track of the variables when I read it.  Having the variables right alongside the DAG makes it easier for me to remember what’s going on, especially when the book refers back to a DAG from a previous chapter and I don’t want to dig back through the text. Plus, making this was a great exercise!&lt;/p&gt;

&lt;p&gt;Again, this page is meant to be fairly raw and only contain the DAGs. If you use it, you might also find it useful to open up &lt;a href=&quot;https://sgfin.github.io/2019/06/19/Causal-Inference-Book-Glossary-and-Notes/&quot;&gt;this page&lt;/a&gt;, which is where I have more traditional notes covering the main concepts from the book. But of course, the text itself has no substitute.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Table of Contents&lt;/strong&gt;:&lt;/p&gt;
&lt;ul id=&quot;markdown-toc&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;#refresher-visual-rules-of-d-separation&quot; id=&quot;markdown-toc-refresher-visual-rules-of-d-separation&quot;&gt;Refresher: Visual rules of d-separation.&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#refresher-backdoor-criterion&quot; id=&quot;markdown-toc-refresher-backdoor-criterion&quot;&gt;Refresher: Backdoor criterion&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#basics-of-causal-diagrams-61-65&quot; id=&quot;markdown-toc-basics-of-causal-diagrams-61-65&quot;&gt;Basics of Causal Diagrams (6.1-6.5)&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#effect-modification-66&quot; id=&quot;markdown-toc-effect-modification-66&quot;&gt;Effect Modification (6.6)&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#confounding-chapter-7&quot; id=&quot;markdown-toc-confounding-chapter-7&quot;&gt;Confounding (Chapter 7)&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#selection-bias-chapter-8&quot; id=&quot;markdown-toc-selection-bias-chapter-8&quot;&gt;Selection Bias (Chapter 8)&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#measurement-bias-chapter-9&quot; id=&quot;markdown-toc-measurement-bias-chapter-9&quot;&gt;Measurement Bias (Chapter 9)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;refresher-visual-rules-of-d-separation&quot;&gt;Refresher: Visual rules of d-separation.&lt;/h3&gt;

&lt;p&gt;Two variables on a DAG are &lt;strong&gt;d-separated&lt;/strong&gt; if all paths between them are blocked. The following four rules defined what it means to be “blocked.”&lt;/p&gt;

&lt;p&gt;(This is just meant to be a refresher – see the second half of this post or Fine Point 6.1 of the text for more definitions.)&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Rule&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Example&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1. If there are no variables being conditioned on, a path is blocked if and only if two arrowheads on the path collide at some variable on the path.&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_1.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt; \(L \rightarrow A \rightarrow Y\) is open. &lt;br /&gt;&lt;br /&gt; \(A \rightarrow Y \leftarrow L\) is blocked at \(Y\)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2. Any path that contains a noncollider that has been conditioned on is blocked.&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_5.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt; Conditioning on \(B\) blocks the path from \(A\) to \(Y\).&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3. A collider that has been conditioned on does not block a path&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_7.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt; The path between \(A\) and \(Y\) is open after conditioning on \(L\).&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4. A collider that has a descendant that has been conditioned on does not block a path.&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_8.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt; The path between \(A\) and \(Y\) is open after conditioning on \(C\), a descendant of collider \(L\).&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;refresher-backdoor-criterion&quot;&gt;Refresher: Backdoor criterion&lt;/h3&gt;

&lt;p&gt;Assuming positivity and consistency, confounding can be eliminated and causal effects are identifiable in the following two settings:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Rule&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Example&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1. No common causes of treatment and outcome.&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_2.png&quot; width=&quot;150&quot; /&gt; &lt;br /&gt;&lt;br /&gt; There are no common causes of treatment and outcome. Hence no backdoor paths need to be blocked. &lt;br /&gt;&lt;br /&gt; No confounding; equivalent to a marginally randomized trial.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2. Common causes are present, but there are enough measured variables to block all colliders. (i.e. No unmeasured confounding.)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_1.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt; Backdoor path through the common cause \(L\) can be blocked by conditioning on measured covariates (in this case, \(L\) itself) that are non-descendants of treatment. &lt;br /&gt;&lt;br /&gt; There will be no residual confounding after controlling for \(L\); equivalent to a conditionally randomized trial.&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;And now we can finally:&lt;/p&gt;

&lt;p style=&quot;text-align:center;&quot;&gt;
&lt;img src=&quot;/assets/hernan_dags/all_the_dags.jpg&quot; width=&quot;400&quot; /&gt;
&lt;/p&gt;

&lt;h3 id=&quot;basics-of-causal-diagrams-61-65&quot;&gt;Basics of Causal Diagrams (6.1-6.5)&lt;/h3&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;DAG&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Example&lt;/th&gt;
      &lt;th&gt;Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_2.png&quot; width=&quot;150&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;Marginally randomized experiment&lt;/em&gt; &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;A&lt;/strong&gt;: Treatment &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Outcome&lt;/td&gt;
      &lt;td&gt;Arrow doesn’t specifically imply protection vs risk, just causal effect. &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Unconditional exchangeability&lt;/strong&gt; assumption means that association implies causation and vice versa.&lt;/td&gt;
      &lt;td&gt;I.70&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_1.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;Conditionally randomized experiment&lt;/em&gt; &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: Stratification Variable &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A&lt;/strong&gt;: Treatment &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Outcome&lt;/td&gt;
      &lt;td&gt;Also equivalent to an &lt;em&gt;Observational Study&lt;/em&gt; that assumes A depends on L and on &lt;em&gt;no other causes of Y&lt;/em&gt; (else they’d need to be added). &lt;br /&gt;&lt;br /&gt; Implies &lt;strong&gt;conditional exchangeability&lt;/strong&gt;.&lt;/td&gt;
      &lt;td&gt;I.69-I.70&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_5.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Aspirin &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;B&lt;/strong&gt;: Platelet aggregation  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Heart Disease&lt;/td&gt;
      &lt;td&gt;\(B\) is a &lt;strong&gt;mediator&lt;/strong&gt; of \(A\)’s effect on \(Y\), but conditioning on \(B\) (e.g by restricting the analysis to people with a specific lab value) blocks the flow of association through the path A \(\rightarrow\) B \(\rightarrow\) Y. &lt;br /&gt;&lt;br /&gt; Even though \(A\) and \(Y\) are &lt;em&gt;marginally&lt;/em&gt; associated, they are &lt;strong&gt;conditionally independent&lt;/strong&gt; given \(B\).  In other words,  A \(\unicode{x2AEB}\) Y | B. &lt;br /&gt;&lt;br /&gt; Thus, knowing aspirin status gives you no more information once platelets are measured, at least according to this graph.&lt;/td&gt;
      &lt;td&gt;I.73&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_3.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;L&lt;/strong&gt;: Smoking status &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A&lt;/strong&gt;: Carrying a lighter &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Lung cancer&lt;/td&gt;
      &lt;td&gt;Graph says that carrying a lighter (A) has no causal effect on outcome (Y). &lt;br /&gt; Math form of this assumption is:  Pr[Y^(a=1)=1]=Pr[Y^(a=0)=1] &lt;br /&gt;&lt;br /&gt; However, \(A\) will be spuriously associated with \(Y\), because path &lt;br /&gt; A \(\leftarrow\) L \(\rightarrow\) Y is open to flow from A to Y: they share a common cause.&lt;/td&gt;
      &lt;td&gt;I.72&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_6.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;L&lt;/strong&gt;: Smoking status &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A&lt;/strong&gt;: Carrying a lighter &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Lung cancer&lt;/td&gt;
      &lt;td&gt;A \(\unicode{x2AEB}\) Y | L, because the path A \(\leftarrow\) L \(\rightarrow\) Y is closed by conditioning on L. &lt;br /&gt;&lt;br /&gt;  Thus, restricting the analysis to either smokers or non-smokers (box around L) means that lighter carrying will no longer be associated with lung cancer.&lt;/td&gt;
      &lt;td&gt;I.74&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_4.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Genetic predisposition for heart disease &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Smoking status &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: Heart disease&lt;/td&gt;
      &lt;td&gt;\(A\) and \(Y\) are not marginally associated, because they share no common causes.  (i.e. Genetic risk for heart disease says nothing, in a vaccuum, about smoking status.)  &lt;br /&gt;&lt;br /&gt; \(L\) here is a &lt;strong&gt;collider&lt;/strong&gt; on the path A \(\rightarrow\) L \(\leftarrow\) Y, because the two arrows collide on this node. But there is no causal path from \(A\) to \(Y\).&lt;/td&gt;
      &lt;td&gt;I.73&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_7.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Genetic predisposition for heart disease &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Smoking status &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: Heart disease&lt;/td&gt;
      &lt;td&gt;&lt;strong&gt;Conditioning on the collider&lt;/strong&gt; \(L\) opens the causal path A \(\rightarrow\) L \(\leftarrow\) Y.  &lt;br /&gt;&lt;br /&gt;  Put another way, two causes of a given effect generally become associated once we stratify on the common effect. &lt;br /&gt;&lt;br /&gt;  In the example, knowing someone with heart disease lacks haplotype A makes it more likely that the individual is a smoker, because, in the absence of \(A\), it is more likely that some other cause of \(L\) is present. Or, conversely, the population of non-smokers with heart disease will be enriched for people with haplotype A. Thus, if one restricts the analysis to people with heart disease, he will find a spurious anti-correlation between the haplotype predictive of heart disease and smoking status.&lt;/td&gt;
      &lt;td&gt;I.74&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_8.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Genetic predisposition for heart disease &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Smoking status &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: Heart disease  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;C&lt;/strong&gt;:  Diuretic medication (given after heart disease diagnosis)&lt;/td&gt;
      &lt;td&gt;Conditioning on variable \(C\) &lt;strong&gt;downstream from collider&lt;/strong&gt; \(L\) also opens up causal path A \(\rightarrow\) L \(\leftarrow\) Y. &lt;br /&gt;&lt;br /&gt;  Thus, in the example, stratifying on \(C\) (diuretic status) will induce a spurious relationship between \(A\) (genetic heart disease risk) and \(Y\) (smoking status).&lt;/td&gt;
      &lt;td&gt;I.75&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;Before matching&lt;/em&gt;: &lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/6_1.png&quot; width=&quot;175&quot; /&gt;&lt;br /&gt;&lt;br /&gt; &lt;em&gt;After matching&lt;/em&gt;:&lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/6_9.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;Matched analysis&lt;/em&gt; &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: Critical Condition  &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;A&lt;/strong&gt;: Heart Transplant  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Death &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;S&lt;/strong&gt;: Selection for inclusion via matching criteria&lt;/td&gt;
      &lt;td&gt;In this study design, the average causal effect of \(A\) on \(Y\) is computed after matching on \(L\). &lt;br /&gt;&lt;br /&gt; Before matching, \(L\) and \(A\) are associated via the path \(L \rightarrow A\) . &lt;br /&gt;&lt;br /&gt; Matching is represented in the DAG through the addition of \(S\), the selection criteria. The study is obviously restricted to patients that are selected (\(S\)=1), hence we condition on \(S\). &lt;br /&gt;&lt;br /&gt; d-separation rules say that there are now two open paths between \(A\) and \(L\) after conditioning on \(S\):  \(L \rightarrow A\) and \(L \rightarrow S \leftarrow A\). This seems to indicate an association between \(L\) and \(A\).  However, the point of matching is supposed to be to make sure that \(L\) and \(A\) not associated! &lt;br /&gt;&lt;br /&gt;  The resolution comes from the observation that \(S\) has been constructed specifically to induce the distribution of \(L\) to be the same in the treated (\(A\)=1) and untreated (\(A\)=0) population. This means that the association in \(L \rightarrow S \leftarrow A\) is of equal magnitude but opposite direction of \(L \rightarrow A\). Thus there is no net association between \(A\) and \(L\). &lt;br /&gt;&lt;br /&gt;  This disconnect between the associations visible in the DAG and the associations actually present is an example of &lt;strong&gt;unfaithfulness&lt;/strong&gt;, but here it has been introduced by design.&lt;/td&gt;
      &lt;td&gt;I.49 and I.79&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_10.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;R&lt;/strong&gt;: Compound treatment (see right) &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A&lt;/strong&gt;: Vector of treatment versions \(A( r )\) (see right) &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Outcome &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;L&lt;/strong&gt; and &lt;strong&gt;W&lt;/strong&gt;: unnamed causes  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: unnmeasured variables&lt;/td&gt;
      &lt;td&gt;This is the example the book uses of how to encode compound treatments. &lt;br /&gt;&lt;br /&gt; The example compound treatment is as follows: &lt;br /&gt;&lt;br /&gt; R=0 corresponds to “exercising &lt;em&gt;less&lt;/em&gt; than 30 minutes daily”. &lt;br /&gt; R=1 corresponds to “exercising &lt;em&gt;more&lt;/em&gt; than 30 minutes daily.” &lt;br /&gt;&lt;br /&gt; \(A\) is a vector corresponding to different &lt;em&gt;versions&lt;/em&gt; of the treatment, where \(A(r=0)\) can take on values \(0,1,2,\dots, 29\) and \(A(r=1)\) can take on values \(30,31\dots, max\)  &lt;br /&gt;&lt;br /&gt; Taken together, we can have a mapping from multiple values \(A( r )\) onto a single value \(R=r\).&lt;/td&gt;
      &lt;td&gt;I.78&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;effect-modification-66&quot;&gt;Effect Modification (6.6)&lt;/h3&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;DAG&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Example&lt;/th&gt;
      &lt;th&gt;Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_11.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Heart Transplant &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Outcome &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;M&lt;/strong&gt;: Quality of Care. High (\(M=1\)) vs Low (\(M=0\))&lt;/td&gt;
      &lt;td&gt;This DAG reflects the assumption that quality of care influences quality of transplant procedure and thus of outcomes, BUT still assumes random assignment of treatment. &lt;br /&gt;&lt;br /&gt; Given random assignment, \(M\) is not strictly necessary but added if you want to use it to stratify. &lt;br /&gt;&lt;br /&gt; Causal diagram as such does not distinguish between: &lt;br /&gt; 1. Causal effect of treatment \(A\) on mortality \(Y\) is in the same direction in both stratum \(M=1\) and \(M=0\). &lt;br /&gt; 2. The causal effect of \(A\) on \(Y\) is in the opposite direction in \(M=1\) vs \(M=0\). &lt;br /&gt; 3. Treatment \(A\) as a causal effect on \(Y\) in one straum of \(M\) but no effect in other stratum.&lt;/td&gt;
      &lt;td&gt;I.80&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_12.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Heart Transplant &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Outcome &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;M&lt;/strong&gt;: Quality of Care. High (\(M=1\)) vs Low (\(M=0\))  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;N&lt;/strong&gt;: Therapy Complications&lt;/td&gt;
      &lt;td&gt;Same example as above, except assumes that other variables along the path of a modifier can also influence outcomes.&lt;/td&gt;
      &lt;td&gt;I.80&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_13.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Heart Transplant &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Outcome &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;M&lt;/strong&gt;: Quality of Care. High (\(M=1\)) vs Low (\(M=0\))  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;S&lt;/strong&gt;: Cost of treatment&lt;/td&gt;
      &lt;td&gt;Same example as above, except assumes that the quality of care effects the cost, but that the cost does not influence the outcome. &lt;br /&gt;&lt;br /&gt; This is the example of an effect modifier that does not have a causal effect on the outcome, but rather stands as a &lt;strong&gt;surrogate effect modifier&lt;/strong&gt;. &lt;br /&gt;&lt;br /&gt; Analysis stratifying on \(S\) – which is available/objective – might be used to detect effect modification that actually comes from \(M\) but is harder to measure.&lt;/td&gt;
      &lt;td&gt;I.80&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_14.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Heart Transplant &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Outcome &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;M&lt;/strong&gt;: Quality of Care. High (\(M=1\)) vs Low (\(M=0\))  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: Place of residence &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;P&lt;/strong&gt;: Passport-defined nationality&lt;/td&gt;
      &lt;td&gt;Example where the surrogate effect modifier (passport) is not driven by the causal effect modifier (quality of care), but rather both are driven by a common cause (place of residence).&lt;/td&gt;
      &lt;td&gt;I.80&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/6_15.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Heart Transplant &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Outcome &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;M&lt;/strong&gt;: Quality of Care. High (\(M=1\)) vs Low (\(M=0\))  &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;S&lt;/strong&gt;: Cost of Care &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;W&lt;/strong&gt;: Use of mineral water vs tap&lt;/td&gt;
      &lt;td&gt;Example where the surrogate effect modifier (cost) is influenced by &lt;em&gt;both&lt;/em&gt; the causal effect modifier (quality) and something spurious. &lt;br /&gt;&lt;br /&gt;  If the study were restricted to low-cost hospitals by conditioning on \(S=0\), then use of mineral water would become associated with medical care \(M\) and would behave as a surrogate effect modifier. &lt;br /&gt;&lt;br /&gt; Addendum: How?  One example might be that conditioned on a low cost, a zero sum situation may arise in which spending more on fancy water means less is being spent on quality care, which could yield an inverse correlation between mineral water and medical quality.&lt;/td&gt;
      &lt;td&gt;I.81&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;confounding-chapter-7&quot;&gt;Confounding (Chapter 7)&lt;/h3&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;DAG&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Example&lt;/th&gt;
      &lt;th&gt;Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/7_1.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;L&lt;/strong&gt;: Being physicially fit &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A&lt;/strong&gt;: Working as a firefighter &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Mortality&lt;/td&gt;
      &lt;td&gt;The path \(A \rightarrow Y\) is a causal path from \(A\) to \(Y\). &lt;br /&gt;&lt;br /&gt; \(A \leftarrow L \rightarrow Y\) is a &lt;strong&gt;backdoor path&lt;/strong&gt; between \(A\) and \(Y\), mediated by common cause (&lt;strong&gt;confounder&lt;/strong&gt;) \(L\). &lt;br /&gt;&lt;br /&gt; Conditioning on \(L\) will block the backdoor path, induce conditional exchangeability, and allow for causal inference. &lt;br /&gt;&lt;br /&gt; &lt;em&gt;Note&lt;/em&gt;: This is an example of “healthy worker bias.”&lt;/td&gt;
      &lt;td&gt;I.83&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/7_2.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Aspirin &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Stroke &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: Heart Disease  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: Atherosclerosis (unmeasured)&lt;/td&gt;
      &lt;td&gt;This DAG is an example of &lt;strong&gt;confounding by indication&lt;/strong&gt; (or &lt;strong&gt;channeling&lt;/strong&gt;). &lt;br /&gt;&lt;br /&gt; Aspirin will have a confounded association with stroke, both from heart disease (\(L \rightarrow A \rightarrow Y\)), and from atherosclerosis (\(U \rightarrow L \rightarrow A \rightarrow Y\)). &lt;br /&gt;&lt;br /&gt; Conditioning on unmeasured \(U\) is impossible, but there is &lt;em&gt;no unmeasured confounding&lt;/em&gt; given \(L\), so conditioning on \(L\) is sufficient.&lt;/td&gt;
      &lt;td&gt;I.84&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/7_3.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Exercise &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Death &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: Smoking status  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: Social Factors (unmeasured) or Sublinical Disease (undetected)&lt;/td&gt;
      &lt;td&gt;Conditioning on \(L\) is again sufficient to block the backdoor path in this case.&lt;/td&gt;
      &lt;td&gt;I.84&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/7_4.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Physical activity &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Cervical Cancer &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: Pap smear  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U_1&lt;/strong&gt;: Pre-cancer lesion (unmeasured here) &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U_2&lt;/strong&gt;: Health-conscious personality (unmeasured)&lt;/td&gt;
      &lt;td&gt;Example shows how &lt;strong&gt;conditioning on a collider can induce bias&lt;/strong&gt;. &lt;br /&gt;&lt;br /&gt;  Adjustment for \(L\) (e.g. by restricting to negative tests \(L=0\)) will &lt;em&gt;induce&lt;/em&gt; bias by opening a backdoor path between \(A\) and \(Y\) (\(A \leftarrow U_2 \rightarrow L \leftarrow U_1 \rightarrow Y\)), previously blocked by the collider. This is a case of &lt;em&gt;selection bias&lt;/em&gt;. &lt;br /&gt;&lt;br /&gt; Thus, after conditioning, association between \(A\) and \(Y\) would be a mixture of association due to effect of \(A\) on \(Y\) and backdoor path. In other words, there is no &lt;em&gt;unconditional bias&lt;/em&gt;, but there would be a conditional bias for at least one stratum of \(L\).&lt;/td&gt;
      &lt;td&gt;I.88&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/7_5.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;(Labels not in book)&lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A&lt;/strong&gt;: Antacid  &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;L&lt;/strong&gt;: Heartburn   &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;Y&lt;/strong&gt;: Heart attack  &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;U&lt;/strong&gt;: Obesity&lt;/td&gt;
      &lt;td&gt;A nonconfounding example in which traditional analysis might lead you to adjust for \(L\), but doing so would &lt;em&gt;induce a bias&lt;/em&gt;.&lt;/td&gt;
      &lt;td&gt;I.89&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/7_6.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Physical activity  &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;L&lt;/strong&gt;: Income   &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;Y&lt;/strong&gt;: Cardiovascular disease  &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;U&lt;/strong&gt;: Socioeconomic status&lt;/td&gt;
      &lt;td&gt;\(L\) (income) is &lt;em&gt;not&lt;/em&gt; a confounder, but is a measurable variable that could serve as a &lt;strong&gt;surrogate confounder&lt;/strong&gt; for \(U\) (socioeconomic status) and thus could be used to partially adjust for the confounding from \(U\). &lt;br /&gt;&lt;br /&gt; In other words, conditioning on \(L\) will result in a partial blockage of the backdoor path \(A \leftarrow U \rightarrow Y\).&lt;/td&gt;
      &lt;td&gt;I.90&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;Normal DAG&lt;/em&gt;: &lt;br /&gt;  &lt;img src=&quot;/assets/hernan_dags/7_2.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt; &lt;em&gt;Corresponding SWIG&lt;/em&gt;: &lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/7_7.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Aspirin &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Stroke &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: Heart Disease  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: Atherosclerosis (unmeasured)&lt;/td&gt;
      &lt;td&gt;Represents data from a hypothetical intervention in which all individuals receive the same treatment level \(a\). &lt;br /&gt;&lt;br /&gt; Treatment is split into two sides: &lt;br /&gt; (a) Left side encodes the values of treatment \(A\) that would have been observed in the absence of intervention (&lt;em&gt;the natural value of treatment&lt;/em&gt;) &lt;br /&gt; (b) Right side encodes the treatment value under the intervention. &lt;br /&gt;  \(A\) has no variable into \(a\) bc \(a\) is the same everywhere. &lt;br /&gt;&lt;br /&gt; Conditional exchangeability \(Y^{a} \unicode{x2AEB} A | L\) holds because all paths between \(Y^{a}\) and \(A\) are blocked after conditioning on \(L\).&lt;/td&gt;
      &lt;td&gt;I.91&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;Normal DAG&lt;/em&gt;: &lt;br /&gt;  &lt;img src=&quot;/assets/hernan_dags/7_4.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt; &lt;em&gt;Corresponding SWIG&lt;/em&gt;: &lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/7_8.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Physical activity &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Cervical Cancer &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: Pap smear  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U_1&lt;/strong&gt;: Pre-cancer lesion (unmeasured here) &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U_2&lt;/strong&gt;: Health-conscious personality (unmeasured)&lt;/td&gt;
      &lt;td&gt;Here, marginal exchangeability \(Y^{a} \unicode{x2AEB} A\) holds because, on the SWIG, all paths between \(Y^{a}\) and \(A\) are blocked without conditioning on \(L\). &lt;br /&gt;&lt;br /&gt; Conditional exchangeability \(Y^{a} \unicode{x2AEB} A | L\) does not hold because, on the SWIG, the path \(Y^{a} \leftarrow U_1 \rightarrow L \leftarrow U_2 \rightarrow A\) is open when the collider \(L\) is conditioned on. &lt;br /&gt;&lt;br /&gt;  Taken together, marginal \(A-Y\) association is causal but conidtional association \(A-Y\) given \(L\) is not.&lt;/td&gt;
      &lt;td&gt;I.91&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;Normal DAG&lt;/em&gt;: &lt;br /&gt;  &lt;img src=&quot;/assets/hernan_dags/7_9.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt; &lt;em&gt;Corresponding SWIG&lt;/em&gt;: &lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/7_10.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;(Example labels not in book)&lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A&lt;/strong&gt;: Statins  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Coronary artery disease &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: HDL/LDL   &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: Race&lt;/td&gt;
      &lt;td&gt;In this example, the SWIG is used to highlight a failure of the DAG to provide conditional exchangeability \(Y^{a} \unicode{x2AEB} A | L\). &lt;br /&gt;&lt;br /&gt; In the SWIG, the factual variable \(L\) is replaced by the counterfactual variable \(L^{a}\).  In this SWIG, counterfactual exchangeability \(Y^{a} \unicode{x2AEB} A | L_{a}\) holds, since \(L^{a}\) blocks the paths from \(Y^{a}\) to \(A\). But \(L\) is not even on the graph, so we can’t conclude \(Y^{a} \unicode{x2AEB} A | L\) holds.  &lt;br /&gt;&lt;br /&gt; The problem being highlighted here is that \(L\) is a &lt;em&gt;descendent&lt;/em&gt; of the treatment \(A\) blocking the path to \(Y\). &lt;br /&gt;&lt;br /&gt; In contrast, if the arrow from \(A\) to \(L\) didn’t exist, \(L\) would not be a descendent of \(A\) and adjusting for \(L\) &lt;em&gt;would&lt;/em&gt; eliminate all bias, even if \(L\) were still in the future of \(A\). Thus, confounders are allowed to be in the future of the treatment, they just can’t be descendents.&lt;/td&gt;
      &lt;td&gt;I.92&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/7_11.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Aspirin  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Blood Pressure   &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;U&lt;/strong&gt;: History of heart disease (unmeasured) &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;C&lt;/strong&gt;: Blood pressure right before treatment (“placebo test” aka “negative outcome control”)&lt;/td&gt;
      &lt;td&gt;This example was used to show &lt;strong&gt;difference-in-difference&lt;/strong&gt; and &lt;strong&gt;negative outcome controls&lt;/strong&gt;. &lt;br /&gt;&lt;br /&gt; The idea: We cannot compute the effect of \(A\) on \(Y\) via standardization or IP weighting because there is unmeasured confounding. Instead, we first measure the (“negative”) outcome \(C\) right before treatment. Obviously \(A\) has no effect on \(C\), but we can assume that \(U\) will have the same confounding effect on \(C\) that it has on \(Y\). &lt;br /&gt;&lt;br /&gt; As such, we take the effect in the treated to be the effect of \(A\) on \(Y\) (treatment effect + confounding effect) &lt;em&gt;minus&lt;/em&gt; the effect of \(A\) on \(C\) (confounding effect). This is the difference-in-differences. &lt;br /&gt;&lt;br /&gt; Negative outcome controls are sometimes used to try to &lt;em&gt;detect&lt;/em&gt; confounding.&lt;/td&gt;
      &lt;td&gt;I.95&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/7_12.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;(No example labels in text) &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A&lt;/strong&gt;: Aspirin  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;M&lt;/strong&gt;: Platelet Aggregation &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Heart Attack &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: High Cardiovascular Risk&lt;/td&gt;
      &lt;td&gt;This example is to demonstrate the &lt;strong&gt;frontdoor criterion&lt;/strong&gt; (see notes or page I.96 for more details). &lt;br /&gt;&lt;br /&gt; Given this DAG, it is impossible to directly use standardization or IP weighting, because the unmeasured variable \(U\) is necessary to block the backdoor path between \(A\) and \(Y\). &lt;br /&gt;&lt;br /&gt; However, the frontdoor adjustment can be used because: &lt;br /&gt; (i) the effect of \(A\) on \(&amp;lt;\) can be computed without confounding, and &lt;br /&gt; (ii) the effect of \(M\) on \(Y\) can be computed because \(A\) blocks only the backdoor path. &lt;br /&gt;&lt;br /&gt; Hence, &lt;strong&gt;frontdoor adjustment&lt;/strong&gt; can be used.&lt;/td&gt;
      &lt;td&gt;I.95&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&lt;strong&gt;Some additional (but structurally redundant) examples of confounding from chapter 7&lt;/strong&gt;:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;DAG&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Example&lt;/th&gt;
      &lt;th&gt;Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/7_3.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Exercise &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Death &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: Smoking status  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: Social Factors (unmeasured) or Sublinical Disease (undetected)&lt;/td&gt;
      &lt;td&gt;&lt;em&gt;Subclinical disease&lt;/em&gt; could also result both in lack of exercise \(A\) and increased risk of a clinical diseae \(Y\). This is an example of &lt;strong&gt;reverse causation&lt;/strong&gt;.&lt;/td&gt;
      &lt;td&gt;I.84&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/7_3.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Gene being tested &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Trait &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: Different gene in LD with gene A   &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: Ethnicity&lt;/td&gt;
      &lt;td&gt;&lt;em&gt;Linkage disequilibrium&lt;/em&gt; can drive spurious associations between gene \(A\) and trait \(Y\) if the true causal gene \(L\) is in LD with \(A\) in patients with ethnicity \(U\).&lt;/td&gt;
      &lt;td&gt;I.84&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/7_3.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Airborne particulate matter &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Coronary artery disease &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: Other pollutants  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: Weather conditions&lt;/td&gt;
      &lt;td&gt;&lt;em&gt;Environmental exposures&lt;/em&gt; often co-vary with the weather conditions.  As such, certain pollutants \(A\) may be spuriously associated with outcome \(Y\) simply because the weather drives them to co-occur with \(L\).&lt;/td&gt;
      &lt;td&gt;I.84&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;selection-bias-chapter-8&quot;&gt;Selection Bias (Chapter 8)&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;:  While randomization eliminates &lt;em&gt;confounding&lt;/em&gt;, it does not eliminate &lt;em&gt;selection bias&lt;/em&gt;.  All of the issues in this section apply just as much to prospective and/or randomized trials as they do to observational studies.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;DAG&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Example&lt;/th&gt;
      &lt;th&gt;Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/8_1.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Folic Acid supplements  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Cardiac Malformation &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;C&lt;/strong&gt;: Death before birth&lt;/td&gt;
      &lt;td&gt;In this example, we assume folic acid supplements &lt;em&gt;decrease&lt;/em&gt; mortality by reducing non-cardiac malformations, cardiac malformatins &lt;em&gt;increase&lt;/em&gt; mortality, and cardiac malformations &lt;em&gt;increase&lt;/em&gt; mortality.  &lt;br /&gt;&lt;br /&gt; Study restricted participants to fetuses who survived until birth (\(C=0\)).  &lt;br /&gt;&lt;br /&gt; Two sources of association between treatment and outcome: &lt;br /&gt; 1. Open path \(A \rightarrow Y\), the causal effect. &lt;br /&gt; 2. Open path \(A \rightarrow C \leftarrow Y\) linking \(A\) and \(Y\) due to &lt;strong&gt;conditioning on common effect (collider)&lt;/strong&gt; \(C\).  This is the &lt;strong&gt;selection bias&lt;/strong&gt;, specifically, &lt;strong&gt;selection bias under the null&lt;/strong&gt;.  &lt;br /&gt;&lt;br /&gt; The selection bias eliminates ability to make causal inference. If analysis were not conditioned on \(C\), causal inference would be valid.&lt;/td&gt;
      &lt;td&gt;I.97&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/8_2.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Folic Acid supplements  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Cardiac Malformation &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;C&lt;/strong&gt;: Death before birth &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;S&lt;/strong&gt;: Parental Grief&lt;/td&gt;
      &lt;td&gt;This example is the same as the above, except we consider if the researchers instead conditioned on the &lt;strong&gt;effect of the collider&lt;/strong&gt;, namely \(S\), parental grief. &lt;br /&gt;&lt;br /&gt; This is &lt;em&gt;still&lt;/em&gt; &lt;strong&gt;selection bias&lt;/strong&gt;, \(A \rightarrow C \leftarrow Y\) linking \(A\) is open, and association is not causation.&lt;/td&gt;
      &lt;td&gt;I.98&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/8_3.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/8_5.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;(&lt;em&gt;Note: Missing arrow: \(A \rightarrow Y\)&lt;/em&gt; ) &lt;br /&gt;&lt;br /&gt;   &lt;strong&gt;A&lt;/strong&gt;: Antiretroviral treatment  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: 3-year death &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;C&lt;/strong&gt;: Censoring from study or Missing Data &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: High immunosuppresion (unmeasured) &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;L&lt;/strong&gt;: Symptoms, CD4 count, viral load (unmeasured) &lt;br /&gt;&lt;br /&gt;  ———— &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;W&lt;/strong&gt;: Lifestyle, personality, educational variables (unmeasured)&lt;/td&gt;
      &lt;td&gt;Figure 8.3:&lt;br /&gt; In this example, individuals with high immunosuppresion – in addition to having higher risk of death – manifest worse physical symptoms that mediates censoring from the study.  Treatment also worsens side effects, which increases censoring, as well. &lt;br /&gt;&lt;br /&gt;  \(C\) is conditioned upon, because those are the only ones who actually contribute data to the study. &lt;br /&gt;&lt;br /&gt; Per d-separation, \(A \rightarrow C \leftarrow L \leftarrow U \rightarrow Y\) is open due to conditioning on \(C\), allowing association to flow from \(A\) to \(Y\) and killing causal inference.  &lt;br /&gt;&lt;br /&gt; Note: This is a transformation of figure 8.1, except instead of \(Y\) acting directly on \(C\), we have \(U\) acting on both \(Y\) and \(C\). &lt;br /&gt;&lt;br /&gt; Intuition for the bias: if a treated individual with treatment-induced side effects does not drop out (\(C=0\)), this implies that he probably didn’t have high immunosuppresion \(U\), and low immunosuppresion means better outcomes. Hence, there is probably an inverse association between \(A\) and \(U\) among those that don’t drop out. &lt;br /&gt;&lt;br /&gt; This is an example of &lt;strong&gt;selection bias&lt;/strong&gt; that arises from &lt;strong&gt;conditioning on a censoring variable that is a comon effect of both treatment \(A\) and cause \(U\) of the outcome \(Y\).&lt;/strong&gt; &lt;br /&gt;&lt;br /&gt;  ———— &lt;br /&gt;&lt;br /&gt; Figure 8.5 is the same idea, except it notes that sometimes additional unmeasured variables may contribute to both treatment and censoring.&lt;/td&gt;
      &lt;td&gt;I.98&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/8_4.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/8_6.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;(&lt;em&gt;Note: Missing arrow: \(A \rightarrow Y\)&lt;/em&gt; ) &lt;br /&gt;&lt;br /&gt;   &lt;strong&gt;A&lt;/strong&gt;: Antiretroviral treatment  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: 3-year death &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;C&lt;/strong&gt;: Censoring from study or Missing Data &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: High immunosuppresion (unmeasured) &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;L&lt;/strong&gt;: Symptoms, CD4 count, viral load (unmeasured) &lt;br /&gt;&lt;br /&gt;  ———— &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;W&lt;/strong&gt;: Lifestyle, personality, educational variables (unmeasured)&lt;/td&gt;
      &lt;td&gt;Same example as 8.3/8.5, except we assume that treatment (especially prior treatment) has direct effect on symptoms \(L\). &lt;br /&gt;&lt;br /&gt; Restricting to uncensored individuals still implies conditioning on a &lt;strong&gt;common effect&lt;/strong&gt; \(C\) of both \(A\) and \(U\), introducing an association between treatment and outcome. &lt;br /&gt;&lt;br /&gt; (&lt;strong&gt;Note&lt;/strong&gt;: Unlike in Figure 8.3/8.5, even if we had access to \(L\), stratification is impossible in these DAGs, because while conditioning on \(L\) blocks the backdoor path from \(C\) to \(Y\), it also opens the backdoor path \(A \rightarrow L \leftarrow U \rightarrow Y\) because \(L\) is a collider on that path. IP-weighting, in contrast, could work here.  See page I.108 in section 8.5 for a discussion.)&lt;/td&gt;
      &lt;td&gt;I.98&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/8_7.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Physical activity  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Heart Disease &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;C&lt;/strong&gt;: Becoming a firefighter &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;L&lt;/strong&gt;: Parental socioeconomic status &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: Interest in physical activites (unmeasured)&lt;/td&gt;
      &lt;td&gt;The goal of this example is to show that while &lt;em&gt;confounding&lt;/em&gt; and &lt;em&gt;selection bias&lt;/em&gt; are distinct, they can often become functionally the same; this is why some call selection bias “confounding”. &lt;br /&gt;&lt;br /&gt; Assume that – unknown to the investigators – \(A\) does not cause \(Y\).  Parental SES \(L\) affects becoming a firefighter \(C\), and, through childhood diet, heart disease risk \(Y\). But we assume that \(L\) doesn’t affect \(A\). Attraction to physical activity \(U\) affects being physically active \(A\) and being a firefighter \(C\), but not \(Y\). &lt;br /&gt;&lt;br /&gt; Per these assumptions, there is &lt;em&gt;no confounding&lt;/em&gt;, bc no common causes of \(A\) and \(Y\). However, restricting the study to firefighters (\(C=0\)), induces a &lt;em&gt;selection bias&lt;/em&gt; that can be eliminated by adjusting for \(L\). Thus, some economists would call \(L\) a “confounder” because adjusting for it eliminates the bias.&lt;/td&gt;
      &lt;td&gt;I.101&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/8_8.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/8_9.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Heart Transplant  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y_1&lt;/strong&gt;: Death at time point 1 &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y_2&lt;/strong&gt;: Death at time point 2 &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;U&lt;/strong&gt;: Protective genetic haplotype (unmeasured)&lt;/td&gt;
      &lt;td&gt;The purpose of this example is to show the potential for selection bias in &lt;em&gt;time-specific hazard ratios&lt;/em&gt;. &lt;br /&gt;&lt;br /&gt; The example depicts a &lt;em&gt;randomized experiment&lt;/em&gt; representing the effect of heart transplant on risk of death at two time points, for which we assume the true causal DAG is figure 8.8. &lt;br /&gt;&lt;br /&gt; In figure 8.8, we assume that \(A\) only directly affects death at the first time point and that \(U\) decreases risk of death at all times but doesn’t affect treatment. &lt;br /&gt;&lt;br /&gt; In this circumstance, the unconditional associated risk ratios are not confounded.  In other words, \(aRR_{AY_1} = \frac{[Y_{1}|A=1]}{[Y_{1}|A=0]}\) and  \(aRR_{AY_2} = \frac{[Y_{2}|A=1]}{[Y_{2}|A=0]}\) are unbiased and valid for causal inference. &lt;br /&gt;&lt;br /&gt; However, trying to compute time-specific hazard ratios is risky. The process is valid at time point 1 (\(aRR_{AY_1}\) is the same as above), but the hazard ratio at time point 2 is inherently conditional on having survived at time point 1: \(aRR_{AY_2|Y_{1}=0} = \frac{[Y_{2}|A=1,Y_{1}=0]}{[Y_{2}|A=0,Y_{1}=0]}\). Since \(U\) affects survival at time point 1, however, this induces a selection bias that opens a path \(A\rightarrow Y_{1} \leftarrow U \rightarrow Y_{2}\) beteween \(A\) and \(Y_2\).  &lt;br /&gt;&lt;br /&gt; If we could condition on \(U\), then \(aRR_{AY_2|Y_{1}=0,U}\) would be valid for causal inference. But we can’t, so conditioning on \(Y_{1}=0\) makes the DAG functionally equivalent to Figure 8.9.  This issue is relevant to observational and randomized experiments over time.&lt;/td&gt;
      &lt;td&gt;I.102&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/8_3.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;(&lt;em&gt;Note: Missing arrow: \(A \rightarrow Y\)&lt;/em&gt; ) &lt;br /&gt;&lt;br /&gt;   &lt;strong&gt;A&lt;/strong&gt;: Wasabi consumption (randomized)  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: 1-year death &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;C&lt;/strong&gt;: Censoring   &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;L&lt;/strong&gt;: Heart Disease &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: Atherosclerosis (unmeasured)&lt;/td&gt;
      &lt;td&gt;This example is of an &lt;strong&gt;RCT with censoring&lt;/strong&gt;. We imagine that there was in reality an equal number of deaths in treatment and control, but there was higher censoring (\(C=1\)) among patients with heart disease and higher censoring among the wasabi arm.  As such, we observe more deaths in the wasabi group than in control. Thus, we see a &lt;strong&gt;selection bias&lt;/strong&gt; due to &lt;strong&gt;conditioning on common effect&lt;/strong&gt; \(C\). &lt;br /&gt;&lt;br /&gt; There are &lt;em&gt;no common causes&lt;/em&gt; of \(A\) and \(Y\) – expected in a marginally randomized experiment – so there is no need to adjust for &lt;em&gt;confounding&lt;/em&gt; per se.  However, there is a common cause \(U\) of both \(C\) and \(Y\), inducing a backdoor path \(C \leftarrow L \leftarrow U \rightarrow Y\).  As such, conditioning on non-censored patients \(C=0\) means we have a selection bias that turns \(U\) functionally into a confounder. \(U\) is unmeasured, but the backdoor criterion says that &lt;strong&gt;adjusting for \(L\)&lt;/strong&gt; here blocks the backdoor path. &lt;br /&gt;&lt;br /&gt; The takeaway here is that &lt;strong&gt;censoring or other selection changes the causal question&lt;/strong&gt;, and turns the counterfactual outcome into \(Y^{a=1,c=0}\) – the outcome of receiving the treatment &lt;em&gt;and&lt;/em&gt; being uncensored.  The relevant causal risk ratio, for example, is thus now \(\frac{E[Y^{a=1,c=0}]}{E[Y^{a=0,c=0}]}\) – “the risk if everyone had been treated and was uncensored” vs “the risk if everyone were untreated and remained uncensored.” In this sense, &lt;strong&gt;censoring is another treatment&lt;/strong&gt;.&lt;/td&gt;
      &lt;td&gt;I.105&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/8_12.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/8_13.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Surgery  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Death &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;E&lt;/strong&gt;: Genetic hapltype &lt;br /&gt;&lt;br /&gt;  ———— &lt;br /&gt;&lt;br /&gt; &lt;em&gt;Death subsplit by causes&lt;/em&gt;: (not recorded) &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y_A&lt;/strong&gt;: Death from tumor &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;Y_E&lt;/strong&gt;: Death from heart attack &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y_A&lt;/strong&gt;: Death from other causes&lt;/td&gt;
      &lt;td&gt;In this example, Figure 8.12, surgery \(A\) and haplotype \(E\) are: &lt;br /&gt; (i) marginally independent (i.e. haplotype doesn’t affect probability of receiving surgery), and &lt;br /&gt; (ii) associated conditionally on \(Y\) (i.e. probability of receiving surgery &lt;em&gt;does&lt;/em&gt; vary by haplotype within at least one stratum of the haplotype). &lt;br /&gt;&lt;br /&gt; The purpose of this example is to show that despite this fact, situations exist in which \(A\) and \(E\) remain conditionally independent within &lt;em&gt;some&lt;/em&gt; haplotypes. &lt;br /&gt;&lt;br /&gt; Key idea here is that to recognize that if you split death into different causes (even if this isn’t recorded), \(A\) and \(E\) affect different sub-causes in different ways (specifically, \(A\) removes tumor, and \(E\) prevents heart attack). &lt;br /&gt;&lt;br /&gt; Arrows from \(Y_{A}\), \(Y_{E}\), and \(Y_{O}\) to \(Y\) are deterministic, and \(Y=0\) if and only if \(Y_{A} = Y_{E}=Y_{O}=0\), so conditioning on \(Y_{0}=0\) implicitly conditions the other \(Y\)s to zero. This also blocks the path between \(A\) and \(E\), since it is conditioning on non-colliders \(Y_{A}\), \(Y_{E}\), and \(Y_{O}\). &lt;br /&gt;&lt;br /&gt; In contrast, conditioning on \(Y=1\) is compatible with any combination of \(Y_{A}\), \(Y_{E}\), and \(Y_{O}\) being equal to 1, so the path between \(A\) and \(E\) is not blocked. &lt;br /&gt;&lt;br /&gt; The ability to break the conditional probability of survival down in this way is an example of a &lt;strong&gt;multiplicative survival model&lt;/strong&gt;.&lt;/td&gt;
      &lt;td&gt;I.105&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/8_14.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/8_15.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/8_16.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Surgery  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Death &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;E&lt;/strong&gt;: Genetic hapltype &lt;br /&gt;&lt;br /&gt;  ———— &lt;br /&gt;&lt;br /&gt; &lt;em&gt;Death subsplit by causes&lt;/em&gt;: (not recorded) &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y_A&lt;/strong&gt;: Death from tumor &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;Y_E&lt;/strong&gt;: Death from heart attack &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y_A&lt;/strong&gt;: Death from other causes&lt;/td&gt;
      &lt;td&gt;Same setup as in the examples of Figure 8.12 and 8.13.  However, in all of these DAGs, \(A\) and \(E\) affect survival thrugh a common mechanism, either directly or indirectly.  In such cases, \(A\) and \(E\) are dependent in &lt;em&gt;both&lt;/em&gt; strata of \(Y\). &lt;br /&gt;&lt;br /&gt; Taken together with the example above, the point is that &lt;strong&gt;conditioning on a collider &lt;em&gt;always&lt;/em&gt; induces an association between its causes, but that this association &lt;em&gt;may&lt;/em&gt; or &lt;em&gt;may not&lt;/em&gt; be restricted to certain levels of the common effect&lt;/strong&gt;.&lt;/td&gt;
      &lt;td&gt;I.105&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&lt;strong&gt;Some additional (but structurally redundant) examples of selection bias from chapter 8&lt;/strong&gt;:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;DAG&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Example&lt;/th&gt;
      &lt;th&gt;Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/8_4.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/8_6.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;(&lt;em&gt;Note: Missing arrow: \(A \rightarrow Y\)&lt;/em&gt; ) &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A&lt;/strong&gt;: Occupational exposure  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Mortality &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;C&lt;/strong&gt;: Being at Work &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: True health status &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;L&lt;/strong&gt;: Blood tests and physical exam ———— &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;W&lt;/strong&gt;: Exposed jobs are eliminated and workers laid off&lt;/td&gt;
      &lt;td&gt;(&lt;em&gt;Note&lt;/em&gt;: DAGS 8.3/8.5 work just as well, here.) &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Healthy worker bias&lt;/strong&gt;: &lt;br /&gt; If we restrict a factory cohort study to those individuals who are actually at work, we miss out on the people that are not working due to either: &lt;br /&gt; (a) disability caused by exposure, or &lt;br /&gt; (b) a common cause of not working and not being exposed.&lt;/td&gt;
      &lt;td&gt;I.99&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/8_3.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/8_5.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;(&lt;em&gt;Note: Missing arrow: \(A \rightarrow Y\)&lt;/em&gt; ) &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A&lt;/strong&gt;: Smoking status  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Coronary heart disease &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;C&lt;/strong&gt;: Consent to participate &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: Family history &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;L&lt;/strong&gt;: Heart disease awareness ———— &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;W&lt;/strong&gt;: Lifestyle&lt;/td&gt;
      &lt;td&gt;(&lt;em&gt;Note&lt;/em&gt;: DAGS 8.4/8.6 work just as well, here.) &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Self-selection bias or Volunteer bias&lt;/strong&gt;: &lt;br /&gt; Under any of the above structures, if the study is restricted to people who volunteer or choose to participate, this can induce a selection bias.&lt;/td&gt;
      &lt;td&gt;I.100&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/8_3.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/8_5.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;(&lt;em&gt;Note: Missing arrow: \(A \rightarrow Y\)&lt;/em&gt; ) &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A&lt;/strong&gt;: Smoking status  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Coronary heart disease &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;C&lt;/strong&gt;: Consent to participate &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: Family history &lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;L&lt;/strong&gt;: Heart disease awareness ———— &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;W&lt;/strong&gt;: Lifestyle&lt;/td&gt;
      &lt;td&gt;(&lt;em&gt;Note&lt;/em&gt;: DAGS 8.4/8.6 work just as well, here.) &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Selection affected by treatment received before study entry&lt;/strong&gt;: &lt;br /&gt; Generalization of self-selection bias. Under any of the above structures, if the treatment takes place before the study selection or includes a pre-study component, a selection bias can arise. &lt;br /&gt;&lt;br /&gt; Particularly high-risk in studies that look at lifetime exposure to something in middle-aged volunteers.  &lt;br /&gt;&lt;br /&gt; Similar issues often arise with confounding if confounders are only measured during the study.&lt;/td&gt;
      &lt;td&gt;I.100&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;measurement-bias-chapter-9&quot;&gt;Measurement Bias (Chapter 9)&lt;/h3&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;DAG&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Example&lt;/th&gt;
      &lt;th&gt;Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/9_1.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: True Treatment &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A*&lt;/strong&gt;: Measured treatment &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: True Outcome  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U_A&lt;/strong&gt;: Measurement error&lt;/td&gt;
      &lt;td&gt;This DAG is simply to demonstrate how the &lt;strong&gt;measured treatment&lt;/strong&gt; \(A^{*}\) (aka “measure” or “indicator”) recorded in the study is different from the &lt;em&gt;true&lt;/em&gt; treatment (aka “construct”).  It also introduces \(U_{A}\), the &lt;strong&gt;measurement error&lt;/strong&gt; variable, which encodes all the factors other than \(A\) that determine \(A^{*}\)  &lt;br /&gt;&lt;br /&gt; &lt;em&gt;Note&lt;/em&gt;:  \(U_{A}\) and \(A^{*}\) were unnecessary in discussions of &lt;em&gt;confounding&lt;/em&gt; or &lt;em&gt;selection bias&lt;/em&gt; because they are not a part of a backdoor path and no variables are conditioned on them.&lt;/td&gt;
      &lt;td&gt;I.111&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/9_2.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: True Treatment &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A*&lt;/strong&gt;: Measured treatment  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: True Outcome &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y*&lt;/strong&gt;: Measured outcome  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U_A&lt;/strong&gt;: Measurement error for A &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U_Y&lt;/strong&gt;: Measurement error for Y&lt;/td&gt;
      &lt;td&gt;This DAG adds in the notion of imperfect measurement for the outcome as well as the treatment.   &lt;br /&gt;&lt;br /&gt;  Note that there is still no &lt;em&gt;confounding&lt;/em&gt; or &lt;em&gt;selection bias&lt;/em&gt; at play here, so &lt;strong&gt;measurement bias&lt;/strong&gt; or &lt;strong&gt;information bias&lt;/strong&gt; is the only thing that would break the link between association and causation. &lt;br /&gt;&lt;br /&gt; Figure 9.2 is an example of a DAG with &lt;strong&gt;independent nondifferential error&lt;/strong&gt;.&lt;/td&gt;
      &lt;td&gt;I.112&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/9_3.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Drug use &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A*&lt;/strong&gt;: Recorded history of drug use  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Liver toxicity &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y*&lt;/strong&gt;: Liver lab values  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U_A&lt;/strong&gt;: Measurement error for A &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U_Y&lt;/strong&gt;: Measurement error for Y &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U_AY&lt;/strong&gt;: Measurement error affecting A and Y (e.g memory and language gaps during interview)&lt;/td&gt;
      &lt;td&gt;In Figure 9.2 above, \(U_{A}\) and \(U_{Y}\) are independent according to d-separation, because the path between them is blocked by colliders. Independent errors could include EHR data entry errors that occur by chance, technical errors at a lab, etc. &lt;br /&gt;&lt;br /&gt; In this figure, we add \(U_{AY}\) to note the existence of &lt;em&gt;dependent&lt;/em&gt; errors. For example, communication errors that take place during an interview with a patient could effect both recorded drug use and previous recorded lab tests.  &lt;br /&gt;&lt;br /&gt; Figure 9.3 is an example of &lt;strong&gt;dependent nondifferential error&lt;/strong&gt;.&lt;/td&gt;
      &lt;td&gt;I.112&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/9_4.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/9_6.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Drug use &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A*&lt;/strong&gt;: History of drug use per patient interview  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Dementia &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y*&lt;/strong&gt;: Dementia diagnosis  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U_A&lt;/strong&gt;: Measurement error for A &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U_Y&lt;/strong&gt;: Measurement error for Y  &lt;br /&gt;&lt;strong&gt;__&lt;/strong&gt;&lt;strong&gt;__ &lt;br /&gt; __U_AY&lt;/strong&gt;:  Measurement error affecting A and Y&lt;/td&gt;
      &lt;td&gt;&lt;strong&gt;Recall bias&lt;/strong&gt; is one example of how the &lt;em&gt;true outcome&lt;/em&gt; can bias &lt;em&gt;treatment measurement error&lt;/em&gt;. &lt;br /&gt;&lt;br /&gt; In this example, patients with dementia are less able to effectively communicate, so true cases of the disease are more likely to have faulty medical histories. &lt;br /&gt;&lt;br /&gt; Another example of &lt;em&gt;recall bias&lt;/em&gt; could be in a study of the effect of alcohol use during pregancy \(A\) on birth defects \(Y\), if the alcohol intake is measured by recall after delivery. Bad medical outcomes, especially ones like complicated births, often affect patient recall and patient reporting. &lt;br /&gt;&lt;br /&gt;  Figure 9.4 is an example of &lt;strong&gt;independent differential measurement error&lt;/strong&gt;. &lt;br /&gt;&lt;br /&gt; Adding dependent errors such as a faulty interview makes Figure 9.6 an example of &lt;strong&gt;dependent differential error&lt;/strong&gt;.&lt;/td&gt;
      &lt;td&gt;I.113&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/9_5.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/9_7.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Drug use &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A*&lt;/strong&gt;: Recorded history of drug use  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Liver toxicity &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y*&lt;/strong&gt;: Liver lab values  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U_A&lt;/strong&gt;: Measurement error for A &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U_Y&lt;/strong&gt;: Measurement error for Y &lt;br /&gt;&lt;strong&gt;__&lt;/strong&gt;&lt;strong&gt;__ &lt;br /&gt; __U_AY&lt;/strong&gt;:  Measurement error affecting A and Y&lt;/td&gt;
      &lt;td&gt;An example of &lt;em&gt;true treatment&lt;/em&gt; affecting the &lt;em&gt;measurement error of the outcome&lt;/em&gt; could also arise in the setting of drug use and liver toxicity. &lt;br /&gt;&lt;br /&gt; For example, if a doctor finds out a patient has a drug problem, he may start monitoring the patients liver more frequently, and become more likely to catch aberrant liver lab values and record them in the EHR. &lt;br /&gt;&lt;br /&gt;  Figure 9.5 is an example of &lt;strong&gt;independent differential measurement error&lt;/strong&gt;. &lt;br /&gt;&lt;br /&gt; Adding dependent errors such as a faulty interview makes Figure 9.7 an example of &lt;strong&gt;dependent differential error&lt;/strong&gt;.&lt;/td&gt;
      &lt;td&gt;I.113&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/9_8.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/7_5.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Drug use  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Liver toxicity &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: History of hepatitis  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L*&lt;/strong&gt;: Measured history of hepatitis&lt;/td&gt;
      &lt;td&gt;This example demonstrates &lt;strong&gt;mismeasured confounders&lt;/strong&gt;. &lt;br /&gt;&lt;br /&gt; Controlling for \(L\) in Figure 9.8 would be sufficient to allow for causal inference. However, if \(L\) is imperfectly measured – say, because it was retrospectively recorded from memory – then the standardized or IP-weighted risk ratio based on \(L^{*}\) will generally differ from the true causal risk ratio.  &lt;br /&gt;&lt;br /&gt; A cool observation is that since noisy measurement of confounding can be thought of as unmeasured confounding, Figure 9.9 is actually equivalent to Figure 7.5:  \(L^{*}\) is essentially a &lt;em&gt;surrogate confounder&lt;/em&gt; (like Figure 7.5’s \(L\)) for an unmeasured actual confounder (Figure 7.5’s \(U\) playing the role of Figure 9.9’s \(L\)). Hence, controlling for \(L^{*}\) will be better than nothing but still flawed.&lt;/td&gt;
      &lt;td&gt;I.114&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/9_9.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Aspirin &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Stroke &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: Heart Disease  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: Atherosclerosis (unmeasured) &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L*&lt;/strong&gt;: Measured history of heart disease&lt;/td&gt;
      &lt;td&gt;Figure 9.9 is the same idea as Figure 9.8:  Even though controlling for \(L\) &lt;em&gt;would&lt;/em&gt; be sufficient, a mismatched \(L^{*}\) is insufficient to block the backdoor path in general. &lt;br /&gt;&lt;br /&gt; Another note here is that &lt;strong&gt;mismeasurement of confounders can result in apparent effect modification&lt;/strong&gt;. For example, if all participants who reported a history of heart disease (\(L^{*}=1\)) and half the participants who reported no such history (\(L^{*}=0\)) actually had heart disease, then stratifying on (\(L^{*}=1\)) would eliminate all confounding in that stratum, but statifying on (\(L^{*}=0\)) would fail to do so. Thus one could detect a spurious assocation in (\(L^{*}=0\)) but not in (\(L^{*}=1\)) and falsely conclude that \(L^{*}\) is an effect modifier. (See discussion on I.115.)&lt;/td&gt;
      &lt;td&gt;I.114&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/9_10.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Folic Acid supplements  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Cardiac Malformation &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;C&lt;/strong&gt;: Death before birth  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;C*&lt;/strong&gt;: Death records&lt;/td&gt;
      &lt;td&gt;&lt;strong&gt;Conditioning on a mismeasured collider induces a selection bias&lt;/strong&gt;, because \(C^{*}\) is a common effect of treatment \(A\) and outcome \(Y\).&lt;/td&gt;
      &lt;td&gt;I.115&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/9_11.png&quot; width=&quot;175&quot; /&gt; &lt;br /&gt;&lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/9_12.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Z&lt;/strong&gt;: Assigned treatment  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A&lt;/strong&gt;: Heart Transplant  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: 5-year Mortality &lt;br /&gt;&lt;br /&gt; (Ignore &lt;strong&gt;U&lt;/strong&gt; here)&lt;/td&gt;
      &lt;td&gt;Figure 9.11 is an example of an &lt;strong&gt;intention-to-treat&lt;/strong&gt; RCT. &lt;br /&gt;&lt;br /&gt; ITT RCT’s can be almost thought of as an RCT with a potentially &lt;em&gt;misclassified treatment&lt;/em&gt;. However, unlike a misclassifed treatment, the treatment assignment \(Z\) has a causal effect on the outcome \(Y\), both &lt;br /&gt; (a) by influencing the actual treatment \(A\), and &lt;br /&gt;(b) by influencing study participants who know what \(Z\) is and change their behavior accordingly.&lt;br /&gt; Hence, the causal effect of \(Z\) on \(Y\) depends on the strength of the arrow \(Z \rightarrow Y\), the arrow \(Z \rightarrow A\), and the arrow \(A \rightarrow Y\).  &lt;br /&gt;&lt;br /&gt;  Double-blinding attempts to remove \(Z \rightarrow Y\) (Figure 9.12).&lt;/td&gt;
      &lt;td&gt;I.115&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/9_11.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Z&lt;/strong&gt;: Assigned treatment  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A&lt;/strong&gt;: Heart Transplant  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: 5-year Mortality &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: Illness Severity (unmeasured)&lt;/td&gt;
      &lt;td&gt;By including \(U\), we are considering the fact that in an IIT study, severe illness (or other variables) contribute to some patients to seek out different treatment than they’ve been assigned. &lt;br /&gt;&lt;br /&gt;  Note that there is a backdoor path \(A \leftarrow U \rightarrow Y\) and thus &lt;strong&gt;confounding for the effect of \(A\) on \(Y\)&lt;/strong&gt;, requiring adjustment. &lt;br /&gt;&lt;br /&gt; However, there is &lt;strong&gt;no confounding of \(Z\) and \(Y\)&lt;/strong&gt;, and thus no need for adjustment. &lt;br /&gt;&lt;br /&gt; This explains why the &lt;strong&gt;intention-to-treat effect&lt;/strong&gt; is often estimated in lieu of the &lt;strong&gt;per-protocol effect&lt;/strong&gt;.  &lt;br /&gt;&lt;br /&gt; Taken together, &lt;strong&gt;&lt;em&gt;per-protocol effect&lt;/em&gt; brings with it unmeasured confounding&lt;/strong&gt;, and &lt;strong&gt;&lt;em&gt;IIT&lt;/em&gt; brings risk of misclassification bias&lt;/strong&gt;. So one needs to trade these off when deciding which to use. (Full discussion below and on I.120)&lt;/td&gt;
      &lt;td&gt;I.115&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/9_13.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Z&lt;/strong&gt;: Assigned treatment  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A&lt;/strong&gt;: Heart Transplant  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: 5-year Mortality &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: Illness Severity (unmeasured) &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: Measured factors that mediate U&lt;/td&gt;
      &lt;td&gt;This example is of a &lt;strong&gt;as-treated analysis&lt;/strong&gt;, a type of per-protocol analysis &lt;br /&gt;&lt;br /&gt; &lt;em&gt;As-treated&lt;/em&gt; includes &lt;em&gt;all patients&lt;/em&gt; and compares those treated (\(A=1\)) vs not treated (\(A=0\)), independent of their assignment \(Z\).  &lt;br /&gt;&lt;br /&gt; As-treated analyses are &lt;em&gt;confounded&lt;/em&gt; by \(U\), and thus depend entirely on whether they can accurately adjust for measurable factors \(L\) to block the backdoor paths between \(A\) and \(Y\).&lt;/td&gt;
      &lt;td&gt;I.118&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/9_14.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Z&lt;/strong&gt;: Assigned treatment  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A&lt;/strong&gt;: Heart Transplant  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: 5-year Mortality &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U&lt;/strong&gt;: Illness Severity (unmeasured) &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;L&lt;/strong&gt;: Measured factors that mediate U &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;S&lt;/strong&gt;: Selection filter (A=Z)&lt;/td&gt;
      &lt;td&gt;This example is of a &lt;strong&gt;conventional per-protocol analysis&lt;/strong&gt;, a second method to measure per-protocol effect.  &lt;br /&gt;&lt;br /&gt;  Conventional per-protocol analyses limit the population to those who adhered to the study protocol, subsetting to those for whom \(A=Z\). &lt;br /&gt;&lt;br /&gt;  This method induces a &lt;em&gt;selection bias&lt;/em&gt; on \(A=Z\), and thus still requires adjustment on \(L\).&lt;/td&gt;
      &lt;td&gt;I.118&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&lt;strong&gt;Some additional (but structurally redundant) examples of measurement bias from chapter 9:&lt;/strong&gt;&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;DAG&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Example&lt;/th&gt;
      &lt;th&gt;Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/assets/hernan_dags/9_4.png&quot; width=&quot;175&quot; /&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;A&lt;/strong&gt;: Drug use &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;A*&lt;/strong&gt;: Recorded history of drug use  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y&lt;/strong&gt;: Liver toxicity &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Y*&lt;/strong&gt;: Liver lab values  &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U_A&lt;/strong&gt;: Measurement error for A &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;U_Y&lt;/strong&gt;: Measurement error for Y&lt;/td&gt;
      &lt;td&gt;&lt;strong&gt;Reverse causation bias&lt;/strong&gt; is another example of how the &lt;em&gt;true outcome&lt;/em&gt; can bias &lt;em&gt;treatment measurement error&lt;/em&gt;. &lt;br /&gt;&lt;br /&gt; In this example, liver toxicity worsens clearance of drugs from the body, which could affect blood levels of the drugs.&lt;/td&gt;
      &lt;td&gt;I.112&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

</description>
        <pubDate>Wed, 19 Jun 2019 07:50:00 -0400</pubDate>
        <link>http://localhost:4000/2019/06/19/Causal-Inference-Book-All-DAGs/</link>
        <guid isPermaLink="true">http://localhost:4000/2019/06/19/Causal-Inference-Book-All-DAGs/</guid>
        
        
      </item>
    
      <item>
        <title>Causal Inference Book Part I -- Glossary and Notes</title>
        <description>&lt;style type=&quot;text/css&quot; rel=&quot;stylesheet&quot;&gt;
p {
    width: 100%;
}

th, td, thead, table {
    border: 1px solid #999;
}

&lt;/style&gt;

&lt;p&gt;This page contains some notes from Miguel Hernan and Jamie Robin’s &lt;a href=&quot;https://www.hsph.harvard.edu/miguel-hernan/causal-inference-book/&quot;&gt;Causal Inference Book&lt;/a&gt;.  So far, I’ve only done Part I.&lt;/p&gt;

&lt;p&gt;This page only has key terms and concepts. On &lt;a href=&quot;https://sgfin.github.io/2019/06/19/Causal-Inference-Book-All-DAGs/&quot;&gt;this page&lt;/a&gt;, I’ve tried to systematically present all the DAGs in the same book.  I imagine that one will be more useful going forward, at least for me.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Table of Contents&lt;/strong&gt;:&lt;/p&gt;
&lt;ul id=&quot;markdown-toc&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;#a-few-common-variables&quot; id=&quot;markdown-toc-a-few-common-variables&quot;&gt;A few common variables&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#chapter-1-definition-of-causal-effect&quot; id=&quot;markdown-toc-chapter-1-definition-of-causal-effect&quot;&gt;Chapter 1: Definition of Causal Effect&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#chapter-2-randomized-experiments&quot; id=&quot;markdown-toc-chapter-2-randomized-experiments&quot;&gt;Chapter 2: Randomized Experiments&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#chapter-3-observational-studies&quot; id=&quot;markdown-toc-chapter-3-observational-studies&quot;&gt;Chapter 3: Observational Studies&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#chapter-4-effect-modification&quot; id=&quot;markdown-toc-chapter-4-effect-modification&quot;&gt;Chapter 4: Effect Modification&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#chapter-5-interaction&quot; id=&quot;markdown-toc-chapter-5-interaction&quot;&gt;Chapter 5: Interaction&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#chapter-6--causal-diagrams&quot; id=&quot;markdown-toc-chapter-6--causal-diagrams&quot;&gt;Chapter 6:  Causal Diagrams&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#chapter-7--confounding&quot; id=&quot;markdown-toc-chapter-7--confounding&quot;&gt;Chapter 7:  Confounding&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#chapter-8--selection-bias&quot; id=&quot;markdown-toc-chapter-8--selection-bias&quot;&gt;Chapter 8:  Selection Bias&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#chapter-9--measurement-bias&quot; id=&quot;markdown-toc-chapter-9--measurement-bias&quot;&gt;Chapter 9:  Measurement Bias&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#chapter-10--random-variability&quot; id=&quot;markdown-toc-chapter-10--random-variability&quot;&gt;Chapter 10:  Random Variability&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#chapter-11-why-model&quot; id=&quot;markdown-toc-chapter-11-why-model&quot;&gt;Chapter 11: Why Model?&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#chapter-12&quot; id=&quot;markdown-toc-chapter-12&quot;&gt;Chapter 12:&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;a-few-common-variables&quot;&gt;A few common variables&lt;/h3&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Variable&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Meaning&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;A&lt;/em&gt;, &lt;em&gt;E&lt;/em&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Treatment&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;Y&lt;/em&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Outcome&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;Y^(A=a)&lt;/em&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Counterfactual outcome under treatment with \(a\)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;Y^(a,e)&lt;/em&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Joint counterfactual outcome under treatment with \(a\) and \(e\)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;L&lt;/em&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Patient variable (often confounder)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;U&lt;/em&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Patient variable (often unmeasured or background variable)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;M&lt;/em&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Patient variable (often effect modifier)&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;chapter-1-definition-of-causal-effect&quot;&gt;Chapter 1: Definition of Causal Effect&lt;/h3&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Term&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Notation or Formula&lt;/th&gt;
      &lt;th&gt;Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Association&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Pr[Y=1|A=1] \(\neq\) Pr[Y=1|A=0]&lt;/td&gt;
      &lt;td&gt;&lt;em&gt;Example definitions of independence (lack of association)&lt;/em&gt;: &lt;br /&gt; Y \(\unicode{x2AEB}\) A &lt;br /&gt; or &lt;br /&gt; Pr[Y=1|A=1] - Pr[Y=1|A=0] = 0 &lt;br /&gt; or &lt;br /&gt; \(\frac{Pr[Y=1|A=1]}{Pr[Y=1|A=0]}\) = 1 &lt;br /&gt; or &lt;br /&gt; \(\frac{Pr[Y=1|A=1]/Pr[Y=0|A=1]}{Pr[Y=1|A=0]/Pr[Y=0|A=0]}\) = 1&lt;/td&gt;
      &lt;td&gt;I.10&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Causation and Causal Effects&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;Causation&lt;/em&gt;:&lt;br /&gt;Pr[Y^(a=1)=1] \(\neq\) Pr[Y^(a=0)=1] &lt;br /&gt;&lt;br /&gt; &lt;em&gt;Individual Causal Effects&lt;/em&gt;:&lt;br /&gt;  Y^(a=1) - Y^(a=0) &lt;br /&gt;&lt;br /&gt; &lt;em&gt;Population Average Causal Effects&lt;/em&gt;:&lt;br /&gt; E[Y^(a=1)] - E[Y^(a=0)] &lt;br /&gt;&lt;br /&gt; &lt;em&gt;where&lt;/em&gt; &lt;br /&gt;Y^(a=1) = Outcome for treatment w/ \(a=1\) &lt;br /&gt; Y^(a=0) = Outcome for treatment w/ \(a=0\)&lt;/td&gt;
      &lt;td&gt;&lt;em&gt;Sharp causal null hypothesis&lt;/em&gt;: &lt;br /&gt;Y^(a=1) = Y^(a=0) for all individuals in the population. &lt;br /&gt;&lt;br /&gt; &lt;em&gt;Null hypothesis of no average causal effect&lt;/em&gt;: &lt;br /&gt; E[Y^(a=1)] = E[Y^(a=0)] &lt;br /&gt;&lt;br /&gt; &lt;em&gt;Mathematical representations of causal null&lt;/em&gt;: &lt;br /&gt; Pr[Y^(a=1)=1] - Pr[Y^(a=0)=1] = 0 &lt;br /&gt; or &lt;br /&gt; \(\frac{Pr[Y^{a=1}=1]}{Pr[Y^{a=0}=1]} = 1\) &lt;br /&gt; or &lt;br /&gt; \(\frac{Pr[Y^{a=1}=1]/Pr[Y^{a=1}=0]}{Pr[Y^{a=0}=1]/Pr[Y^{a=1}=0]} = 1\)&lt;/td&gt;
      &lt;td&gt;I.7&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;chapter-2-randomized-experiments&quot;&gt;Chapter 2: Randomized Experiments&lt;/h3&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Term&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Marginally randomized experiment&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Single unconditional (marginal) randomization probability applied to assign treatments to all individuals in experiment. &lt;br /&gt;&lt;br /&gt; Produces exchangeability of treated and untreated. &lt;br /&gt;&lt;br /&gt; Values of counterfactual outcomes are &lt;strong&gt;missing completely at random (MCAR)&lt;/strong&gt;.&lt;/td&gt;
      &lt;td&gt;I.18&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Conditionally randomized experiment&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Randomized trial where study population is stratified by some variable \(L\), with different treatment probabilities for each stratum. &lt;br /&gt;&lt;br /&gt;  Needn’t produce &lt;em&gt;marginal exchangeability&lt;/em&gt;, but produces &lt;em&gt;conditional exchangeability&lt;/em&gt;. &lt;br /&gt;&lt;br /&gt; Values of counterfactuals are &lt;em&gt;not&lt;/em&gt; MCAR, but are &lt;strong&gt;missing at random (MAR)&lt;/strong&gt; conditional on \(L\).&lt;/td&gt;
      &lt;td&gt;I.18&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Standardization&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Calculate the &lt;em&gt;marginal&lt;/em&gt; counterfactual risk from a &lt;em&gt;conditionally randomized experiment&lt;/em&gt; by taking a weighted average over the stratum-specific risks.  &lt;br /&gt;&lt;br /&gt;  Standardized mean:  &lt;br /&gt;&lt;br /&gt;  \(\sum_l E[Y|L=l,A=a] \times Pr[L=l]\) &lt;br /&gt;&lt;br /&gt;  Causal risk ratio can be computed via standardization as follows:  &lt;br /&gt;&lt;br /&gt;  \(\frac{Pr[Y^{a=1}=1]}{Pr[Y^{a=0}=1]} = \frac{\sum_l E[Y=1|L=l,A=1]\times Pr[L=l]}{\sum_l E[Y=1|L=l,A=1]\times Pr[L=l]}\)&lt;/td&gt;
      &lt;td&gt;I.19&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Inverse probability weighting&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Given a conditionally randomized study population: &lt;br /&gt;&lt;img src=&quot;/assets/hernan_dags/2_1.png&quot; width=&quot;300&quot; /&gt; &lt;br /&gt; We can invoke an assumption of conditional exchangeability given \(L\) to simulate the counterfactual in which everyone had received (or not received) the treatment:  &lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/2_2.png&quot; width=&quot;300&quot; /&gt; &lt;br /&gt;. The causal effect ratio can then be directly calculated by comparing &lt;br /&gt; \(Pr[Y^{a=1}=1]/Pr[Y^{a=0}=1]\) (in this example, it’s \(\frac{10/20}{10/20}=1\).) &lt;br /&gt;&lt;br /&gt; By the same token, you can effectively double your population and create a hypothetical &lt;em&gt;pseudo-population&lt;/em&gt; in which everyone had received both treatments: &lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/2_3.png&quot; width=&quot;300&quot; /&gt; &lt;br /&gt;&lt;br /&gt; This process amounts to weighting each individual in the population by the inverse of the conditional probability of receiving the treatment she received (see formula on right above). Hence the name &lt;em&gt;inverse probability (IP) weighting&lt;/em&gt;.&lt;/td&gt;
      &lt;td&gt;I.20&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;chapter-3-observational-studies&quot;&gt;Chapter 3: Observational Studies&lt;/h3&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Term&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Notation or Formula&lt;/th&gt;
      &lt;th&gt;English Definition&lt;/th&gt;
      &lt;th&gt;Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Identifiability conditions&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;See below.&lt;/td&gt;
      &lt;td&gt;Sufficient conditions for conceptualizing an observational study as a randomized experiment. &lt;br /&gt;&lt;br /&gt; Consist of: &lt;br /&gt;  1. Consistency &lt;br /&gt; 2. Exchangeability, and &lt;br /&gt; 3. Positivity.&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;I.25&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Consistency&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;If \(A_i\) = \(a\), then \(Y_{i}^{a}=Y^{A_i}\) = \(Y_i\)&lt;/td&gt;
      &lt;td&gt;“The values of treatment under comparison correspond to well-defined interventions that, in turn, correspond to the versions of treatment in the data.” &lt;br /&gt;&lt;br /&gt; Has two main components: &lt;br /&gt; 1. Precise specification of counterfactual outcomes Y^a, and &lt;br /&gt; 2. Linkage of counterfactual outcomes to observed outcomes.&lt;/td&gt;
      &lt;td&gt;Violated in an ill-defined intervention. &lt;br /&gt;&lt;br /&gt; Examples: &lt;br /&gt; - Study looks at “heart transplant” but doesn’t look at protocols (e.g. which immunosuppresant is used). If effect varies between versions of treatment and protocols not equally distributed, could cause problems. &lt;br /&gt; - Study wants to look at “obesity”, but “non-obesity” lumps together non-obesity from exercise vs cachexia vs genes vs diet. Need to subset population or make assumption that specific source of non-obesity doesn’t impact outcome. (Assumption called &lt;em&gt;treatment-variation irrelevance&lt;/em&gt; assumption.) &lt;br /&gt;&lt;br /&gt; Not a testable assumption, relies on domain expertise.&lt;/td&gt;
      &lt;td&gt;I.31&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Exchangeability&lt;/strong&gt; (aka exogeneity)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Y^a \(\unicode{x2AEB}\) A for all \(a\) &lt;br /&gt;&lt;br /&gt; or &lt;br /&gt;&lt;br /&gt; Pr[Y^a=1 | A=1] = Pr[Y^a=1 | A=0] = Pr[Y^a=1]&lt;/td&gt;
      &lt;td&gt;“The treated, had they remained untreated, would have experienced the same average outcome as the untreated did, and vice versa.” &lt;br /&gt;&lt;br /&gt; Essentially, this is the assumption of no unmeasured confounding.&lt;/td&gt;
      &lt;td&gt;Beware formula: Not the same as Y \(\unicode{x2AEB}\) A, which would mean treatment has no effect on outcome.&lt;/td&gt;
      &lt;td&gt;I.27&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Conditional exchangeability&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Y^a \(\unicode{x2AEB}\) A | L for all a &lt;br /&gt;&lt;br /&gt; or &lt;br /&gt;&lt;br /&gt; Pr[Y^a=1 | A=1, L=1] = Pr[Y^a=1 | A=0, L=1] = Pr[Y^a=1] | L=1&lt;/td&gt;
      &lt;td&gt;“The conditional probability of receiving every value of treatment is randomized or depends only on measured covariates”&lt;/td&gt;
      &lt;td&gt;Think conditional RCT where assigment depends only on \(L\). &lt;br /&gt;&lt;br /&gt; In observational studies, this is an untestable assumption, thus relies on domain expertise.&lt;/td&gt;
      &lt;td&gt;I.27&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Positivity&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Pr[A=a | L=\(l\) ] &amp;gt; 0 for all values \(l\) with Pr[L=\(l\)] \(\neq\) 0 in the population of interest&lt;/td&gt;
      &lt;td&gt;“The conditional probability of receiving every value of treatment is greater than zero, i.e. positive.”&lt;/td&gt;
      &lt;td&gt;Aka “Experimental treatment assumption” &lt;br /&gt;&lt;br /&gt; Example of positivity not holding: doctors always give heart transplants to patients in critical condition, eliminitating positivity from that stratum of an observational study. &lt;br /&gt;&lt;br /&gt; Unlike exchangeability, positivity, &lt;em&gt;can&lt;/em&gt; be empricially verified.&lt;/td&gt;
      &lt;td&gt;I.30&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;chapter-4-effect-modification&quot;&gt;Chapter 4: Effect Modification&lt;/h3&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Term&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Notation or Formula&lt;/th&gt;
      &lt;th&gt;English Definition&lt;/th&gt;
      &lt;th&gt;Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Effect modification&lt;/strong&gt; &lt;br /&gt; aka effect-measure modification&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;Additive effect modification&lt;/em&gt;: &lt;br /&gt; E[Y^(a=1)-Y^(a=0) | M = 1] \(\neq\) E[Y^(a=1)-Y^(a=0) | M = 0] &lt;br /&gt;&lt;br /&gt; &lt;em&gt;Multiplicative effect modification&lt;/em&gt;: &lt;br /&gt;  \(\frac{E[Y^{a=1} | M = 1]}{E[Y^{a=0} | M = 1]}\) \(\neq\) \(\frac{E[Y^{a=1}| M = 0]}{E[Y^{a=0}| M = 0]}\)&lt;/td&gt;
      &lt;td&gt;\(M\) is a modifier of the effect of \(A\) on \(Y\) when the average causal effect of \(A\) on \(Y\) varies across levels of \(M\).&lt;/td&gt;
      &lt;td&gt;The &lt;em&gt;null hypothesis of no average causal effect&lt;/em&gt; does &lt;em&gt;not&lt;/em&gt; necessarily imply the absence of effect modification (e.g. equal and oppositive effect modifications in men and women could cancel at the population level), but the &lt;em&gt;sharp null hypothesis of no causal effect&lt;/em&gt; does imply no effect modicifaction. &lt;br /&gt;&lt;br /&gt;  We only count variables &lt;em&gt;unaffected by treatment&lt;/em&gt; as effect modifiers. Similar variables that are effected by treatment are termed &lt;strong&gt;mediators&lt;/strong&gt;.&lt;/td&gt;
      &lt;td&gt;I.41&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Qualitative effect modification&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td&gt;Average causal effects in different subsets of the population go in opposite directions.&lt;/td&gt;
      &lt;td&gt;In presence of qualitative effect modification, additive effect modification implies multiplicative effect modification, and vice versa.  In absence of qualitative effect modification, it’s possible to have only additive or only multiplicative effect modification. &lt;br /&gt;&lt;br /&gt; Effect modifiers are not necessarily assumed to play a causal role. To make this explicit, sometimes the terms &lt;em&gt;surrogate effect modifier&lt;/em&gt; vs &lt;em&gt;causal effect modifier&lt;/em&gt; are used, or you can play it even safer and refer to “effect heterogeneity across strata of \(M\).” &lt;br /&gt;&lt;br /&gt; Effect modification is helpful, among other things, for (i) assessing transportability to new populations where \(M\) may have different prevalences, (ii) choosing subpopulations that may most benefit from treatment, and (iii) identifying mechanisms leading to outcome if modifiers are mechanistically meaningful (e.g. circumscision for HIV transmission).&lt;/td&gt;
      &lt;td&gt;I.42&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Stratification&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;Statified causal risk differences&lt;/em&gt;: &lt;br /&gt; E[Y^(a=1) | M = 1] - &lt;br /&gt; E[Y^(a=0) | M = 1] &lt;br /&gt;and&lt;br /&gt; E[Y^(a=1) | M = 0] - &lt;br /&gt; E[Y^(a=0) | M = 0]&lt;/td&gt;
      &lt;td&gt;To &lt;em&gt;identify&lt;/em&gt; effect modification by variable \(M\), separately compute the causal effect of \(A\) on \(Y\) for each statum of the variable \(M\).&lt;/td&gt;
      &lt;td&gt;If study design assumes conditional rather than marginal exchangeability, analysis to estimate effect modification must account for all other variables \(L\) required to give exchangeability. This could involve standardization (IP weighting, etc.) by \(L\) within each stratum \(M\), or just using finer-grained stratification over all pairwise combinations of \(M\) and \(L\) (see page I.49). &lt;br /&gt;&lt;br /&gt; By the same token, stratification can be an alternative to standardization techinques such as IP weighting in analysis of any conditional randomized experiment : instead of estimating an average causal effect over the population while standardizing for \(L\), just stratify on \(L\) and report separate causal effect estimates for each stratum.&lt;/td&gt;
      &lt;td&gt;I.43-49&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Collapsibility&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td&gt;A characteristic of a population &lt;em&gt;effect measure&lt;/em&gt;. Means that the effect measure can be expressed as a weighted average of stratum-specific measures.&lt;/td&gt;
      &lt;td&gt;Examples of collapsible effect measures: risk ratio and risk difference &lt;br /&gt;&lt;br /&gt; Example of non-collapsible effect measure: odds ratio. &lt;br /&gt;&lt;br /&gt; Noncollapsibility can produce counter-intuitive findings like a causal odds ratio that’s smaller in the average population than in any stratum of the population.&lt;/td&gt;
      &lt;td&gt;I.53&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Matching&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td&gt;Construct a subset of the population in which all variables \(L\) have the same distribution in both the treated and the untreated.&lt;/td&gt;
      &lt;td&gt;Under assumption of conditional exchangeability given \(L\) in the source population, a matched population will have unconditional exchangeability. &lt;br /&gt;&lt;br /&gt;  Usually, constructed by including all of the smaller group (e.g. the treated) and selecting one member of the larger group (e.g. the untreated) with matching \(L\) for each member in the smaller group. Often requires approximate matching.&lt;/td&gt;
      &lt;td&gt;I.49&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Interference&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td&gt;Treatment of one individual effects treatment status of other individuals in the population.&lt;/td&gt;
      &lt;td&gt;Example: A socially active individual convinces friends to join him while exercising.&lt;/td&gt;
      &lt;td&gt;I.48&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Transportability&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td&gt;Ability to use causal effect estimation from one population in order to inform decisions in another (“target”) population.  &lt;br /&gt;&lt;br /&gt;&lt;/td&gt;
      &lt;td&gt;Requires that the target population is characterized by comparable patterns of: &lt;br /&gt; - Effect modification &lt;br /&gt; - Interference, and &lt;br /&gt; - Versions of treatment&lt;/td&gt;
      &lt;td&gt;I.48&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;chapter-5-interaction&quot;&gt;Chapter 5: Interaction&lt;/h3&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Term&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Notation or Formula&lt;/th&gt;
      &lt;th&gt;English Definition&lt;/th&gt;
      &lt;th&gt;Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Joint counterfactual&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Y^(a,e)&lt;/td&gt;
      &lt;td&gt;Counterfactual outcome that would have been observed if we had intervented to set the individual’s values of \(A\) (treatment component 1) to \(a\) and \(E\) (treatment component 2) to \(e\).&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;I.55&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Interaction&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;Interaction on the additive scale&lt;/em&gt;: &lt;br /&gt; Pr[Y^(a=1,e=1)=1] - Pr[Y^(a=0,e=1)=1] \(\neq\) Pr[Y^(a=1,e=0)=1] - Pr[Y^(a=0,e=0)=1] &lt;br /&gt; &lt;br /&gt; or &lt;br /&gt; &lt;br /&gt; Pr[Y^(a=1) = 1 | E=1 ] - Pr[Y^(a=0) = 1 | E=1 ] \(\neq\) Pr[Y^(a=1) = 1 | E=0 ] - Pr[Y^(a=0) = 1 | E=0]&lt;/td&gt;
      &lt;td&gt;The causal effect of \(A\) on \(Y\) after a joint intervention that set \(E\) to 1 differs from the causal effect of \(A\) on \(Y\) after a joint intervention that set \(E\) to 0. (Definition also holds if you swap \(A\) and \(E\).)&lt;/td&gt;
      &lt;td&gt;Different from effect modification because an effect modifier \(M\) is not considered a treatment or otherwise a variable on which we can intervene.  In interaction, interventions \(A\) and \(E\) have equal status. &lt;br /&gt;&lt;br /&gt; Note from definition 2 on the left, however, that the mathematical definitions of effect modification and interaction line up. This means that if you &lt;em&gt;randomize&lt;/em&gt; an interactor, it becomes equivalent to an effect modifier. &lt;br /&gt;&lt;br /&gt; Inference over joint counterfactuals require that the identifying conditions of exchangeability, positivity, and consistency hold for &lt;em&gt;both&lt;/em&gt; treatments.&lt;/td&gt;
      &lt;td&gt;I.55&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Counterfactual response type&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td&gt;A characteristic of an &lt;em&gt;individual&lt;/em&gt; that refers to how she will respond to a treatment.&lt;/td&gt;
      &lt;td&gt;For example, an individual may have the same counterfactual outcome regardless of treatment, be helped by the treatment, or be hurt by the treatment. &lt;br /&gt;&lt;br /&gt;  The presence of an interaction between \(A\) and \(E\) implies that some individuals exist such that their counterfactual outcomes under \(A=a\) cannot be determined without knowledge of \(E\).&lt;/td&gt;
      &lt;td&gt;I.58&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Sufficient-component causes&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td&gt;A set of variables that are sufficient to determine the outcome for a specific individual.&lt;/td&gt;
      &lt;td&gt;The minimal set of sufficient causes can be different for distinct ndividuals in the same study. For example, a patient with background factor \(U_1\) might have the same outcome regardless of treatment, whereas another patient’s outcome might be driven by both a treatment \(A\) and interactor \(E\). &lt;br /&gt;&lt;br /&gt; Minimal sufficient-component causes are sometimes visualized with pie charts. &lt;br /&gt;&lt;br /&gt; &lt;em&gt;Contrast between counterfactual outcomes framework and sufficient-component-cause framework:&lt;/em&gt; &lt;br /&gt; &lt;em&gt;Sufficient outcomes framework&lt;/em&gt; focuses on questions like: “given a particular effect, what are the various events which might have been its cause?” and &lt;em&gt;counterfactual outcomes framework&lt;/em&gt; focuses on questions like: “what would have occurred if a particular factor were intervened upon and set to a different level than it was?”.  Sufficient-component-causes requires more detailed mechanistic knoweldge and is generally more a pedagological tool than a data analysis tool.&lt;/td&gt;
      &lt;td&gt;I.61&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Sufficient cause interaction&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td&gt;A sufficient cause interaction between \(A\) and \(E\) exists in a population if \(A\) and \(E\) occur together in a sufficient cause.&lt;/td&gt;
      &lt;td&gt;Can be &lt;em&gt;synergistic&lt;/em&gt; (A = 1 and E = 1 present in sufficient cause)  or &lt;em&gt;antagonistic&lt;/em&gt; (e.g. A = 1 and E = 0 is present in sufficient cause) .&lt;/td&gt;
      &lt;td&gt;I.64&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;chapter-6--causal-diagrams&quot;&gt;Chapter 6:  Causal Diagrams&lt;/h3&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Term&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Definition&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Path&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;A path on a DAG is a sequence of edges connecting two variables on the graph, with each edge occurring only once.&lt;/td&gt;
      &lt;td&gt;I.76&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Collider&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;A collider is a variable in which two arrowheads on a path collide.  &lt;br /&gt; &lt;br /&gt; For example, \(Y\) is a collider in the path \(A \rightarrow Y \leftarrow L\) in the following DAG: &lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/6_1.png&quot; width=&quot;150&quot; /&gt;&lt;/td&gt;
      &lt;td&gt;I.76&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Blocked path&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;A path on a DAG is blocked if and only if: &lt;br /&gt;1. it contains a noncollider that has been conditioned, or &lt;br /&gt; 2. it contains a collider that has not been conditioned on and has no descendants that have been conditioned on.&lt;/td&gt;
      &lt;td&gt;I.76&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;d-separation&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Two variables are d-separated if all paths between them are blocked&lt;/td&gt;
      &lt;td&gt;I.76&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;d-connectedness&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Two variables are d-connected if they are not d-separated&lt;/td&gt;
      &lt;td&gt;I.76&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Faithfulness&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Faithulness is when all non-null associations implied by a causal diagram exist in the true causal DAG. Unfaithfulness can arise, for example, in certain settings of effect modification, by design as in matching experiments, or in the presence of certain deterministic relations between variables in the graph.&lt;/td&gt;
      &lt;td&gt;I.77&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Positivity&lt;/strong&gt; (on graphs)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;The arrows from the nodes \(L\) to the treatment node \(A\) are not deterministic. (Concerned with nodes &lt;em&gt;into&lt;/em&gt; treatment nodes)&lt;/td&gt;
      &lt;td&gt;I.75&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Consistency&lt;/strong&gt; (on graphs)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Well-defined intervention criteria:  the arrow from treatment \(A\) to outcome \(Y\) corresponds to a potentially hypothetical but relatively unambiguous intervention. (Concerned with nodes &lt;em&gt;leaving&lt;/em&gt; the treatment nodes.)&lt;/td&gt;
      &lt;td&gt;I.75&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Systematic bias&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;The data are insuffient to identify the causal effect even withan infinite sample size. This occurs when any sturctural association between treatment and outcome does not arise from the causal effect of treatment on outcome in the population of interest.&lt;/td&gt;
      &lt;td&gt;I.79&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Conditional bias&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;em&gt;For average causal effects within levels of \(L\)&lt;/em&gt;: &lt;br /&gt; Conditional bias exists whenever the effect measure (e.g. causal risk ratio) and the corresponding association measure (e.g. associational risk ratio) are not equal.&lt;br /&gt; Mathematically, this is when: &lt;br /&gt; \(Pr[Y^{a=1} | L = l] - Pr[Y^{a=0} | L = l]\) differs from \(Pr[Y|L=l, A = 1] - Pr[Y|L-l, A=0]\) for at least one stratum \(l\).&lt;br /&gt;&lt;br /&gt; &lt;em&gt;For average causal effects in the entire population&lt;/em&gt;: &lt;br /&gt; Conditional bias exists whenever &lt;br /&gt; \(Pr[Y^{a=1} ] - Pr[Y^{a=0}]\) \(\neq\) \(Pr[Y = 1| A = 1] - Pr[Y = 1 | A = 0]\).&lt;/td&gt;
      &lt;td&gt;I.79&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Bias under the null&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;When the null hypothesis of no causal effect of treatment on the outcome holds, but treatment and outcome are associated in the data. &lt;br /&gt;&lt;br /&gt;Can be from either confounding, selection bias, or measurement error..&lt;/td&gt;
      &lt;td&gt;I.79&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Confounding&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;The treatment and outcome share a common cause.&lt;/td&gt;
      &lt;td&gt;I.79&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Selection bias&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Conditioning on common effects.&lt;/td&gt;
      &lt;td&gt;I.79&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Surrogate effect modifier&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;An effect modifier that does not dirrectly influence that outcome but might stand in for a &lt;strong&gt;causal effect modifier&lt;/strong&gt; that does.&lt;/td&gt;
      &lt;td&gt;I.81&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;chapter-7--confounding&quot;&gt;Chapter 7:  Confounding&lt;/h3&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Concept&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Definition or Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Backdoor Path&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;A noncausal path between treatment and outcome that remains even if all arrows pointing from treatment to other variables (the descendants of treatment) are removed. That is, the path has an arrow pointing into treatment.&lt;/td&gt;
      &lt;td&gt;I.83&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Confounding by indication&lt;/strong&gt; (or &lt;strong&gt;Channeling&lt;/strong&gt;)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;A drug is more likely to be prescribed to individuals with a certain condition that is both an indication for treatment and a risk factor for the disease.&lt;/td&gt;
      &lt;td&gt;I.84&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Channeling&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Confounding by indication in which patient-specific risk factors \(L\) encourage doctors to use certain drug \(A\) within a class of drugs.&lt;/td&gt;
      &lt;td&gt;I.84&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Backdoor Criterion&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Assuming consistency and positivity, the &lt;em&gt;backdoor criterion&lt;/em&gt; sets the circumstances under which (a) confounding can be eliminated from the analysis, and (b) a causal effect of treatment on outcome can be identified.  &lt;br /&gt;&lt;br /&gt;  Criterion is that identifiability exists if all backdoor paths can be blocked by conditioning on variables that are not affected by the treatment.  &lt;br /&gt;&lt;br /&gt; The two settings in which this is possible are: &lt;br /&gt;&lt;br /&gt;  1. No common causes of treatment and outcome. &lt;br /&gt;&lt;br /&gt; 2. Common causes but enough measured variables to block all colliders.&lt;/td&gt;
      &lt;td&gt;I.85&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Single-world intervention graphs (SWIG)&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;A causal diagram that unifies counterfactual and graphical approaches by explicitly including the counterfactual variables on the graph. &lt;br /&gt;&lt;br /&gt;  Depicts variables and causal relations that would be observed in a hypothetical world in which all individuals received treatment level \(a\). In other words, is a &lt;em&gt;graph&lt;/em&gt; that represents the counterfactual &lt;em&gt;world&lt;/em&gt; created by a &lt;em&gt;single intervention&lt;/em&gt;, unlike normal DAGs that represent variables and causal relations from the actual world.&lt;/td&gt;
      &lt;td&gt;I.91&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Two categories of methods for confounding adjustment&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;G-Methods&lt;/strong&gt;:&lt;br /&gt; G-formula, IP weighting, G-estimation. Exploit conditional exchangeability in subsets defined by \(L\) to estimate the causal effect of \(A\) on \(Y\) in the entire population or in any subset of the population. &lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Stratification-based Methods&lt;/strong&gt;: Stratification, Restriction, Matching.  Methods that exploit conditional exchangeability in subsets defined by \(L\) to estimate the association between \(A\) and \(Y\) in those subsets only.&lt;/td&gt;
      &lt;td&gt;I.93&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Difference-in-differences&lt;/strong&gt; and &lt;strong&gt;negative outcome controls&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;A technique to account for unmeasured confounders under specific conditions. &lt;br /&gt;&lt;br /&gt;  The idea is to measure a “negative outcome control”, which is the same as the main outcome but &lt;em&gt;right before treatment&lt;/em&gt;.  Then, instead of just reporting the effect of the treatment on the &lt;em&gt;outcome&lt;/em&gt; (treatment effect + confounding effect), you substract out the effect of treatment on the &lt;em&gt;negative outcome&lt;/em&gt; (only confounding effect). What’s left is is the &lt;em&gt;difference-in-differences&lt;/em&gt;. &lt;br /&gt;&lt;br /&gt; This requires the assumption of &lt;em&gt;additive equi-confounding&lt;/em&gt;: &lt;br /&gt; \(E[Y^{0}|A=1] - E[Y^{0}|A=0]\) = \(E[C|A=1] - E[C|A=0]\). &lt;br /&gt;&lt;br /&gt; Negative outcome controls are also sometimes used to try to &lt;em&gt;detect&lt;/em&gt; confounding. &lt;br /&gt;&lt;br /&gt; Note: The DAG demonstration (Figure 7.11) is really useful for this one.&lt;/td&gt;
      &lt;td&gt;I.95&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Frontdoor criterion&lt;/strong&gt; and &lt;strong&gt;Frontdoor adjustment&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;A two-step standardization process to estimate a causal effect in the presence of a confounded causal effect &lt;em&gt;that is mediated by an unconfounded mediator variable&lt;/em&gt;. &lt;br /&gt;&lt;br /&gt;  Given a DAG such as: &lt;br /&gt; &lt;img src=&quot;/assets/hernan_dags/7_12.png&quot; width=&quot;150&quot; /&gt; &lt;br /&gt; \(Pr[Y^{a}=1] = \sum_{m}Pr[M^{a}=m]Pr[Y^{m}=1]\). &lt;br /&gt;&lt;br /&gt;  Thus, standardization can be applied in two steps: &lt;br /&gt;&lt;br /&gt; 1. Compute \(Pr[M^{a}=m]\) as \(Pr[M=m| A=a]\), and &lt;br /&gt;&lt;br /&gt; 2. Compute \(Pr[Y^{a}=1]\) as \(\sum_{a&apos;}Pr[Y=1|M=m,A=a&apos;]Pr[A=a&apos;]\) &lt;br /&gt;&lt;br /&gt; These are then combined with the formula &lt;br /&gt;  \(\sum_{m}Pr[M=m| A=a]\sum_{a&apos;}Pr[Y=1|M=m,A=a&apos;]Pr[A=a&apos;]\) &lt;br /&gt;&lt;br /&gt; The name &lt;em&gt;frontdoor adjustment&lt;/em&gt; comes because it relies on the path from \(A\) and \(Y\) moving through a descendent \(M\) of \(A\) that causes \(Y\).&lt;/td&gt;
      &lt;td&gt;I.96&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;chapter-8--selection-bias&quot;&gt;Chapter 8:  Selection Bias&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;:  I have almost no notes in here, because the DAG section contains pretty much all the content I’m interested in noting here.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Concept&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Definition or Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Competing Event&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;An event that prevents the outcome of interest from happening. For example, death is a competing event, because once it occurs, no other outcome is possible.&lt;/td&gt;
      &lt;td&gt;I.108&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Multiplicative survival model&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;A multiplicative survival model is of the form: &lt;br /&gt;&lt;br /&gt; \(Pr[Y=0|E=e,A=a]=g(e)h(a)\) &lt;br /&gt;&lt;br /&gt; . The data forllow such a model when there is no interaction between \(A\) and \(E\) on a multiplicative scale.  This allows, for example, \(A\) and \(E\) to be conditionally independent given \(Y=0\) but not conditionally dependent when \(Y=1\). See Technical Point 8.2 and the example in Figure 8.13.&lt;/td&gt;
      &lt;td&gt;I.109&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Healthy worker bias&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Example of selection bias where people are only included in the study if they are healthy enough, say, to come into work and be tested.&lt;/td&gt;
      &lt;td&gt;I.99&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Self-selection bias&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Example of selection bias where people volunteer for enrollment.&lt;/td&gt;
      &lt;td&gt;I.100&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;chapter-9--measurement-bias&quot;&gt;Chapter 9:  Measurement Bias&lt;/h3&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Concept&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Definition or Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Measurement bias&lt;/strong&gt; or &lt;strong&gt;Information bias&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Systematic difference in associational risk and causal risk that arises due to measurement error. Eliminates causal inference even under identifiability conditions of exchangeability, positivity, and consistency.&lt;/td&gt;
      &lt;td&gt;I.112&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;__ Independent measurement error __&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Independent measurement error takes place when the measurement error of the treatment (\(U_{A}\)) and the measurement error of the response (\(U_{Y}\)) are d-separated.  Dependent measurement error is when they are d-connected.&lt;/td&gt;
      &lt;td&gt;I.11&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;__ Nondifferential measurement error __&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Measurement error is &lt;em&gt;nondifferential&lt;/em&gt; with respect to the outcome if \(U_{A}\) and \(Y\) are d-separated.  Measurement error is nondifferential with respect to the treatment if \(U_{Y}\) and \(A\) are d-separated.&lt;/td&gt;
      &lt;td&gt;I.11&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Intention-to-treat effect&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;The causal effect of randomized treatment assigment \(Z\) in an intention-to-treat trial on the outcome \(Y\). Depends on the strength of the effect of assignment treatment on outcome (\(Z \rightarrow Y\)), the assignment treatment on actual treatment received (\(Z \rightarrow A\)), and the effect of the actual treatment received on outcome (\(A \rightarrow Y\)). In theory, this does not require adjustment for confounding, has null preservation, and is conservative. See below for comments on latter two.&lt;/td&gt;
      &lt;td&gt;I.116&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;The exclusion restriction&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;(The goal of double-blinding). The assumption that there is no direct arrow from assigned treatment \(Z\) to outcome \(Y\) in an intention-to-treat design.&lt;/td&gt;
      &lt;td&gt;I.117&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Null Preservation&lt;/strong&gt; in an IIT&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;If treatment \(A\) has a null effect on \(Y\), then assigned treatment \(Z\) also has a null effect on \(Y\).  Ensure, in theory, that a null effect will be declared when none exists. However, it requires that the exclusion restriction holds, which breaks down unless their is perfect double-blinding.&lt;/td&gt;
      &lt;td&gt;I.119&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Conservatism of the IIT vs Per-protocol&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;The IIT effect is supposed to be closer to the null than the value of the per-protocol effect, because imperfect adherence results in attenuation rather than exaggeration of effect. Thus IIT appears to be a lower bound for per-protocol effect (and is thus conservative). &lt;br /&gt;&lt;br /&gt; However, there are three issues with this: &lt;br /&gt; 1. Argument assumes monotonicity of effects (treatment same direction for all patients). If, say, there is inconsistent adherence and thus inconsistent effects, then this could become anti-conservative.  &lt;br /&gt; 2. Even given monotonicity, IIT would only be conservative compared to &lt;em&gt;placebos&lt;/em&gt;, not necessarily head-to-head trials, where adherence in the second drug might be different. &lt;br /&gt; 3. Even if IIT is conservative, this makes it dangerous when goal is evaluating safety, where you arguably want to be more &lt;em&gt;aggresive&lt;/em&gt; in finding signal.&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Per-protocol effect&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;The causal effect of randomized treatment that would have been observed if all individuals had adhered to their assigned treatment as specified in the protocol of the experiment.  &lt;em&gt;Requires adjustment for confounding&lt;/em&gt;.&lt;/td&gt;
      &lt;td&gt;I.116&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;As-treated analysis&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;An analysis to assess for per-protocol effect. Includes &lt;em&gt;all patients&lt;/em&gt; and compares those treated (\(A=1\)) vs not treated (\(A=0\)), independent of their assignment \(Z\). Confounded.&lt;/td&gt;
      &lt;td&gt;I.118&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Conventional per-protocol analysis&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;An analysis to assess for per-protocol effect. Limits the population to those who adhered to the study protocol, subsetting to those for whom \(A=Z\). Induces a &lt;em&gt;selection bias&lt;/em&gt; on \(A=Z\), and thus still requires adjustment on \(L\).&lt;/td&gt;
      &lt;td&gt;I.118&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Tradeoff between ITT and Per-protocol&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Summary: Estimating the per-protocol effect adds unmeasured confounding, which needs to be (imperfectly) adjusted for. Intention-to-treat adds a misclassification bias, and does not necessarily deliver on purported guarantees of conservatism. As such, there is a real tradeoff, here.&lt;/td&gt;
      &lt;td&gt;I.117-I.120&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;chapter-10--random-variability&quot;&gt;Chapter 10:  Random Variability&lt;/h3&gt;

&lt;p&gt;Sorry, I’m skipping this section, because the key terms are all stats concepts and its mostly a pump-up chapter for the rest of the book.&lt;/p&gt;

&lt;h3 id=&quot;chapter-11-why-model&quot;&gt;Chapter 11: Why Model?&lt;/h3&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Concept&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Definition or Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
      &lt;th&gt; &lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Saturated Models&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Models that do not impose restrctions on the data distribution. Generally, these are models whose number of parameters in a conditional mean model is equal to the number of means. For example, a linear model E[ y&lt;/td&gt;
      &lt;td&gt;x] ~ b0 + b1*x when the population is stratified into only two groups. These are &lt;em&gt;non-parametric models&lt;/em&gt;.&lt;/td&gt;
      &lt;td&gt;II.143&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Non-parametric estimator&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Estimators that produce estimates from the data without any a priori restrictions on the true function. When using the entire population rather than a sample, these yield the true value of the population parameter.&lt;/td&gt;
      &lt;td&gt;II.143&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;chapter-12&quot;&gt;Chapter 12:&lt;/h3&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Concept&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Definition or Notes&lt;/th&gt;
      &lt;th&gt;Page&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Stabilized Weights&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;Marginal Structure Model&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;To-do:
| Concept | Formula | Code | Notes |
| :———–: |:————-:|
| &lt;strong&gt;IP Weighting&lt;/strong&gt; |   |  |
| &lt;strong&gt;Standardized IP Weighting&lt;/strong&gt; |   |  |
| &lt;strong&gt;Marginal Structure model&lt;/strong&gt; |   |  |&lt;/p&gt;

&lt;p&gt;DONT MISS THE DOUBLY ROBUST ESTIMATOR in TECHNICAL POINT 13.2&lt;/p&gt;

</description>
        <pubDate>Wed, 19 Jun 2019 07:50:00 -0400</pubDate>
        <link>http://localhost:4000/2019/06/19/Causal-Inference-Book-Glossary-and-Notes/</link>
        <guid isPermaLink="true">http://localhost:4000/2019/06/19/Causal-Inference-Book-Glossary-and-Notes/</guid>
        
        
      </item>
    
      <item>
        <title>FAQ on Medical Adversarial Attacks Policy Paper</title>
        <description>&lt;ul id=&quot;markdown-toc&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;#whats-the-paper-and-why-this-faq&quot; id=&quot;markdown-toc-whats-the-paper-and-why-this-faq&quot;&gt;What’s the paper and why this FAQ?&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#do-you-think-adversarial-attacks-are-the-biggest-concern-in-using-machine-learning-in-healthcare-a-nowhere-close-then-why-write-the-paper&quot; id=&quot;markdown-toc-do-you-think-adversarial-attacks-are-the-biggest-concern-in-using-machine-learning-in-healthcare-a-nowhere-close-then-why-write-the-paper&quot;&gt;Do you think adversarial attacks are the biggest concern in using machine learning in healthcare? (A: Nowhere close!) Then why write the paper?&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#there-seems-to-have-been-something-of-a-pivot-between-the-preprint-and-the-policy-forum-discussion-with-the-latter-focusing-much-less-on-images--was-this-intentional&quot; id=&quot;markdown-toc-there-seems-to-have-been-something-of-a-pivot-between-the-preprint-and-the-policy-forum-discussion-with-the-latter-focusing-much-less-on-images--was-this-intentional&quot;&gt;There seems to have been something of a pivot between the preprint and the policy forum discussion, with the latter focusing much less on images.  Was this intentional?&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#in-the-paper-you-frame-existing-examples-like-upcoding-and-claims-craftsmanship-as-adversarial-attacks-or-at-least-as-their-precursors--is-that-fair&quot; id=&quot;markdown-toc-in-the-paper-you-frame-existing-examples-like-upcoding-and-claims-craftsmanship-as-adversarial-attacks-or-at-least-as-their-precursors--is-that-fair&quot;&gt;In the paper, you frame existing examples like upcoding and claims craftsmanship as adversarial attacks, or at least as their precursors.  Is that fair?&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#isnt-this-unrealistic--i-mean-would-there-ever-be-cases-when-someone-actually-uses-adversarial-examples&quot; id=&quot;markdown-toc-isnt-this-unrealistic--i-mean-would-there-ever-be-cases-when-someone-actually-uses-adversarial-examples&quot;&gt;Isn’t this unrealistic?  I mean, would there ever be cases when someone &lt;em&gt;actually&lt;/em&gt; uses adversarial examples?&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#adversarial-attacks-sounds-scary--do-you-think-people-will-use-these-as-tools-to-hurt-people-by-hacking-diagnostics-etc&quot; id=&quot;markdown-toc-adversarial-attacks-sounds-scary--do-you-think-people-will-use-these-as-tools-to-hurt-people-by-hacking-diagnostics-etc&quot;&gt;“Adversarial attacks” sounds scary.  Do you think people will use these as tools to hurt people by hacking diagnostics, etc?&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#are-you-hoping-to-stall-the-development-of-medical-ml-because-of-adversarial-attacks&quot; id=&quot;markdown-toc-are-you-hoping-to-stall-the-development-of-medical-ml-because-of-adversarial-attacks&quot;&gt;Are you hoping to stall the development of medical ML because of adversarial attacks?&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#small-note-on-the-figure&quot; id=&quot;markdown-toc-small-note-on-the-figure&quot;&gt;Small note on the figure&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;whats-the-paper-and-why-this-faq&quot;&gt;What’s the paper and why this FAQ?&lt;/h3&gt;

&lt;p&gt;Last spring, some colleages (chiefly Andy Beam) and I released a &lt;a href=&quot;https://arxiv.org/pdf/1804.05296.pdf&quot;&gt;preprint&lt;/a&gt; on adversarial attacks on medical computer visions systems. This manuscript was targeted at a technical audience. It was written with the goal of explaining why adversarial attacks researchers should consider healthcare applications among their threat models, as well as to provide a few technical examples as a proof of concept. I ended up getting a lot of great feedback/pushback via email and twitter, which I really appreciated and which informed an update of the preprint on arxiv.&lt;/p&gt;

&lt;p&gt;After the article was released, we were also put in touch with &lt;a href=&quot;https://hls.harvard.edu/faculty/directory/10992/Zittrain&quot;&gt;Jonathan Zittrain&lt;/a&gt; and John Bowers from Harvard Law School as well as &lt;a href=&quot;https://www.media.mit.edu/people/joi/overview/&quot;&gt;Joi Ito&lt;/a&gt; of the MIT Media Lab. These are incredibly thoughtful people with a lot of amazing experience. We decided to write a follow-up article targeted more at medical and policy folks, with the intention of examining precedence for adversarial attacks in the healthcare system as it exists today and initiating a conversation about what to do about them going forward. The result is being published today in Science, &lt;a href=&quot;http://science.sciencemag.org/content/363/6433/1287&quot;&gt;here&lt;/a&gt;. It’s been an absolute pleasure working with these guys.&lt;/p&gt;

&lt;p&gt;We really tried hard to be thoughtful and measured. Given the nature of the topic, however, I’ve been fretting a bit that the paper will be misconstrued/taken out of context. At a minimum, I anticipate getting a lot of the same questions I got the first time around on the preprint, and figured it’d be easier to write up answers to these in one place. The paper is short and non-technical enough that it doesn’t really need a blog post/explainer per se, so I opted to go with a “FAQ.” Hope it’s not too obnoxious.&lt;/p&gt;

&lt;h3 id=&quot;do-you-think-adversarial-attacks-are-the-biggest-concern-in-using-machine-learning-in-healthcare-a-nowhere-close-then-why-write-the-paper&quot;&gt;Do you think adversarial attacks are the biggest concern in using machine learning in healthcare? (A: Nowhere close!) Then why write the paper?&lt;/h3&gt;

&lt;p&gt;Adversarial attacks consitute just one small part of a large taxonomy of potential pitfalls of machine learning (both ML in general and medical ML in particular).&lt;/p&gt;

&lt;p&gt;When I think about points of failure of medical machine learning, I think first about things like: &lt;a href=&quot;https://arxiv.org/abs/1811.12583&quot;&gt;dataset shift&lt;/a&gt;, accidentally fitting &lt;a href=&quot;https://arxiv.org/abs/1811.03695&quot;&gt;confounders&lt;/a&gt; or healthcare &lt;a href=&quot;https://www.bmj.com/content/361/bmj.k1479&quot;&gt;dynamics&lt;/a&gt; instead of true signal, &lt;a href=&quot;http://papers.nips.cc/paper/7613-why-is-my-classifier-discriminatory.pdf&quot;&gt;discriminatory bias&lt;/a&gt;, &lt;a href=&quot;https://www.theatlantic.com/technology/archive/2018/09/the-new-apple-watchs-heart-monitoring-is-complicated/570115/&quot;&gt;overdiagnosis&lt;/a&gt;, or job displacement.  Especially given recent challenges in getting ML to &lt;a href=&quot;https://www.thelancet.com/action/showPdf?pii=S2589-5370%2819%2930037-9&quot;&gt;generalize to new populations&lt;/a&gt;, there are also uncomfortable questions to ask about when and how we can be sure we’re ready to deploy a ML algorithm in a new patient population.&lt;/p&gt;

&lt;p&gt;While all of these issues may have general implications for policy, the way I think about them most is in context of how they inform our evaluations of individual ML systems. Each of the above issues demands that specific questions be asked of the systems that we’re evaluating.  Questions like:  what population was this model fit on, and how does it compare to the population the system will be used in?  How could the data I’m feeding this algorithm have changed in the time since the model was developed?  Have we thought carefully about the workflow so these algorithms are getting applied to patients with the right priors and the healthcare providers know how to properly act upon positive tests when the time comes?&lt;/p&gt;

&lt;p&gt;Our main goal in this work was, in many ways, simply to point out that adversarial attacks at least deserve ackowledgement as one of these potential pitfalls. Questions this reality might prompt us to ask when evaluating a specific system include:  Is there a mismatch in incentives between the person developing/hosting the algorithm and the person sending data into that algorithm?  If so, are we prepared for the fact that those providing data to the algorithm might try to intentionally craft that data to achieve the results they want?  If we decide to try to use models more robust to adversarial attacks, to what extent are we comfortable trading off accuracy in order to do so?&lt;/p&gt;

&lt;p&gt;In many application settings, the answer to the incentives question may simply be “no.”  But I don’t think that’s necessarily the case for all possible applications of machine learning in healthcare.  To boot, we as authors have been slightly disconcerted by the fact that when speaking to high-level decision makers at hospitals, insurance companies, and elsewhere who are investing heavily in ML, they generally aren’t even aware of the existance of adversarial examples.  So it’s really that mismatch in awareness relative to other pitfalls of ML that prompted the paper, even if in the grand scheme of things adversarial attacks are just one piece of a very large pie.&lt;/p&gt;

&lt;p&gt;Finally – and perhaps most importantly – adversarial examples provide a proof-of-concept for a certain collection of issues with modern machine learning methods. More specificially, adversarial techniques help us assess the worst-case performance against new data distributions, and demonstrate that current models fail to encode key invariants in the classes that we trying to model. This has implications not just for the susceptibility of these algorithms to manipulation, but more fundamentally for our ability to trust these systems in &lt;em&gt;any&lt;/em&gt; safety-critical settings. To boot, it does so in a way that is very tangible for researchers who are trying to design better models that &lt;em&gt;can&lt;/em&gt; encode arbitrary invariants and whose behavior align exactly with how humans would want/expect them to behave. Alexander Madry calls this field of research “ML alignment,” which I think is a good phrase. (Addendum: Catherine Olsson has written &lt;a href=&quot;https://medium.com/@catherio/unsolved-research-problems-vs-real-world-threat-models-e270e256bc9e&quot;&gt;a great medium post&lt;/a&gt; that makes many of these same points more thoughtfully and with more nuance. I highly recommend it if you’re interested in this topic.)&lt;/p&gt;

&lt;h3 id=&quot;there-seems-to-have-been-something-of-a-pivot-between-the-preprint-and-the-policy-forum-discussion-with-the-latter-focusing-much-less-on-images--was-this-intentional&quot;&gt;There seems to have been something of a pivot between the preprint and the policy forum discussion, with the latter focusing much less on images.  Was this intentional?&lt;/h3&gt;

&lt;p&gt;Yes!  Our &lt;a href=&quot;https://arxiv.org/pdf/1804.05296.pdf&quot;&gt;preprint&lt;/a&gt; was geared toward a technical audience, and was largely motivated by a desire to get people who work on ML security/robustness research to start thinking about healthcare when considering attacks and defenses, rather than just things more native to the CS world like self-driving cars.  At the time, the bulk of high-profile work – both in adversarial attacks and in medical ML – had been done in the computer vision space, so we decided to focus on this for our initial deep dive and in building our three proofs of concept.&lt;/p&gt;

&lt;p&gt;As we thought a lot more deeply about the problem, however, we realized that we should probably expand our scope.  The bulk of ML happening &lt;em&gt;today&lt;/em&gt; in the healthcare industry isn’t in the form of diagnostics algorithms, but is being used internally at insurance companies to process claims directly for first-pass approvals/denials. And the best examples for existing adversarial attack-like behavior takes place in context of providers manipulating these claims. These provide a jumping off point to understand a spectrum of emerging motivations for adversarial behavior across all aspects of the healthcare system and across many different forms of ML. (See the next section on this as well.)&lt;/p&gt;

&lt;h3 id=&quot;in-the-paper-you-frame-existing-examples-like-upcoding-and-claims-craftsmanship-as-adversarial-attacks-or-at-least-as-their-precursors--is-that-fair&quot;&gt;In the paper, you frame existing examples like upcoding and claims craftsmanship as adversarial attacks, or at least as their precursors.  Is that fair?&lt;/h3&gt;

&lt;p&gt;I think so. The paper “adversarial classification” from KDD ‘04 even talks specifically about fraud detection along with spam and other applications of adversarial attacks.&lt;/p&gt;

&lt;p&gt;For a few years, the adversarial examples community focused really heavily on &lt;em&gt;human-imperceptible&lt;/em&gt; changes to &lt;em&gt;images,&lt;/em&gt; usually computed using &lt;em&gt;gradient&lt;/em&gt; tricks.  But more recently, I think the community has (appropriately) returned to defining adversarial attacks as any method employed to craft one’s data to influence the behavior of an ML algorithm that processes it.  As &lt;a href=&quot;https://arxiv.org/pdf/1807.06732.pdf&quot;&gt;Gilmer et al&lt;/a&gt; say, “what is important about an adversarial example is that an adversary supplied it, not that the example itself is somehow special.”  Such framings of the problem allow even for natural data identified through simple techniques like guess-and-check and grid search to be adversarial examples, so long as they are used with adversarial intent, and indeed some recent papers in major CS venues have employed such techinques.&lt;/p&gt;

&lt;p&gt;At present, the adversarial behavior in context of things like medical claims appears to be limited to providers stumbling upon or essentially guess-and-checking combinations of codes that will provide higher rates of reimbursement/approval without commiting overt fraud.  (Some &lt;a href=&quot;https://jamanetwork.com/journals/jama/fullarticle/192577&quot;&gt;studies like this one&lt;/a&gt; have suggested a hefty cohort of physicians think that manipulating claims is even &lt;em&gt;necessary&lt;/em&gt; in order to provide high-quality care.) In light of the last paragraph, I think you can make a reasonable case that this behavior itselft already constitues an adversarial attack on the ML systems used by insurance companies, though admittedly a fairly boring one from a technical point of view. But it may be getting more interesting. Hospitals invest &lt;em&gt;immense&lt;/em&gt; resources in this process – up to &lt;a href=&quot;https://jamanetwork.com/journals/jama/article-abstract/2673148?redirect=true&quot;&gt;$99k per physician per year&lt;/a&gt; – and I know for a fact that some providers are already investing heavily in software solutions to more explicitly optimize this stuff.  Likewise, &lt;a href=&quot;https://www.forbes.com/sites/insights-intelai/2019/02/11/how-ai-can-battle-a-beastmedical-insurance-fraud/#20fa437e363e&quot;&gt;insurance companies&lt;/a&gt; are doubling down on AI solutions to fraud detection, including processing not just claims but things like medical notes. Now that computer vision algorithms are starting to get &lt;a href=&quot;https://www.fda.gov/newsevents/newsroom/pressannouncements/ucm604357.htm&quot;&gt;FDA approved&lt;/a&gt; for medical purposes, I think it’s also likely that payors and regulators will start leveraging this tech as well, which may lead to incentives for computer vision adversarial attacks, a hypothetical scenario at the center of our preprint.&lt;/p&gt;

&lt;p&gt;In any event, the real motivation for the claims examples we focus on in the paper is not to call these out as adversarial attacks per se.  Rather, it’s to demosntrate how motivations – both positive and negative – already exist in the healthcare system that motivate various players to subtly manipulate their data in order to achieve specific results. This is the soul of the adversarial attacks problem.  As both the reach and sophistication of medical machine learning expands across the healthcare system, the techniques used to game these algorithms will likely expand significantly as well.&lt;/p&gt;

&lt;h3 id=&quot;isnt-this-unrealistic--i-mean-would-there-ever-be-cases-when-someone-actually-uses-adversarial-examples&quot;&gt;Isn’t this unrealistic?  I mean, would there ever be cases when someone &lt;em&gt;actually&lt;/em&gt; uses adversarial examples?&lt;/h3&gt;

&lt;p&gt;We got some really good and reasonable pushback on this point the first time around, and once again, I really appreciated it. (Partly) as a result, we’ve spent a lot more time the last few months thinking about the range of adversarial behavior in healthcare information exchange. We ended up shifting the focus a bit as a result. In any event, there’s a whole spectrum of threat models at play here.&lt;/p&gt;

&lt;p&gt;Without rehashing the information about claims in the question just above this one too much, machine learning &lt;em&gt;is&lt;/em&gt; being used pretty extensively (and moreso every day, at increasing sophistication) to make first-pass approvals on claims. And while this seems like a purely financial/bureaucratic concern, this process does already have a major impact on healthcare – at least in the U.S. – &lt;em&gt;today&lt;/em&gt;. &lt;a href=&quot;https://www.kevinmd.com/blog/2016/07/time-doctors-tell-insurance-companies-really-feel.html&quot;&gt;Here is an example&lt;/a&gt; of writing from a doctor that explains the level of frustration here, which is reflected of common experiences. What’s more, there is something more subtle here; when I speak with clinicians, most of them feel like they get no formal feedback from what’s happening under the hood at insurance so they don’t have any real rhyme or reason for what combination of claims it is that’s resulting in their denials.  To boot, there are often many possible codes that could apply to any given procedure or diagnosis, and it’s a bit of a black box for which will be likely to receive pushback and which will get you the most reimbursement. Currently, most hospitals use extensive teams of human billers to manually try to do this process, but companies for automated billing exist, and I have personally spoken to physicians that are hoping to seek more sophisticated software solutions to more explicitly optimize their billing to avoid these “hurdles.” And since many insurance companies are already starting to use NLP on notes, that will open up a whole new layer of complexity in the process. In light of all this, I actually feel that the dynamics we describe in this paper are not unrealistic at all.&lt;/p&gt;

&lt;p&gt;Where we do get (explicitly) hypothetical is when it comes to things like adversarial attacks on imaging systems. I don’t think these are that realistic today, because I can’t find examples of insurance companies or regulators using computer vision algorithms for approvals yet.  But in fairness, the first FDA approval for a CV algorithm just happened in 2018 and many more are on the way. Once CV is established as “legit” I think it’s likely that we’ll see them get more integrated into such decisions.  But we aren’t there yet. Of course, even when we do get there, the adversarial imaging threat model also requires users to feel comfortable sending in adversarial attacks but not straight up fake images from other patients. But I think that there are technical and – probably moreso – legal and moral reasons why physicians/companies would hesitate to send in overtly fraudulent images to a diagnostic algorithm at an insurance/regulatory body. In contrast, I think that many would be comfortable doing more subtle things like rotations/scalings or even just cherry-picking images that give them the best shot from the many images that are often acquired per patient. According to the recently published &lt;a href=&quot;https://arxiv.org/pdf/1807.06732.pdf&quot;&gt;Rules of the Game&lt;/a&gt;, this type of behavior “counts” as adversarial attacks according at least to many in the field. To boot, doing this effectively (and surely being robust to it) could entail advanced software even if the modifications themselves are simple. In other words, I continue to think that robustness/adversarial attacks researchers should take healthcare seriously as an area of application.&lt;/p&gt;

&lt;h3 id=&quot;adversarial-attacks-sounds-scary--do-you-think-people-will-use-these-as-tools-to-hurt-people-by-hacking-diagnostics-etc&quot;&gt;“Adversarial attacks” sounds scary.  Do you think people will use these as tools to hurt people by hacking diagnostics, etc?&lt;/h3&gt;

&lt;p&gt;While this is may be possible in certain circumstances in theory, I don’t think it’s particularly likely.  By analogy, &lt;a href=&quot;https://www.wired.com/story/pacemaker-hack-malware-black-hat/&quot;&gt;pacemaker hacks&lt;/a&gt; have been around for more than a decade, but I don’t see many people feeling motivated to execute them.&lt;/p&gt;

&lt;h3 id=&quot;are-you-hoping-to-stall-the-development-of-medical-ml-because-of-adversarial-attacks&quot;&gt;Are you hoping to stall the development of medical ML because of adversarial attacks?&lt;/h3&gt;

&lt;p&gt;Nope!  Every author on this paper is very bullish on machine learning as a way to achieve positive impact in all aspects of the healthcare system.  We explicitly state this in the paper, as well as the fact that we don’t think these concerns should slow things down, just be a part of an ongoing conversation.&lt;/p&gt;

&lt;h3 id=&quot;small-note-on-the-figure&quot;&gt;Small note on the figure&lt;/h3&gt;

&lt;p&gt;As will be immediately recognized by anyone familiar with adversarial examples, the design for the top part of Figure 1 was inspired by Figure 1 in &lt;a href=&quot;https://arxiv.org/abs/1412.6572&quot;&gt;Goodfellow et al&lt;/a&gt; – though the noise itself was generated using a different attack method (the PGD) and applied to different data. As it stands, the figure in our Science paper points to our preprint for details of how the attack was generated, and Goodfellow et al paper is cited in the preprint. However, the Science paper itself doesn’t explicitly credit Goodfellow et al for the design idea. This wasn’t intentional. I pointed this out to the Science team, which decided against updating with a citation since the paper is cited via the preprint and all the actual content in the figure are either original or CC0. But I still feel bad about this. Sorry!&lt;/p&gt;

</description>
        <pubDate>Thu, 21 Mar 2019 00:00:00 -0400</pubDate>
        <link>http://localhost:4000/2019/03/21/FAQ-On-Adversarial-Science-Paper/</link>
        <guid isPermaLink="true">http://localhost:4000/2019/03/21/FAQ-On-Adversarial-Science-Paper/</guid>
        
        
      </item>
    
      <item>
        <title>Deriving probability distributions using the Principle of Maximum Entropy</title>
        <description>&lt;ul id=&quot;markdown-toc&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;#introduction&quot; id=&quot;markdown-toc-introduction&quot;&gt;Introduction&lt;/a&gt;    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#maximum-entropy-principle&quot; id=&quot;markdown-toc-maximum-entropy-principle&quot;&gt;Maximum Entropy Principle&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#lagrange-multipliers&quot; id=&quot;markdown-toc-lagrange-multipliers&quot;&gt;Lagrange Multipliers&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#1-derivation-of-maximum-entropy-probability-distribution-with-no-other-constraints-uniform-distribution&quot; id=&quot;markdown-toc-1-derivation-of-maximum-entropy-probability-distribution-with-no-other-constraints-uniform-distribution&quot;&gt;1. Derivation of maximum entropy probability distribution with no other constraints (uniform distribution)&lt;/a&gt;    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#satisfy--constraint&quot; id=&quot;markdown-toc-satisfy--constraint&quot;&gt;Satisfy  constraint&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#putting-together&quot; id=&quot;markdown-toc-putting-together&quot;&gt;Putting Together&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#2-derivation-of-maximum-entropy-probability-distribution-for-given-fixed-mean-mu-and-variance-sigma2-gaussian-distribution&quot; id=&quot;markdown-toc-2-derivation-of-maximum-entropy-probability-distribution-for-given-fixed-mean-mu-and-variance-sigma2-gaussian-distribution&quot;&gt;2. Derivation of maximum entropy probability distribution for given fixed mean \(\mu\) and variance \(\sigma^{2}\) (gaussian distribution)&lt;/a&gt;    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#satisfy-first-constraint&quot; id=&quot;markdown-toc-satisfy-first-constraint&quot;&gt;Satisfy first constraint&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#satisfy-second-constraint&quot; id=&quot;markdown-toc-satisfy-second-constraint&quot;&gt;Satisfy second constraint&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#putting-together-1&quot; id=&quot;markdown-toc-putting-together-1&quot;&gt;Putting together&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#3-derivation-of-maximum-entropy-probability-distribution-of-half-bounded-random-variable-with-fixed-mean-barr-exponential-distribution&quot; id=&quot;markdown-toc-3-derivation-of-maximum-entropy-probability-distribution-of-half-bounded-random-variable-with-fixed-mean-barr-exponential-distribution&quot;&gt;3. Derivation of maximum entropy probability distribution of half-bounded random variable with fixed mean \(\bar{r}\) (exponential distribution)&lt;/a&gt;    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#satisfying-first-constraint&quot; id=&quot;markdown-toc-satisfying-first-constraint&quot;&gt;Satisfying first constraint&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#satisfying-the-second-constraint&quot; id=&quot;markdown-toc-satisfying-the-second-constraint&quot;&gt;Satisfying the second constraint&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#putting-together-2&quot; id=&quot;markdown-toc-putting-together-2&quot;&gt;Putting together&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#4-maximum-entropy-of-random-variable-over-range-r-with-set-of-constraints-leftlangle-f_nxrightrangle-alpha_n-with-n1dots-n-and-f_n-is-of-polynomial-order&quot; id=&quot;markdown-toc-4-maximum-entropy-of-random-variable-over-range-r-with-set-of-constraints-leftlangle-f_nxrightrangle-alpha_n-with-n1dots-n-and-f_n-is-of-polynomial-order&quot;&gt;4. Maximum entropy of random variable over range \(R\) with set of constraints \(\left\langle f_{n}(x)\right\rangle =\alpha_{n}\) with \(n=1\dots N\) and \(f_{n}\) is of polynomial order&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;

&lt;p&gt;In this post, I derive the uniform, gaussian, exponential, and another funky probability distribution from the first principles of information theory. I originally did it for a class, but I enjoyed it and learned a lot so I am adding it here so I don’t forget about it.&lt;/p&gt;

&lt;p&gt;I actually think it’s pretty magical that these common distributions just pop out when you are using the information framework.  It feels so much more satisfying/intuitive than it did before.&lt;/p&gt;

&lt;h3 id=&quot;maximum-entropy-principle&quot;&gt;Maximum Entropy Principle&lt;/h3&gt;

&lt;p&gt;Recall that &lt;a href=&quot;https://en.wikipedia.org/wiki/Entropy_(information_theory)&quot;&gt;information entropy&lt;/a&gt; is a mathematical framework for quantifying “uncertainty.”  The formula for the information entropy of a random variable is
\(H(x) = - \int p(x)\ln p(x)dx\)
.  	
In statistics/information theory, the &lt;a href=&quot;https://en.wikipedia.org/wiki/Maximum_entropy_probability_distribution&quot;&gt;maximum entropy probability distribution&lt;/a&gt; is (you guessed it!) the distribution that, given any constraints, has maximum entropy.  Given a choice of distributions, the “Principle of Maximum Entropy” tells us that the maximum entropy distribution is the best.  Here’s a snippet of the idea from the &lt;a href=&quot;https://en.wikipedia.org/wiki/Principle_of_maximum_entropy&quot;&gt;wikipedia page&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;The principle of maximum entropy states that, subject to precisely stated prior data (such as a proposition that expresses testable information), the probability distribution which best represents the current state of knowledge is the one with largest entropy.
Another way of stating this: Take precisely stated prior data or testable information about a probability distribution function. Consider the set of all trial probability distributions that would encode the prior data. According to this principle, the distribution with maximal information entropy is the proper one.
…
In ordinary language, the principle of maximum entropy can be said to express a claim of epistemic modesty, or of maximum ignorance. The selected distribution is the one that makes the least claim to being informed beyond the stated prior data, that is to say the one that admits the most ignorance beyond the stated prior data.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;lagrange-multipliers&quot;&gt;Lagrange Multipliers&lt;/h3&gt;

&lt;p&gt;Given the above, we can use the maximum entropy principle to derive the best probability distribution for a given use.  A useful tool in doing so is the Lagrange Multiplier (&lt;a href=&quot;https://www.khanacademy.org/math/multivariable-calculus/applications-of-multivariable-derivatives/constrained-optimization/a/lagrange-multipliers-single-constraint&quot;&gt;Khan Acad article&lt;/a&gt;, &lt;a href=&quot;https://en.wikipedia.org/wiki/Lagrange_multiplier&quot;&gt;wikipedia&lt;/a&gt;), which helps us maximize or minimize a function under a given set of constraints.&lt;/p&gt;

&lt;p&gt;For a single variable function \(f(x)\) subject to the constraint \(g(x) = c\), the lagrangian is of the form:
\(\mathcal{L}(x,\lambda) = f(x) - \lambda(g(x)- c)\)
, which is then differentiated and set to zero to find a solution.&lt;/p&gt;

&lt;p&gt;The above can then be extended to additional variables and constraints as:&lt;/p&gt;

\[\mathcal{L}(x_{1}\dots x_{n},\lambda_{1}\dots\lambda{n}) = f(x_{1}\dots x_{n}) - \Sigma_{k=1}^{M}\lambda_{k}g_{k}(x_{1}\dots x_{n})\]

&lt;p&gt;and solving&lt;/p&gt;

\[\nabla x_{1},\dots,x_{n},\lambda_{1}\dots \lambda_{M}\mathcal{L}(x_{1}\dots x_{n},\lambda_{1}\dots\lambda{n})=0\]

&lt;p&gt;or, equivalently, solving&lt;/p&gt;

\[\begin{cases}
\nabla f(x)-\Sigma_{K=1}^{M}\lambda_{k}\nabla g_{k}(x)=0\\
g_{1}(x)=\dots=g_{M}(x)=0
\end{cases}\]

&lt;p&gt;In this case, since we are deriving probability distributions, the integral of the pdf must sum to one, and as such, every derivation will include the constraint \((\int p(x)dx-1)=0\).&lt;/p&gt;

&lt;p&gt;With all that, we can begin:&lt;/p&gt;

&lt;h2 id=&quot;1-derivation-of-maximum-entropy-probability-distribution-with-no-other-constraints-uniform-distribution&quot;&gt;1. Derivation of maximum entropy probability distribution with no other constraints (uniform distribution)&lt;/h2&gt;

&lt;p&gt;First, we solve for the case where the only constraint is that the distribution is a pdf, which we will see is the uniform distribution. To maximize entropy, we want to minimize the following function:&lt;/p&gt;

\[J(p)=\int_{a}^{b} p(x)\ln p(x)dx-\lambda_{0}\left(\int_{a}^{b} p(x)dx-1\right)\]

&lt;p&gt;.  Taking the derivative with respect ot \(p(x)\) and setting to zero,&lt;/p&gt;

\[\frac{\delta J}{\delta p(x)}=1+\ln p(x)-\lambda_{0}=0\]

\[\ln p(x)=1-\lambda_{0}\]

\[p(x)=e^{1 -\lambda_{0}}\]

&lt;p&gt;, which in turn must satisfy&lt;/p&gt;

\[\int_{a}^{b} p(x)dx=1=\int_{a}^{b} e^{-\lambda_{0}+1}dx\]

&lt;p&gt;Note: To check if this is a minimum (which would maximize entropy given the
way the equation was set up), we also need to see if the second
derivative with respect to \(p(x)\) is positive here or not, which it
clearly always is:&lt;/p&gt;

\[\frac{\delta J}{\delta p(x)^{2}dx}=\frac{1}{p(x)}\]

&lt;h3 id=&quot;satisfy--constraint&quot;&gt;Satisfy  constraint&lt;/h3&gt;

\[\int_{a}^{b} p(x)dx=\int_{a}^{b} e^{1 -\lambda_{0}}dx=1\]

\[\int_{a}^{b} e^{-\lambda_{0}+1}dx=1\]

\[e^{-\lambda_{0}+1} \int_{a}^{b} dx=1\]

\[e^{-\lambda_{0}+1} (b-a) = 1\]

\[e^{-\lambda_{0}+1} = \frac{1}{b-a}\]

\[-\lambda_{0}+1 = \ln\frac{1}{b-a}\]

\[\lambda_{0} = 1 -\ln \frac{1}{b-a}\]

&lt;h3 id=&quot;putting-together&quot;&gt;Putting Together&lt;/h3&gt;

&lt;p&gt;Plugging the constraint \(\lambda_{0} = 1 -\ln \frac{1}{b-a}\) into the pdf \(p(x)=e^{1 -\lambda_{0}}\), we have:&lt;/p&gt;

\[p(x)=e^{1 -\lambda_{0}}\]

\[p(x)=e^{1 -(1 -\ln \frac{1}{b-a})}\]

\[p(x)=e^{1 -1 + \ln \frac{1}{b-a}}\]

\[p(x)=e^{\ln \frac{1}{b-a}}\]

\[p(x)=\frac{1}{b-a}\]

&lt;p&gt;.  Of course, this is only defined in the range between \(a\) and \(b\), however, so the final function is:&lt;/p&gt;

\[p(x)=\begin{cases}
\frac{1}{b-a} &amp;amp; a\leq x \leq b\\
0 &amp;amp; \text{otherwise}
\end{cases}\]

&lt;h2 id=&quot;2-derivation-of-maximum-entropy-probability-distribution-for-given-fixed-mean-mu-and-variance-sigma2-gaussian-distribution&quot;&gt;2. Derivation of maximum entropy probability distribution for given fixed mean \(\mu\) and variance \(\sigma^{2}\) (gaussian distribution)&lt;/h2&gt;

&lt;p&gt;Now, for the case when we have a specified mean and variance, which we will see is the gaussian distribution.  To maximize entropy, we want to minimize the following function:&lt;/p&gt;

\[J(p)=\int p(x)\ln p(x)dx-\lambda_{0}\left(\int p(x)dx-1\right)-\lambda_{1}\left(\int p(x)(x-\mu)^{2}dx-\sigma^{2}\right)\]

&lt;p&gt;, where the first constraint is the definition of pdf and the second is the definition of the variance (which also gives us the mean for free).  Taking the derivative with respect ot p(x) and setting to zero,&lt;/p&gt;

\[\frac{\delta J}{\delta p(x)}=1+\ln p(x)-\lambda_{0}-\lambda_{1}(x-\mu)^{2}=0\]

\[\ln p(x)=1-\lambda_{0}-\lambda_{1}(x-\mu)^{2}\]

\[p(x)=e^{-\lambda_{0}+1-\lambda_{1}(x-\mu)^{2}}\]

&lt;p&gt;, which in turn must satisfy&lt;/p&gt;

\[\int p(x)dx=1=\int e^{-\lambda_{0}+1-\lambda_{1}(x-\mu)^{2}}dx\]

&lt;p&gt;and&lt;/p&gt;

\[\int p(x)(x-\mu)^{2}dx=\sigma^{2}=\int e^{-\lambda_{0}+1-\lambda_{1}(x-\mu)^{2}}(x-\mu)^{2}dx\]

&lt;p&gt;Again, \(\frac{\delta J}{\delta p(x)^{2}dx}=\frac{1}{p(x)}\) is always positive, so our solution will be minimum.&lt;/p&gt;

&lt;h3 id=&quot;satisfy-first-constraint&quot;&gt;Satisfy first constraint&lt;/h3&gt;

\[\int p(x)dx=1=\int e^{-\lambda_{0}+1-\lambda_{1}(x-\mu)^{2}}dx\]

\[1=\int e^{-\lambda_{0}+1-\lambda_{1}z^{2}}dz\]

\[1=\int e^{-\lambda_{0}+1-\lambda_{1}z^{2}}dz\]

&lt;p&gt;\(1=\int e^{-\lambda_{0}+1}*e^{-\lambda_{1}z^{2}}dz\)
\(1=e^{-\lambda_{0}+1}\int e^{-\lambda_{1}z^{2}}dz\)
\(e^{\lambda_{0}-1}=\int e^{-\lambda_{1}z^{2}}dz\)
\(e^{\lambda_{0}-1}=\int e^{-\lambda_{1}z^{2}}dz\)
\(e^{\lambda_{0}-1}=\sqrt{\frac{\pi}{\lambda_{1}}}\)&lt;/p&gt;

&lt;h3 id=&quot;satisfy-second-constraint&quot;&gt;Satisfy second constraint&lt;/h3&gt;

\[\int p(x)(x-\mu)^{2}dx=\sigma^{2}=\int e^{-\lambda_{0}+1-\lambda_{1}(x-\mu)^{2}}(x-\mu)^{2}dx\]

\[\sigma^{2}=\int e^{-\lambda_{0}+1-\lambda_{1}(x-\mu)^{2}}(x-\mu)^{2}dx\]

\[\sigma^{2}=\int e^{-\lambda_{0}-1-\lambda_{1}z^{2}}z^{2}dz\]

\[\sigma^{2}e^{\lambda_{0}-1}=\int e^{-\lambda_{1}z^{2}}z^{2}dz\]

\[\sigma^{2}e^{\lambda_{0}-1}=\frac{1}{2}\sqrt{\frac{\pi}{\lambda_{1}^{3}}}\]

\[\sigma^{2}e^{\lambda_{0}-1}=\frac{1}{2\lambda_{1}}\sqrt{\frac{\pi}{\lambda_{1}}}\]

\[2\lambda_{1}\sigma^{2}e^{\lambda_{0}-1}=\sqrt{\frac{\pi}{\lambda_{1}}}\]

&lt;h3 id=&quot;putting-together-1&quot;&gt;Putting together&lt;/h3&gt;

\[\sqrt{\frac{\pi}{\lambda_{1}}}=e^{\lambda_{0}-1}=2\lambda_{1}\sigma^{2}e^{\lambda_{0}-1}\]

&lt;p&gt;so&lt;/p&gt;

\[e^{\lambda_{0}-1}=2\lambda_{1}\sigma^{2}e^{\lambda_{0}-1}\]

\[1=2\lambda_{1}\sigma^{2}\]

\[\lambda_{1}=\frac{1}{2\sigma^{2}}\]

&lt;p&gt;. Plugging in for the other lambda,&lt;/p&gt;

\[\sqrt{\frac{\pi}{\lambda_{1}}}=e^{\lambda_{0}-1}\]

\[\sqrt{2\sigma^{2}\pi}=e^{\lambda_{0}-1}\]

\[\ln\sqrt{2\sigma^{2}\pi}=\lambda_{0}-1\]

\[\lambda_{0}=\ln\sqrt{2\sigma^{2}\pi}+1\]

&lt;p&gt;Now, we plug back into the first equation&lt;/p&gt;

\[p(x)=e^{-\lambda_{0}-1-\lambda_{1}(x-\mu)^{2}}\]

\[=e^{-\ln\sqrt{2\sigma^{2}\pi}-\frac{1}{2\sigma^{2}}(x-\mu)^{2}}\]

\[=e^{-\ln\sqrt{2\sigma^{2}\pi}}e^{-\frac{1}{2\sigma^{2}}(x-\mu)^{2}}\]

\[=\frac{1}{\sqrt{2\pi\sigma^{2}}}e^{-\frac{(x-\mu)^{2}}{2\sigma^{2}}}\]

&lt;p&gt;which we can note is, by definition, the pdf of the Gaussian!&lt;/p&gt;

&lt;h2 id=&quot;3-derivation-of-maximum-entropy-probability-distribution-of-half-bounded-random-variable-with-fixed-mean-barr-exponential-distribution&quot;&gt;3. Derivation of maximum entropy probability distribution of half-bounded random variable with fixed mean \(\bar{r}\) (exponential distribution)&lt;/h2&gt;

&lt;p&gt;Now, constrain on a fixed mean, but no fixed variance, which we will see is the exponential distribution. To maximize entropy, we want to minimize the following function:&lt;/p&gt;

\[J(p)=\int p(x)\ln p(x)dx-\lambda_{0}\left(\int_{0}^{\infty}p(x)dx-1\right)-\lambda\left(\int_{0}^{\infty}x*p(x)dx-\bar{r}\right)\]

&lt;p&gt;Now take derivative&lt;/p&gt;

\[\frac{\delta J}{\delta p(x)dx}=1+\ln p(x)-\lambda_{0}-\lambda_{1}x\]

&lt;p&gt;To check if this is a minimum of the function, we need to see if the
second derivative is positive with respect to p(x), which it is:&lt;/p&gt;

&lt;p&gt;\(\frac{\delta J}{\delta p(x)^{2}dx}=\frac{1}{p(x)}\) Setting the first
derivative to zero, we have&lt;/p&gt;

\[0=1+\ln p(x)-\lambda_{0}-\lambda_{1}x\]

\[p(x)=e^{-\lambda_{0}+1+-\lambda x}\]

&lt;p&gt;, which must satisfy the constaints \(\int_{0}^{\infty}p(x)dx=1\) and
\(\int_{0}^{\infty}x*p(x)dx-\bar{r}\).&lt;/p&gt;

&lt;h3 id=&quot;satisfying-first-constraint&quot;&gt;Satisfying first constraint&lt;/h3&gt;

\[\int_{0}^{\infty}p(x)dx=1\]

\[\int_{0}^{\infty}e^{-\lambda_{0}+1-\lambda_{1}x}dx=1\]

\[\int_{0}^{\infty}e^{-\lambda_{1}x}dx=e^{\lambda_{0}-1}\]

\[\frac{1}{\lambda_{1}}=e^{\lambda_{0}+1}\]

\[\lambda_{1}=e^{-\lambda_{0}+1}\]

&lt;h3 id=&quot;satisfying-the-second-constraint&quot;&gt;Satisfying the second constraint&lt;/h3&gt;

\[\int_{0}^{\infty}x*e^{-\lambda_{0}+1-\lambda_{1}x}dx=\bar{r}\]

\[\int_{0}^{\infty}x*e^{-\lambda_{0}+1}e^{\lambda_{1}x}dx=\bar{r}\]

&lt;p&gt;substituting in \(\lambda_{1}=e^{-\lambda_{0}+1}\) from above&lt;/p&gt;

\[\int_{0}^{\infty}x*\lambda_{1}e^{\lambda_{1}x}dx=\bar{r}\]

&lt;h3 id=&quot;putting-together-2&quot;&gt;Putting together&lt;/h3&gt;

&lt;p&gt;Rather than evaluating this last integral above, we can simply stop and
note that in evaluating our constraints we have stumbled upon the
formula for an exponential random variable with parameter \(\lambda\)!&lt;/p&gt;

&lt;p&gt;More explicitly:&lt;/p&gt;

\[\int_{0}^{\infty}x*\lambda_{1}e^{\lambda_{1}x}dx=\bar{r}\]

\[\int_{0}^{\infty}x*p(x)dx=\bar{r}\]

&lt;p&gt;where \(p(x)=\lambda e^{\lambda x}\), the pdf of the exponential function
for \(x\ge0\), where \(\lambda=\frac{1}{\bar{r}}\).&lt;/p&gt;

&lt;p&gt;In other words,&lt;/p&gt;

\[p(x)=\begin{cases}
\frac{1}{\bar{r}}e^{-\frac{x}{\bar{r}}} &amp;amp; x\ge0\\
0 &amp;amp; x&amp;lt;0
\end{cases}\]

&lt;h2 id=&quot;4-maximum-entropy-of-random-variable-over-range-r-with-set-of-constraints-leftlangle-f_nxrightrangle-alpha_n-with-n1dots-n-and-f_n-is-of-polynomial-order&quot;&gt;4. Maximum entropy of random variable over range \(R\) with set of constraints \(\left\langle f_{n}(x)\right\rangle =\alpha_{n}\) with \(n=1\dots N\) and \(f_{n}\) is of polynomial order&lt;/h2&gt;

&lt;p&gt;\(f_{n}\) must be even order for all enforced constraints.&lt;/p&gt;

&lt;p&gt;Following the same approach as above:&lt;/p&gt;

\[J(p)=-\int p(x)\ln p(x)dx+\lambda_{0}\left(\int p(x)dx-1\right)+\Sigma_{i=1}^{N}\lambda_{i}\left(p(x)f_{i}(x)dx-a_{i}\right)\]

\[\frac{\delta J}{\delta p(x)dx}=-1-\ln p(x)+\lambda_{0}+\Sigma_{i=1}^{N}\lambda_{i}f_{i}(x)\]

\[0=-1-\ln p(x)+\lambda_{0}+\Sigma_{i=1}^{N}\lambda_{i}f_{i}(x)\]

\[p(x)=e^{\lambda_{0}-1+\Sigma_{i=1}^{N}\lambda_{i}f_{i}(x)}\]

&lt;p&gt;all where \(f_{i}(x)=\Sigma_{j=1}^{M}b_{j}x^{j}\).&lt;/p&gt;

&lt;p&gt;We now consider the conditions in which the random variable can be
defined in the entire domain \((-\infty,\infty)\). Looking at the
normalization constraint,&lt;/p&gt;

\[\int p(x)dx=\int e^{\lambda_{0}-1+\Sigma_{i=1}^{N}\lambda_{i}f_{i}(x)}dx=1\]

&lt;p&gt;we note that we need our exponential function to integrate to 1. In
order for this equation to be defined in the entire real domain, we thus
will need the exponential function to integrate to a finite value, so
that we can provide a normalization constant that will result in
integration to 1.&lt;/p&gt;

&lt;p&gt;Looking at the function
\(e^{\lambda_{0}-1+\Sigma_{i=1}^{N}\lambda_{i}f_{i}(x)}\) (which must
remain finite for all x), we can thus conclude that
\(\lambda_{0}-1+\Sigma_{i=1}^{N}\lambda_{i}f_{i}(x)\) must not converge to
positive infinity, but may converge to negative infinity (because it
would cause the exponential to converge to zero) or to any finite value
as \(x\) approaches positive or negative infinity. The only components of
this function that depend on \(x\) are the polynomail constraints of form
\(f_{i}(x)=\Sigma_{j=1}^{M}b_{j}x^{j}\). As such, these constraints are
the only components at risk to force the function towards infinity,
provided that \(\lambda_{0}\neq\infty.\) Therefore, because the
\(\lambda_{i}\) corresponding to can any \(f_{i}\) can be positive or
negative, the function will be able to be defined so long
\(f_{i}(x)=\Sigma_{j=1}^{M}b_{j}x^{j}&amp;lt;\infty\) for all \(x\), or
\(f_{i}(x)=\Sigma_{j=1}^{M}b_{j}x^{j}&amp;gt;-\infty\) for all \(x.\)&lt;/p&gt;

&lt;p&gt;Finally, we can consider the conditions for which these criteria for
\(f_{i}\) will be satisfied. In short, the only way to guarantee that
\(f_{i}\) remain either positive for negative will be if the dominant
component of the polynomial \(f_{i}\) is of an EVEN order for all \(i\) s.t.
\(\lambda_{i}\neq0\). If the dominant component is odd, then \(f_{i}\) will
either move from negative infinity to positive infinity (or, if negated,
from positive infinity to negative infinity) as x moves across the
domain, which means that no finite and nonzero \(\lambda_{i}\) could be
chosen to maintain the criteria outlined above.&lt;/p&gt;
</description>
        <pubDate>Thu, 16 Mar 2017 06:00:00 -0400</pubDate>
        <link>http://localhost:4000/2017/03/16/Deriving-probability-distributions-using-the-Principle-of-Maximum-Entropy/</link>
        <guid isPermaLink="true">http://localhost:4000/2017/03/16/Deriving-probability-distributions-using-the-Principle-of-Maximum-Entropy/</guid>
        
        
      </item>
    
      <item>
        <title>Deriving the information entropy of the multivariate gaussian</title>
        <description>&lt;ul id=&quot;markdown-toc&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;#introduction-and-trace-tricks&quot; id=&quot;markdown-toc-introduction-and-trace-tricks&quot;&gt;Introduction and Trace Tricks&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#derivation&quot; id=&quot;markdown-toc-derivation&quot;&gt;Derivation&lt;/a&gt;    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#setup&quot; id=&quot;markdown-toc-setup&quot;&gt;Setup&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#first-term&quot; id=&quot;markdown-toc-first-term&quot;&gt;First term&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#second-term--trace-trick-coming&quot; id=&quot;markdown-toc-second-term--trace-trick-coming&quot;&gt;Second term  (Trace Trick Coming!)&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#recombining-the-terms&quot; id=&quot;markdown-toc-recombining-the-terms&quot;&gt;Recombining the terms&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;introduction-and-trace-tricks&quot;&gt;Introduction and Trace Tricks&lt;/h2&gt;

&lt;p&gt;The pdf of a &lt;a href=&quot;https://en.wikipedia.org/wiki/Multivariate_normal_distribution&quot;&gt;multivariate gaussian&lt;/a&gt; is as follows:&lt;/p&gt;

\[p(x) = \frac{1}{(\sqrt{2\pi})^{N}\sqrt{\det\Sigma}}e^{-\frac{1}{2}(x-\mu)^{T}\Sigma^{-1}(x-\mu)}\]

&lt;p&gt;, where&lt;/p&gt;

\[\Sigma_{i,j} = E[(x_{i} - \mu_{i})(x_{j} - \mu_{j})]\]

&lt;p&gt;is the &lt;a href=&quot;https://en.wikipedia.org/wiki/Covariance_matrix&quot;&gt;covariance matrix&lt;/a&gt;, which can be expressed in vector notation as&lt;/p&gt;

\[\Sigma = E[(X-E[X])(X-E[X])^{T}] = \int p(x)(x-\mu)(x-\mu)^{T}dx\]

&lt;p&gt;. I might make the derivation of this formula its own post at some point, but it is in Strang’s intro to linear algebra text so I will hold off.  Instead, this post derives the &lt;em&gt;entropy&lt;/em&gt; of the multivariate gaussian, which is equal to:&lt;/p&gt;

\[H=\frac{N}{2}\ln\left(2\pi e\right)+\frac{1}{2}\ln\det C\]

&lt;p&gt;Part of the reason why I do this is because the second part of the derivation involves a “trace trick” that I want to remember how to use for the future.  The key to the “trace trick” is to recognize that a matrix (slash set of multiplied matrices) is 1x1, and that the value of any such matrix is, by definition, equal to its trace.  This then allows you to invoke the quasi-commutative property of the trace:&lt;/p&gt;

\[\text{tr}(UVW)=\text{tr}(WUV)\]

&lt;p&gt;to push around the matrices however you desire until they become something tidy/useful.  The whole thing feels rather devious to me, personally.&lt;/p&gt;

&lt;h2 id=&quot;derivation&quot;&gt;Derivation&lt;/h2&gt;
&lt;h3 id=&quot;setup&quot;&gt;Setup&lt;/h3&gt;

&lt;p&gt;Beginning with the definition of entropy&lt;/p&gt;

\[H(x)=-\int p(x)*\ln p(x)dx\]

&lt;p&gt;substituting in the probability function for the multivariate gaussian
in only its second occurence in the formula,&lt;/p&gt;

\[H(x)=-\int p(x)*\ln\left(\frac{1}{(\sqrt{2\pi})^{N}\sqrt{\det\Sigma}}e^{-\frac{1}{2}(x-\mu)^{T}\Sigma^{-1}(x-\mu)}\right)dx\]

\[=-\int p(x)*\ln\left(\frac{1}{(\sqrt{2\pi})^{N}\sqrt{\det\Sigma}}e^{-\frac{1}{2}(x-\mu)^{T}\Sigma^{-1}(x-\mu)}\right)dx\]

\[=-\int p(x)*\ln\left(\frac{1}{(\sqrt{2\pi})^{N}\sqrt{\det\Sigma}}\right)dx-\int p(x)\ln\left(e^{-\frac{1}{2}(x-\mu)^{T}\Sigma^{-1}(x-\mu)}\right)dx\]

&lt;p&gt;We will now consider these two terms separately.&lt;/p&gt;

&lt;h3 id=&quot;first-term&quot;&gt;First term&lt;/h3&gt;

&lt;p&gt;First, we concern ourselves with the first ln term:&lt;/p&gt;

\[-\int p(x)*\ln\left(\frac{1}{(\sqrt{2\pi})^{N}\sqrt{\det C}}\right)dx\]

\[=\int p(x)*\ln\left((\sqrt{2\pi})^{N}\sqrt{\det C}\right)\]

&lt;p&gt;since all the terms other than \(p(x)\) form a constant,&lt;/p&gt;

\[=\left(\ln\left((\sqrt{2\pi})^{N}\sqrt{\det C}\right)\right)\int p(x)\]

&lt;p&gt;and because \(p(x)\) is a PDF, it integrates to 1. Thus, this component of
the equation is&lt;/p&gt;

\[\ln\left((\sqrt{2\pi})^{N}\sqrt{\det C}\right)\]

\[=\frac{N}{2}\ln\left(2\pi\right)+\frac{1}{2}\ln\det C\]

&lt;h3 id=&quot;second-term--trace-trick-coming&quot;&gt;Second term  (Trace Trick Coming!)&lt;/h3&gt;

&lt;p&gt;Now we consider the second ln term&lt;/p&gt;

\[-\int p(x)\ln\left(e^{-\frac{1}{2}(x-\mu)^{T}\Sigma^{-1}(x-\mu)}\right)dx\]

\[=\int p(x)\frac{1}{2}\ln\left(e^{(x-\mu)^{T}\Sigma^{-1}(x-\mu)}\right)dx\]

&lt;p&gt;because \((x-\mu)^{T}\) is a 1 x N matrix, \(\Sigma^{-1}\) is a N x N
matrix, and \((x-\mu)\) is a N x 1 matrix, the matrix product
\((x-\mu)^{T}\Sigma^{-1}(x-\mu)\) is a 1 x 1 matrix. Further, because the
trace of any 1 x 1 matrix
\(\text{tr}(A)=\Sigma_{i=1}^{n}A_{i,i}=A_{1,1}=A\), we can conclude that
the 1 x 1 matrix
\((x-\mu)^{T}\Sigma^{-1}(x-\mu)=\text{tr}((x-\mu)^{T}\Sigma^{-1}(x-\mu))\).&lt;/p&gt;

&lt;p&gt;As such, our term becomes&lt;/p&gt;

\[=\int p(x)\frac{1}{2}\ln\left(e^{\text{tr}\left[(x-\mu)^{T}\Sigma^{-1}(x-\mu)\right]}\right)dx\]

\[=\frac{1}{2}\int p(x)\ln\left(e^{\text{tr}\left[(x-\mu)^{T}\Sigma^{-1}(x-\mu)\right]}\right)dx\]

&lt;p&gt;, which, by the quasi-commutativity property of the trace function,
\(\text{tr}(UVW)=\text{tr}(WUV)\),&lt;/p&gt;

\[=\frac{1}{2}\int p(x)\ln\left(e^{\text{tr}\left[\Sigma^{-1}(x-\mu)(x-\mu)^{T}\right]}\right)dx\]

&lt;p&gt;. Because \(p(x)\) is a scalar and the natural logarithm and exponentials
may cancel, the properties of the trace function allow us to push the
\(p(x)\) and the integral inside of the trace, so&lt;/p&gt;

\[=\frac{1}{2}\int\ln\left(e^{\text{tr}\left[\Sigma^{-1}p(x)(x-\mu)(x-\mu)^{T}\right]}\right)dx\]

\[=\frac{1}{2}\ln\left(e^{\text{tr}\left[\Sigma^{-1}\int p(x)(x-\mu)(x-\mu)^{T}dx\right]}\right)\]

&lt;p&gt;But, $\int p(x)(x-\mu)(x-\mu)^{T}dx=\Sigma$ is just the definition of the covariance matrix!  As such,&lt;/p&gt;

\[=\frac{1}{2}\ln\left(e^{\text{tr}\left[\Sigma^{-1}\Sigma\right]}\right)\]

\[=\frac{1}{2}\ln\left(e^{\text{tr}\left[I_{N}\right]}\right)\]

\[=\frac{1}{2}\ln\left(e^{N}\right)\]

\[=\frac{N}{2}\ln\left(e\right)\]

&lt;h3 id=&quot;recombining-the-terms&quot;&gt;Recombining the terms&lt;/h3&gt;

&lt;p&gt;Bringing the above terms back together, we have&lt;/p&gt;

\[H(x)=\frac{N}{2}\ln\left(2\pi\right)+\frac{1}{2}\ln\det C+\frac{N}{2}\ln\left(e\right)\]

\[=\frac{N}{2}\ln\left(2\pi e\right)+\frac{1}{2}\ln\det C\]

&lt;p&gt;as desired.&lt;/p&gt;
</description>
        <pubDate>Sat, 11 Mar 2017 05:00:00 -0500</pubDate>
        <link>http://localhost:4000/2017/03/11/Deriving-the-information-entropy-of-the-multivariate-gaussian/</link>
        <guid isPermaLink="true">http://localhost:4000/2017/03/11/Deriving-the-information-entropy-of-the-multivariate-gaussian/</guid>
        
        
      </item>
    
  </channel>
</rss>
