1. Home
  2. Explore
  3. Mathematics
  4. Biased Coin Guessing

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Biased Coin Guessing

Norms, Unit-Ball Geometry, and Matrix Norms

A Behavioral Observation About Prediction Under Uncertainty

Consider a coin whose outcomes are fixed but unknown:

  • Heads occurs with probability 0.750.750.75.

  • Tails occurs with probability 0.250.250.25.

  • A player predicts the outcome of each successive flip.

  • The player gains 1 for a correct prediction and loses 1 for an incorrect prediction.

Statistically optimal strategy

If the probabilities remain unchanged, the strategy that maximizes the expected number of correct predictions is to predict heads on every flip. The expected payoff of predicting heads is

0.75(1)+0.25(−1)=0.5,0.75(1) + 0.25(-1) = 0.5,0.75(1)+0.25(−1)=0.5,

whereas predicting tails has expected payoff

0.25(1)+0.75(−1)=−0.5.0.25(1) + 0.75(-1) = -0.5.0.25(1)+0.75(−1)=−0.5.

Once the bias is recognized, repeatedly choosing the more probable outcome is optimal.

Observed human behavior

People may initially alternate predictions or explore both possibilities while learning the coin’s bias. However, even after recognizing that heads is more common, people often continue predicting tails approximately 25%25\%25% of the time.

This behavior is surprising because the probabilities do not change. It suggests that people and possibly animals may not always follow the simple expected-value-maximizing strategy. Explaining why this happens is a problem for economics, psychology, statistics, and behavioral science.


Vector Norms

A norm is a function that measures the size or length of a mathematical object. Depending on the context, the object may be:

  • A vector

  • A matrix

  • A tensor

  • A function

For a vector vvv, a norm is commonly written as ∥v∥\lVert v\rVert∥v∥ or with a subscript indicating the specific norm being used.

A valid norm must satisfy several properties:

  1. Nonnegativity: ∥v∥≥0\lVert v\rVert \geq 0∥v∥≥0.

  2. Definiteness: ∥v∥=0\lVert v\rVert = 0∥v∥=0 only when v=0v=0v=0.

  3. Scaling: For a scalar ccc,

    ∥cv∥=∣c∣∥v∥.\lVert cv\rVert = |c|\lVert v\rVert.∥cv∥=∣c∣∥v∥.
  4. Triangle inequality:

    ∥u+v∥≤∥u∥+∥v∥.\lVert u+v\rVert \leq \lVert u\rVert+\lVert v\rVert.∥u+v∥≤∥u∥+∥v∥.

The scaling property means that if a vector is multiplied by 222, its norm must also be multiplied by 222.


The ℓp\ell_pℓp​ Norms

For a vector

v=(v1,v2,…,vn),v=(v_1,v_2,\ldots,v_n),v=(v1​,v2​,…,vn​),

the ℓp\ell_pℓp​ norm is defined by

∥v∥p=(∑i=1n∣vi∣p)1/p.\lVert v\rVert_p = \left(\sum_{i=1}^{n}|v_i|^p\right)^{1/p}.∥v∥p​=(∑i=1n​∣vi​∣p)1/p.

For p≥1p\geq 1p≥1, this expression defines a genuine norm.

The ℓ2\ell_2ℓ2​ norm

The ℓ2\ell_2ℓ2​ norm is the usual Euclidean length:

∥v∥2=∑i=1nvi2.\lVert v\rVert_2 = \sqrt{\sum_{i=1}^{n}v_i^2}.∥v∥2​=∑i=1n​vi2​​.

For a two-dimensional vector,

v=(v1,v2),v=(v_1,v_2),v=(v1​,v2​),

the unit boundary satisfies

v12+v22=1.v_1^2+v_2^2=1.v12​+v22​=1.

Thus, the ℓ2\ell_2ℓ2​ unit ball is a circle in R2\mathbb{R}^2R2. The filled unit ball consists of all vectors satisfying

v12+v22≤1.v_1^2+v_2^2\leq 1.v12​+v22​≤1.

