Bayesian statistics: the three cultures

Subjective Bayes

A traditional subjective Bayesian will assume a data generating distribution (aka a likelihood when viewed as a function of the parameters). Then, conditional on this assumption, they encode their prior beliefs as a prior distribution over parameters. After this, they turn the crank on posterior inference and don’t look back.

I’m not sure if anyone ever followed this philosophy strictly, nor do I know if anyone would register their affiliation as subjective Bayesian these days.

Objective Bayes

I believe the so-called “objective Bayes” philosophy stems from a combination of wanting to do hypothesis testing (perhaps using Bayes factors) and deeply feeling what Andrew calls the “Bayesian cringe.” To quote from a paper by one of its leading proponents (my highlights),

Reference analysis produces objective Bayesian inference, in the sense that inferential statements depend only on the assumed model and the available data, and the prior distribution used to make an inference is least informative in a certain information-theoretic sense.

In: Berger, Bernardo and Sun. 2009. The formal definiton of reference priors.

There are still lots of folks characterizing (at least some of) their work this way judging from the fact that they run conferences, publish books with “objective Bayes” in the title, etc. It’s in some sense behind the wide gamma(epsilon, epsilon) and normal(0, 10_000) priors employed in the BUGS examples.

Pragmatic Bayes

Andrew follows a philosophy that I call “pragmatic Bayes.” It’s laid out crisply in the first edition of Gelman, Carlin, Stern, and Rubin’s book Bayesian Data Analysis, the second paragraph of which begins as follows (my highlights).

The process of Bayesian data analysis can be idealized by dividing it into the following three steps:

  1. Setting up a full probability model—a joint probability distribution for all observable and unobservable quantities in a problem. The model should be consistent with knowledge about the underlying scientific problem and the data collection process.
  2. Conditioning on observed data: calculating and interpreting the appropriate posterior distribution—the conditional probability distribution of the unobserved quantities of ul- timate interest, given the observed data.
  3. Evaluating the fit of the model and the implications of the resulting posterior distribution: how well does the model fit the data, are the substantive conclusions reasonable, and how sensitive are the results to the modeling assumptions in step 1? In response, one can alter or expand the model and repeat the three steps.

First, the probability model is joint, which means it includes the prior and the likelihood. Second, it characterizes our inputs as “knowledge” rather than “belief.” Third, it encourages practitioners to evaluate how well a model fits and its predictive consequences, and if there are issues, go back and try again. This process is what Andrew finally branded as “workflow.”

Standard operating procedure in engineering

This is standard operating procedure in engineering, where it is simply called “iterative design” . It’s the way almost all machine learning is done. Coming from a CS and ML background, I was shocked to learn that statisticians didn’t think this way.

Postscript on the strategy behind BDA

Andrew told me he made the explicit decision early on when writing the first edition of BDA to skip the philosophy and just “do” science. He and Rubin never characterized their iterative design process with a name.

I think that’s a wise choice, because it’s hard to characterize other peoples’ philosophical beliefs accurately and even harder to change them through debate. Or as editors like to tell writers, “show, don’t tell.” Or as I used to say back when I worked on linguistics and philosophy, if your scientific method needs a philosophy of science disclaimer, it’s probably not very convincing science.

Post2script on likelihood vs. prior

Although some of this discussion is about approaches to priors, I agree with Andrew that the choice of prior is no more or less “subjective” than the choice of likelihood. Andrew summed this up neatly in his post, “Straining on the gnat of the prior distribution while swallowing the camel that is the likelihood” .

Post3sript on belief vs. knowledge

From a philosophical perspective, I prefer a more epistemological characterization of priors and likelihoods in terms of “knowledge” rather than a doxastic characterization in terms of “belief”. This is the framing originally provided by Laplace and later explored more thoroughly by John Stuart Mill and followed by Gelman et al. in BDA.

Post4script on etymology behind this post

In 1959, C.P. Snow wrote what became a famous essay on the arts vs. sciences, titled “The two cultures.” In 2001, L. Breiman wrote an influential essay, titled “Statistical modeling: the two cultures.” [edit: Thanks for correct citation, Ben.] Breiman’s contrast is about the distinction between modeling a generative process explicitly versus using a very flexible model (“high capacity” in ML speak). Breiman championed decision forests in his work, and his approach is still winning Kaggle contests where there’s not enough data to fit a state-of-the-art neural network.

I wonder if Andrew considers decision forests and neural networks to be examples of what he called “the unfolding flower,” for example in this post.

