How do I calculate the probability of A or B?
Add the chance of A and the chance of B, then subtract the chance that both happen. That is the addition rule, P(A or B) = P(A) + P(B) − P(A and B). The calculator does this and shows the result on the first line.
What is the difference between P(A given B) and P(A and B)?
P(A and B) is the chance that both events happen out of all cases. P(A given B) looks only at the cases where B happened and asks how often A happened there. It equals P(A and B) divided by P(B).
Does the calculator assume the events are independent?
No. You enter the intersection yourself, so it works for events that influence each other. If you know they are independent, multiply P(A) by P(B) and enter that product as the intersection.
Why does the tool refuse my numbers?
The three values must fit together. The intersection can never be bigger than P(A) or P(B), and it must be at least P(A) + P(B) − 1. Any value outside 0 to 1, or an empty box, also causes an error message.
Can I enter percentages or fractions?
Use decimals between 0 and 1. A value like 50 is rejected as out of range, and the number box does not read fractions like 1/2. Divide percentages by 100 first, so 50 percent becomes 0.5.
What does undefined mean in the result?
It appears when the event you are conditioning on has probability 0. Asking how often A happens when B never happens has no meaning, so the tool says P(A given B) is undefined because P(B) is zero.
Can I use this for dice, coins or cards?
Yes, if you work out the three probabilities yourself first. For example, for one die, A could be an even number (0.5), B a number above 3 (0.5) and both (two of six outcomes, about 0.333333). The tool does not count outcomes for you.
What if I need more than two events?
This tool covers two events only. For three or more events, or for binomial, normal and Poisson models, you need a different calculation. Check that the method you pick fits the way your data was collected.
Is my data uploaded?
No. The calculation runs in your browser and the numbers you type are not uploaded. Use Copy result if you want to keep the four lines for later.
Hvordan bruker du Sannsynlighetskalkulator?
Skriv inn P(A), P(B) og P(A and B) som desimaltall fra 0 til 1.
Lastes dataene mine opp til en server?
Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.