The ℓ2\ell_2ℓ2​ norm is the standard notion of distance and is rotationally symmetric.

The ℓ1\ell_1ℓ1​ norm

The ℓ1\ell_1ℓ1​ norm is

∥v∥1=∑i=1n∣vi∣.\lVert v\rVert_1 = \sum_{i=1}^{n}|v_i|.∥v∥1​=∑i=1n​∣vi​∣.

For two dimensions, its unit boundary is

∣v1∣+∣v2∣=1.|v_1|+|v_2|=1.∣v1​∣+∣v2​∣=1.

In each quadrant, the absolute values reduce to linear expressions. For example, in the first quadrant,

v1+v2=1.v_1+v_2=1.v1​+v2​=1.

Consequently, the ℓ1\ell_1ℓ1​ unit ball in R2\mathbb{R}^2R2 is a diamond, with vertices at

(1,0),(−1,0),(0,1),(0,−1).(1,0),\quad (-1,0),\quad (0,1),\quad (0,-1).(1,0),(−1,0),(0,1),(0,−1).

The geometry of the ℓ1\ell_1ℓ1​ norm is especially important because its corners lie on the coordinate axes. Those corners correspond to vectors with zero components, which connects the ℓ1\ell_1ℓ1​ norm to sparsity.

The ℓ∞\ell_\inftyℓ∞​ norm

The maximum norm, or ℓ∞\ell_\inftyℓ∞​ norm, is

∥v∥∞=max⁡i∣vi∣.\lVert v\rVert_\infty = \max_i |v_i|.∥v∥∞​=maxi​∣vi​∣.

In two dimensions, the unit boundary satisfies

max⁡(∣v1∣,∣v2∣)=1.\max(|v_1|,|v_2|)=1.max(∣v1​∣,∣v2​∣)=1.

This produces a square with vertices

(1,1),(1,−1),(−1,1),(−1,−1).(1,1),\quad (1,-1),\quad (-1,1),\quad (-1,-1).(1,1),(1,−1),(−1,1),(−1,−1).

The ℓ∞\ell_\inftyℓ∞​ norm measures the size of the largest component rather than combining all components through a sum.

Relationship among the unit balls

As ppp increases from 111 to 222 and then toward infinity, the two-dimensional ℓp\ell_pℓp​ unit balls change shape:

  1. p=1p=1p=1: diamond

  2. p=2p=2p=2: circle

  3. p→∞p\to\inftyp→∞: square

The intermediate shapes gradually transition between these forms. The range 1≤p≤∞1\leq p\leq\infty1≤p≤∞ is important because these values produce proper norms.


The “ℓ0\ell_0ℓ0​ Norm” and Sparsity

The expression often called the ℓ0\ell_0ℓ0​ norm is

∥v∥0=number of nonzero components of v.\lVert v\rVert_0 = \text{number of nonzero components of }v.∥v∥0​=number of nonzero components of v.

Although it is useful, it is not actually a norm.

Why ℓ0\ell_0ℓ0​ is not a norm

Suppose vvv has several nonzero components. Multiplying by 222 does not change which components are zero:

∥2v∥0=∥v∥0.\lVert 2v\rVert_0=\lVert v\rVert_0.∥2v∥0​=∥v∥0​.

However, a valid norm must obey

∥2v∥=2∥v∥.\lVert 2v\rVert=2\lVert v\rVert.∥2v∥=2∥v∥.

Therefore, the ℓ0\ell_0ℓ0​ quantity violates the scaling property.

Connection with sparse vectors

The number of nonzero components measures the sparsity of a vector:

  • A vector with one nonzero component is highly sparse.

  • A vector with many nonzero components is less sparse.

  • Minimizing the number of nonzero components can produce computationally efficient representations.

Sparse vectors and sparse matrices are useful because many operations can be performed more quickly when most entries are zero.

Geometry of the ℓ0\ell_0ℓ0​ unit set

In two dimensions, the vectors with exactly one nonzero component lie on the coordinate axes. The corresponding set is not convex. For example, two points on different axes may have a midpoint with two nonzero components, so the midpoint does not remain in the set.