58 thoughts on “Bayesian statistics: the three cultures”

  1. Bob:

    Regarding the Breiman paper that you mention, I wrote a discussion of it a few years ago for the journal Observational Studies. In that discussion, I listed some points where I agreed with Breiman and some points where I disagreed, and then I concluded:

    Breiman’s insights into meta-statistics as well as his statistical ideas remain relevant today. His anti-Bayesianism was a blind spot but it should not have much effect on now we read his article on the two cultures, once we recognize that hierarchical Bayes can be viewed as an example of his preferred approach.

    I will conclude by listing three ways that we can apply Breiman’s algorithmic perspective to current problems in statistics.

    First is the problem of taking inference from existing data and generalizing to a new predictive problem. This is a central task of statistics and arises even with the cleanest experimental and survey data, as we are almost always interested in applying our findings to new cases and new scenarios. In such problems we should respect Breiman’s dictum that the data mechanism is unknown—indeed, in these problems of generalization there is typically no “data mechanism” at all. I think the concept of “the data mechanism” is itself a holdover from traditional theoretical statistics. We can apply hierarchical modeling to regularize our predictions and apply cross-validation to evaluate them, and new challenges arise when cross-validating structured rather than independently distributed data.

    Second is the problem of model checking. Once we accept that our models are only approximations, this does not mean we can give up or relax into nihilism. By seeing how our models don’t fit the data, and where in data space this is happening, we can build better models and make better predictions. Models, being imperfect, are works in progress.

    Third is the problem of black-box computing. Random forests, hierarchical Bayes, and deep learning all have in common that they can be difficult to understand (although, as Breiman notes, purportedly straightforward models such as logistic regression are not so easy to understand either, in practical settings with multiple predictors) and are fit by big computer programs that act for users as black boxes. Anyone who has worked with a black-box fitting algorithm will know the feeling of wanting to open up the box and improve the fit: these procedures often do this thing where they give the “wrong” answer, but it’s hard to guide the fit to where you want it to go. There is a tension between Stern’s principles of model checking, model improvement, and using more data, and the black-box feel of modern predictive models.

    All this is to say that we have a lot more work to do, and seeing the strengths and weaknesses of Breiman’s arguments may point us in some helpful directions.

  2. Bob:

    Also regarding the title of your post, there’s a famous paper by I. J. Good on the 40,000+ varieties of Bayesians. I personally find that paper kind of annoying, because, if you slice the salami in as many directions as Good does in that article, you could find 40,000+ varieties of frequentists, or 40,000+ varieties of political scientists, or 40,000+ varieties of cognitive psychologists, or whatever. I don’t think Bayesians are more fractious than other subfields.

    Finally, regarding subjectivity and objectivity, I recommend this paper with Hennig, “Beyond subjective and objective in statistics.”

    • Although Good thought there were many types of Bayesians, he consistently provided a unifying definition of a Bayesian, such as this one from the paper you mention: “All Bayesians, as I understand the term, believe that it is usually meaningful to talk about the probability of a hypothesis and they make some attempt to be consistent in their judgements.” Or this example from his 1965 book: “Several different kinds of Bayesians exist, but it seems to me that the essential defining property of a Bayesian is that they regard it as meaningful to talk about the probability P(H|E) of a hypothesis H, given evidence E.” Or this one from another paper: “The essence of the Bayesian method, in all its forms, is that it assumes that probabilities of hypotheses are meaningful enough, either as credibilities or as subjective probabilities.”

      I guess I’m trying to say that although he may have been interested in the intricacies of his Doogian philosophy, he also focused mostly on defending the heart of the Bayesian approach. I think this quote from his 1950 book strikes at the core of the issue from his point of view: “Objections have frequently been raised against Bayes’ theorem on the grounds that the initial probabilities of the hypotheses cannot be estimated, or that they do not exist. The view held here is that the initial probabilities may always be assumed to exist within the abstract theory, but in some cases you may be able to judge only that they lie in rather wide intervals. This does not prevent the application of Bayes’ theorem: it merely makes it less effective than if the intervals are narrow. It is hardly satisfactory to say that the probabilities do not exist when the intervals are wide, while admitting that they do exist when the intervals are narrow.”

  3. Related: I am reading a pop-sci book on Bayes (optimistically titled Everything is Predictable) and there it says that someone claimed that there is not a single Bayesian who uses informative priors from previous data. I was really surprised to read that, because at least I do that all the time, and I would have thought that others do that routinely. Maybe the prevalence/dominance of “objective Bayes” makes that line of work less prominent? Not sure why anyone would accuse Bayesians of not using prior information. There are even books on this topic, of using prior knowledge (Spiegelhalter’s 2004 book, and the Uncertain Judgements book on prior elicitation).

        • I just emailed the quote from the book (a photo) to you, Andrew.

          For the others, the direct quote:

          “Did you manage to find a scientist who ever used Bayes’ theorem to actually update their prior in practice?” he [Daniel Lakens] asked me [the author of the book]. “As in, they published a paper in 2018, and then actually used the result from the 2018 paper as a prior, collected data and reported an updated quantified posterior belief? Anyone, ever, updating their belief a single time, in a published paper?”

          The book is Everything is Predictable by Tom Chivers.

          For Lakens, here is a published paper that uses a prior based on previous data:

          j.neuropsychologia.2020.107427

          Or he can look in my book: https://doi.org/10.1017/9781316459560

          I have many other examples, as do other researchers of course.

        • Also note, every time you rerun a model on an expanded dataset, you’re doing the real thing.

          [original_prior(q) * likelihood(q | dataset_1)] *likelihood(q | dataset_2) = [posterior_1(q)] * likelihood(q | dataset_2)

    • “claimed that there is not a single Bayesian who uses informative priors from previous data” – that is an amazing claim to make! Lots of use do this lots of the time!

    • I haven’t read this one. How does it compare to The Theory That Would Not Die? It’s great that journalists are writing these types of books (pop Bayes), but I would really like one written by a statistician. The Bayesian version of The Lady Tasting Tea kinda thing. I guess
      Bernoulli’s Fallacy was kind of like that. Am I missing anything?

      • Eric, you should read The Norm Chronicles. The writing is a bit spotty sometimes, but Spiegelhalter is the second author. Blastland is the first author.

        I have not yet read the Theory that would not die book. I have it on my to-read list.

        The Everything is Predictable is a good read, despite the title. Worth reading, if only for the Daniel Lakens quote. After reading this book, I finally understood what Lakens is all about, which was helpful.

        • And what is Lakens all about? Dude bugs me because he and I have such similar names but I think of him as my scientific arch nemesis. Wouldn’t want people to confuse us.

        • Daniel:

          Lakens, like all of us, is doing his best. I think he gets annoyed by bad examples of Bayesian statistics and he thinks that significance testing is better than the alternative. Maybe he’ll read the above post and agree with us that cost-benefit analysis is not the same thing as significance thresholding. I’m not trying to convince him to use my statistical methods; I’d just like him to be more clear on the differences between these different approaches.

          Also, yeah, it would be good for him to recognize that applied researchers do use priors informed by past data. To be fair, the analyses in my books and published papers mostly have used weak priors, and lots of other Bayesian writing on informative priors doesn’t use applied examples, so I can see how someone from the outside such as Lakens could get the impression that informative priors never get used. One way my thinking has changed over the past several years is that I’ve become much more comfortable with informative priors.

        • Daniel Lakeland, in fact one of my former postdocs keeps confusing your name and Lakens’. Once they said to me that Lakens said such and such on Gelman’s blog and I said, that’s impossible. Turns out it was you.

          So what Lakens is all about, based on the quotes in the book, is that he thinks that there is no room for dogma in scientific inference. By dogma he seems to mean the introduction of priors into a model. It looks like he has never done any serious Bayesian modeling (probably he’s fired up JASP and run some analyses), so he thinks (I think) that priors have a biasing function.

          To quote Lakens: “My evaluation of the data is not based on my priors.” (P 102 of the book). He goes on to say that the p-value stands for itself (SV note: Type M error be damned). He says: “You don’t believe in the Higgs boson because you had a prior, you saw data and you updated it” (“it” is probably one’s belief).

          “They did two five-sigma tests… Either the result is true, or we live in the only one out of 11 million universes where we get this level of data” (SV: he means statistic not data) “by fluke”.

          He wants to lower the alpha instead of using priors.

          My personal position: Actually, if one is committed to frequentist tools (say, due to technical incompetence or innumeracy or sheer laziness or inertia or even philosophical reasons), then I would be OK with lowering the alpha to say 0.0001 and demonstrating that the effect replicates in a direct replication attempt. So each study should demonstrate the effect twice, each with alpha set to 0.0001. I’d actually be OK with that. However, if the second replication is not significant, I would have to conclude that my results are not conclusive. And please, none of that marginal significant stuff.

          Daniel Lakeland, you should probably watch Lakens’ Coursera course (I haven’t). There he spells out how he thinks frequentist stats works in an idiot-proof manner (I am told). Please mastodon about it if you do so I can find out what it’s really like.

        • Shravan,

          I just don’t have the time to watch his videos on Coursera, I’d much better spend that time watching videos from the JuliaCon 2024.

          I have read some of the book he puts out and I think it’s for the Coursera course https://lakens.github.io/statistical_inferences/

          It seems more or less standard Frequentist stuff… my biggest problem with Frequentist stuff is it makes an objectionable assumption that repeatedly performing an experiment is mathematically equivalent from sampling from a random sequence.

          This is equivalent to a strong statement about the Kolmogorov Complexity of data coming out of your experiment. The difference between “I don’t know better than p(x) what the next x value will be” and “the universe conspires so that in repeated sampling the long term frequency of X=x is p(x)” are two completely different views of the physics of the world. Only one of them is compatible with the known facts about the world. Sometimes the frequentist viewpoint is an acceptable substitute for the “physics” (or more generally mechanistic description of a process) but that’s an assumption that should in general be tested by collecting a large sample of things.

          So if you’re planning to do Frequentist statistics because you have a plethora of thousands and thousands of data points collected in a stable experimental manner and these pass at least some basic tests for randomness… then I say more power to you. This is vastly less than 1% of most science.

        • Shravan:

          That’s a great summary, and it shows the strength of Lakens’s position.

          There are some problems where you can get a lot of data, get your p-value down to 0.0001, conduct replication studies at different labs, and really establish the existence, sign, and stability of your effect. For example, if you’re a psychologist studying something like the Stroop effect. Or in some experiments in physics, chemistry, and biology. For that sort of problem, there’s an appeal of the classical approach. I still think the null-hypothesis framing is not quite right—ultimately, I think we are interested not in rejecting nulls but in estimating effects and determining that they are stable—but the get-the-p-value-unambiguously-low strategy seems reasonable.

          For other problems, such as in economics, political science, policy analysis, pharmacology, and other areas I’ve worked with—not to mention a lot of psychology!—data are sparse, effects are context-dependent, and you’re just not gonna get that near-certainty. For those problems I think a Bayesian approach is helpful. There are also decision problems such as A/B tests in industry where, for reasons discussed in my post above, a p-value or hypothesis-testing approach doesn’t get at the costs and benefits of decision making.

          The other issue is the attitude that Bayesian inference is fundamentally unscientific because it uses the prior distribution, and Lakens (as you describe him) would like to just use data-based inference. I sympathize with that view! If people do an experiment, I want them to report their data; I’m not so interested in their priors. When the message sent by the data is ambiguous, or when we need to make some decisions now before waiting for definitive data to arise, then Bayesian methods can help.

          In addition, applied statistics almost always involves generalizing from data to population, and it’s usually impossible to do that without some modeling of the population—call it Bayesian or call it whatever, in any case this generalization requires external information outside of the data.

        • > applied statistics almost always involves generalizing from data to population

          It does if we imagine the “populations” required to make that true or reserve the “applied statistics” label for some inference problems only.

          “Jeffreys studied problems of geophysics, where one had a great deal of cogent prior information and a highly developed guiding theory (all of Newtonian mechanics giving the theory of elasticity and seismic wave propagation, plus the principles of physical chemistry and thermodynamics), and the data taking procedure had no resemblance to drawing from an urn. Fisher, in his cookbook (1925, Sect. 1) defines statistics as the study of populations; Jeffreys devotes virtually all of his analysis to problems of inference where there is no population.” [E. T. Jaynes, Probability Theory: the Logic of Science]

        • Carlos:

          In geophysics you are generalizing from the past to the future, or more generally from one epoch to another.

          Also, when I talk about generalizing, I’m not saying anything about drawing from an urn. If I want to use data from past elections to generalize about the elections, or if I want to use data from several countries to generalize to another, I’m not saying that elections or countries are being drawn from an urn, or anything like that. I’m just defining the task.

        • Andrew, right, but this idea that “the future is an urn we draw from” is what I mean when I complain about Frequentist statistics making bad assumptions about random sequences. The passage of time does not leave very much “stationary”. Populations of animals, temperatures and rainfall in climate, the population of people who are prescribed a drug, the group of people who contract a disease, the land use patterns of north america, the income of factory workers, the voting patterns of blue collar workers in the south, suicide prevalence and geographic distribution… blablabla anything you could want to study is likely to change in time in mechanistic ways through a dynamical process… it’s not like a fixed urn at all.

          At best, you might argue that the errors between your measured values and the predictions of the correct model might be urn-like, but even this may not be true when there are un-modeled effects whose magnitude changes, or when there are correlations between different errors, or when there are mode-switches between error causes (they may still remain mean zero but have different shapes)

          relying on samples from either measurements, or prediction errors to act like a stationary urn is just wrong in a deep way. It might seem more reasonable to some social science people because they’ve never gotten to work with a model that is really actually good, like deflection of a beam as a function of load and cross section and stiffness, or orbital mechanics or even pharmacokinetics.

    • Following up on Lakens, I read the section on Bayesian statistics in the online book that Daniel Lakeland pointed us to (thanks Daniel). The section has some interesting quotes:

      1. > inferences based on Bayes factors and equivalence tests typically lead to the same conclusions

      He cites a 2020 paper by himself that I haven’t yet read. I will read the paper but I wanted to pre-register my intuition that this statement cannot be generally true, because the Bayes factor crucially depends on the prior specified.

      2. He also writes:

      > One should therefore not conclude that, for example, given a BF of 10, the alternative hypothesis is more likely to be true than the null hypothesis. The correct claim is that people should update their belief in the alternative hypothesis by a factor of 10.

      This is an interesting point; can we ever talk about what is true once we have done any statistical hypothesis test? Do Bayesians really claim that a BF of 10 means that the alternative is more likely to be true? If people do claim this, I would want to see some examples.

      3. Priors are often not mentioned when using Bayes factors (I have seen this happen a lot):

      > van de Schoot et al. (2017) found that “31.1% of the articles did not even discuss the priors implemented”

      The use of Bayes factors in psych is pretty wild at this moment, that is true.

      4. On the use of default priors in Bayes factors:

      > It has become common to use ‘default’ priors, but as with any heuristic, defaults will most often give an answer to a nonsensical question, and quickly become a form of mindless statistics.

      Agreed.

        • I didn’t know the Rubin reference—thanks for that.

          I started using Bayes factors because reviewers of my papers started misinterpreting the 95% credible intervals as hypothesis tests. Also because I wanted to highlight that there is no one Bayes factor per data analysis—the prior sensitivity is important to understand and appreciate when interpreting what one learned from the BF analysis.

        • I just read the 1995 paper. I haven’t read the Raftery article it mentions, but I can see why psych type people (including people like Lakens) would ignore the point made in this 1995 paper, which is that one can decide which model is OK for one’s current purposes by studying the posterior predictive distribution with reference to the observed data; one does not need to do formal model selection as such (I think this is one major point in the paper). I think that nobody will care about the posterior predictive distribution in the Lakens’ type world, because there the usual question they are trying to answer is always of the type, is the difference between condition a and b different from zero or not? If one were to use posterior predictive distributions, one could basically choose either the null or alternative model (the models with the parameter of interest absent or present) and get basically the same posterior predictive distributions. The approach in the 1995 paper seems to be literally about model selection, whereas the way BIC as a proxy for Bayes factors, or p-values or AIC or whatever, is used is not just for model selection but for hypothesis testing. The people who care only about hypothesis testing won’t really care much about trying to figure out which model makes more sense given the data (using posterior predictive distributions). So I think this paper would not attract any attention in the standard psych crowd, it seems orthogonal to their needs.

          I suspect that Lakens and his ilk are catering to the scientist spending their lives trying to figure out if condition a is different from condition b or not. That’s not Andrew’s main concern in life, as I understand it. So there is no common ground in this discussion.

        • How often is ‘is condition A different than condition B?’ the most interesting or useful question in psychology though? I encounter this a lot too in agronomic research, and seem to spend a lot of time arguing instead that we already know that A and B are different *in some way or to some degree*, and the goal is to quantify that difference and its variability across contexts and conditions, and our corresponding uncertainty under different model assumptions. In some cases I can see it being useful to set up a null test like “is well-characterized gene XY present in this sample or not?” but that’s where the underlying reality is plausibly discrete and dichotomous.

      • Chris, you wrote:

        > the goal is to quantify that difference and its variability across contexts and conditions, and our corresponding uncertainty under different model assumptions.

        I think their response would be: “says who? What I really want to know whether I can argue that the two conditions are different.” For a psych type person (this includes my field of psycholinguistics), they start with a theory that says that condition a is harder to process than condition b or something. Telling them that we already know that there is already some difference or another does not address their research question. For example, in psycholinguistics a well-studied question is whether subject relatives are easier to process than object relatives in a particular region in the sentence. Some studies find a 50 ms difference in object minus subject relative reading time, some find 100 ms, some fine 200 or even 500 ms (IIRC), but for all these results, the one common thing people focus on is subject relatives are indeed easier to process than object relatives. Theory stands verified.

        I think that to even understand what you are saying, a 15 week course is needed to explain what uncertainty you are talking about; they will interpret uncertainty as the standard deviation of the sampling distribution of the difference in means, whereas you mean the uncertainty of the actual effect of interest, which is an alien concept.

        Actually, I have experienced this feeling of not even understanding what the statistician is trying to tell me. I remember visiting Andrew in his office in Columbia sometime around 2006 or 2007 or so, and asking him some questions based on having read Gelman and Hill. I couldn’t even understand his answer (I had a machine learning friend with me, and he then translated the answer later on by bringing it down to my level of understanding at the time).

        • Interesting take and I agree with your assessment there! In my area I think the dichotomania that feeds into this whole NHST business comes from two things primarily: 1. A desire to reduce complexity to tell a better cleaner story (so the fallacy of p > 0.05 = no effect or at least safely ignorable gets invoked), and 2. A desire to sift through real world decisions about eg whether to adopt various management practices which superficially ^seems^ like sometime that the condition a vs b p-value thresholding might tell you.
          Of course, both of these uses are totally fallacious, but you’re right it requires a tremendous lift to disarm the intuitions that have been ingrained.
          It took me some time as well!

    • Brilliant line. Yes, this seems like semantics. I don’t see a difference between “knowledge” and “beliefs” here, other than that the former term is more palatable to most than the latter. As far as I can tell, all statistical analysis (and science) incorporates degrees of belief, whether one likes to admit it or not. Since science is a never ending update of ‘knowledge’ (and at times competing), the process of selecting and incorporating ‘knowledge’ in our models sounds awfully like degrees of belief to me.

  4. > Andrew told me he made the explicit decision early on when writing the first edition of BDA to skip the philosophy and just “do” science.

    Unfortunately “Just do Science, don’t care about Philosophy” leads to multiple intellectual dead ends. Especially given that “doing Science” is currently defined as “push your manuscript through the peer review”

    • Mikhail:

      I do care about philosophy and I cared about philosophy back when writing BDA. What Bob is saying is not that my colleagues and I skipped the philosophy in our research and practice, but rather that we skipped the philosophy in the writing. Nowadays I’m more inclined to give rationales for my methods (as you can see in my more recent books, or you can see in a book such as Richard McElreath’s Statistical Rethinking book). The trouble was that, back in the early 1990s, Bayesian writing was often so full of philosophy; you’d get chapters and chapters arguing about subjectivity or whatever, and then just the simplest models and applications. In writing our book, we made a conscious choice to get to the methods without getting into big Bayesian vs. non-Bayesian debates. There’s some philosophy in the form of foundations of probability in chapter 1 of BDA, and there’s some comparison with other methods in chapter 4 of BDA, but even there we tried to keep things focused on the models and methods and not yammer on about philosophical differences. In retrospect, maybe we went too far in our forbearance, but we had reasons!

  5. Breiman’s paper was written in 2001 (not 2009) and titled “Statistical Modeling: The Two Cultures” (not Statistics: The Two Cultures)

    https://projecteuclid.org/journals/statistical-science/volume-16/issue-3/Statistical-Modeling–The-Two-Cultures-with-comments-and-a/10.1214/ss/1009213726.full

    Those are just typos, but I have always wondered how Breiman’s paper might have been a little different if it were written a little bit later and reacted more to the rise of MCMC. Breiman does mention seeing some examples of MCMC but essentially does not distinguish between Frequentist and Bayesian cultures within statistics or comment on whether Bayesians who use stuff like Gaussian processes fit within algorithmic modelers.

    • Ben:

      I’m guessing the answer would be that Breiman’s paper would’ve been no different. I say this because I worked in the same department as him at the University of California in the 1990s, and I used MCMC to perform a Bayesian analysis of a differential equation model in toxicology, and he knew about that analysis, but that didn’t stop him from saying that Bayesian methods had not been applied on real applied problems. He was pretty much 100% committed to the idea that Bayesian statistics was a bad idea. It’s possible that 8 more years of evidence might have changed his mind, but given his dismissal of the evidence already available to him in 2001, I doubt it.

    • Thanks—fixed the typos.

      I took Breiman to be reacting to the bespoke by-hand construction of models in statistics vs. his learn-the-structure approach. So I think you’re right that GPs (or neural nets) are most similar to random forests. I think it will be interesting to see this play out in the future.

      • Bob:

        From my interactions with Breiman in the early 1990s, I don’t think he was reacting to by-hand construction of models in statistics. Also, he was involved in CART, which was much more of a fit-the-data approach than a learn-the-structure approach. I think he had a strong opposition to Bayesian models. Actually he said he didn’t like models at all; on the other hand, his statistics textbook is full of the usual Poisson etc. models that you’d see anywhere else. Like some of his colleagues, he seemed to be ok with models if he could just assume they were exactly correct (as in a textbook), but if any doubt came up, he wanted to abandon them entirely.

        Regarding Gaussian processes, I think his impression of them would depend on how they were presented. If you or I were to fit a Gaussian process model using Stan, I’m almost certain he would’ve hated it because he would’ve said we’re doing modeling, which he hated. But if someone with an anti-Bayesian affiliation were to fit a Gaussian process and give it some name like “minimax L2 adaptive mesh,” I guess he’d be cool with it.

  6. Bob
    Thank you for clarifying pragmatic Bayesianism. Is it hypothetical-deductive testing (as opposed to Bayesian updating)? Are the priors for observables and unobservables known frequentist distributions, or beliefs about frequencies…or something else?

    • Why is that “as opposed to Bayesian updating”?

      Posterior(q) = 1/Z * Prior(q) * Likelihood(D,q)

      each of those is a function of unknown parameters q, and the second one on the right is a function of data D.

      When we hypothesize a q value and the Likelihood is small, we squash down the density associated with those q values, and when likelihood is larger we squash those down less / amplify those upward more. That’s precisely hypothesizing (a possible q value) and testing (altering a continuous measure of logical agreement to be bigger or smaller).

      Bayes *is* hypothetical-deductive reasoning.

      There are no priors or uncertainties for observables. The only observables are the output of data collection machines, the D. The Bayesian probabilities for unobservables are measures of theoretical agreement.

    • I’m a bit reluctant to answer because I’m not sure what all the technical terms mean like “hypothetical-deductive testing”. The goal of pragmatic Bayes isn’t hypothesis testing, if that’s what you’re talking about—making a hard 0/1 decision about significance about some threshold. It can be about decisions, typically through a loss/utiliy function and posterior predictive event probabilities.

      As to beliefs about frequencies, I’d say yes and no. I take frequencies to be theoretical abstractions—events like coin flips aren’t technically repeatable. We can use empirical frequency to measure how well calibrated a sequence of predictions is. I pretty much follow Laplace and take Bayesian stats to be epistemological.

      When I say a coin has a 50% chance of landing heads, I don’t take that to be about long-term frequencies of an infinitely repeatable experiment, I take it to be about my knowledge of that particular coin flip. Same thing when a meteorologist says there’s an 80% chance of rain (above some predefined threshold over some predefined area—“rain today” is pretty tricky to precisely define). It means given all they know (from current and historical measurements and science), 80% is their best estimate of how probable the event is. If it were Laplace’s demon, who knows everything about the world and science, the demon would say 100% or 0%, because it’d be able to work out exactly what was going to happen today. In other words, using probabilities for reasoning is consistent with a deterministic world that doesn’t have probability built in. I know basically nothing about quantum physics beyond pop cartoons, so I’m not saying the world isn’t based on probabilities in some fundamental way. I’m just saying that whether a coin flip comes up heads or tails may be predictable when the coin’s in the air with better measurement and prediction.

      The concept of knowledge is tricky in that it doesn’t have to be about me personally. A scientific field can make predictions based on its collective knowledge. But it’s hard to characterize where knowledge lies in a community. Do I know that smoking causes cancer? Isn’t it just that I’m trusting medical science? Do I know that China lies on the other side of the world? I’ve never been there, so I’m just taking a lot of people’s words for it! Similarly, the notions of intelligence, understanding, and even observation are very tricky to define, as the analytic philosophers discovered.

      If you want to talk about whether a squence of predictions is calibrated, we have to choose some chain of events to define that relative to, such as having me predict 100 coin flips or having a the National Weather Service predict rain on 100 consecutive days. In that sense, we can use something like frequencies to measure our models. I want to stress, though, that the events don’t have to be literally repeatable—the weather on each day is different, and each coin can be from a different country and era and tossed by a different person.

  7. Nice post Bob. Count me down as a pragmatic Bayesian :) It’s good to think about these bigger picture methodological and even philosophical issues, but it always strikes me how much more fun and productive it is to actually *do* modeling and inference with the full probability calculus (i.e. Bayes) rather than debate it.

  8. I’m late to the party so not sure whether anybody will see this… anyway, here’s a remark on informative priors. I think if we are honest we can’t deny the importance of non-objective decisions here in the sense that there may indeed be useful knowledge that deserves to be incorporated in the modelling, however knowledge is typically at least to some extent non-quantitative and will not translate directly into a prior. The subjectivists of course would also want to use and incorporate all available information into the prior design, however they have a point arguing that there is no objective way doing it.

    I’d agree with saying that information encoded should if possible be based on “knowledge” rather than “belief”, but I think we need to accept that knowledge doesn’t normally determine the prior, and “belief about how things will play out” is at least a guideline for translating knowledge into a prior. Just talking about knowledge and not about belief doesn’t mean that we get out of making certain subjective assessments and decisions there, and checking against the data cannot remove all this for reasons of identifiability.

    Another issue is that important knowledge is often not so much about the scientific question or the data collection, but rather about properties of Bayesian inference when using certain types of priors (like modelling variance independent of means and the like), and prior choices are made to avoid certain issues and artifacts with little reference to scientific question and data collection. This often requires informative priors, but the “information” is of a different kind of what it is often portrayed to be in the Bayesian framework.

    Regarding the “philosophy”, I do find important that whether the pragmatic framework we’d be interested in modelling the data generating process (which is a frequentist concept of probability without using what is known as frequentist inference), or the researcher’s belief (which would be the traditional subjectivist stance), aleatory vs. epistemic probability. I’d think it’s the former, and Andrew has confirmed this in some instances, however this may be a hard sell to some Bayesians who think that all that’s called “frequentist” is evil.

    • Next to last sentence was meant to be:

      Regarding the “philosophy”, I do find important whether in the pragmatic framework we’d be interested in models of the data generating process (which is a frequentist concept of probability without using what is known as frequentist inference), or of the researcher’s belief (which would be the traditional subjectivist stance), aleatory vs. epistemic probability.

      • There’s nothing frequentist about data generating processes.

        Suppose I have a formula for how long it takes for a ball to fall to the earth from a certain height. This comes from physical theory, not any “frequency properties”

        I drop the ball and I have some measurement apparatus that measures the time.

        There are a bajillion factors that could influence this, such as air currents, thermal drift of the timer oscillator, residual magnetism in the release mechanism, and all sorts of similar things.

        All I’m likely to know is that the difference between what I measure and what I predict is likely to be of small magnitude by design, and some approximate notion of the size of that magnitude. From that I can utilize a probability for the difference that is symmetric around 0 and has a mean squared error of an unknown size but a size that I have a prior distribution for, together with the choice of distribution which has maximum entropy subject to zero mean and the given mean squared error.

        That max ent distribution is the normal distribution.

        I do not in any way require that the actual measured errors be IID and normal frequency. My assumption isn’t about frequency it’s about how big the expected squared error is.

        The conditional expectation is taken with respect to my state of information, which is the model prediction and the conditional size of the stddev.

        p(error | model, sigma) = Normal(0,sigma)

        If you take 1000 measurements and find that in fact there’s some roundoff error noise in the clock etc which doesn’t correspond to the normal curve you haven’t refuted my model, because the model isn’t about the dog, it’s about the boys love for it.

        • I’m fine with that in principle. You’re modelling your state of information about the data generating process (DGP). That’s epistemic probability, and you’re right, I can’t refute your model by observing that actual observations behave differently. However if you try to model the actual DGP as frequentists do, the data do have the authority to refute the model (with error probabilities). My point is not the you *should* do that; as I said I’m fine with what you wrote. However I think it is important to nunderstand what you model, and whether it actually is the DGP or your information/epistemic state about it. Whether data have the authority to refute the model is what makes the difference (maybe not necessarily the only difference but probably the key one,)

          Also note that I’m not talking about whether the DGP is “really” frequentist or not, rather about whether we attempt to model it as such, which I believe can make sense even if it in fact isn’t (as I generally think that models are essentially different from reality and demanding that models are “true” is a category error).

        • Sure I think we are mostly in agreement there. However It’s not that Data can’t refute the epistemic model, it’s that it can’t refute by failing to have a certain frequency in long run (failing to have a certain histogram day)

          You can refute a Bayesian model by collecting data which, no matter what the parameters values, sits in a low probability section of the data space.

          If my model says data x_i should be a sequence where every value is “near 0” on the scale of single digit numbers and I collect data like 100,-90,73,51,-338

          The model is refuted, because the data is very low probability given the model. p(data|model) is very small.

        • The model can still be a correct model of you epistemic state before seeing the data, and in this sense is not refuted (and as long as the data don’t have likelihood zero, you could still update the model using the data in the standard way). Only if you say that it’s a model of the data generating process, it is refuted.

          I have used bad wording when I wrote that “this is a frequentist concept”. In fact I should have written (according to the wording I’d normally use) that this is an aleatory concept of probability, as opposed to epistemic, and frequentism is the most prominent but not the only aleatory concept. Insofar you are right. (I have a bad habit of using the term “frequentism” occasionally for something more general than it actually is. just because most readers here and elsewhere seem to be familiar with the term frequentism but not with aleatory probability.)

        • I generally think of two layers in Bayesian models. At the first layer is the description of some mechanism. Like, “because of the physics of electrons in bimetallic junctions, the voltage across these terminals will be close to some function of temperature: v ~ f(T)”

          This is “aleatoric” (or maybe I prefer “mechanistic”)

          The next statement “I will model my knowledge of the voltage as v ~ Normal(f(T),s)” can be thought of as pure epistemic knowledge about the difference between my idealized aleatoric model and the reality of all the things that could “go wrong” to make the error different from 0.

          If you don’t separate into these layers, then you can incorrectly imagine v ~ Normal(f(T),s) as a frequentist probability model. In your case, you’ve clarified that you agree v ~ Normal(f(T),s) need not be frequentist (that is, in the long run it’s not a refutation of the model if the histogram of errors deviates potentially quite a bit from IID Normal, like perhaps it might turn out to be a triangle with finite tails or a t type distribution with fat tails or be slightly skewed or have two minor lobes in the tails or have serial correlations.

          I guess it’s just a matter of the meaning of words if you take an aleatory model (ie. a model of a functional form between temperature and voltage based on physical principles) and you add epistemic uncertainty to the error, whether you’ve got an “aleatory” or “epistemic” model.

          In my view, it’s important that Bayes offers us a way to take our mechanistic models and add epistemic uncertainty about them on top in a generic way that doesn’t depend on *changing the mechanism*… Frequentist models implicitly assume a mechanism involving *strong randomness* (ie. high kolmogorov complexity sequences, things that are in principle unpredictable). Frequentist tests rely on that strong randomness to be correct. If you include serial correlations with a particular functional form, or make the errors fall on some manifold in high dimensions… the tests fail to do what they are supposed it.

          So, I don’t reject the idea that yes, probability models are about the way the world works, I just reject that the world corresponds to maximal kolmogorov complexity sequences.

        • Ok, rethinking this and looking up the definition of “aleatoric” to remind myself, no, I think the proper term for my view is “mechanistic”. The v ~ Normal(f(T),s) type model is not (usually) modeling “randomness” it’s modeling “knowledge of discrepancy”.

          there may well and truly be high kolmogorov complexity type randomness of iid type and stable distribution in the discrepancy, but there need not be. For example there might be serial correlations we simply aren’t aware of.

          Also typically if you want to model a frequency type randomness in Bayesian models you’d use

          v ~ HighParameterDistribution(f(T),param_vector)

          with uncertainty on the param_vector and the HighParameterDistribution is of flexible shape. If you want to learn the shape of a stable frequency distribution you need to do that directly. There might sometimes be physical/mechanistic reasons, or just historical data, to believe in a certain parametric shape of the distribution, but that’s often not the case (for example, the error in predicting the number of grams of alcohol consumed on average weekly by a given survey participant).

          In *most* cases I don’t see what the point is of Frequentist models with assumed forms and tests based on them which we reject or accept. When we reject a frequentist model it tells us that the world didn’t work like that random number generator. But this is a fact we usually knew or should have known ahead of time. And when we don’t reject, it’s usually just that we don’t have enough data. The only exception in my mind is where we have a large historical dataset and can see that the frequency behavior was a stable property of the system, and we’re trying to detect a change from that stability.

        • I don’t mind the use of the word “mechanistic” for what I call “aleatory”. I however don’t agree with your demand that the world has to be truly frequentist for a frequentist interpretation of probability to make sense. My general view is that reality is essentially different from the models we use, and demanding models to be “true” is pointless and a category error. My view on this (and uses and issues with both aleatory/frequentist and epistemic probability) is given here in much detail: https://arxiv.org/abs/2007.05748

        • Christian:

          Of course models differ from reality. The problem with doing frequentist tests is that you intend to do something like:

          “does the world work like random number generator with parameters a,b,c?”

          and when you reject it, it could be because

          1) The world isn’t like that class of random number generator at all (serial correlations, different distributional shape, mixture models, non-stationary through time, blablabla.)
          2) The world is like a random number generator except with parameter values q,r,s.

          In most cases people want to find out something closer to (2) but it’s usually the case that (1) fails.

          When you’re rejecting a null hypothesis and deciding to “accept an alternative hypothesis that the parameters are maybe more like q,r,s” you almost always need to consider “what if it’s just not a random number generator at all, and the frequency properties of the test are just detecting that this thing doesn’t behave randomly?”

          Most people don’t consider that issue, and yet, almost everything they do would fail a battery of tests used for PRNG testing (even a lot of PRNGs that people use in practice fail good PRNG testing).

        • Daniel: Well, the original posting wasn’t about frequentist inference, so probably this is not the right place to have this discussion (other than the fact that this isn’t the first time we have it).

          Just this: You don’t need to convince me regarding widespread misuse and misinterpretation of hypothesis tests. I actually don’t like the word “accept” when interpreting test results and I never use it (other than for criticising its use;-).

          The points in your posting are addressed in Sec. 3.4.2 of the paper linked in my previous posting, so I recommend to read that if you’re really interested in what I’m thinking rather than just in ranting about NHST for the 200th time.

      • For the most part, this particular convo came about because of this quoted statement:

        “models of the data generating process (which is a frequentist concept of probability without using what is known as frequentist inference),”

        I think we’ve discussed enough our views on Frequentist vs Bayesian that we seem to understand each other at some level, but a 3rd party reading that a data generating process is “a frequentist concept of probability” might be very confused or misled IMHO.

        To be “Frequentist” you must accept that probability *means* frequency in the long run. It measures a true actual property of a mathematical model, which the user hopes is also a decent model of a property of the world. Anyone who rejects that definition can’t reasonably call themselves Frequentist. It’s like saying you’re a vegetarian except you eat a lot of meat.

        When we generate random numbers from for example a cryptographic random number generator we have one of the closest things we can get to a pure high complexity sequence which allows us to generate data of a “frequentist type”. That is, in trillions of replications on a computer, the frequency with which an outcome is in any interval [a,b] is integrate(p(x)dx,a,b). Furthermore tests of serial correlations will show a high p value for the level of correlation measured, and other frequency relationships derived from probability theory will be very close to exactly true with sufficiently large sample size.

        PRNGs are designed to be faster computing than crypto RNGs but less secure against “attack”. (ie. recovering the seed from the sequence). When designed well, they pass big batteries of theory-derived tests, and for samples of trillions of numbers they behave as well as crypto RNGs. both of these behave as well as RNG derived from electronic thermal noise and radio static and various other hardware methodologies provided that the sequence length used is not crazy large. Most PRNGs produce periodic sequences but have periods at least 2^128 sometimes much larger. George Marsaglia spent his whole life investigating mathematics of random numbers and designing tests for generators and I think we all owe him a huge debt of gratitude for that.

        So, when we say “repeatedly doing an agriculture experiment, or a soil experiment, or calling people on the phone and doing a telephone poll, or mouse surgeries, or giving pills to people who come to a clinic with an illness, or test scores on post-education tests or whatever… will be modeled as having a random frequency outcome with distribution p(x) what we mean is that we imagine it behaves sufficiently like a PRNG with distribution p(x) that if we derive some theoretical fact from probability theory (usually called a test), and then check to see if the experiment behaved as expected with respect to that fact, we expect that it will. If it doesn’t (the p value for that test was sufficiently small) we “reject” the model as unlike the world.

        A Bayesian model just works differently. When we say that y_i ~ Dist(f(x_i),q) where Dist is some distribution parameterized by q around a mechanistically predicted value f(x) we do not mean that y_i should behave according to samples from Dist(f(x_i),q) with respect to frequency tests of the George Marsaglia type, what we mean is that the higher the probability assigned to a given data sequence the more in accord with what our model expects the sequence is.

        Serial correlations, tail frequencies, multiple side modes, drift or oscillation in time, mode-switching, and soforth need not concern us in the way that they would immediately cause a frequency model to fail. If actual data is Uniform(0,1) and we model it as Normal(0.5,1) it will be trivially rejectable frequency wise, but every sample from Uniform(0,1) will fall in the high probability region of Normal(0.5,1) and so our assumption that “the data will be in the high probability region of Normal(0.5,1) holds”.

        In other words, we can sometimes decide to use Frequency models in Bayesian settings, but we can’t refute a non-frequency Bayesian model by tests of the George Marsaglia type, we can however refute a Bayesian model by showing that regularly data falls into extremely low probability density regions of our model. Because in Bayes, the probability of the data refers to the amount of accordance with theory a given data value will have. Anything where the model gives sufficiently high probability is a data value that accords with theory, any data value that occurs in regions where we assign trivially low probability fails to accord with theory.

        So generative models can be **either Frequentist or Bayesian** and the difference is whether you measure frequency in long run occurrence and reject the model if George Marsaglia’s tests suggest you should, or if you measure accordance with theory and reject the model whenever data points fall in extremely low density regions such that you aren’t satisfied with the accordance between theory and fact.

Leave a Reply

Your email address will not be published. Required fields are marked *