Formula Bro

Math and physics formulas, explained like you are new.


Expectation Value

In one sentence: The expectation value is the average result you would get if you repeated a measurement many times on identical particles.

⟨x⟩=∫−∞∞x|ψ(x)|2dx\langle x \rangle = \int_{-\infty}^{\infty} x\, |\psi(x)|^2\, dx

Read it out loud: “The expectation value of x, written with angle brackets, equals the integral from minus infinity to plus infinity of x times the squared size of psi of x, times d x. The angle brackets around x mean the average of x. The integral sign means add up many thin slices. Psi (said SY) is the wave function, and the vertical bars mean squared size. The result is the average position, in meters.”

Before you start

The ideas and signs this page uses, explained from zero. For powers of ten, Greek letters and other notation in general, see Math basics.

Average and weighted average

An average adds up values and divides by how many there are. A weighted average gives each value a weight, such as how common it is. Each value is multiplied by its weight before the adding. When the weights are probabilities, they must add up to 1. The expectation value is a weighted average, where each possible result is weighted by how likely it is.

Probability, from 0 to 1

A probability is a chance written as a number from 0 to 1. Zero means never and 1 means always. A probability of 0.5 means that something happens half of the time, on average, such as heads for a fair coin. All the probabilities for the possible results of one measurement add up to 1, because one of those results must happen.

Angle brackets, like ⟨x⟩\langle x \rangle

The angle brackets ⟨⟩\langle\ \rangle around a letter mean the expectation value of that quantity. So ⟨x⟩\langle x \rangle is read ‘the expectation value of x’, which is the average position. The brackets do not mean multiplication. They are a short label that says ‘average of this quantity’.

The sum sign ∑\sum and subscripts like aia_i

The capital Greek letter sigma, ∑\sum, means add up. Its limits, written under and over it, say which items to add. The little ii in aia_i is a counting label, like a number on a list of results, so a1a_1 is the first result and a2a_2 the second. So ∑iaiP(ai)\sum_i a_i P(a_i) means multiply each result by its probability, then add the products.

Integrals and dxdx

An integral, written ∫\int, is the continuous version of a sum. It adds up many thin slices, each of width dxdx. When positions form a continuous line, there is no list of separate results, so the sum becomes an integral. The integral from minus infinity to infinity covers the whole line, from far left to far right.

Probability density |ψ(x)|2|\psi(x)|^2

The wave function ψ\psi is the mathematical wave of a particle, and it can be a complex number. The vertical bars mean the size, and the small 2 means squared, so |ψ|2|\psi|^2 is a positive number at each position. It is a probability density, a chance per meter, and it acts as the weight for each position in the average.

What each symbol means

SymbolMeaning

⟨x⟩\langle x \rangle

The expectation value of position, the average position over many measurements on identical particles. It is measured in meters (m). It may be a value that no single measurement gives, because it is an average of many results.

xx

The position along a line, in meters (m). Inside the integral it is the value being averaged, weighted by the probability density at each spot along the line.

|ψ(x)|2|\psi(x)|^2

The probability density at position xx, which is the squared size of the wave function. Its unit is m−1\text{m}^{-1}, a chance per meter. It acts as the weight for each position in the average.

ψ(x)\psi(x)

The wave function at position xx, a complex number. Its unit is m−1/2\text{m}^{-1/2} in one dimension. Only its squared size gives a probability density, so ψ\psi itself is not used as the weight.

dxdx

A thin slice of position, of width dxdx, in meters (m). The integral adds these slices together over the whole line.

∫−∞∞\int_{-\infty}^{\infty}

The integral over all positions, from far left to far right. It is the continuous version of a sum, and it adds up many thin slices of the line.

aia_i

The possible result number ii of a measurement, such as one energy value. In the list version of the rule, these are the only values that can come out. For energy the unit is electron volts (eV).

P(ai)P(a_i)

The probability of result aia_i, a number from 0 to 1. All the probabilities add up to 1, because one of the possible results must happen.

The formula piece by piece

xx

Start with a single position xx, in meters. It is the value being averaged. A position of 1.0 m, for example, is a spot one meter from the start of the line.

|ψ(x)|2|\psi(x)|^2

Next, the weight of that position is |ψ(x)|2|\psi(x)|^2, the probability density there. A spot where the density is high counts more in the average, and a spot where the density is zero does not count at all.

x|ψ(x)|2x\, |\psi(x)|^2

Multiply the position by its weight. The product x|ψ(x)|2x\,|\psi(x)|^2 is a position counted by how likely it is, so the average leans toward the positions the particle is most likely to be found at.

⟨x⟩=∫−∞∞x|ψ(x)|2dx\langle x \rangle = \int_{-\infty}^{\infty} x\, |\psi(x)|^2\, dx

The whole formula in one sentence: the average position equals the integral, over all positions, of each position times its probability density, with the results added up in thin slices.

⟨a⟩=∑iaiP(ai)\langle a \rangle = \sum_i a_i P(a_i)