This lack of convexity is another indication that the ℓ0\ell_0ℓ0​ quantity does not behave like a norm.

The ℓ1\ell_1ℓ1​ norm is often used as a tractable substitute for ℓ0\ell_0ℓ0​ sparsity because ℓ1\ell_1ℓ1​ minimization is convex, while directly minimizing the number of nonzero components is generally nonconvex and difficult.


Convexity of Norm Unit Balls

The unit ball associated with a norm is

{v:∥v∥≤1}.\{v:\lVert v\rVert\leq 1\}.{v:∥v∥≤1}.

For every genuine norm, this set is convex. A set is convex if, whenever it contains two points, it also contains every line segment joining those points.

The unit balls of the ℓ1\ell_1ℓ1​, ℓ2\ell_2ℓ2​, and ℓ∞\ell_\inftyℓ∞​ norms are convex:

  • The ℓ1\ell_1ℓ1​ unit ball is a diamond.

  • The ℓ2\ell_2ℓ2​ unit ball is a circle.

  • The ℓ∞\ell_\inftyℓ∞​ unit ball is a square.

For values 0<p<10<p<10<p<1, the corresponding sets are not convex. This occurs because the triangle inequality fails, so the resulting expression is not a norm.

Convexity is mathematically valuable because convex optimization problems have strong structural properties. In particular, a local minimum of a convex problem is also a global minimum.


Weighted Quadratic Norms

A natural generalization of the ℓ2\ell_2ℓ2​ norm uses a symmetric positive-definite matrix SSS.

Define

∥v∥S=vTSv.\lVert v\rVert_S = \sqrt{v^{\mathsf T}Sv}.∥v∥S​=vTSv​.

The quantity

vTSvv^{\mathsf T}SvvTSv

is a quadratic form and is often interpreted as the energy associated with vvv.

Conditions on SSS

The matrix SSS must be:

  • Symmetric: ST=SS^{\mathsf T}=SST=S.

  • Positive definite: For every nonzero vector vvv,

    vTSv>0.v^{\mathsf T}Sv>0.vTSv>0.

These conditions ensure that ∥v∥S\lVert v\rVert_S∥v∥S​ satisfies the norm properties.

The scaling property follows because

∥cv∥S=(cv)TS(cv)=c2vTSv=∣c∣∥v∥S.\lVert cv\rVert_S = \sqrt{(cv)^{\mathsf T}S(cv)} = \sqrt{c^2v^{\mathsf T}Sv} = |c|\lVert v\rVert_S.∥cv∥S​=(cv)TS(cv)​=c2vTSv​=∣c∣∥v∥S​.

Unit ball

The weighted unit ball is

vTSv≤1.v^{\mathsf T}Sv\leq 1.vTSv≤1.

When S=IS=IS=I, the identity matrix,

∥v∥S=vTv=∥v∥2,\lVert v\rVert_S = \sqrt{v^{\mathsf T}v} = \lVert v\rVert_2,∥v∥S​=vTv​=∥v∥2​,

so the unit ball is a circle.

If

S=[2003],S= \begin{bmatrix} 2&0\\ 0&3 \end{bmatrix},S=[20​03​],

then

vTSv=2v12+3v22,v^{\mathsf T}Sv=2v_1^2+3v_2^2,vTSv=2v12​+3v22​,

and the unit boundary is

2v12+3v22=1.2v_1^2+3v_2^2=1.2v12​+3v22​=1.

This is an ellipse. The coefficient 333 restricts movement in the v2v_2v2​ direction more strongly than the coefficient 222 restricts movement in the v1v_1v1​ direction. Therefore, the ellipse is shorter along the v2v_2v2​ axis.

Weighted norms allow the geometry of distance to be adapted to the problem. Different coordinates can be assigned different importance or scales.


Norm Minimization and Sparsity

A common optimization problem is

min⁡x∥x∥1subject toAx=b.\min_x \lVert x\rVert_1 \quad\text{subject to}\quad Ax=b.minx​∥x∥1​subject toAx=b.

