Combinatorics and Probability
Combinatorics is the branch of mathematics focused on counting, arranging, and combining sets of elements. It forms the foundation for probability theory, which quantifies the likelihood of events occurring in random experiments. These concepts are essential for solving complex engineering optimization problems and understanding statistical distributions.
The Fundamental Counting Principle
The Fundamental Counting Principle, also known as the Multiplication Rule, provides a method for finding the total number of ways a sequence of events can occur without explicitly listing all possible outcomes.
If one event can occur in ways and a second independent event can occur in ways, then the two events can occur in sequence in ways. This principle extends to any number of sequential events.
Factorials
A factorial is the product of all positive integers less than or equal to a given positive integer .
Factorial
The product of an integer and all the integers below it, down to 1.
Factorial Definition
The mathematical definition of a factorial.
Variables
| Symbol | Description | Unit |
|---|---|---|
| n factorial | - | |
| A non-negative integer | - |
Note
By definition, . This convention is mathematically necessary to ensure that the formulas for permutations and combinations remain consistent when selecting or arranging zero items.
Permutations
A permutation is an arrangement of objects in a specific order. When dealing with permutations, the sequence of the items matters (e.g., a lock combination 1-2-3 is distinct from 3-2-1).
Permutation Formula
The number of ways to arrange r objects from a set of n distinct objects.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Number of permutations | - | |
| Total number of items in the set | - | |
| Number of items to arrange | - |
Special Cases of Permutations
- Arranging all objects: The number of ways to arrange all distinct objects is .
- Permutations with Identical Objects: The number of distinct permutations of objects where there are identical items of type 1, identical items of type 2, etc., is given by .
- Circular Permutations: The number of ways to arrange distinct objects in a circle is . This reduction accounts for the lack of a distinct starting point.
Combinations
A combination is a selection of objects from a set where the order does not matter. For example, selecting a committee of 3 engineers from a group of 10 engineers is a combination, because the sequence in which they are selected is irrelevant to the final committee composition.
Combination Formula
The number of ways to select r objects from a set of n distinct objects.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Number of combinations | - | |
| Total number of items in the set | - | |
| Number of items to select | - |
Properties of Combinations
- Symmetry: . Choosing objects to keep is mathematically identical to choosing objects to leave behind.
- Relationship to Permutations: . A permutation is simply a combination followed by an ordered arrangement of those selected items.
Use the interactive tool below to visualize the relationship between permutations and combinations. Notice how the number of permutations grows much faster than combinations as you increase .
Permutations vs. Combinations Explorer
(Note: r cannot exceed n. Assumes distinct items, no duplicates)
Item Pool (4):
Permutations (Order Matters)
Scenario: Creating a password, or picking 1st/2nd/3rd place.
(Choosing 2 items where order matters)
12 distinct arrangements
Combinations (Order Does NOT Matter)
Scenario: Forming a committee, or drawing a hand of cards.
(Choosing 2items where order doesn't matter)
6 distinct groups
Notice that is always exactly times larger than , because for every combination (group), there are ways to arrange those specific items. ().
Basic Probability
Probability is the measure of the likelihood that an event will occur. The probability of an event ranges from 0 (impossible) to 1 (certain).
Sample Space
The set of all possible outcomes of a random experiment.
Theoretical Probability
The probability of an event happening in a sample space where all outcomes are equally likely.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Probability of event E | - | |
| Number of favorable outcomes | - | |
| Total number of possible outcomes in the sample space | - |
Caution
All calculated probabilities must fall within the range . If you calculate a probability greater than 1 or less than 0, there is an error in your formulation or arithmetic.
Probability Rules
- Complementary Events: The probability that an event does not occur is .
- Addition Rule (Mutually Exclusive Events): If events and cannot occur simultaneously, then .
- Addition Rule (Non-Mutually Exclusive Events): .
- Multiplication Rule (Independent Events): If the occurrence of event does not affect the probability of event , then .
- Conditional Probability: The probability of event occurring given that event has already occurred is denoted as . If the events are dependent, .
Use the interactive Venn diagram laboratory below to explore set probabilities. Adjust the sizes of sets and , along with their intersection , to visually verify the Addition Rule and trace conditional probabilities dynamically.
Set Probability & Venn Diagram Simulator
Important
In probability and counting principles, the word "OR" generally translates to addition (), while "AND" translates to multiplication ().
Trace conditional probabilities and sequential outcomes using the interactive probability tree below. Adjust the path probabilities to see Bayes' Theorem compute final outcomes in real time.
Conditional Probability Tree Builder
Bayes & Total Probability
- Order matters for permutations (), whereas order does not matter for combinations ().
- The number of ways to arrange items in a circle is .
- For identical items, divide the total factorial permutation by the factorials of the counts of identical objects.
- Mutually exclusive events utilize the addition rule, while independent events utilize the multiplication rule.