The Expectation Value in Probability and the “Average” in Quantum Mechanics
— From the roll of a die all the way to
in one continuous thread (for second- and third-year undergraduates)
At some point, a quantum mechanics textbook suddenly presents the formula
.
“Why do we sandwich it with ?” “Why is this an average?”
In fact, this formula is exactly the same thing as the expectation value of a die roll.
Here we start from the expectation value 7/2 of a die roll,
keep adding faces, separate probability from probability density, turn the sum into an integral,
and arrive directly at the average value in quantum mechanics.
Finally, we make clear the difference between eigenvalues and expectation values, which trips up beginners the most.
This one line is all you need to take homeThe “average” of quantum mechanics is exactly the “expectation value” of probability theory.
In , we merely replaced with
. Not a single new concept has been added.
And the expectation value is not the “most likely value.”
The expectation value of a die is 3.5, but there is no face showing 3.5.
For the hydrogen 1s orbital, the most likely distance is 1.0 , but
the expectation value is 1.5 .
1. First, an Ordinary Die
Think of the number on the die as the “physical quantity you want to observe.”
Each of 1 through 6 comes up with probability 1/6, so the average is
(1)
Written in general form, it is just this:
(2)
First, the most important cautionThere is no face showing 3.5 on this die.
The expectation value is “the value the average settles down to when you roll many times,”
not “the face that comes up” and not “the face that comes up most often.”
This distinction will carry over directly, later on, as the difference between eigenvalues and expectation values.
2. Writing Down the Definition
Suppose the random variable takes the values
with respective probabilities . Then the expectation value is
(3)
When the random variable takes continuous values, the sum turns into an integral and we obtain
(4)
Here is the probability density, and the two are connected by the relation
— and this passage from Eq. (3) to Eq. (4) is nearly everything in this document.
Below, we follow it through without cutting any corners.
3. Dividing the Interval into n Equal Parts — A Die with Many Faces
Define a random variable on the interval .
Let us divide this interval into n equal parts. The random variable then becomes
(5)
This is exactly an “n-sided die.”
If we take and ,
then , so
the ordinary die comes out just as it is.
Increasing n to 12, 20, 32 corresponds to chopping the same interval more and more finely.
In the simulator, this is shown using real solid shapes.
The regular tetrahedron (4 faces), regular hexahedron (6 faces), regular octahedron (8 faces), regular dodecahedron (12 faces), and regular icosahedron (20 faces) are
regular polyhedra, all of whose faces are congruent regular polygons, so
is guaranteed by the shape alone.
The 32-faced solid, however, is a truncated icosahedron (a soccer ball, the same shape as the C60 fullerene), not a regular polyhedron
— since there are only five kinds of regular polyhedra.
Let the probabilities of taking the respective values be . Then, naturally,
(6)
4. Probability and Probability Density — Where the Paths Part
Suppose every face comes up with the same probability. Then .
What happens as we make n larger?
Number of faces n
Face width Δx = 6/n
Probability of one face, Pk = 1/n
Probability density ρ = Pk/Δx
6
1
0.1667
0.1667
12
0.5
0.08333
0.1667
20
0.3
0.05000
0.1667
32
0.1875
0.03125
0.1667
60
0.1
0.01667
0.1667
360
0.01667
0.002778
0.1667
1200
0.005
8.333×10−4
0.1667
The probability collapses to 0, but the probability density remains
As faces are added, the probability of any one face comes closer and closer to 0.
Naturally — with as many as 1200 faces, it is rare for any particular face to come up.
Yet the quantity obtained by dividing it by the face width Δx does not change at all.
For a continuous quantity, “the probability that exactly x = 3.000000… comes up” is strictly zero.
What has meaning is “the probability of falling between x and x + dx,”
and this is .
This is what is meant by having no choice but to think in terms of the probability density, not the probability itself.
Looking at the dimensions makes the situation even clearer.
The probability is dimensionless (a number from 0 to 1), but
has the dimension of an “inverse length.”
This will matter directly later, when we consider the dimension of the wave function.
But the 32-faced die is not fair
So far we have taken , that is, the same probability for every face.
As we saw in Section 3, for a regular polyhedron this is guaranteed by the shape alone, but this is not so for the 32-faced solid.
This is because the truncated icosahedron (the 32-faced solid) is made of 12 regular pentagons and 20 regular hexagons, whose areas are not equal.
If the likelihood of coming up is taken to be proportional to the area, the probability is 0.02370 for a pentagon and 0.03578 for a hexagon
— since 1/32 = 0.03125 if all faces were alike, pentagons come up about 24 % less often and hexagons about 15 % more often.
Counting the number of faces alone does not guarantee a uniform distribution.
What is interesting is the expectation value. If we engrave 1–6 and 27–32 on the narrow pentagons and 7–26 on the wide hexagons,
the arrangement of the numbers is left-right symmetric, so the expectation value stays at 16.5.
Even so, because the outer faces come up less often, the spread (standard deviation) shrinks from 9.233 to 8.525
— even with the same expectation value, the distributions are not necessarily the same.
This is why, in Section 8, ΔA is defined separately from the expectation value.
5. The Riemann-Sum Method — The Sum Turns into an Integral
Now we let n → ∞. The only tool we use is the Riemann-sum method.
(7)
Think of as turning into , and of as turning into .
First, let us apply this to the total probability.
Since we can write ,
(8)
We do the same for the expectation value. Since ,
(9)
With this we have gone from Eq. (3) to Eq. (4).
This is the expectation value for a continuous random variable.
Nothing difficult was done — we merely increased the number of faces of the die.
Fig. 1: The Riemann-sum method in action.
Try changing the number of strips n. The area of each strip is “the probability Pk of falling in that interval,”
and their total always approaches 1. The readout value “Riemann sum Σ xkPk” is
drawn toward “the integral ∫xρdx” — this is exactly Eq. (9) above.
6. Enter the Wave Function — The Probability Density Is |ψ|²
Not a trace of quantum mechanics has entered the discussion so far.
It is pure probability theory. Now we bring in just one physical assumption.
The Born rule (1926)
When we look for a particle in the state of the wave function ,
the probability of finding it between x and x + dx is
.
In other words, is the probability density
— that is all.
Since the particle must be somewhere, the counterpart of Eq. (8) is
(10)
This is the normalization condition. We see that it is nothing but a statement of “the total probability is 1.”
What is the dimension of the wave function?
Since is a probability density, its dimension is “inverse length.”
Therefore, in one dimension, .
In three dimensions, , so .
The wave function itself has no meaning as a probability.
Only the square of its absolute value has meaning, and even that is a density.
Being asked for “the probability of finding it at a single point” has no answer — that was the point of Section 4.
7. The Expectation-Value Formula Is Rewritten Directly
All that remains is to replace in Eq. (4) with .
(11)
The equality on the right merely uses and
the fact that “the position operator merely multiplies.”
For a general physical quantity , the same form holds:
(12)
For the energy, setting gives
(13)
Why is ψ* placed on the left? — The order matters
Since the position merely multiplies, gives the same result.
The momentum , however, is a derivative, so
it makes no sense unless it acts on the to its right.
cannot be written as
— for there is, to begin with, no such thing as “the momentum p(x) at that point.”
Writing the operator sandwiched between ψ* … ψ is the convention adopted for exactly this purpose.
8. Eigenvalues and Expectation Values — Where Students Stumble the Most
Now for the main subject. For a physical quantity , with corresponding operator ,
let its eigenvalues and eigenfunctions be defined by
(14)
Operators corresponding to physical quantities are Hermitian operators,
thanks to which the eigenvalues are always real,
and the eigenfunctions form a complete set of mutually orthogonal functions
— this is also why measured values come out as real numbers.
Because they form a complete set, any state can be expanded as
.
Substituting this into Eq. (12) and using the orthogonality of , we obtain
(15)
This is the same formula as Eq. (3)
Compare this with .
is “the value that comes out,” and is “the probability that this value comes out.”
The rule of measurement in quantum mechanics is, in short, nothing more than
“the values that come out are the eigenvalues, and their probabilities are the squared absolute values of the expansion coefficients,”
and the calculation of the expectation value that follows is not different from the die’s by even one character.
The spread can be defined in the same way.
(16)
From here, the difference becomes clear.
Eigenvalue
Expectation value
What it is
The value that actually comes out when you measure
The average over many measurements
Measured repeatedly
For an eigenstate, exactly the same every time (ΔA = 0)
Scatters every time; only the average is fixed
Does it come out in a measurement?
Yes (a measured value is always one of the eigenvalues)
Not necessarily
In terms of the die
The faces 1, 2, 3, 4, 5, 6
3.5 (there is no such face)
Even for the same state, the story changes with the quantity
Consider the ground state of a one-dimensional box.
Since this is an eigenstate of , no matter how many times you measure the energy, you always get
. ΔE = 0.
Yet if you measure the position in the same state, you get a different value every time (Δx ≠ 0).
This is because is not an eigenstate of .
It never happens that a single state is simultaneously definite for every physical quantity.
This is the true nature of uncertainty.
In the language of linear algebra, when the operators do not commute
(),
they cannot be diagonalized simultaneously.
If we expand in the eigenfunctions of , becomes off-diagonal, and
the value can no longer be pinned down to a single one.
(This point is treated in detail on the diagonalization page.)
A superposition makes it clearest
If we prepare the state ,
then .
For a box, , so
taking as the unit,
.
But the only values that come out in a measurement are 1 and 4; 2.5 never comes out.
The situation is exactly the same as for the die’s expectation value 3.5.
9. Computing for the Hydrogen Atom — Where Is ⟨r⟩?
Quantum mechanics cannot fix the position of the electron exactly.
So we compute the expectation value of the position. In three dimensions, Eq. (11) carries over directly:
(17)
The angular part becomes 1 by the normalization of the spherical harmonics, leaving only the radial part.
Using the radial distribution
, we have
.
For the 1s orbital, , so
using , the integrals can be done by hand.
(18)
On the other hand, the most likely distance is where is maximal, that is, from
we obtain
(19)
Mode and expectation value 1.5The most likely distance is exactly the Bohr radius. Yet the average is 1.5 times that.
Because the distribution has a long tail to the right,
the average is pulled outward.
The “expectation value is not the most likely value” that we saw in Section 1
appears here as concrete numbers.
For a general orbital, carrying out the same integral (we omit the intermediate steps) gives
(20)
Orbital
n
l
⟨r⟩ / aB
Most likely r / aB
1s
1
0
1.5
1.0
2s
2
0
6
0.76 and 5.24 (2 peaks)
2p
2
1
5
4.0
3s
3
0
13.5
3 peaks
3p
3
1
12.5
2 peaks
3d
3
2
10.5
9.0
4s
4
0
24
4 peaks
Looking at Eq. (20), we can read off that the electron lies farther out as the principal quantum number n increases,
and farther in as the azimuthal quantum number l increases.
10. Where Expectation Values Matter — Ionization of Transition Metals
The electron configuration of the Ti atom is
1s² 2s² 2p⁶ 3s² 3p⁶ 4s² 3d².
Using the hydrogen-atom formula, Eq. (20), as a guide, we get 3d: 10.5 , 4s: 24 .
In a many-electron atom the nuclear charge is large, and even after subtracting the screening by the inner electrons,
the effective nuclear charge is greater than 1, so both orbitals shrink to well inside their hydrogen counterparts.
The amount of shrinkage is not the same for 3d and 4s: because they are screened differently, 3d shrinks more strongly.
Even so, the relation that 4s lies farther out than 3d does not change.
4s fills first, yet spatially 4s lies farther out
In the Ti atom, the configuration with 4s occupied has the lower total energy (which is why 4s fills first), yet
spatially the 4s electrons lie much farther out.
That is why, when Ti is ionized, the 4s electrons are removed first.
The Ti2+ in TiO is 1s² 2s² 2p⁶ 3s² 3p⁶ 3d²,
so its outermost electrons are not 4s electrons but 3d electrons.
The magnetism and the conduction of transition-metal oxides are both carried by these 3d electrons.
This is where a mere average, the expectation value, correctly accounts for the properties of a material.
11. Ehrenfest’s Theorem — Classical Mechanics Was the Motion of Expectation Values
Expectation values move in time. Examining how they move, we find equations that are surprisingly familiar.
(21)
Reading as the position and as the momentum,
this is Newton’s equation of motion itself.
Classical mechanics turned out to be the law obeyed by the expectation values of quantum mechanics — this is Ehrenfest’s theorem.
The humble average called the “expectation value,” which we have followed throughout this document,
turns out to have been nothing other than the true identity of classical mechanics.
But the right-hand side is the “expectation value of the force”
The right-hand side of Eq. (21) is , that is, the force averaged, and
it is not evaluated at .
The two coincide exactly for every state only when the force is at most linear in position — a free particle, a uniform force, or a harmonic oscillator — and
only then does the expectation value follow Newton’s equation exactly.
For other potentials, the two differ by an amount that reflects the spread of the wave packet.
In short, classical mechanics shows up when the wave packet is sufficiently narrow compared with the way the potential curves.
What moves and what does not
In a state that superposes the two levels and ,
oscillates in time.
This is because the interference term oscillates as ,
with .
As for , it oscillates at the same frequency only when the position matrix element
survives in that interference term.
If levels of the same parity about the center of a one-dimensional box are superposed, such as and ,
this matrix element becomes 0, and pulsates while does not move from the center of the box
— this is called a selection rule.
By contrast, and do not move at all.
This is because energy is a conserved quantity.
You can see this contrast in tab “④ Eigenvalues versus expectation values” of the simulator.
12. Summary
The expectation value is defined by — that is all. Just as there is no face showing 3.5, the expectation value is not a “value that comes out.”
If we divide the interval into n equal parts to make a die with many faces, the probability collapses to 0, but the probability density remains. For continuous quantities we have no choice but to think in terms of density.
The Riemann-sum method turns the sum into an integral, giving .
With the Born rule, setting gives . That formula in the lecture slides was nothing but the expectation value of a die roll.
Expanding in eigenfunctions gives — the eigenvalues are the “values that come out,” and are “their probabilities.”
When , the expectation value always coincides with an eigenvalue. Otherwise, the expectation value may be a value that never appears in a measurement.
For hydrogen 1s, the mode is , and the expectation value is 1.5. Even when estimated from the hydrogen formula, 4s (24) lies farther out than 3d (10.5), and this relation determines the order of ionization of transition metals.
The equation of motion of the expectation value becomes Newton’s equation — this is Ehrenfest’s theorem.