This seeks the vector satisfying the linear constraint Ax=bAx=bAx=b that has the smallest ℓ1\ell_1ℓ1​ norm. The problem is known as basis pursuit and is central to compressed sensing and sparse recovery.

Replacing the ℓ1\ell_1ℓ1​ norm with the squared ℓ2\ell_2ℓ2​ norm gives a problem closely related to least squares and ridge regression:

min⁡x∥x∥22subject toAx=b.\min_x \lVert x\rVert_2^2 \quad\text{subject to}\quad Ax=b.minx​∥x∥22​subject toAx=b.

The choice of norm determines which feasible solution is selected.

Geometric interpretation in two dimensions

Suppose the constraint is one linear equation,

c1x1+c2x2=b.c_1x_1+c_2x_2=b.c1​x1​+c2​x2​=b.

In the (x1,x2)(x_1,x_2)(x1​,x2​) plane, this equation describes a line. Every point on the line is a feasible solution.

Minimizing the ℓ2\ell_2ℓ2​ norm

The ℓ2\ell_2ℓ2​ norm measures ordinary Euclidean distance from the origin. Therefore, the minimizing point is the point on the line closest to the origin.

Geometrically:

  1. Draw concentric circles centered at the origin.

  2. Expand the circle outward.

  3. The first circle that touches the constraint line identifies the minimum-ℓ2\ell_2ℓ2​ solution.

At the point of contact, the circle is tangent to the line.

Minimizing the ℓ1\ell_1ℓ1​ norm

The ℓ1\ell_1ℓ1​ unit balls are diamonds. To find the minimum-ℓ1\ell_1ℓ1​ solution:

  1. Begin with a small diamond centered at the origin.

  2. Expand it outward.

  3. Stop when it first touches the constraint line.

Because diamonds have corners on the coordinate axes, the first contact often occurs at a corner. Such a point has one or more zero components.

This explains why ℓ1\ell_1ℓ1​ minimization tends to produce sparse solutions.

The ℓ1\ell_1ℓ1​ norm is special because its convex, cornered unit ball often makes the minimum-norm feasible point occur on a coordinate axis or another lower-dimensional face.

Why the geometry favors sparse solutions

A point farther along the constraint line generally has larger coordinate magnitudes and often more nonzero components. The corner of the ℓ1\ell_1ℓ1​ diamond can reach the line before a smooth portion of the boundary does. The corresponding solution therefore has fewer active coordinates.

In higher dimensions, the same geometric principle applies: the corners and faces of the ℓ1\ell_1ℓ1​ ball encourage solutions with many zero entries.


Matrix Norms

A matrix norm measures the size of a matrix. Several matrix norms are particularly important in numerical linear algebra, optimization, machine learning, and deep learning.


The Induced Matrix ℓ2\ell_2ℓ2​ Norm

For a matrix AAA, the matrix norm induced by the vector ℓ2\ell_2ℓ2​ norm is

∥A∥2=max⁡x≠0∥Ax∥2∥x∥2.\lVert A\rVert_2 = \max_{x\neq 0} \frac{\lVert Ax\rVert_2}{\lVert x\rVert_2}.∥A∥2​=maxx=0​∥x∥2​∥Ax∥2​​.

The ratio

∥Ax∥2∥x∥2\frac{\lVert Ax\rVert_2}{\lVert x\rVert_2}∥x∥2​∥Ax∥2​​

measures how much AAA stretches the vector xxx. It can be viewed as a blow-up factor.

The matrix norm is the largest possible stretching factor over all nonzero vectors.

Example: scalar multiple of the identity

If

A=7I,A=7I,A=7I,

then

Ax=7x,Ax=7x,Ax=7x,

so

∥Ax∥2∥x∥2=∥7x∥2∥x∥2=7.\frac{\lVert Ax\rVert_2}{\lVert x\rVert_2} = \frac{\lVert 7x\rVert_2}{\lVert x\rVert_2} = 7.∥x∥2​∥Ax∥2​​=∥x∥2​∥7x∥2​​=7.

Therefore,

∥7I∥2=7.\lVert 7I\rVert_2=7.∥7I∥2​=7.

Connection with singular values

Let the singular value decomposition of AAA be

A=UΣVT,A=U\Sigma V^{\mathsf T},A=UΣVT,

with singular values ordered as

σ1≥σ2≥⋯≥0.\sigma_1\geq \sigma_2\geq \cdots \geq 0.σ1​≥σ2​≥⋯≥0.

Then

∥A∥2=σ1.\lVert A\rVert_2=\sigma_1.∥A∥2​=σ1​.

The largest singular value is therefore the maximum factor by which AAA stretches a vector in Euclidean length.

The maximizing vector is the first right singular vector v1v_1v1​. Since

Av1=σ1u1,Av_1=\sigma_1u_1,Av1​=σ1​u1​,

and both u1u_1u1​ and v1v_1v1​ are unit vectors,

∥Av1∥2∥v1∥2=∥σ1u1∥21=σ1.\frac{\lVert Av_1\rVert_2}{\lVert v_1\rVert_2} = \frac{\lVert \sigma_1u_1\rVert_2}{1} = \sigma_1.∥v1​∥2​∥Av1​∥2​​=1∥σ1​u1​∥2​​=σ1​.

Thus, the first right singular vector is the direction that experiences the greatest stretching under AAA.

Singular vectors versus eigenvectors

If xxx is an eigenvector of AAA with eigenvalue λ\lambdaλ, then

Ax=λx,Ax=\lambda x,Ax=λx,

and the corresponding length ratio is ∣λ∣|\lambda|∣λ∣. However, for a nonsymmetric matrix, eigenvectors do not necessarily identify the direction of maximum Euclidean stretching.

The correct maximizing direction is the right singular vector associated with the largest singular value.


The Frobenius Norm

For an m×nm\times nm×n matrix A=(aij)A=(a_{ij})A=(aij​), the Frobenius norm is

∥A∥F=∑i=1m∑j=1n∣aij∣2.\lVert A\rVert_F = \sqrt{\sum_{i=1}^{m}\sum_{j=1}^{n}|a_{ij}|^2}.∥A∥F​=∑i=1m​∑j=1n​∣aij​∣2​.

It is the square root of the sum of the squares of all matrix entries. It can be viewed as the ordinary ℓ2\ell_2ℓ2​ norm of the matrix after arranging all its entries into one long vector.

Expression in terms of singular values

The Frobenius norm also satisfies

∥A∥F=∑iσi2.\lVert A\rVert_F = \sqrt{\sum_i\sigma_i^2}.∥A∥F​=∑i​σi2​​.

Equivalently,

∥A∥F2=∑iσi2.\lVert A\rVert_F^2 = \sum_i\sigma_i^2.∥A∥F2​=∑i​σi2​.

To understand this relation, use the singular value decomposition

A=UΣVT.A=U\Sigma V^{\mathsf T}.A=UΣVT.

The orthogonal matrices UUU and VVV preserve Euclidean lengths and the Frobenius norm. Therefore, the Frobenius norm of AAA equals the Frobenius norm of the diagonal singular-value matrix Σ\SigmaΣ:

∥A∥F=∥Σ∥F.\lVert A\rVert_F = \lVert \Sigma\rVert_F.∥A∥F​=∥Σ∥F​.

Since the nonzero entries of Σ\SigmaΣ are the singular values,

∥Σ∥F2=σ12+σ22+⋯ .\lVert \Sigma\rVert_F^2 = \sigma_1^2+\sigma_2^2+\cdots.∥Σ∥F2​=σ12​+σ22​+⋯.

The Frobenius norm is especially useful because it treats all matrix entries collectively rather than focusing only on the largest stretching direction.


The Nuclear Norm

The nuclear norm, also called the trace norm, is defined as the sum of the singular values:

∥A∥∗=∑iσi.\lVert A\rVert_* = \sum_i\sigma_i.∥A∥∗​=∑i​σi​.

