<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jake Metzger on Medium]]></title>
        <description><![CDATA[Stories by Jake Metzger on Medium]]></description>
        <link>https://medium.com/@jake.metzger?source=rss-9304b3df1cd0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*v_bK6IEXhIxL4TJYJfb9gw.jpeg</url>
            <title>Stories by Jake Metzger on Medium</title>
            <link>https://medium.com/@jake.metzger?source=rss-9304b3df1cd0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 18:09:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jake.metzger/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Is Bayesian Statistics Subjective? — No, but Yes, but No.]]></title>
            <link>https://medium.com/@jake.metzger/is-bayesian-statistics-subjective-no-but-yes-but-no-4b55ce32fe99?source=rss-9304b3df1cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b55ce32fe99</guid>
            <category><![CDATA[bayesian]]></category>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[maximum-entropy]]></category>
            <category><![CDATA[bayesian-statistics]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Jake Metzger]]></dc:creator>
            <pubDate>Fri, 29 Mar 2024 08:01:57 GMT</pubDate>
            <atom:updated>2024-03-29T08:01:57.328Z</atom:updated>
            <content:encoded><![CDATA[<h3>Is Bayesian Statistics Subjective? — No, but Yes, but No.</h3><p>I don’t think a day goes by when, scrolling through my LinkedIn feed, I come across someone complaining about the purported essential subjectivism of Bayesian statistics. Maybe this is just because the algorithm has figured out that I find this trope irritating and ill-informed and so it decides to torture me with it; maybe not. While there is a kind of reasonableness to the concerns, especially for us sciency types, I think I can quell them, though the answer isn’t as simple as one may think.</p><h3>Putting the “Bayes” in “Bayesian”</h3><p>The most common minimum requirement for a particular epistemological view to be considered “Bayesian” is a commitment to Probabilism. Probabilism is a norm that inference fundamentally involves the laws of probability and that the basic entities of your theory (hypotheses, events, sets, propositions, etc.) are assigned probability values.</p><p>This norm already distinguishes itself from its oft-rival, frequentism. A frequentist view typically holds that probabilities only hold as representations of objective frequencies of events (or as parameter values of a data generating process described by an objective statistical model). Since hypotheses are not events, frequentist interpretations warn against probability talk about hypotheses (except, perhaps, colloquially).</p><p>Notice that we have yet to mention anything about subjectivism. This is because minimal Bayesianism is <em>not committed to subjectivism</em>.</p><p>Of course, minimal Bayesianism doesn’t say <em>anything </em>about what these probabilities are supposed to be, so Bayesians certainly owe us more than this. And they delivered … perhaps too much. I. J. Good once commented on the existence of more than 46,665 possible versions of Bayesianism, more than the number of practicing statisticians at the time, which differ on things like what probability is, what probabilities are assigned to, the acceptability of non-probabilistic inferences, axiomatic and pragmatic foundations, etc.</p><p>Jon Williamson has a helpful breakdown of different views as they relate to three norms of rationality:</p><ol><li>Probabilism: Ideally rational belief should be representable by a probability function. These can be referred to as “degrees of belief”.</li><li>Calibration: Ideally rational belief should be constrained by empirical evidence.</li><li>Equivocation: Ideally rational belief should be as middling as possible as the above constraints permit. That is, we should be maximally non-committal with regard to information we do not have while being consistent with the information we do have.</li></ol><p>Note that my use of “ideally rational belief” and “degrees of belief” should not be read as entailing the ontological dependence of these degrees on any subjectivity, personal or otherwise, though they can be interpreted that way. de Finetti, for example, would identify the domain of probabilism to be actual belief states of agents. Jaynes, on the other hand, would identify these idealized belief states with something like <em>states of information</em>, objective, logical properties unveiled by the application of the probability calculus to probabilistic statements, much like how modus ponens works with logical statements.</p><p>Using these three norms as a rubric, we can sort out groups of different views. As stated before, Bayesians are identified by a commitment to Probabilism. Subjectivist Bayesians like de Finetti and Savage believed this was the <em>only </em>constraint on rational belief. “Empirical” Bayesians, who make up the majority of Bayesians today, usually accept a combination of Probabilism and Calibration. “Logical” Bayesians like Jaynes can be seen as accepting Probabilism and Equivocation. Frequentists like Venn or von Mises can be understood as committed to Calibration alone. According to Williamson, Objective Bayesianism is committed to all three norms.</p><p>As for the other possible combinations, it seems clear that Equivocation without the other norms is nonsense: these are the folks that naively think that everything is just as likely as everything else — It either happens or it doesn’t, so it’s 50/50! (Despite the “50/50”, it’s hard to think them committed to Probabilism.) And it’s hard to think what Calibration and Equivocation alone could do without Probabilism, but maybe there’s something there, perhaps as a Dempster-Shafer theory or something. I’ll leave that as an exercise for the interested reader.</p><p>Of course, Bayesians are called “Bayesians” because of their commitment to Probabilism and the ensuing common use of <em>Bayes’ Rule</em> of conditional probability for inferential purposes, as done by Reverend Bayes. I won’t re-hash Bayes’ Rule here, but I will note a few caveats. First, as lightly alluded to before, Bayes’ Rule is not a universal, absolute, inviolable inferential rule amongst Bayesians, broadly considered. For example, Jaynes and Williamson both provide for so-called <em>maximum-entropy inference</em> as the more flexible, information-theoretic cousin of Bayes’ Rule. Such maximum-entropy inference has seen ample success, for example, in physics and the biosciences, especially in handling high-dimensional data. However, even in these cases, divergences from the results of applications of Bayes’ Rule (<em>Bayesian conditionalization</em>) are kept as small as possible and justified in virtue of trade-offs against other rational norms. Some extreme subjectivists might just elevate Bayes’ Rule to a level of inviolability, but others are more practically minded, situating probabilistic consistency amongst other norms, as discussed. That is, broadly speaking, Bayesians don’t just buy everything branded with Bayes(TM).</p><h3>Putting the “Bayesian” in “Bayesian Statistics”</h3><p>With the previous discussion in mind, let’s consider the contemporary practice of Bayesian statistics.</p><p>Williamson points out, consistent with my own experience, that the development of Bayesian statistics has been done largely with subjectivist interpretations in mind and with an eye to a clean decomposition into prior-likelihood-posterior applications of Bayes’ Rule.</p><p>A typical workflow might go as follows:</p><ol><li>Identify a set of reasonable likelihood functions (such as a linear model) and identify a prior distribution over them. This can be done, for example, by placing priors on the model parameters.</li><li>Gather empirical data.</li><li>Use Bayes’ Rule to reweight the prior distribution with the data via the likelihood functions in order to produce a posterior distribution.</li></ol><p>As far as choosing a prior distribution, there is little more than conflicting rules of thumb: some suggest using your gut to capture the analyst’s (or an expert’s) initial dispositions, others suggest using a maximum-entropy prior distribution (where they exist) to represent a minimal state of prior information. Even others suggest using your data to produce an “empirical” prior distribution that you then send through Bayes’ Rule using the same data, biting the bullet of “double dipping” their data.</p><p>Some other Bayesians try to sidestep the choice of prior distribution by using the odds-form of Bayes’ Rule and presenting <em>Bayes factors </em>rather than actual posterior distributions. This kind of splits up the work between one Bayesian and another, allowing one Bayesian analyst to summarize evidence with a factor that another Bayesian analyst can accept and combine with perhaps a different prior distribution of their own preference. This doesn’t do much to mitigate the charge of subjectivism, but it’s certainly an interesting <em>intersubjective</em> methodology.</p><p>Even more, some treat prior distributions as involable — they need to exist wholly independent of your data and ought not be revised once the analyst has seen the data. I’ve already mentioned that some have no problem producing a prior distribution directly from data. Others treat prior distributions pragmatically as just another modeling choice amongst others — if the model doesn’t meet your acceptance criteria, reject it and adjust the model (and the prior) if you need to.</p><p>Needless to say, issues surrounding a choice of prior distribution can be a headache for a practitioner. This stems from the fact that there’s nothing in the <em>statistical practice</em> that demands or recommends one prior over another — the statistical <em>practice</em> is essentially subjectivist.</p><p>Now, I don’t think subjectivism is nearly as bad as others think it is, and I think that there is plenty of subjective elements to frequentist practice as well for all that’s worth, but in the context of <em>scientific</em> inference, we care about more than probabilistically consistent inference: we want inferences that are genuinely <em>calibrated</em> to the properties of our available empirical evidence, not just in the Bernstein-von Mises sense (sorry empirical Bayesians), and we want our inferences to not commit to more than is necessary based on the data and our model. These are the norms of Objective Bayesianism.</p><h3>Bayesianism: Subjective to Objective</h3><p>So, what does Objective Bayesianism mean for Bayesian statistics?</p><p>Well, I’m still learning a lot about Jon Williamson’s particular version of Objective Bayesianism, but the outlines of the theory looks something like the following:</p><p>Instead of considering inference in terms of a prior-likelihood-posterior application of Bayes’ Rule, we should instead consider inference as an optimization procedure with respect to constraints embodied by the three Objective Bayesian norms and empirical data.</p><ul><li>Probabilism: Formulate a set of plausible representations of data generating mechanisms (models) together with a probability function over that set.</li><li>Calibration: From the set of data generation models, filter out those models that fail to meet a chosen standard of empirical support. This is where frequentist properties come into play.</li><li>Equivocation: Over the set of remaining data generation models, optimize the probability function such that it is as equivocal as it can be while still sufficiently empirically supported. This is done by minimizing the KL-divergence to the maximum-entropy model (or, the <em>equivocator</em>).</li></ul><p>This procedure sidesteps the explicit production of a prior distribution, which is an annoying part of existing (subjectivist) Bayesian statistical practice. It obtains the benefits of maximum-entropy priors while still being constrained by empirical frequency properties of the data in hand. Furthermore, over frequentism, it allows for <em>density</em> information to exist inside confidence intervals, rather than just all/nothing coverage probabilities. It also allows for meaningful <em>one-shot</em> probabilities to tell Joe how likely <em>he</em> is to have cancer, as opposed to answering Joe to the effect of, “People like you have cancer X% of the time.” And, like Bayesian inference more generally, it can answer how likely a hypothesis is given available data, rather than telling you to be satisfied with the data being most consistent with a particular hypothesis.</p><p>I suggest giving Williamson’s 2013 paper a look — he’s got a few basic, worked out examples of coins and turning cars. I also summarize it on <a href="https://www.jacobcmetzger.com/post/unsolicited-discussion-on-statistics-epistemology-and-objective-bayesianism">my personal blog entry</a> on this topic and give a bunch more references — check it out if you’re interested.</p><h3><strong>Conclusion</strong></h3><p>While I’ve been a practicing Bayesian for a long time, and while I’ve been aware of various objective strains of Bayesianism for a while, my recent introduction to Williamson’s work has been really interesting and enlightening. I look to share more as I learn more. Hopefully this is enough for now to push back on the endless refrain of complaints about subjective statistics and how Bayesianism sucks because of it. We have more than 60 years of probabilistic alternatives to subjectivist Bayesianism, including up-to-date, contemporary methods — let’s use them.</p><p>Thanks for reading.</p><p>References</p><p>Gelman, A., Carlin, J. B., Stern, H. S., Dunson, D. B., Vehtari, A., &amp; Rubin, D. B. (2013). Bayesian Data Analysis, Third Edition. CRC Press.</p><p>Good, I. J. (1983). 46656 Varieties of Bayesians. In Good thinking: The foundations of probability and its applications (pp. 20–21). University of Minnesota Press.</p><p>Jaynes, E. T. (1957). Information Theory and Statistical Mechanics. Physical Review, 106(4), 620–630. doi:10.1103/PhysRev.106.620</p><p>Jaynes, E. T., &amp; Bretthorst, G. L. (2003). Probability Theory: The Logic of Science. Cambridge University Press.</p><p>Savage, Leonard J. (1972). The Foundations of Statistics. Wiley Publications in Statistics. (Original Work published 1954)</p><p>Weisberg, J. (2011). Varieties of Bayesianism. In D. M. Gabbay, S. Hartmann, &amp; J. Woods (Eds.), Inductive Logic (pp. 477–551). doi:10.1016/B978–0–444–52936–7.50013–6</p><p>Williamson, J. (2011). Objective Bayesianism, Bayesian Conditionalisation and Voluntarism. Synthese, 178(1), 67–85. doi:10.1007/s11229–009–9515-y</p><p>Williamson, J. (2013). Why Frequentists and Bayesians Need Each Other. Erkenntnis, 78(2), 293–318. doi:10.1007/s10670–011–9317–8</p><p>Williamson, J &amp; Landes, J. (2013b, September 17–18). Objective Bayesian epistemology for inductive logic on predicate languages. [Lecture video] Fadi Akil. <a href="https://www.youtube.com/watch?v=5KFGJlQF_MI">https://www.youtube.com/watch?v=5KFGJlQF_MI</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b55ce32fe99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking Business Value using Knowledge Graphs and Probabilistic Reasoning]]></title>
            <link>https://medium.com/labs-notebook/unlocking-business-value-using-knowledge-graphs-and-probabilistic-reasoning-34fc16c45dd1?source=rss-9304b3df1cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/34fc16c45dd1</guid>
            <category><![CDATA[probabilistic-programming]]></category>
            <category><![CDATA[bayesian-machine-learning]]></category>
            <category><![CDATA[knowledge-graph]]></category>
            <category><![CDATA[causal-inference]]></category>
            <category><![CDATA[bayesian-inference]]></category>
            <dc:creator><![CDATA[Jake Metzger]]></dc:creator>
            <pubDate>Thu, 09 Mar 2023 19:45:31 GMT</pubDate>
            <atom:updated>2023-03-23T15:51:44.781Z</atom:updated>
            <content:encoded><![CDATA[<p>By Jake Metzger and <a href="https://medium.com/@alexandriapabst">Alexandria Pabst</a> — Accenture Labs</p><h3>Introduction</h3><p>Knowledge Graphs (KGs) have become a ubiquitous technology in the time of the Semantic Web. Google Search and Wikipedia alone account for millions of interactions with information worldwide, and part of their secret sauce has been the flexible semantic reasoning enabled by KGs. Businesses worldwide are actively applying this technology to their own information management and discovery processes. This semantic reasoning allows for connections between data, data sources, and data consumers to transform and present data in ways that respond to the context in which they are embedded.</p><p>It’s now an expectation that when I search for “food places within a 15-minute walk from me” that I’m presented with an array of semantically related, nearby entities describing themselves variously as restaurants, gastro-pubs, coffee labs, and whatever else in my vicinity. In a business setting when trying to quickly solve a disruption, I might similarly query my knowledge graph for, “suppliers for item X with delivery SLA’s less than two weeks,” and be presented with warehouses, factories, distributors, etc. with the desired contractual delivery agreement in my network of available suppliers.</p><p>However, as is often the case, when you’re able to connect more information and provide more meaningful answers, we start asking more and more difficult questions — different kinds of questions than what we were before. Now, we’re no longer content with inferring semantic relationships between entities in our enterprise. I don’t want to just know my available suppliers for item X, I want to know, “How likely am I to reach my sales target next month given the recent interruption with our current supplier? How reliable is that estimate given what we currently know? What are some actions I can take to keep us on track?” Those are the sorts of questions that, at a stroke, can show you value on your bottom line. That’s the sort of value we need to next unlock. For this sort of <em>quantitative</em> reasoning, we must go further than connecting data semantically.</p><p>Probabilistic knowledge graphs, as developed by Accenture Labs, offer exactly this kind of numerical reasoning directly from your knowledge graph, saving time to answer important questions, saving money by minimizing the need for extraneous modeling pipelines, and improving decision making.</p><h3>What is a Knowledge Graph?</h3><p>For those not already familiar with them by name, a knowledge graph is a schema-free, graph-based data structure/database, consisting of nodes, edges, and labels, together with a defining <em>ontology</em>. The nodes define entities, the edges define relationships between those entities, and an ontology provides a flexible, formal definition of the entities to be found in the knowledge graph. Ontologies themselves can have a graph-like structure, defining relationships between entity and property types (classes). These definitions are important because they allow for semantic inferences on instances in the graph.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qPj0SdLUBrJi1y5FFGK1Ow.png" /><figcaption>Entity Diagram</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DgL3xIuqq3fklvP-493hzQ.png" /><figcaption>Class Diagram</figcaption></figure><p>For example, let us say we have the following relationship in the graph:</p><ul><li>&lt;Dave&gt; &lt;is-in&gt; &lt;San Francisco&gt;.</li></ul><p>That is, we have two entities: &lt;Dave&gt; and &lt;San Francisco&gt; as nodes connected by the directed edge &lt;is-in&gt;. &lt;Dave&gt; is defined as an instance of [type: Person] in the ontology and &lt;San Francisco&gt; is similarly defined as [type: City]. Let us also say there also exists another entity &lt;California&gt; of [type: State] in the graph, and the following relationship &lt;San Francisco&gt; &lt;is-in&gt; &lt;California&gt; as another directed edge. Further, we have defined the property &lt;is-in&gt; to be a <em>transitive</em> property, such that:</p><ul><li>&lt;X&gt; &lt;is-in&gt; &lt;Y&gt; and</li><li>&lt;Y&gt; &lt;is-in&gt; &lt;Z&gt;</li><li>implies &lt;X&gt; &lt;is-in&gt; &lt;Z&gt;</li></ul><p><em>(Those of you who have heard of technologies and logical languages like </em><a href="https://en.wikipedia.org/wiki/Prolog"><em>Prolog</em></a><em> will see that influence here.)</em></p><p>From the entities in the graph and the semantic relations defined in the ontology, we can deduce that &lt;Dave&gt; &lt;is-in&gt; &lt;California&gt;, a fact that was not explicitly represented in the knowledge base. This deduction is done with an intelligent semantic engine that takes in a query like, Who is in California? and produces the result that Dave is in California.</p><p>By defining an ontology and hydrating (populating) the graph with entities and relationships, complex relationships between entities can be discovered, and since the knowledge graph does not enforce a fixed schema (like a SQL database would), it makes it an ideal consumer of accessing and organizing heterogeneous data stores in a unified way.</p><h3>What are Knowledge Graphs missing?</h3><p>Knowledge graphs, as described in the previous section, have accelerated semantic reasoning across the globe, inside and outside organizations at the largest scales. However, semantic reasoning isn’t the only kind of reasoning we’re interested in unlocking with our data. Even if data is ingested from various data sources and organized with a flexible ontology, if one is trying to understand and predict sales behavior for a product, you have pipelines with analysts that pull that information back out of the graph, feed it into their statistical or machine learning models, then write their desired results back to make them available for reporting or other information consumers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*oNzL8aiyLw1sG2-HCDw2qA.png" /><figcaption>Quantitative Process with Semantic-only Graph</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*voG7gsxcln5Qpt_s9IFXmA.png" /><figcaption>New Quantitative Process with Automatic Probabilistic Engine</figcaption></figure><p>This is a time-consuming, awkward process that additionally incurs the maintenance and complexity of external pipelines. And this process is tolerated because we want answers not only to semantic questions but also <em>statistical</em> and <em>predictive</em> ones. We want to be able to ask predictive questions like, “What does the demand for widgets look like for next month?” or decision questions like, “Which mix of producers would optimize my cost-risk preference for next month’s inventory requirements?” as easily as factual questions like, “Where are widgets sold?”</p><p>Our goal with building probabilistic knowledge graphs is to enable exactly this kind of quantitative modeling and reasoning directly into a query engine, sidestepping the whole ad hoc modeling process, as well as the infrastructure, maintenance, and other costs it entails.</p><h3>Bayesian Machine Learning and Bayesian Networks</h3><p>(For some background in Bayesian probability and statistics, take a look at our post <a href="https://medium.com/@jake.metzger/intro-to-bayesian-probabilistic-reasoning-3a5a2d44d6e7">here</a>.)</p><p>Bayesian learning is the application of a Bayesian statistical approach with machine learning. Bayesian machine learning has a similar relationship to Bayesian statistics that traditional machine learning has with traditional statistical methods. As is the theme, the typical output of Bayesian machine learning methods is <em>distributional</em> information about quantities of interest. Some examples of Bayesian ML include: <a href="https://paperswithcode.com/paper/dropout-as-a-bayesian-approximation">Monte Carlo Dropout</a>, <a href="https://en.wikipedia.org/wiki/Variational_autoencoder">Variational Autoencoders</a>, <a href="https://en.wikipedia.org/wiki/Gaussian_process">Gaussian Processes</a>, the <a href="https://www.sumsar.net/blog/2015/04/the-non-parametric-bootstrap-as-a-bayesian-model/">Dirichlet Bootstrap</a>, and more.</p><p>It’s also worth pointing out that even traditional ML approaches bear some relationship to Bayesian ML in terms of their approaches to <em>regularization</em>. Often times, an L1 penalty on a regression coefficients corresponds to doing <em>maximum a posteriori</em> inference on a regression with <a href="https://en.wikipedia.org/wiki/Laplace_distribution">Laplacian</a> priors, and similarly between an L2 penalty and Gaussian priors on regression coefficients. While you still don’t get the distributional output that a fully Bayesian approach would, the relationship between regularization and Bayesian prior distributions is an interesting and deep one.</p><p>One of the chief benefits of taking a machine learning approach to Bayesian learning is the ability to represent hierarchical relationships, such as in <a href="https://en.wikipedia.org/wiki/Bayesian_network">Bayesian Networks</a>. Bayesian Networks (aka Bayes Nets) represent complex relationships between probabilistic variables by a graphical representation consisting of <em>nodes</em> representing the variables (quantities over which we are uncertain) and <em>directed edges </em>representing a conditional probabilistic dependency.</p><p>Consider the Bayes Net below as an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*PGU9k20-L1aQKwJd0YcTHw.png" /><figcaption>Image courtesy of <a href="https://commons.wikimedia.org/wiki/File:SimpleBayesNet.svg">AnAj</a>, Public domain, via Wikimedia Commons</figcaption></figure><p>These networks simplify the representation of complex chains of conditional dependencies. These probabilistic structures allow for modeling of the flow of observational evidence, uncertainty, and causal and counterfactual reasoning. Performing an inference on a Bayes Net (often called <em>querying the graph</em>), can involve not only inputs and outputs, as in traditional ML models, but specific <em>structural changes</em> to the network, enabling kinds of inference in one model that might take multiple different traditional ML models (and clever data engineering) to represent. Bayes Nets indeed set the statistical foundation for our probabilistic knowledge graphs, discussed in the next section.</p><h3>Probabilistic Knowledge Graphs (PKGs)</h3><h4>The What</h4><p>At Accenture Labs, we have been developing the concept of probabilistic knowledge graphs to address the availability and ease of quantitative reasoning over connected data. A probabilistic knowledge graph (PKG), as we conceive it, is an extension of the traditional semantic knowledge graph to enable probabilistic and statistical reasoning. While there are other broadly probabilistic approaches besides a Bayesian approach, Bayesian probabilism is arguably the most well-developed and theoretically grounded form of probabilistic reasoning. While we also explore promising alternatives at Accenture Labs, our current iteration of the PKG is set directly in the Bayesian statistical paradigm, utilizing and enabling all the machinery that it entails.</p><h4>The Why</h4><h4>Automating Probabilistic and Statistical Queries</h4><p>One might ask, “If my organization already has a knowledge graph, analytics capabilities, machine learning pipelines, and data scientists, why do I need a probabilistic knowledge graph?” Consider again the semantic knowledge graph — it enables and unifies semantic reasoning at scale. The key for PKGs is similar: to enable unified quantitative reasoning at scale.</p><p>Let us say we have a set of performance metrics (KPI) for our department, and we ask our analytics team to produce daily reporting that estimates our upcoming KPI and how likely we are to hit our established targets. The analytics team can set up a pipeline to retrieve the necessary data from the data sources, transform the data for modeling, produce and evaluate a model, then output a dashboard with the requested estimates. Then, let’s say we also want to produce a report that suggests KPI targets for next quarter. The analytics team can again retrieve the data from the data sources, transform the data, and so on. The point here is for each additional question we want our data to answer, we need to have someone analyze the question and set up a data-to-model-to-output pipeline. This takes time ranging from hours to indefinitely never (if the new work never gets prioritized).</p><p>A PKG solves this problem by allowing for automatic and scalable modeling of relationships between data already present in a knowledge graph. The PKG can take each of the above requests as simple <em>probabilistic queries</em>, written in a simple extension to SPARQL we’ve developed at Accenture Labs, resolve those queries with an underlying probabilistic engine, and return the desired results along with uncertainty bounds, trade-off estimates, etc.</p><h4>Automatic Decision Support</h4><p>Another benefit to the probabilistic reasoning above is it allows for a form of automated <em>decision support</em>. By utilizing <a href="https://en.wikipedia.org/wiki/Expected_utility_hypothesis"><em>utility theory</em></a>, we can take the estimates and uncertainties associated with the KPI’s above together with a business-defined <em>utility function</em> that accounts for things like profit, loss/costs, and desired risk profile to produce recommended business foci and support optimal decision making. This also allows for the presentation of a <em>decision frontier </em>to understand the range and tradeoffs associated with potential decisions.</p><h4>Causal Analysis</h4><p>A third benefit of the probabilistic knowledge graph is enabling graph-based causal analysis. Causal relationships between quantities are readily encoded by the <em>directed acyclic graph</em> in our PKG. Using causal relationships, we can estimate the effects of different <em>counterfactual scenarios</em> like, “If we added 10g less sugar per unit in our recipes, how would that affect the cooking duration of our product, and, thus, our total power consumption at scale?” This is done by mutating the <em>structure </em>of the graph in particular ways when doing inference, such as is described by the <a href="https://arxiv.org/abs/1305.5506">do-calculus</a>.</p><h4>Reasoning Introspection</h4><p>The reasoning in a PKG is made transparently — the variables and relationships used to provide results and recommendations is entirely introspectable and human-understandable. Unlike machine learning models like deep neural networks which internally produce their own internal representations of the data they are fed (think CNNs), the models created by the PKG are punctuated throughout with nodes that exist in a human-based understanding of the world or business. Even if multilayer networks are used between individual nodes in a graph, the probabilistic model’s understanding of the data must remain intelligible from the outside. This can make it safer for applications where black-box models are unsuitable for their inscrutability.</p><h3>The How</h3><p>How does Accenture Labs’ probabilistic knowledge graph work?</p><p>Our PKG functions by first taking the pre-existing semantic relationships in a knowledge graph as (defeasible) indications of probabilistic relationships between entities. Using that information, we build a Bayesian network that lifts the semantic graph into a probabilistic graph.</p><p>After that, we utilize statistical network learning techniques to grow new probabilistic connections that may not have a semantic relationship, as well as prune edges that are not statistically relevant.</p><p>Once the lifted Bayesian network is built, we’re able to condition and query the new layer, utilizing underlying probabilistic inference engines such as <a href="https://www.pymc.io/">PyMC</a>, <a href="https://pyro.ai/">Pyro</a>, or <a href="https://www.tensorflow.org/probability/">Tensorflow Probability</a>. This probabilistic layer automatically builds approximate models subject to the defined network constraints and the underlying data that allow for statistical and decision inferences.</p><p>The underlying network structure allows us to do several optimizations as well:</p><ul><li>Instead of modeling the entire network of data, we identify and utilize only the relevant subnetworks of the graph necessary for answering a query (see <a href="https://en.wikipedia.org/wiki/Markov_blanket">Markov Blanket</a> and <a href="https://en.wikipedia.org/wiki/Bayesian_network#d-separation">d-separation</a>).</li><li>When conditioning the network on data, it is often not necessary to unroll the entire dataset into a single tabular form as is done with large machine learning models or deep learning models. Data can often remain factorized at the node level, avoiding common issues with, for example, dimensionality or representing data missingness.</li><li>For subnetworks where the directed network dependencies represent <em>cause and effect</em>, then the probabilistic network structure enables <em>causal</em> estimation and <em>counterfactual</em> reasoning on those variables.</li></ul><h3>Some caveats</h3><p>In a post introducing the benefits of a newly developing technology, it is also important to talk about some caveats of this approach, since no technology is a panacea. While PKGs allow for flexible, on-demand quantitative reasoning at scale and, thus, can provide some cost savings for many cases, it will not replace all applications. For example, PKG’s reason about the world using the same entities and relationships that we define in the ontology — very much on a human level. However, we know that, for example in deep learning, significant prediction accuracy gains can be had by allowing a tuned model to define its own internal, latent representations. While DNN’s and other specialized machine learning technologies can be integrated with a PKG, we do not expect to replace these specialized applications. A custom-tuned model will nearly always outperform a generalized approach like ours. However, even in these situations, a PKG can act as a good exploratory and first-draft modeling tool. That is, a PKG can serve as a first-pass use case validation tool to establish the viability of certain applications before investing in a custom modeling pipeline.</p><h3>Final Thoughts and Future Directions</h3><p>The probabilistic knowledge graphs developed by Accenture Labs promise to bring easier quantitative inference to connected data the same way semantic knowledge graphs have brought semantic inference. By utilizing a common graph backbone, PKG’s are able to:</p><ul><li>reason about the quantitative relationships between entities already defined in a business’ semantic layer,</li><li>bring ad hoc statistical inference and prediction to the ease of a query to enable rapid quantitative understanding,</li><li>support decision making for business-specific targets and risk profiles,</li><li>allow estimation of counterfactuals for interventions (such as ad campaigns or drug treatments), and</li><li>demonstrate their reasoning in an introspectable way.</li></ul><p>PKGs also sit on top of existing semantic KG infrastructure and, thus, do not require retooling for those who have already transitioned to a knowledge graph for their enterprise. This saves on initial and ongoing maintenance costs.</p><p>Some future research directions for our approach to PKGs include:</p><ul><li>exploring fuzzy reasoning for qualitative data,</li><li>introducing generalized data fusion to address intrinsically inconsistent information, and</li><li>enabling probabilistic open-world reasoning for evolving business domains</li></ul><p>We believe that by using the core backbone of a probabilistic graph, these further approaches would allow this technology to solve an even broader class of enterprise problems than is readily tackled today.</p><h3>A Few Good Reads (Blogs)</h3><ul><li><a href="https://statmodeling.stat.columbia.edu/">https://statmodeling.stat.columbia.edu/</a></li><li><a href="https://www.countbayesie.com/">https://www.countbayesie.com/</a></li><li><a href="https://doingbayesiandataanalysis.blogspot.com/">https://doingbayesiandataanalysis.blogspot.com/</a></li></ul><h3>Further Resources (Books and Articles)</h3><ul><li>Carvalho, R. N., Laskey, K. B., and Costa, P. C. G. (2017). PR-OWL — A language for defining probabilistic ontologies. International Journal of Approximate Reasoning, 91:56–79.</li><li>PR-OWL: A Probabilistic Extension to the OWL Ontology Language: <a href="https://www.pr-owl.org/">https://www.pr-owl.org/</a></li><li>Howson, C. and Urbach, P. (2006). Scientific Reasoning: The Bayesian Approach. Philosophy Series. Open Court.</li><li>Van Horn, K. S. (2003). Constructing a logic of plausible inference: a guide to cox’s theorem. International Journal of Approximate Reasoning, 34(1):3–24.</li><li>Chechile, R. A. (2020). Bayesian Statistics for Experimental Scientists: A General Introduction Using Distribution-Free Methods. MIT Press.</li><li>Pearl, J., Glymour, M., and Jewell, N. P. (2016). Causal Inference in Statistics: A Primer. Wiley.</li></ul><h3>Accenture Personae</h3><ul><li>Jake Metzger: Associate Principal R&amp;D Scientist with Accenture Labs’ Systems and Platforms Team: <a href="https://medium.com/@jake.metzger">https://medium.com/@jake.metzger</a></li><li>Alexandria Pabst: Associate Principal R&amp;D Scientist with Accenture Labs’ Digital Experiences Team: <a href="https://medium.com/@alexandriapabst">https://medium.com/@alexandriapabst</a></li><li>Hayden Freedman: PhD Candidate in Software Engineering at UC Irvine; Research Associate with Accenture Labs’ Systems and Platforms Team: <a href="https://medium.com/@hfreedma">https://medium.com/@hfreedma</a></li><li>Neda Abolhassani: Principal R&amp;D Scientist with Accenture Labs’ Systems and Platforms Team: <a href="https://medium.com/@neda.abolhassani">https://medium.com/@neda.abolhassani</a></li><li>Ana Tudor: Technology R&amp;D Specialist with Accenture Labs’ Systems and Platforms Team</li><li>Sanjoy Paul: IEEE Fellow and Managing Director of Accenture Labs’ Systems and Platforms Team</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34fc16c45dd1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/labs-notebook/unlocking-business-value-using-knowledge-graphs-and-probabilistic-reasoning-34fc16c45dd1">Unlocking Business Value using Knowledge Graphs and Probabilistic Reasoning</a> was originally published in <a href="https://medium.com/labs-notebook">Labs Notebook</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intro to Bayesian Probabilistic Reasoning]]></title>
            <link>https://medium.com/labs-notebook/intro-to-bayesian-probabilistic-reasoning-3a5a2d44d6e7?source=rss-9304b3df1cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a5a2d44d6e7</guid>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[bayesian-inference]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[bayesian-statistics]]></category>
            <dc:creator><![CDATA[Jake Metzger]]></dc:creator>
            <pubDate>Thu, 09 Mar 2023 19:21:08 GMT</pubDate>
            <atom:updated>2023-03-13T13:12:14.639Z</atom:updated>
            <content:encoded><![CDATA[<p>By Jake Metzger and <a href="https://medium.com/@alexandriapabst">Alexandria Pabst</a> — Accenture Labs</p><h3>Setting the Scene</h3><p>This post is an opinionated, whirlwind introduction to the motivations of Bayesian epistemology, probability, and statistical inference. We get into some philosophical and mathematical details here, which produce downstream scientific and technological differences as well. This will set the groundwork for our following discussions on the real-world applications of probabilistic reasoning.</p><p><strong>Warning for the squeamish:</strong> There is some math ahead. But don’t be afraid, it’s <em>cool</em> math. Just look at Reverend Thomas Bayes here, rockin’ shades from the 1750&#39;s:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*SOJfepmf8a0rf0DjI4mr3A.jpeg" /></figure><p>More seriously, just keep your eye on the high-level concepts as we walk through the math, and you’ll be just fine.</p><h3>Bayes’ Rule</h3><p>In probability, Bayes’ Rule stated below is a consequence of the standard definition of conditional probability (“The probability of X given Y”). It’s stated a few equivalent ways below for emphasis that will be explained afterward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*n-8X8_tSFHt2K9xux4ufbA.png" /></figure><h4>(1) Bayes’ Rule as the Transformation of Geometric Areas</h4><p>Formula (1) above lends itself to a nice geometric interpretation as a transformation of areas. Let us suppose that we know P(X), P(Y), P(Y|X) and we want to know P(X|Y). Then we can construct the initial rectangle shown on the left. The left rectangle below has total dimensions (1, P(Y)) such that its total area is P(Y). Note that the P(Y) edge is the short edge. We further subdivide the short axis further into [P(Y|X) + P(Y|~X)]. Then, we subdivide the long axis into [P(X) + P(~X)]. Then, note the green sub-rectangle formed by P(X)P(Y|X) whose area is in terms of known quantities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Iowtn1aHXxibRiKh0ljdQ.png" /></figure><p>Then consider a similarly constructed rectangle on the right, but note the purple subrectangle which represents the area P(X∣Y), our target that we don’t yet know. In order to transform the green area to the purple area, note that we need to multiply the vertical axis by P(X)/P(Y) and multiply the horizontal axis by 1/P(X). This means that the purple area is equal to P(X)P(Y∣X)∗P(X)/P(Y)∗1/P(X) which, after simplification, is precisely Bayes’ Rule in formula (1).</p><h4>(2) Bayes’ Rule as Reversing Conditional Probabilities</h4><p>In formula (2), we can see that we can determine the conditional P(X∣Y) in terms of the conditional P(Y∣X) by multiplying by a ratio of the marginal (unconditional) probabilities P(X) and P(Y). That is, Bayes’ Rule allows us to <em>reverse the direction of the conditional</em>. That is, instead of conditioning X on Y, we can condition Y on X.</p><h4>(3) Bayes’ Rule as Updating Probabilities based on Data</h4><p>In formula (3), we can also see Bayes’ Rule as updating P(X) to P(X∣Y), conditioning X on Y by multiplying by a ratio of the likelihood P(Y∣X) and the marginal probability P(Y). We can interpret P(X) as an estimate that is ignorant of data Y, and that by conditioning X on Y, we obtain an updated probability for X that takes Y into account. Under this interpretation, P(X) is called the <em>prior</em> probability (think probability before data), and P(X∣Y) is called the <em>posterior</em> probability (think, probability after data).</p><h3>“Traditional” Probability and “Bayesian” Probability</h3><p>Bayes’ Rule, as a consequence of definitions, is used by <em>everyone</em> that makes reference to probability. However, what exactly “probability” means is up for some interpretation. One interpretation of probability is the traditional frequentist view which interprets probabilities as (roughly speaking) frequencies of events observed in the long run.</p><p>As an example, a frequentist would say that the probability that a coin lands HEADS is the hypothetical proportion of the number of heads to the number of experiments if we were to repeat the flips infinitely many times. A frequentist might also say that probabilities, properly speaking, belong to <em>random events</em> not <em>hypotheses about model parameters</em>. That is, there is no probability that, “The coin is a fair coin”. The hypothesis is either true or false — it is not a <em>random variable</em> under a frequentist interpretation of probability; it is not the output of a random data generation process with a long-run frequency. With this view, we cannot talk about which hypothesis is more likely, but we <em>can</em> talk about how unlikely the data we gathered would be under each hypothesis and choose the hypothesis that best fits the data we observed.</p><p>For so-called Bayesians, however, probability is less about hypothetical, long-run proportions of a random data generating process. Rather, Bayesians are concerned with our <em>state of information</em> and the dynamics of moving from a state of ignorance to a state of knowledge. That is, Bayesian probability is <em>epistemic</em>. Even under this umbrella there are different kinds of Bayesian probability, some kinds are more <em>subjective</em> and some are more <em>objective</em>, though Bayesian probability is frequently pigeonholed as only being the subjective kind. Such a characterization, though widely popular, is untrue for various reasons that do not need to be expanded here. The point is that the machinery of Bayesian probability is tied to understanding Bayes’ rule not only as a way to invert conditional probabilities (as in formula (2)) but as a way to <em>update</em> to a data-informed state of information from a less-informed state in a unified, probabilistically consistent way (embodied in formula (3)). To further clarify, consider the difference between <em>synchronic</em> and <em>diachronic</em> applications of Bayes’ Rule in the following subsections.</p><h4>Synchronic Bayes</h4><p>In the real world, there are two broad ways we acquire information. We either receive all of our relevant information at once, <em>synchronically</em>, or we receive it piecemeal over time, <em>diachronically</em>. For information received synchronically, everyone (Bayesian, non-Bayesian) agrees that probability estimates should follow formula (2), the <em>synchronic</em> interpretation of Bayes’ Rule.</p><h4>The Marble Jar</h4><p>Suppose I have a jar with 2 Yellow, 1 Red, and 1 Blue marble, equally sized and weighted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/75/1*obqIoD0OhfcOstzgUKumCw.png" /></figure><p>All interpretations of probability will agree on things like the probability of picking a Blue marble (with replacement) after picking a Yellow one P({Y,B}∣{Y}). All the relevant information is available synchronically. To drive the point, we can use Bayes’ rule (formula (2)) to invert the conditional as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*MXpdh4mtA8Rb0AxuV7KP2A.png" /></figure><p>Noting that in this case P({Y}∣{Y,B})=1, P({Y,B})=2/4∗1/4=2/16=1/8, and P{Y}=2/4, yielding the result 1/4, which is what we might guess without Bayes’ rule by a simple counting argument — we’re guaranteed to keep the first Y marble, so the probability of {Y,B} should just be the probability of pulling the Blue, which is equal to the ratio of the count of Blues (1) to the total count of marbles (4).</p><p>Again, each approach to probability agrees with this result, Bayesian and non-Bayesian.</p><h4>Diachronic Bayes</h4><p>However, there are some differing opinions when it comes to applying Bayes’ Rule <em>diachronically</em>, particularly starting from a state of ignorance.</p><h4>The Mystery Marble Jar</h4><p>Suppose I instead have a jar with 4 marbles that could be Yellow, Red, or Blue, but I don’t know in what proportions. What is the probability of picking a Yellow marble?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/75/1*G5vHbThygnKKn6ZiE9oCVA.png" /></figure><p>The traditional frequentist might say something like, “Because we don’t know the proportions of the marbles in the jar and we don’t (yet) have any pulls from the jar, we can’t say anything about the probabilities P(Y), P(R), or P(B). Without any data, we cannot compare any of the possible marble proportions in the jar”.</p><p>Those that subscribe to a Bayesian interpretation of probability, aka “Bayesians”, see probabilities as <em>epistemic</em> values as opposed to frequencies of a data generating process. A Bayesian in the above situation might utilize a <a href="https://en.wikipedia.org/wiki/Principle_of_indifference">Principle of Indifference</a> to argue that, given their state of information, Y, R, and B are symmetric. And since P(Y) + P(R) + P(B) = 1, they can assign a tentative probability of 1/3 to each.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/75/1*etG6uKsXZixlyilNmfDo3g.png" /></figure><p>We could be more explicit about this assessment as follows. Without loss of generality, let us consider the probability of selecting a Yellow marble. We can note that there are 5 possibilities for the number of Yellow marbles (Ny) in the jar: 0, 1, 2, 3, and 4, and we are indifferent between them. However, by considering the possibilities for the other marbles (i.e. the state of the jar) by counting, we know that there is only 1 way for Ny=4, 2 ways for Ny=3, 3 ways for ways for Ny=2, 4 ways for Ny=1, and 5 ways for Ny=0. Taking the expectation via weighted sum, we have:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*4giQc0ESc2zy_CyhCAeUBA.png" /></figure><p>That is, we expect, on average, that there are 4/3 Yellow marbles in the jar. That makes our probability of drawing a Y out of 4 marbles P(Y)=1/3.</p><p>Let us now pull a marble from the mystery jar and have it be Yellow.</p><p>A traditional frequentist might say that, while there is a significant amount of uncertainty, the proportion of Y, R, and B that <em>best fits</em> this data point is that the jar is full of Yellow marbles (Y=4, #R=0, #B=0), noting that any other proportion would necessarily have a lower probability of yielding a Yellow marble. (Any real-life frequentist, though, would just refuse this estimate as essentially meaningless, which is perhaps fair enough in practice, though this seems a tad unprincipled given the apparent tension in moving from refusing to define any probability estimate to an estimate that is totally unbalanced based on a single data point.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/183/1*dIni75Uw1l17__qpkFHsWQ.png" /></figure><p>By contrast, the Bayesian above would just update their previous estimate to a new one reflecting the new data. First, let’s consider this update using Bayes’ Rule. After that, we’ll sanity check the result using the Principle of Indifference.</p><p>Our form of Bayes’ Rule is formula (3) above:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/194/1*8gwYtX1LvNk8sDDtrMYpfQ.png" /></figure><p>Note that P({Y})=P(Y) in this case. The numerator is calculated as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*DM0P2czwgQiyOnsvoNeoNw.png" /></figure><p>Putting these together:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*vWYo7c_JVx0dgl1-hwsHUQ.png" /></figure><p>That is, the Bayesian has an updated probability estimate for drawing a Yellow marble up from 1/3 to 1/2 based on the available data. Note that this differs from the frequentist <em>maximum likelihood estimate</em> by 50%!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/74/1*DRjt63xWO4w_7xJXO5YKdQ.png" /></figure><p>To understand why the Bayesian estimate makes sense, we can also look at calculating this new estimate directly, using the previously mentioned Principle of Indifference. Consider that we know, for sure, at least one marble is Yellow. Our uncertainty now spans evenly over the three remaining marbles in the jar, which, by the previous application, each have a 1/3 probability of being Yellow. So, if we consider directly estimating how many Yellow marbles are in the jar, we have 1+3(1/3)=2 out of 4 marbles, which is a probability of 1/2 for drawing a Yellow marble.</p><h4>Isn’t Bayesian probability too subjective for real work?</h4><p>Often one will hear Bayesian probability described as <em>subjective</em>, up to the whims of whoever is doing the inference. This isn’t strictly true: while subjectivist Bayesianism is perhaps the historically dominant Bayesian view, there are a host of modern objective interpretations and methods of Bayesian probability, such as the use of uninformative or maximum entropy prior distributions (I, tentatively, subscribe to the latter camp). The essence of Bayesian probability is not subjectivity; it is rather how to apply <em>probabilistically consistent rules of reasoning</em> given one’s state of information, whether one is man or machine.</p><p>Often this concern of subjectivity is driven by the dual assumption that traditional frequentist probability is more objective because it purports to represent observable, repeatable frequencies. Unfortunately this dual assumption is also false. One example of this in practice is the odd dependence of frequentist statistical results on the <a href="https://doingbayesiandataanalysis.blogspot.com/2014/08/stopping-and-testing-intentions-in-p.html"><em>sampling intentions</em></a> of the researcher — that is, whether a frequentist statistical result is “significant” intimately depends on the intentions of the researcher gathering the experimental data rather than on the data itself. Failure to account for this fact leads to “P-hacking”, a recurring bane for academic publication and experimental replication.</p><p>For example, if a frequentist has collected coin flip data with 22 HEADS and 13 TAILS, whether or not this result is significant depends on whether the researcher <em>intended</em> to stop at 35 coin flips or whether the researcher was operating under the (potentially unconscious) intention to flip the coin until their results reached a target significance threshold or otherwise operated under a rule that deviated from the experimental design assumed by the underlying statistical assumptions. That is, two researchers with the <em>same data in hand </em>can have different significance levels based on the private data collection <em>intentions</em> of the researcher at the time the data was collected. This is partly why, in modern practice, high-quality, frequentist data collection procedures must <a href="https://people.duke.edu/~jch8/bio/Papers/J%20Consum%20Psychol%20-%202020%20-%20Simmons%20-%20Pre%E2%80%90registration%20%20Why%20and%20How.pdf">often be <em>pre-registered</em></a>. In the machine learning and data science world, we often have <em>very little to no idea</em> how a given dataset was gathered much less the sampling intentions of researchers producing a dataset. We hope that our datasets are gathered unproblematically, but in practice datasets are messy and biased and we have to find ways to tolerate or correct for these problems. Bayesian approaches rely on fewer contingencies from data collection, focusing instead on the data in hand as opposed to what data would have looked like if the dataset was repeatedly collected under the same sampling intentions.</p><p>Furthermore, it’s worth pointing out that even though Bayesian probability and frequentist probability disagree on the somewhat niche and philosophical question of the nature of probability, <em>Bayesian probability and frequentist probabilities agree in the limit</em>. That is, as more concrete data is provided, Bayesian probability estimates and frequentist probability estimates will converge to each other. This is true even for the truly subjectivist Bayesian who allows arbitrary (nonzero) prior distributions — insofar as one is probabilistically consistent in using Bayes’ Rule to update one’s probability estimates, data will eventually overwhelm a mistaken prior estimate. Note that this is precisely the same regime that frequentist guarantees are defined — the long-run limit.</p><p>Meanwhile in the small-to-medium data regime, where prior distributions do play a role, you get the natural regularization of a prior distribution (which can either be informed by previous expectations or uninformative), and you get the very natural propagation of uncertainty using Bayes’ Rule, rather than ad hoc frequentist uncertainty estimates which typically rely on the <a href="https://en.wikipedia.org/wiki/Central_limit_theorem">Central Limit Theorem</a>, which is only strictly holds in the long run (that <a href="https://www.goodreads.com/quotes/6757924-in-the-long-run-we-are-all-dead-economists-set">we’re never actually in</a>, in practice).</p><p>Colin Howson and Peter Urbach in their classic defense of Bayesian scientific reasoning conclude the following,</p><blockquote><em>Our view, and we believe the only tenable view, of the Bayesian theory is of a theory of consistent probabilistic reasoning. Just as with the theory of deductive consistency, this gives rise automatically to an account of valid probabilistic inference, in which the truth, rationality, objectivity, cogency or whatever of the premises, here </em>prior probability assignments<em>, are exogenous considerations, just as they are in deductive logic. (</em>Scientific Reasoning: The Bayesian Approach, p. 301<em>)</em></blockquote><p>That is, Bayesian inference is fundamentally about probabilistic consistency in inference, and that in this way it’s as objective as the rules for deductive logic. Just as we do not expect deductive logic to solve the subjectivity of accepting the premises of an argument, we should not expect probabilistic inference to solve the purported subjectivity of defining prior distributions. Indeed, it can be argued that the dominant non-probabilistic alternative simply makes its sources of subjectivity more implicit, and thus more insidious.</p><p>(Also see <a href="https://en.wikipedia.org/wiki/Probability_axioms">Kolmogorov Axioms</a>, <a href="https://en.wikipedia.org/wiki/Cox%27s_theorem">Cox’s Theorem</a>, <a href="https://en.wikipedia.org/wiki/Dutch_book">Dutch Book</a>, <a href="https://en.wikipedia.org/wiki/Principle_of_indifference">Principle of Indifference</a>, <a href="https://en.wikipedia.org/wiki/Principle_of_maximum_entropy">Principle of Maximum Entropy</a> <a href="https://en.wikipedia.org/wiki/Central_limit_theorem">Central Limit Theorem</a> )</p><h3>Bayesian Statistics: From Bayes’ Rule to “Bayes Rules!”</h3><p>If you made it through the above section, Congratulations! Getting into a little of the nitty gritty is important to understanding what makes Bayesian stats and Bayesian ML different. On the one hand, Bayesian stats is just <em>using Bayes’ Rule</em> to answer statistical questions and, in that sense, is simpler than moving from probability theory to traditional, non-probabilistic statistics with seemingly ad hoc inference rules. But, I’ll explain (and oversimplify) below some of the highlights of a Bayesian statistical approach that may not be immediately obvious based on the above discussion.</p><p>First, Bayesian statistics aims at directly asking, “How likely is my hypothesis given my data?” This may be a small point, but it’s worth pointing out that traditional statistics does <em>not</em> directly answer this question. Instead, it answers the question, “How likely is my data given my hypothesis?”, which is the converse question. A traditional hypothesis test prescribes that if a test statistic extracted from the data is too unusual (as specified by a <em>confidence level</em>) under a null hypothesis that we should reject the null hypothesis. This procedure, when repeated, provides a certain long-run, probabilistic guarantee on its error rate, but it says little about whether the specific hypothesis you rejected is <em>more likely than any alternative</em> given your data.</p><p>A Bayesian analysis, however, can answer whether a default hypothesis is more likely than its alternatives, albeit with a different set of probabilistic guarantees. This is because a Bayesian analysis can treat competing hypotheses themselves as (epistemic) random variables about which we can be uncertain, as represented by a probability distribution.</p><p>Second, Bayesian statistics is concerned with <em>posterior probability distributions</em> as opposed to maximizing likelihoods to fit data. The result of a fully Bayesian analysis is a full distribution of values representing not only a most likely value but a distribution of values, in proportion to their probability.</p><p>As an example, consider Bayesian linear regression:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*QOHSHYxmUAd3rMTErK1gGA.png" /></figure><p>Here, we don’t just get a single fit line but a range of fit lines that are consistent with the given data, giving an intuitive sense of uncertainty about the true data generating process.</p><p>Third, a major theme in Bayesian statistics is <em>uncertainty propagation</em>. That is, typically we want to estimate not only the most likely value of a parameter but also have some measure of how reliable we take that estimate to be. Then, we want to plug that uncertainty into any downstream reasoning as well, keeping it in our final results. That is, if we’re uncertain about variable A, and A causes B which causes C, we should have some amount of uncertainty about C that propagates downward from A. Then if I later want to investigate variable D where C causes D, then, because we already have the uncertainty of C, we can just use Bayes’ Rule to propagate C’s uncertainty to D. Because Bayesian statistical approaches involve updating distributions to distributions with data, it’s easy to propagate uncertainty accordingly, like stacking building blocks of analysis.</p><p>However, traditional, frequentist approaches to uncertainty most typically utilize maximum likelihood estimates together with confidence intervals. Because confidence intervals do not represent <em>distributions</em> of uncertainty (just <em>ranges</em> that a value is either <a href="https://en.wikipedia.org/wiki/Confidence_interval#Common_misunderstandings">inside or outside</a>), propagating that uncertainty forward into subsequent analyses is nontrivial. Also, as before, frequentist uncertainty typically represents the question <em>converse</em> to the one we actually care about: confidence intervals measure in what range we should expect to measure our test statistic in repeated trials under the null hypothesis, not how confident we should be in our null hypothesis given our data. Thus the forward propagation of uncertainty does not follow a simple rule in the same way that the above does. This also comes up, for example, in the contrast between Bayesian and traditional approaches to meta-analysis, where we try to combine information from multiple experiments into a single conclusion. The Bayesian approach to meta-analysis typically consists just of applying Bayes’ Rule whereas traditional meta-analyses have more complicated requirements (because, again, frequentist uncertainty is intimately tied to long-run frequencies generated by particular experimental setups and sampling intentions, not directly with what the <em>actual data-in-hand</em> says.)</p><h3>Closing Remarks</h3><p>In this introduction, we’ve discussed how a Bayesian approach to probability differs from the traditional approach by focusing on updating one’s <em>state of information </em>using Bayes’ Rule. We’ve also discussed how Bayesian statistics, as an extension of Bayesian probability, allows for the <em>natural propagation of uncertainty</em> through different parts of our analysis and how it enables us to <em>directly answer the questions we care about</em> (“How likely is my hypothesis given my data?”) rather than settling for point or interval estimation on the converse question (“How likely is my data given my hypothesis?”). We touched on <em>some issues for non-Bayesians in scientific contexts </em>and pushed back on the assumption that traditional probability is more “objective” than Bayesianism in practice. All of this sets the groundwork for accelerating a Bayesian approach using machine learning, deep learning, and graphical learning and integration with utility theory and causal inference, which will be covered elsewhere.</p><h3>A Few Good Reads (Blogs)</h3><ul><li><a href="https://statmodeling.stat.columbia.edu/">https://statmodeling.stat.columbia.edu/</a></li><li><a href="https://www.countbayesie.com/">https://www.countbayesie.com/</a></li><li><a href="https://doingbayesiandataanalysis.blogspot.com/">https://doingbayesiandataanalysis.blogspot.com/</a></li><li>A nice side-by-side interactive demo by John Kruschke: <a href="https://iupbsapps.shinyapps.io/KruschkeFreqAndBayesApp/">https://iupbsapps.shinyapps.io/KruschkeFreqAndBayesApp/</a></li></ul><h3>Further Resources (Books and Articles)</h3><ul><li>Howson, C. and Urbach, P. (2006). Scientific Reasoning: The Bayesian Approach. Philosophy Series. Open Court.</li><li>Van Horn, K. S. (2003). Constructing a logic of plausible inference: a guide to cox’s theorem. International Journal of Approximate Reasoning, 34(1):3–24.</li><li>Chechile, R. A. (2020). Bayesian Statistics for Experimental Scientists: A General Introduction Using Distribution-Free Methods. MIT Press.</li><li>Pearl, J., Glymour, M., and Jewell, N. P. (2016). Causal Inference in Statistics: A Primer. Wiley.</li><li>Titelbaum, M. G. (2022). Fundamentals of Bayesian Epistemology 1: Introducing Credences. Oxford University Press.</li><li>Titelbaum, M. G. (2022). Fundamentals of Bayesian Epistemology 2: Arguments, Challenges, Alternatives. Oxford University Press USA — OSO.</li><li>Williamson, J. (2010). In Defence of Objective Bayesianism. Applied logic series. OUP Oxford.</li></ul><h3>Accenture Personae</h3><ul><li>Jake Metzger: Associate Principal R&amp;D Scientist with Accenture Labs’ Systems and Platforms Team: <a href="https://medium.com/@jake.metzger">https://medium.com/@jake.metzger</a></li><li>Alexandria Pabst: Associate Principal R&amp;D Scientist with Accenture Labs’ Digital Experiences Team: <a href="https://medium.com/@alexandriapabst">https://medium.com/@alexandriapabst</a></li><li>Hayden Freedman: PhD Candidate in Software Engineering at UC Irvine; Research Associate with Accenture Labs’ Systems and Platforms Team: <a href="https://medium.com/@hfreedma">https://medium.com/@hfreedma</a></li><li>Neda Abolhassani: Principal R&amp;D Scientist with Accenture Labs’ Systems and Platforms Team: <a href="https://medium.com/@neda.abolhassani">https://medium.com/@neda.abolhassani</a></li><li>Ana Tudor: Technology R&amp;D Specialist with Accenture Labs’ Systems and Platforms Team</li><li>Sanjoy Paul: IEEE Fellow and Managing Director of Accenture Labs’ Systems and Platforms Team</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a5a2d44d6e7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/labs-notebook/intro-to-bayesian-probabilistic-reasoning-3a5a2d44d6e7">Intro to Bayesian Probabilistic Reasoning</a> was originally published in <a href="https://medium.com/labs-notebook">Labs Notebook</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>