Biased Coin Guessing


Biased Coin Guessing

Anna
Before we get into norms, Michael, there is a fascinating probability puzzle to set the stage. Imagine a coin that lands heads 75 percent of the time and tails 25 percent of the time. A player guesses heads or tails before each flip, earns one dollar for a correct guess, and loses one dollar for an incorrect one.

Michael
The mathematically optimal strategy seems straightforward: once you learn that heads is more likely, guess heads every time. Since the probabilities never change, guessing tails occasionally cannot improve your expected winnings.

Anna
Exactly. But the surprising observation is that people, and perhaps animals, tend not to do that. In the long run, they guess heads about three-quarters of the time and tails about one-quarter of the time, mirroring the coin's probabilities instead of always choosing the more likely outcome.

Michael
It is a striking example of a behavior that economists and others try to explain. The important lesson for today is that interesting mathematical problems appear everywhere, even when they are not the main topic of the lecture.

Anna
Our main topic is norms. A norm is a way to measure the size of a vector, matrix, tensor, or even a function. For instance, if a function is scaled from sine x to two sine x, its size should also double. That scaling behavior is one of the properties we want from a norm.

Michael
For vectors, the general family is the p-norm. Take the absolute value of each component, raise those values to the p-th power, add them, and then take the result to the power one over p. In symbols, for a vector v, the p-norm is the sum of the absolute values raised to p, followed by the one-over-p power.

Anna
The most familiar case is p equal to 2. That gives the usual Euclidean length: the square root of the sum of the squared components. The p equal to 1 norm adds the absolute values of the components, and the infinity norm takes the largest absolute component.

Michael
The infinity norm makes sense as the limit of the p-norms as p becomes very large. Raising numbers to larger and larger powers causes the largest component to dominate, so after taking the appropriate root, only that maximum remains.

Anna
The one-norm has become especially important in compressed sensing and signal processing. It often helps identify sparse solutions, meaning vectors with many zero components. Sparse vectors and matrices can be much faster to compute with.

Michael
There is also something people sometimes call the zero-norm, although the name is mathematically improper. It counts the number of nonzero components. That is exactly the quantity we would like to minimize when we want sparsity.

Anna
But it is not a true norm because scaling does not change it. A nonzero vector v and the vector two v have exactly the same number of nonzero components, so the supposed zero-norm of two v equals the supposed zero-norm of v instead of doubling.

Michael
That is why proper p-norms are generally considered for p from one through infinity. Values below one do not produce a norm, and the zero-norm is useful as a sparsity measure but violates the norm rules.

Anna
The geometry of unit balls makes these differences easy to remember. In two-dimensional space, the unit ball consists of all vectors whose norm is less than or equal to one. For the two-norm, the boundary is the familiar circle, with equation v1 squared plus v2 squared equal to one.

Michael
For the one-norm, the boundary is a diamond. In the positive quadrant, the equation is v1 plus v2 equal to one, which is a straight line, and reflecting that line into the other quadrants gives the diamond shape.

Anna
For the infinity norm, the boundary is a square. The condition says that the maximum of the absolute component values is one, so every point inside the square has both coordinates between minus one and one.

Michael
As p increases from one to two and then to infinity, the unit ball changes from a diamond to a circle and then to a square. These are convex shapes, which is consistent with the properties of a true norm.

Anna
The zero-norm picture explains its failure. The vectors with exactly one nonzero component lie along the coordinate axes, but the resulting set is not convex. A line segment between two such points can contain vectors with two nonzero components, so the set does not satisfy the required geometric behavior.

Michael
Another useful norm comes from a symmetric positive definite matrix S. Define the S-norm of v as the square root of v transpose S v. The quantity v transpose S v is called the energy, and taking the square root ensures that scaling v by two scales the norm by two.

Anna
If S is the identity matrix, this is just the usual two-norm. If S is diagonal with entries two and three, the energy is two v1 squared plus three v2 squared, and the unit ball becomes an ellipse.

