Skip to main content
Home
plus.maths.org

Secondary menu

  • My list
  • About Plus
  • Sponsors
  • Subscribe
  • Contact Us
  • Log in
  • Main navigation

  • Home
  • Articles
  • Collections
  • Podcasts
  • Maths in a minute
  • Puzzles
  • Videos
  • Topics and tags
  • For

    • cat icon
      Curiosity
    • newspaper icon
      Media
    • graduation icon
      Education
    • briefcase icon
      Policy

    Popular topics and tags

    Shapes

    • Geometry
    • Vectors and matrices
    • Topology
    • Networks and graph theory
    • Fractals

    Numbers

    • Number theory
    • Arithmetic
    • Prime numbers
    • Fermat's last theorem
    • Cryptography

    Computing and information

    • Quantum computing
    • Complexity
    • Information theory
    • Artificial intelligence and machine learning
    • Algorithm

    Data and probability

    • Statistics
    • Probability and uncertainty
    • Randomness

    Abstract structures

    • Symmetry
    • Algebra and group theory
    • Vectors and matrices

    Physics

    • Fluid dynamics
    • Quantum physics
    • General relativity, gravity and black holes
    • Entropy and thermodynamics
    • String theory and quantum gravity

    Arts, humanities and sport

    • History and philosophy of mathematics
    • Art and Music
    • Language
    • Sport

    Logic, proof and strategy

    • Logic
    • Proof
    • Game theory

    Calculus and analysis

    • Differential equations
    • Calculus

    Towards applications

    • Mathematical modelling
    • Dynamical systems and Chaos

    Applications

    • Medicine and health
    • Epidemiology
    • Biology
    • Economics and finance
    • Engineering and architecture
    • Weather forecasting
    • Climate change

    Understanding of mathematics

    • Public understanding of mathematics
    • Education

    Get your maths quickly

    • Maths in a minute

    Main menu

  • Home
  • Articles
  • Collections
  • Podcasts
  • Maths in a minute
  • Puzzles
  • Videos
  • Topics and tags
  • Audiences

    • cat icon
      Curiosity
    • newspaper icon
      Media
    • graduation icon
      Education
    • briefcase icon
      Policy

    Secondary menu

  • My list
  • About Plus
  • Sponsors
  • Subscribe
  • Contact Us
  • Log in
  • Cat with umbrella

    Maths in a minute: Bayes' theorem for beginners

    12 October, 2026

    Rational decisions should be based on evidence. This means keeping an open mind: when new evidence comes in, you should update your thinking.

    Luckily mathematics has a tool to help you with this. It's called Bayes' theorem and belongs to the realm of probability theory.

    To see how Bayes' theorem works, consider the following scenario. It's Sunday morning and you're still in bed. You haven't opened the blinds yet, but you know it's meant to be a nice day. Only a 10% chance of rain.

    Then you hear the cat flap go. Shortly after, the cat walks into the bedroom soaking wet. That makes it a lot more likely that it's actually raining. But how likely?

    Let's write $P(R)$ for the prior probability of rain. That's the estimate of the probability of rain before the new evidence involving the wet cat.  We write $P(W)$ for the prior probability that the cat is wet, whether it's raining or not. And we write $P(W|R)$ for the probability the cat is wet given that it's raining.

    Finally, we write $P(R|W)$ for the probability that it's raining given that the cat is wet. That is the updated probability we are looking for in the light of the new evidence.

    Bayes' theorem tells us that

    $$P(R|W) = \frac{P(W|R)P(R)}{P(W)}.$$

    The idea is that the probabilities on the right hand side of this equation are easier to estimate, so we can work out the left hand side. Let's have a go.

    The prior chance of rain was 10%, so 

    $$P(R)=0.1$$

    The probability that the cat is wet given that it's raining, $P(W|R)$, is quite high since the cat would have found it hard to hide from the rain when crossing the garden to enter the cat flap. Let's put this chance at 90% so

    $$P(W|R)=0.9.$$

    As for $P(W)$, the cat absolutely hates water. There's only a small chance he will get wet for reasons other than rain. So the overall chance of a wet cat is just a little bit higher than the chance of rain. Let's put it at 11% . So 

    $$P(W)=0.11.$$

    We now have all the numbers to work out that

    $$P(R|W) = \frac{P(W|R)P(R)}{P(W)} = \frac{0.9 \times 0.1}{0.11} = 0.82.$$

    The updated probability that it is raining in the light of the new evidence is therefore 0.82, which translates to 82%.

    Bayes' theorem is useful in a huge range of contexts and a staple in scientific reasoning. To find out how Bayes' theorem can help you understand the outcome of medical tests, see this article. And to learn about it in more detail, including some other interesting applications, see this article.

    • Log in or register to post comments

    You might also like

    article
    coin

    Heads, Bayes wins!

    If you've flipped heads 10 times what's the next flip most likely to be?  Bayes' theorem has the answer, not just for the coin, but for the pursuit of science generally.

    article

    Maths in a minute: Conditional probability

    Find out why the formula we use to work out conditional probabilities is true!
    article

    Maths in a minute: Bayes' theorem and medical diagnoses

    It would be foolish to ignore evidence. Luckily Bayes' theorem shows us how to take it in into account.

    Read more about...

    probability
    probability theory
    bayes theorem
    Maths in a minute

    Our Podcast: Maths on the Move

    Our Maths on the Move podcast brings you the latest news from the world of maths, plus interviews and discussions with leading mathematicians and scientists about the maths that is changing our lives.

    Apple Podcasts
    Spotify
    Podbean

    Plus delivered to you

    Keep up to date with Plus by subscribing to our newsletter or following Plus on X, Bluesky, Facebook or LinkedIn.

    University of Cambridge logo
    Twitter / X logo Bluesky logo LinkedIn logo

    Plus is part of the family of activities in the Millennium Mathematics Project.
    Copyright © 1997 - 2026. University of Cambridge. All rights reserved.

    Terms