Another standard form, for separate results instead of a continuous line: the expectation value of a quantity aa equals the sum, over every possible result aia_i, of that result times its probability P(ai)P(a_i).

What the formula is doing, and why

The expectation value ⟨A⟩\langle A \rangle of a quantity is the average you get when you measure it many times on identical systems. It is not one measured result. What goes in is the wave function, or a list of results with their probabilities. What comes out is the average. Each possible result counts in proportion to how likely it is, so the average leans toward the common outcomes.

Why a weighted sum? When the possible results are separate values, the rule is ⟨a⟩=∑iaiP(ai)\langle a \rangle = \sum_i a_i P(a_i). Multiply each possible result aia_i by its probability P(ai)P(a_i), then add. The probabilities must add to 1, so each weight is a fair share of the whole. Likely results pull the average toward them.

Why an integral? Position is continuous, so there is no list of separate results. The sum becomes an integral, and the density |ψ(x)|2|\psi(x)|^2 plays the role of the probabilities. In ⟨x⟩=∫x|ψ(x)|2dx\langle x \rangle = \int x\, |\psi(x)|^2\, dx, each position xx is weighted by the density at that spot, and the thin slices dxdx add up over the whole line.

Why symmetry helps. For the lowest state of a box of width LL, the density is the same on the left and on the right, centered in the middle of the box. The average position is therefore ⟨x⟩=L2\langle x \rangle = \frac{L}{2}, the center of the box. Symmetry gives the answer without doing the integral.

What an average does not tell you. An expectation value is an average, so it does not show how far single results scatter. The spread of the results, often measured by the standard deviation, tells how far single measurements typically land from the average. The average can also be a number that no single measurement can give, as the example below shows.

An everyday picture

Think of a class test. If half the students score 1, 30 percent score 2 and 20 percent score 4, the class average is 1.9, even though no student scored 1.9. Each score counts in proportion to how many students got it. The expectation value works the same way, weighting each possible result by its probability.

Worked example: Average energy from a measurement

A measurement of the energy of a particle gives one of three values. The value 1 eV has probability 0.5, the value 2 eV has probability 0.3, and the value 4 eV has probability 0.2. These are made-up numbers for practice. We find the expectation value of the energy, ⟨E⟩\langle E \rangle.

  1. Check the probabilities add up to 1. Every measurement gives one of the three values, so the probabilities must total 1: 0.5+0.3+0.2=1.00.5 + 0.3 + 0.2 = 1.0. If they did not, the weights would be wrong and the average would be off.
  2. Multiply each value by its probability. Each value is multiplied by how likely it is: 1eV×0.5=0.51\ \text{eV} \times 0.5 = 0.5 eV for the first, 2eV×0.3=0.62\ \text{eV} \times 0.3 = 0.6 eV for the second, and 4eV×0.2=0.84\ \text{eV} \times 0.2 = 0.8 eV for the third. The unit stays as eV, because the probabilities have no unit.
  3. Add the three products. ⟨E⟩=0.5+0.6+0.8=1.9\langle E \rangle = 0.5 + 0.6 + 0.8 = 1.9 eV. This is the weighted average. The answer sits between the smallest and largest results, and it is closer to 1 eV, the most likely result.
  4. Compare with a plain average. Averaging the three values without weights gives (1+2+4)/3≈2.33(1 + 2 + 4)/3 \approx 2.33 eV. The weights pull the answer down to 1.9 eV, because the 1 eV result is the most likely and the 4 eV result is the least likely.
  5. Imagine 1,000 measurements. About 500 would give 1 eV, 300 would give 2 eV and 200 would give 4 eV. Their total is 500×1+300×2+200×4=1900500 \times 1 + 300 \times 2 + 200 \times 4 = 1900 eV. Dividing by the 1000 measurements gives 1.9 eV per measurement, which is the expectation value.
  6. Check that the result is not one of the values. No single measurement gives 1.9 eV, because the only possible results are 1, 2 and 4 eV. The expectation value is an average, so it can fall between results that can actually occur.

Answer: The expectation value of the energy is 1.9 eV. No single measurement gives 1.9 eV, because the possible results are only 1, 2 and 4 eV. Over many measurements, though, the average of the results gets close to 1.9 eV.

The numbers in this example are recomputed by script every time the site is built.

Common mistakes

Where you will meet it

Questions people ask

Is the expectation value the most likely result?

Not always. The most likely result is the highest point of the probability picture. The expectation value is the average, which can sit away from that peak, especially when the distribution is lopsided.

Does one measurement give the expectation value?

No. One measurement gives one of the possible results. The expectation value shows up as the average of many measurements on identical systems.

How many measurements does the average need?

The more measurements you average, the closer the result gets to the expectation value. The random scatter of the average shrinks roughly as 1N\frac{1}{\sqrt{N}} for NN measurements.

Sources

  1. Expectation value (quantum mechanics), Wikipedia
  2. Expected value, Wikipedia

| All Quantum formulas |

Published 2026-10-22. Plain-text copy for AI agents and readers: quantum-mechanics/expectation-value.md.