Some sources denote this norm using an NNN subscript instead:

∥A∥N=∑iσi.\lVert A\rVert_N=\sum_i\sigma_i.∥A∥N​=∑i​σi​.

The nuclear norm is the matrix analogue of the vector ℓ1\ell_1ℓ1​ norm applied to the vector of singular values.

The three principal singular-value-based matrix norms correspond to familiar vector norms:

  • Spectral or induced ℓ2\ell_2ℓ2​ norm:

    ∥A∥2=max⁡iσi.\lVert A\rVert_2=\max_i\sigma_i.∥A∥2​=maxi​σi​.
  • Frobenius norm:

    ∥A∥F=(∑iσi2)1/2.\lVert A\rVert_F=\left(\sum_i\sigma_i^2\right)^{1/2}.∥A∥F​=(∑i​σi2​)1/2.
  • Nuclear norm:

    ∥A∥∗=∑iσi.\lVert A\rVert_*=\sum_i\sigma_i.∥A∥∗​=∑i​σi​.

Thus, the nuclear norm acts like an ℓ1\ell_1ℓ1​ norm on the singular-value vector, while the Frobenius norm acts like an ℓ2\ell_2ℓ2​ norm.

Connection with low-rank structure

The rank of a matrix is the number of its nonzero singular values. Minimizing rank is analogous to minimizing the number of nonzero entries in a vector, but rank minimization is generally difficult and nonconvex.

The nuclear norm provides a convex alternative. Because it penalizes the sum of singular values, minimizing it often encourages many singular values to become zero, producing a low-rank matrix.

This makes the nuclear norm important in:

  • Compressed sensing

  • Matrix completion

  • Low-rank approximation

  • Statistical learning

  • Deep-learning theory


Nuclear Norms and Deep Learning

Many modern deep-learning models are overparameterized, meaning they contain more adjustable weights than training samples or constraints. As a result:

  • There may be many different weight configurations.

  • Multiple configurations may achieve the same minimum training loss.

  • The optimization problem can have many global minimizers.

Despite this apparent redundancy, overparameterization can contribute to the success of deep learning.

A conjecture in a simplified model of deep learning proposes that gradient descent does not select an arbitrary minimum-loss solution. Instead, it may implicitly prefer a solution with a small nuclear norm.

In this interpretation:

  1. Gradient descent minimizes the training loss.

  2. Among the many solutions with similar or identical loss, the optimization trajectory selects one with additional structure.

  3. That structure may correspond to minimizing the nuclear norm of an associated weight matrix.

This idea is an example of implicit regularization: the optimization algorithm itself may favor simpler or more structured solutions even when no explicit regularization term is added to the objective function.

The conjecture has been proved in certain special cases, particularly cases with simplifying algebraic properties such as commuting structures, but a complete general proof remains unavailable. If correct, it would help explain why gradient descent can produce useful models despite the large number of possible interpolating solutions.


Key Relationships

The main ideas can be summarized through the relationships among vector geometry, sparsity, singular values, and optimization:

  • The ℓ2\ell_2ℓ2​ norm produces circular unit balls and selects the closest feasible point in Euclidean distance.

  • The ℓ1\ell_1ℓ1​ norm produces diamond-shaped unit balls with corners on coordinate axes.

  • Those corners make ℓ1\ell_1ℓ1​ minimization favor sparse vectors.

  • The ℓ0\ell_0ℓ0​ quantity directly counts nonzero components but is not a valid norm because it fails the scaling property.

  • A positive-definite quadratic form produces a weighted norm whose unit ball is an ellipse.

  • The induced matrix ℓ2\ell_2ℓ2​ norm is the largest singular value.

  • The Frobenius norm is the ℓ2\ell_2ℓ2​ norm of the singular-value vector.

  • The nuclear norm is the ℓ1\ell_1ℓ1​ norm of the singular-value vector and encourages low-rank matrices.

  • Norm choice determines the geometry of optimization and strongly influences which solution is selected among many feasible solutions.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent