Probabilities
The formula for combinations, also known as the binomial coefficient, is given by:
Which represents the number of ways to choose r items from a set of n distinct items without regard to their order.
Probability measures the likelihood of an event happening. It assigns a numerical value between 0 and 1 to an event, where 0 represents an impossible event and 1 indicates a certain event.
For example, the probability of flipping a fair coin and getting heads is 0.5, as there are two equally likely outcomes (heads or tails).
The key to understanding probabilities (or anything else) is practice.
Infinite sets
Set | Description | Example |
---|---|---|
Integers | ||
Natural | ||
Real | Any number | |
Rational | Any number that can be expressed as a fraction | |
Complex |
Venn diagrams
Venn diagrams illustrate concepts like intersections, unions, which is a good way to visualize probabilities. The overlapping regions indicate elements that belong to multiple sets, while non-overlapping regions represent elements unique to specific sets.
In this example, two circles are drawn to represent sets A and B. The overlapping region is labeled as the intersection of sets A and B, denoted by A B.

Probability notation and event types
![]() | ![]() | ![]() |
---|---|---|
A and B | A or B | Not A |
Intersection | Union | Compliment |
A and B are said to be independent if .
Being independent means that the probability of an event has no influence on the other
Random variables
Random variables are denoted with capital letters
The possible outcomes are denoted with regular letters
Probability that the outcome of is is denoted by
gives the expected value, which represents the mean value (outcome) of the random variable.
gives the variance, which is a measure of the variability of the random variable's outcomes.
, which any addition / subtraction function within can be expanded.
If and are independent:
Joint random variables
Joint random variables are in the form . We can visualize the joint distribution in the following way:
Sum | |||
---|---|---|---|
Sum |
Note that the sum of a column or row results in the corresponding variable's probability of outcome.
Random variables of random variables (outcomes)
For random variables modelled in the following way:
We can deduce that: