Omni Calculator logo
Last updated:

AND Probability Calculator

New

Table of contents

Basics of probability: introduction to the joint probability (and probability)How to calculate the joint probability of A and BExamples of the joint probability calculationsHow to calculate the joint probability of dependent eventsYou probably need these other tools, too!FAQs

Head after head, that's the beginning of a lucky streak; but how do you define and calculate the probability of such events? Follow Omni in this tool dedicated to calculating the joint probability of two events.

What are you going to learn in this article?

  • A short introduction to probability and a detailed explanation of what joint probability is. The conditions required and the formula we use when we learn how to find the probability of A and B, a generic pair of events.

  • Examples and explanations of mathematical applications and real-world use of the joint probability formula. And much more!

Basics of probability: introduction to the joint probability (and probability)

To define the probability of multiple events, it's better to define what is probability first.

Probability is the likelihood of the outcome of a particular event. For example, the probability of getting a head in a coin toss is P(head)=0.5P(\mathrm{head}) = 0.5.

Where does this number come from? Super easy: toss the coin many, many times, and count the number of times you get a head, then divide this number by the number of launches. Say you throw it 100100 times: we got head 5252 times: P(head)=0.52P(\mathrm{head}) = 0.52. Try again! After another 100 flips you get 4949 heads: P(head)=0.49P(\mathrm{head}) = 0.49.

Increase the number of tosses (though it will take time!): in a million launches, we counted 499607499607 heads. This is our 0.50.5 probability.

When the number of outcomes is defined, we can also notice that the sum of the probabilities is 11. P=1P=1 is a particular probability: it represents an event we're sure will happen. The probability of obtaining either head or cross in a coin toss is 11 since either one of the events will happen. Au contraire, P=0P=0 represents an event that won't happen.

How to calculate the joint probability of A and B

🙋 In our calculator, we will indicate the two events with the letters AA and BB.

When considering multiple events, we can apply simple mathematical rules to calculate their joint probability, that is, the probability of both events to happen.

🙋 The events don't need to happen together: that would depend on the definition of your event, for example, a simultaneous coin toss.

To calculate the joint probability of A and B, we need to impose an important condition: their independence. Two (or more) events are said to be independent if the outcome of each of them doesn't affect the others. For example:

  • Throwing a die ten times represent ten separate, independent events; but

  • Throwing ten dies at the same time in the same box represents events that influence each other: they are not independent.

The formula to calculate the joint probability of A and B (independent events) is:

P(AB)=P(A)×P(B)P(A\cap B) = P(A)\times P(B)

We can also mark the joint probability with the notation P(A,B)P(A,B). The symbol \cap is the intersection.

The best way to understand the "and" probability formula is with sets, also known as Venn diagrams.

And probability

We are interested in the green area where the two sets intersect. That's where both events happen. Remember that Venn diagrams are purely a qualitative means to convey information but can't give you quantitative information about the values of the probabilities involved.

In case you have multiple events, you can calculate the joint probability by multiplying together the probability of every single event:

P(A1A2...AN)=P(A1) ⁣× ⁣P(A2) ⁣× ⁣... ⁣× ⁣P(AN)P(A_1\cap A_2\cap...\cap A_N)\\[.5em] = P(A_1)\!\times \!P(A_2)\!\times\!...\!\times \!P(A_N)

Examples of the joint probability calculations

The formula for the probability of A and B is straightforward. It's time to see it in action.

Say you want to calculate the probability of obtaining two 66's from two die tosses. That would be luck, right?

First, define the probability to get a 66 on the first die. Since there are six possible results, and we assume the die to not be tampered with, we say that:

P(6)=16P(6) = \frac{1}{6}

To find the probability of two sixes, we just need to multiply the probability of getting six two times:

P(2 times 6)=P(6)×P(6)=16×16=136=0.0278\begin{split} P(&2\ \mathrm{times}\ 6) = P(6)\times P(6) \\[1em] &= \frac{1}{6}\times\frac{1}{6} = \frac{1}{36} = 0.0278 \end{split}

