Math Calculators, Lessons and Formulas

It is time to solve your math problem

mathportal.org

Probability calculator

google play badge app store badge

This calculator computes the probability of a selected event based on the probability of other events. The calculator uses the addition rule, multiplication rule, and Bayes theorem to find conditional probabilities.The calculator generates a solution with a detailed explanation.

Basic Rules for Finding Probabilities

The addition rule

is used to calculate the probability that event A or event B occurs. To apply this rule, add the probabilities for events A and B, then subtract the probability of intersection. So for the union of two events, we have the following formula:

P(A or B) = P(A) + P(B) - P(A and B)

Example 1:

Consider families with two children. Let A be the event that the first child is a girl, and B be the event that the second child is a girl. In this case, P(A and B) is the probability that both children are girls, and P(A or B) is the probability that at least one child is a girl. We know that P(A) = 1/2, P(B) = 1/2, and P(A and B) = 1/4, then:

P(A or B) = P(A) + P(B) - P(A and B) =
= 1/2 + 1/2 - 1/4 = 3/4

The multiplication rule

is used to find the probability that events A and B both occur. For independent events, multiplication rule is

P(A and B) = P(A) × P(B)

and for dependant events, the formula is:

P(A and B) = P(A) × P(B|A).

Example 2:

Suppose we flip the coin three times. What is the probability of getting all three heads?

Let A be the event that we get a head on a single coin toss. The P(A)=1/2. The P(AAA) is:

P(AAA) = P(A) × P(A) × P(A) =
= 1/2 × 1/2 × 1/2 = 1/8

The addition rule (video created with Manim)

Binomial distribution

A binomial experiment involves repeated trials with each trial having two possible outcomes: success or failure.

A binomial distribution simply counts the number of successes across n independent trials.

The probability of having k successes in n trials is

Example 3:

What is the probability of getting exactly 2 heads in 6 coin tosses?

The number of trials is n=6.

The number of successes is k=2.

The probability od success is p=1/2.

Now, we can apply above formula

P(k) = n!/(k! × (n-k)!) × pk × (1-p)n-k
P(2) = 6!/(2! × (6-2)!) × 0.52 × (1-0.5)6-2
P(2) = 720/(2 × 24) × 0.25 × 0.0625
P(2) = 15 × 0.25 × 0.0625
P(2) = 15 × 0.25 × 0.0625
P(2) = 0.234
P(2) = 23.4%

Probability calculator
For dependent events enter 3 values. For independent events input 2 values.
help ↓↓ examples ↓↓
0123456789/.C
Provide any three known values.
P(A) =
P(B)=
P( A and B ) =
P( A or B ) =
P( A | B ) =
P( B | A ) =
thumb_up 1.5K thumb_down

Get Widget Code

Examples
ex 1:
A single card is chosen from a deck of 52 playing cards. What is the probability of choosing an ace, or a heart?
ex 2:
A fair six sided die is rolled. What is the probability of rolling a number divisible by 3, or an even number?
ex 3:
Find the probability of getting exactly 6 heads in 10 tosses.
ex 4:
Find the probability of getting more than 8 heads in 10 tosses.
ex 5:
If a player scores 3 out of 5 free throws, what is the probability that he will score more than 9 out of 12 attempts?
Find more worked-out examples in our database of solved problems.
452 861 664 solved problems
working...