Michael
The larger weight means less distance is allowed in that direction. So the coefficient three compresses the ellipse more strongly along the corresponding axis than the coefficient two does. This is a weighted, adjustable version of the Euclidean norm.

Anna
These geometric pictures also explain why the one-norm promotes sparsity in optimization. Consider minimizing the one-norm of x subject to A x equal to b. In two dimensions, the constraint may be a line, and we want the smallest norm ball that touches that line.

Michael
For the two-norm, the balls are circles, so the first contact is the point on the line closest to the origin. That is the ordinary shortest-distance solution. The same idea is the geometric basis of many constrained optimization problems.

Anna
For the one-norm, the balls are diamonds. A diamond often touches the constraint line at a corner, and the corners lie on the coordinate axes. Therefore, the minimizing point frequently has a zero component.

Michael
That is the key distinction: the one-norm solution tends to be sparse. You can imagine expanding the diamond outward from the origin until it first reaches the constraint line. The first contact is the smallest possible one-norm, and because corners are favored, that contact often has more zeros.

Anna
The one-norm constrained problem is known as basis pursuit. Replacing the one-norm by a squared two-norm leads to an important problem related to least squares and ridge regression. The choice of norm changes which solution geometry favors.

Michael
Now let us move from vector norms to matrix norms. A particularly important matrix two-norm is defined through the largest possible amplification of a vector: take the maximum, over nonzero x, of the two-norm of A x divided by the two-norm of x.

Anna
That ratio is the factor by which A stretches x, and the matrix norm is the maximum stretching factor. If A is seven times the identity matrix, every vector is stretched by seven, so the matrix norm is seven.

Michael
For a general matrix, this maximum is the largest singular value, sigma one. The vector that achieves the maximum is the first right singular vector, v one, because A v one equals sigma one times u one, where u one is also a unit vector.

Anna
Substituting v one into the ratio gives the two-norm of A v one divided by the two-norm of v one. The denominator is one, and the numerator is the norm of sigma one u one, which is sigma one. So the singular-vector viewpoint directly identifies the largest stretching direction.

Michael
Another important matrix norm is the Frobenius norm. It is the square root of the sum of the squares of every matrix entry. In terms of singular values, it is also the square root of the sum of the squared singular values.

Anna
The connection follows from the singular value decomposition, A equals U Sigma V transpose. Orthogonal matrices do not change the relevant length calculations, so the Frobenius norm of A is the same as the Frobenius norm of the diagonal matrix Sigma. For that diagonal matrix, summing the squared entries means summing the squared singular values.

Michael
The nuclear norm, also called the trace norm, is the sum of the singular values. In that sense, it is the matrix analogue of the vector one-norm, while the Frobenius norm corresponds to the two-norm of the singular-value vector and the spectral matrix norm corresponds to its infinity norm.

Anna
The nuclear norm appears in compressed sensing and in discussions of deep learning. A conjecture described in the lecture proposes that, in certain modeled deep-learning problems, gradient descent may select among many equally good solutions the weights that minimize the nuclear norm.

Michael
The setting for that conjecture is an overparameterized problem, where there are many more weights than samples. Because many different weight choices can produce the same minimum loss, the optimization process may have an implicit preference among those solutions.

Anna
The conjecture is not proved in full. There are proofs for some special cases, including cases where the relevant quantities commute, but the broader claim remains an active area of investigation.

Michael
So the main picture is this: vector norms measure size in different geometries, and their unit balls explain their behavior. The one-norm favors sparse solutions, the two-norm gives ordinary Euclidean distance, and the infinity norm focuses on the largest component.

Anna
For matrices, the two-norm measures the largest amplification and equals the largest singular value, the Frobenius norm combines all singular values through their squares, and the nuclear norm adds the singular values. Those connections make singular values central to understanding matrix size and optimization.

Michael
And that is the larger lesson: in optimization, the question is never only which point satisfies the constraint. We must also ask which norm defines size, because changing the norm changes the geometry and can change the solution we select.

Ask anything
We've read this whole study set, so questions about it get the best answers.