Mathwords logoMathwords

Probability Vector — Definition, Formula & Example

A probability vector is a list of numbers, none of them negative, that add up to exactly 1. Each entry gives the probability of one outcome out of a fixed, finite set of outcomes.

A vector p=(p1,p2,…,pn)∈Rn\mathbf{p} = (p_1, p_2, \ldots, p_n) \in \mathbb{R}^n is a probability vector (or stochastic vector) if pi≥0p_i \ge 0 for every ii and ∑i=1npi=1\sum_{i=1}^{n} p_i = 1. The set of all such vectors is called the probability simplex. Any convex combination of probability vectors is again a probability vector.

Key Formula

p=(p1,…,pn),pi≥0 for all i,∑i=1npi=1\mathbf{p} = (p_1, \ldots, p_n), \qquad p_i \ge 0 \ \text{for all } i, \qquad \sum_{i=1}^{n} p_i = 1
Where:
  • p\mathbf{p} = The probability vector
  • pip_i = Probability assigned to outcome (or state) i
  • nn = Number of possible outcomes or states

Worked Example

Problem: Decide which of these vectors are probability vectors: u=(0.2, 0.5, 0.3)\mathbf{u} = (0.2,\ 0.5,\ 0.3), v=(0.4, 0.7, −0.1)\mathbf{v} = (0.4,\ 0.7,\ -0.1), and w=(0.25, 0.25, 0.25)\mathbf{w} = (0.25,\ 0.25,\ 0.25).
Step 1: Check u. Every entry is nonnegative, so add the entries. The sum is exactly 1, so both conditions hold.
0.2+0.5+0.3=10.2 + 0.5 + 0.3 = 1
Step 2: Check v. The entries do sum to 1, but the third entry is negative. A probability can never be below 0, so v fails the nonnegativity condition.
0.4+0.7+(−0.1)=1,but −0.1<00.4 + 0.7 + (-0.1) = 1, \quad \text{but } -0.1 < 0
Step 3: Check w. Every entry is nonnegative, but the sum falls short of 1. The missing 0.25 of probability is not assigned to any outcome.
0.25+0.25+0.25=0.75≠10.25 + 0.25 + 0.25 = 0.75 \ne 1
Answer: Only u=(0.2, 0.5, 0.3)\mathbf{u} = (0.2,\ 0.5,\ 0.3) is a probability vector. v\mathbf{v} has a negative entry, and the entries of w\mathbf{w} sum to 0.75 instead of 1.

Why It Matters

In a linear algebra or probability course, probability vectors describe the state of a Markov chain. The long-run behavior of the chain is a probability vector π\boldsymbol{\pi} satisfying πP=π\boldsymbol{\pi}P = \boldsymbol{\pi}. Google's PageRank is one such vector over web pages. The softmax output of a machine learning classifier is also a probability vector over its possible labels.

Common Mistakes

Mistake: Checking only that the entries sum to 1 and stopping there.
Correction: Both conditions are required. The vector (0.4,0.7,−0.1)(0.4, 0.7, -0.1) sums to 1 but is not a probability vector because it has a negative entry. Always confirm every entry satisfies pi≥0p_i \ge 0 before checking the sum.

Related Terms