Skip to primary content

Statistical Modeling, Causal Inference, and Social Science

Main menu

  • Home
  • Authors
  • Blogs We Read
  • Books
  • Sponsors

Post navigation

The sampling distribution of the sample mean Voting as a rational choice or as an expressive act

Validation of software for Bayesian models using posterior quantiles

Posted on August 15, 2005 12:49 AM by Andrew

We present a simulation-based method designed to establish the computational correctness of software developed to fit a specific Bayesian model, capitalizing on properties of Bayesian posterior distributions. We illustrate the validation technique with two examples. The validation method is shown to find errors in software when they exist and, moreover, the validation output can be informative about the nature and location of such errors.

See here for some more description from Sam Cook (the first author of the paper and the leader on the project).

This entry was posted in Bayesian Statistics by Andrew. Bookmark the permalink.
  • Art
  • Artificial Intelligence
  • Bayesian Statistics
  • Causal Inference
  • Decision Analysis
  • Economics
  • Jobs
  • Literature
  • Miscellaneous Science
  • Miscellaneous Statistics
  • Multilevel Modeling
  • Obituaries
  • Papers
  • Political Science
  • Public Health
  • Sociology
  • Sports
  • Stan
  • Statistical Computing
  • Statistical Graphics
  • Teaching
  • Zombies
  1. Peter Dorman on Democracy and political equality as spoils of colonialismDecember 1, 2026 12:13 PM

    There's a way to generalize and maybe add some theory to the argument about slavery and freedom in the 18th…

  2. Dale Lehman on Democracy and political equality as spoils of colonialismDecember 1, 2026 12:12 PM

    I am inclined to think that economic inequality implies political inequality. By the latter, I am thinking about actual political…

  3. nkh on Democracy and political equality as spoils of colonialismDecember 1, 2026 11:34 AM

    I feel like this is the more insightful/relevant comment in this case "I’m not completely sure why this should be,…

  4. Andrew on Democracy and political equality as spoils of colonialismDecember 1, 2026 11:06 AM

    Nkh: I mean that they benefit from cheap resources and labor elsewhere, in the same way that, during most of…

  5. nkh on Democracy and political equality as spoils of colonialismDecember 1, 2026 10:55 AM

    "They are part of the larger European colonial empire" I'm really interested in what this is actually supposed to mean?

  6. Anonymous on A statistician with Tourette’s syndromeDecember 1, 2026 10:47 AM

    Great interview, I wonder if the condition helps Lewis Capaldi be a pretty prolific songwriter. Not an olympiad of any…

  7. Gdanning on Democracy and political equality as spoils of colonialismDecember 1, 2026 10:23 AM

    >One might take Switzerland and the nordic countries as a counterexample, in that they are democratic with political equality without…

  8. gec on An apology from Yuval Peres may be forthcoming.December 1, 2026 8:46 AM

    > Amazing how pearl clutchers are allowed to destroy people’s careers and lives. Can't they leave any pearls for the…

  9. Proxomitron on An apology from Yuval Peres may be forthcoming.December 1, 2026 8:39 AM

    With his employees? Massive conflict of interest and legal liability.

  10. Andrew on An apology from Yuval Peres may be forthcoming.December 1, 2026 8:32 AM

    Gb: Regarding Yuval's university employment: Universities have codes of conduct, also you can see how a university would not want…

  11. Andrew on An apology from Yuval Peres may be forthcoming.December 1, 2026 8:29 AM

    Gb: For one thing, we were all being told that we need massive government investment in data centers so as…

  12. Anon on Handy Statistical Lexicon ExplorerDecember 1, 2026 8:28 AM

    All the "AI is just a trivial parlour trick" commentators seem quiet BTL here?

  13. David Marcus on AI solves Riemann hypothesis . . . five years too late!December 1, 2026 8:24 AM

    > If you define reasoning to be what humans do, then by definition LLMs > don’t do that. Indeed, it…

  14. AAAnonymous on Handy statistical lexiconDecember 1, 2026 7:46 AM

    Quote from the blog post: "The wedding, never about the marriage: With scientific journals, what it’s all about." That's why…

  15. GB on An apology from Yuval Peres may be forthcoming.December 1, 2026 7:46 AM

    Peres supposed sexual harassment reported on the Pachter blog did admittedly "not fall under the category of sexual harassment from…

  16. GB on An apology from Yuval Peres may be forthcoming.December 1, 2026 7:44 AM

    What is so horrible about Jensen Huang's behavior? Infidelity? So what?

  17. Alpacus Aromatica on Handy Statistical Lexicon ExplorerDecember 1, 2026 6:35 AM

    Well, given how often researchers claim that their non-significant result surely was _approaching_ significance, I think Claude's remark is in…

  18. Andrew on Handy Statistical Lexicon ExplorerDecember 1, 2026 6:25 AM

    Other: I'm not so negative about AI! I think Jeremy's Squealer demo, which he made using AI, is awesome, also…

  19. AAAnonymous on A plan to replicate the Loftus and Palmer (1974) experiment on false memoriesDecember 1, 2026 6:20 AM

    Update: If I am not mistaken the grant proposal can now be read here: https://www.nwo.nl/woo-besluiten

  20. Other Andrew on Handy Statistical Lexicon ExplorerDecember 1, 2026 1:23 AM

    All your negativity about AI, and this is the AI product that you think looks cool? It's in the eye…

  21. Andrew on On Spy FictionNovember 30, 2026 10:53 PM

    Pigeon: Good point! Rules are made to be broken, and a rule has two roles: (1) it provides a structure…

  22. Anonymous Pigeon on On Spy FictionNovember 30, 2026 10:12 PM

    You touched on this a bit but I wonder to what extent different types of spy fiction have opposite rules…

  23. Anoneuoid on AI solves Riemann hypothesis . . . five years too late!November 30, 2026 8:12 PM

    You can never trust an LLM because it never checks its output against a world model. People do. I've found…

  24. David, a Bostonian in Tokyo on AI solves Riemann hypothesis . . . five years too late!November 30, 2026 6:00 PM

    Dale: The problem is the word "trust". You can never trust an LLM because it never checks its output against…

  25. Margaret Emerson on Why and how to do Bayes for clinical trials: Our comments on the recent FDA draft guidance, and reactions to two comments by othersNovember 30, 2026 5:19 PM

    On sponsor-chosen priors: would it help if the protocol named the evidence behind the prior and prespecified a sensitivity analysis…

  26. Bob76 on Further thoughts on partisanship and polarization after the midterm electionsNovember 30, 2026 5:17 PM

    David wrote: If your doc thinks you need a test or procedure, you get it. Between 2010 and 2026, if…

  27. Marc on Handy Statistical Lexicon ExplorerNovember 30, 2026 5:13 PM

    Fun tool and a great example of what can be so easily done with vibe coding. Even more fun is…

  28. shira on Survey Statistics: linking peopleNovember 30, 2026 4:29 PM

    Thank you, Thomas Lumley ! I hadn't seen the Abowd et al. 2021 paper, thanks for sharing. (I see they…

  29. shira on Survey Statistics: linking peopleNovember 30, 2026 4:03 PM

    Great question, Raphael K ! As Thomas Lumley already helpfully commented below, official statistics are often not anonymously collected, and…

  30. Raghu Parthasarathy on AI solves Riemann hypothesis . . . five years too late!November 30, 2026 11:54 AM

    I wrote a while ago the useful tip to substitute airplanes and birds for AI and humans and see if…

  31. Gregor Thomas on Substitution SolverNovember 30, 2026 11:23 AM

    This reminds me of a wonderful problem at the Code Golf Stack Exchange, [Write Moby Dick, Approximately](https://codegolf.stackexchange.com/questions/152856/write-moby-dick-approximately) which I don't…

  32. Dale Lehman on AI solves Riemann hypothesis . . . five years too late!November 30, 2026 10:13 AM

    David Marcus I'll stop since I consider this now garbage time. But saying that putting "reasoning" in quotes misses the…

  33. David Marcus on AI solves Riemann hypothesis . . . five years too late!November 30, 2026 10:03 AM

    Dale wrote: > I put “reasoning” in quotes because I know that AI is not human so that > whatever…

  34. Andrew on Further thoughts on partisanship and polarization after the midterm electionsNovember 30, 2026 9:46 AM

    Anon: Interesting. I follow political news but I don't exactly know who Lina Khan is. I vaguely recognize the name…

  35. anonymous e mouse on Further thoughts on partisanship and polarization after the midterm electionsNovember 30, 2026 9:39 AM

    A friend of mine, a never-Trump guy formerly of the right media ecosystem but now in non-partisan PR, (probably the…

  36. Dale Lehman on AI solves Riemann hypothesis . . . five years too late!November 30, 2026 8:56 AM

    David (the Bostonian) I find your comment quite confusing. Why is it wrong to say users must individually decide how…

  37. David, a Bostonian in Tokyo on AI solves Riemann hypothesis . . . five years too late!November 30, 2026 8:03 AM

    Replying to Dale (and hoping this ends up in a reasonable place): Dale: "My belief is that people are going…

  38. Dale Lehman on AI solves Riemann hypothesis . . . five years too late!November 30, 2026 6:36 AM

    David Marcus, Daniel I don't deny your examples or that AI is being misused and highly dangerous. That is my…

  39. AAAnonymous on A plan to replicate the Loftus and Palmer (1974) experiment on false memoriesNovember 30, 2026 2:33 AM

    Quote from above: "Before you know it, some people might even suggest collecting data through some sort of centralized computer…

  40. Daniel Lakeland on AI solves Riemann hypothesis . . . five years too late!November 29, 2026 11:23 PM

    Also, I don't have references, but in the discourse I've seen, the Riemann Hypothesis code (in Lean 4) was originally…

  41. Daniel Lakeland on AI solves Riemann hypothesis . . . five years too late!November 29, 2026 11:13 PM

    Dale, Linus Torvalds just accepted a ~ 40,000 line patch to the ext4 filesystem in Linux. This is the code…

  42. PAUL ALPER on An apology from Yuval Peres may be forthcoming.November 29, 2026 11:02 PM

    Sexual harassment is sort of tricky. Decades and decades ago, we were encouraged to make eye contact with our students…

  43. Andrew on Paper Tiger: A short and sincere reviewNovember 29, 2026 7:33 PM

    Yeah, I read Station Eleven a couple years ago and found it really annoying.

  44. jcp on Paper Tiger: A short and sincere reviewNovember 29, 2026 6:57 PM

    This reminds me– I feel like you might enjoy The Glass Hotel by Emily St. John Mandel! Don't want to…

  45. David Marcus on AI solves Riemann hypothesis . . . five years too late!November 29, 2026 5:04 PM

    Dale wrote: > why would anybody want to use an LLM and not check its work? You are the one…

  46. Meese on AI solves Riemann hypothesis . . . five years too late!November 29, 2026 5:02 PM

    Dale: The goal of the AI companies is to make you be irrelevant (to automate your job away to benefit…

  47. Dale Lehman on AI solves Riemann hypothesis . . . five years too late!November 29, 2026 4:37 PM

    David You sound reasonable. But it begs the question: why would anybody want to use an LLM and not check…

  48. David Marcus on AI solves Riemann hypothesis . . . five years too late!November 29, 2026 3:05 PM

    I've used Claude Code to review software I've written. It is undeniably useful. It finds things I've missed. But, it…

  49. Apu on The 2026 Pangram social justice misinformation wars: Collective understanding of binary classification takes a hitNovember 29, 2026 1:58 PM

    Title mentions "social justice misinformation". Body speculates that Emily Bender is "unaware of basic statistical machine learning methods". Top comment…

  50. Steve Pilon on A statistician with Tourette’s syndromeNovember 29, 2026 12:15 PM

    Loved your interview. It makes me happy to know there are such nice, intelligent, thoughtful people out there.

Proudly powered by WordPress