You can express this result in percentage:

P(2 times 6)=2.78%P(2\ \mathrm{times}\ 6) = 2.78\%

To give you some context, you are more likely to get five times heads in a row while tossing a coin than two sixes in two rolls:

P(5 times H)=P(H)×P(H) ⁣ ⁣ ⁣ ⁣×P(H)×P(H)×P(H) ⁣ ⁣ ⁣ ⁣=0.5×0.5×0.5×0.5×0.5 ⁣ ⁣ ⁣ ⁣=0.55=0.03125=3.13%\begin{split} P(&5\ \mathrm{times\ H} ) = P(\mathrm{H})\times P(\mathrm{H}) \\ &\!\!\!\!\times P(\mathrm{H}) \times P(\mathrm{H})\times P(\mathrm{H})\\[.3em] &\!\!\!\! = 0.5\times0.5\times0.5\times0.5\times0.5 \\[.3em] &\!\!\!\!= 0.5^5 = 0.03125 = 3.13\% \end{split}

How to calculate the joint probability of dependent events

It may happen that your events are not independent. In that case, the outcome of one event would affect the outcome of the other. If you want to calculate the joint probability of such events, you can't directly multiply the probability of the individual events, but consider a quantity called conditional probability.

The conditional probability of A given B, written P(AB)P(A|B), is the probability of the outcome A for the first event in case the other event had outcome B. We use this quantity to find P(AB)P(A\cap B) in the formula:

P(AB)=P(AB)×P(B)P(A\cap B) = P(A|B)\times P(B)

As you can see, this is a modification of the original multiplication rule. You can also calculate the same quantity but considering a different "order" of the events:

P(AB)=P(A)×P(BA)P(A\cap B) = P(A)\times P(B|A)

The result is the same. How do you calculate the conditional probability? We're glad you asked: we have a tool for that purpose! Visit Omni's conditional probability calculator to learn everything about this useful quantity.

You probably need these other tools, too!

Probability and statistics are, we know, complex topics, often badly taught in school or directly overlooked. That's why Omni created a small suite of focused tools to help you with your problems and homework. Try our other probability calculators:

FAQs

How do I find the probability of A and B?

To calculate the joint probability of two events, follow three easy steps:

  1. Calculate the probability of the outcome A: P(A).

  2. Calculate the probability of the outcome B: P(B).

  3. Multiply these quantities together:
    P(A∩B) = P(A) × P(B)

The result is the probability that outcome A and outcome B will both happen.

What is the formula for the joint probability of independent events?

The formula for the joint probability of independent events is simply a multiplication of the probability of the single events.

  • For two events, A and B, the joint probability is:
    P(A∩B) = P(A) × P(B)

  • For greater numbers of events, the generic formula is:
    P(A∩B∩C∩...) = P(A) × P(B) × P(C) × ...

What is the probability of obtaining two heads in two coin tosses?

The probability of obtaining two heads in two separate coin tosses is 0.25 or 25%.
To calculate this result:

  • Define the probability of the two events. In our case:

    P(head) = 0.5

  • Calculate the probability of two heads by multiplying the probability of two tosses:

    P(2 heads) = P(head) × P(head) = 0.5 × 0.5 = 0.25

Why is a streak of tails very unlikely in a series of toin cosses?

Because the formula of the joint probability tells us that to find the result, we multiply together the probability of single events.

Since the probability of an event is always at most equal to 1, the multiplication of such values will necessarily cause the result to decrease. Look at the growing streak's probability:

  • P(2 tails) = P(tail) × P(tail) = 0.5 × 0.5 = 0.25.

  • P(3 tails) = 0.5 × 0.5 x 0.5 = 0.125.

  • P(4 tails) = 0.5 × 0.5 x 0.5 x 0.5 = 0.0625.

Probabilities of single events

The green color highlights the probability area.

The probability of the intersection of events A and B.

© Omni Calculator

Check out 35 similar probability theory and odds calculators 🎲
AccuracyBayes theoremBertrand's box paradox...32 more