Concepts / Hilbert Space

Hilbert Space

H2 ◦ S consists of all m-coordinate inner-product vectors produced by allowable w vectors.

  • Programming

From Vectors to Hypothesis Values

The key idea is to study not only the allowable vectors w themselves, but also the values they produce on a fixed sample S. If S contains m sample vectors, each allowable w produces one inner product with each sample vector. Collecting those m values gives an m-coordinate vector. The collection of all such output vectors is H2 composed with S.

H2 composed with S consists of all m-coordinate inner-product vectors produced by vectors w that satisfy the class constraint ||w||2 ≤ 1.

inner productinner productinner productcoordinate 1coordinate 2coordinate mallowable w||w||2 ≤ 1x1⟨w, x1⟩H2 composed with S(⟨w, x1⟩, ⟨w, x2⟩, ..., ⟨w,xm⟩)x2⟨w, x2⟩xm⟨w, xm⟩
How does each allowable vector w produce an m-coordinate vector of inner products with the sample points in S?

Tracing One Allowable Vector

Mapping one w across a sample

Suppose S contains the sample vectors x1, x2, and x3. Consider one vector w that satisfies ||w||2 ≤ 1.

Select w: Because w satisfies the norm constraint, it is one of the vectors allowed by the class.

Evaluate the sample: Pair w with each sample vector through an inner product: ⟨w, x1⟩, ⟨w, x2⟩, and ⟨w, x3⟩.

Collect the coordinates: Place those three inner-product values into one vector.

This w contributes the three-coordinate vector (⟨w, x1⟩, ⟨w, x2⟩, ⟨w, x3⟩) to H2 composed with S.

The important distinction is between a single output vector and the whole composed class. One allowable w gives one m-coordinate vector. H2 composed with S is the collection obtained when every allowable w is considered.

The Norm Constraint

The condition ||w||2 ≤ 1 is not an incidental detail. It decides which w vectors can generate coordinates in H2 composed with S. Therefore, it also determines the resulting hypothesis class: only the m-coordinate inner-product vectors produced by allowable w vectors are included.

producesproducesallowable wlarger allowable regionhypothesis vectorsmore possible inner-productvectorsallowable wrestricted by ||w||2 ≤ 1hypothesis vectorsvectors produced by therestricted class
How does restricting the allowable region for w change the set of hypothesis vectors that can be produced?

The Cauchy-Schwarz Step

The proof needs to control quantities built from inner products between w and the sample vectors. Cauchy-Schwarz is the step that replaces an inner-product expression with a product of norms. In schematic form, the inner product between two vectors is bounded by the product of their norms. The norm constraint on w then becomes useful because one of the factors is controlled by ||w||2 ≤ 1.

applybounds bycombine with constraintinner-productexpressioninvolving w and samplevectorsCauchy-Schwarzreplace inner product bynorm productproduct of norms||w||2 times sample normcontrolled expressionuse ||w||2 ≤ 1
At which step does Cauchy-Schwarz replace an inner product with a product of norms, and how does that bound the expression?

Cauchy-Schwarz does not create a new hypothesis vector. It supplies an upper bound that makes the values generated by the allowable class easier to control in the proof.

Jensen and Random Signs

After the Cauchy-Schwarz step, the proof uses Jensen's inequality to derive a further bound. The role of this step is to move from an expectation involving a square root or norm to a more tractable bound. Jensen's inequality therefore acts after the inner-product control has already been established; it is not the step that defines H2 composed with S.

take expectationapplyobtaincontrolled normexpressionafter Cauchy-Schwarzexpectationcontains square root ornormJensen's inequalityderive a further boundtractable boundused in the remaining proof
How does Jensen's inequality move from an expectation involving a square root or norm to a more tractable bound?

The variables σ1, ..., σm appear in the later probabilistic part of the proof. The source describes them as independent random signs. Their independence allows the final expectation to be simplified after the earlier norm and Jensen bounds have been applied.

weightsweightsweightsindependence simplifiesσ1independent random signsigned sumsigns weight the sampletermssimplifiedexpectationfinal proof stageσ2independent random signσmindependent random sign
How do the independent random signs σ1, ..., σm affect the sum and allow the expectation to be simplified?

Proof Sequence

  1. Fix a sample S containing m sample vectors.
  2. Consider every vector w satisfying ||w||2 ≤ 1.
  3. Map each allowable w to its m inner products with the sample vectors.
  4. Use Cauchy-Schwarz to replace an inner-product expression by a product of norms.
  5. Use the norm constraint on w to control that product.
  6. Apply Jensen's inequality to obtain a further bound involving the relevant expectation.
  7. Use the independence of σ1, ..., σm to simplify the final expectation.
Proof ingredientRole
H2 composed with SCollects the m-coordinate inner-product vectors produced by allowable w vectors.
Norm constraintDetermines which w vectors are allowable.
Cauchy-SchwarzConverts an inner-product expression into a product of norms.
Jensen's inequalityProvides a further bound after the Cauchy-Schwarz step.
Independence of σ1, ..., σmSimplifies the final expectation in the proof.

Common Mistakes

  • Treating H2 composed with S as one vector.

    One w produces one m-coordinate vector, while H2 composed with S contains the vectors produced by all allowable w vectors.

    Fix: Distinguish the output of one w from the collection of outputs over every w satisfying the constraint.

  • Ignoring the condition ||w||2 ≤ 1.

    The norm constraint defines which w vectors belong to the class.

    Fix: Apply the constraint before describing the possible inner-product vectors.

  • Attributing the norm bound to Jensen's inequality.

    The source places Cauchy-Schwarz at the inner-product control step and Jensen's inequality afterward.

    Fix: Use Cauchy-Schwarz for the inner-product-to-norm conversion, then identify Jensen as the later bounding step.

  • Treating the random signs as dependent.

    The final simplification uses their independence.

    Fix: Track σ1, ..., σm as independent random signs in the final expectation step.

Check Your Understanding

MEDIUM

Explain the proof pipeline in your own words. Start with a fixed sample S and the constraint ||w||2 ≤ 1. Then state what one allowable w produces, identify the purpose of Cauchy-Schwarz, explain what Jensen's inequality does next, and finish by describing why the independence of σ1, ..., σm matters.

Hints
  • Separate the definition of H2 composed with S from the later proof bounds.
  • Cauchy-Schwarz acts on an inner-product expression.
  • Jensen's inequality is used after the Cauchy-Schwarz step.
  • The random signs are used in the final expectation simplification.

What do you think happens?

If one allowable vector w is selected, does it by itself represent all of H2 composed with S?

  • Yes, because H2 composed with S is one output vector.
  • No, because one w produces one output vector and the class contains outputs from all allowable w vectors.
Reveal answer

Answer: No, because one w produces one output vector and the class contains outputs from all allowable w vectors.

H2 composed with S is the collection of all m-coordinate inner-product vectors produced by vectors w satisfying the class constraint.

Essential Takeaways

  1. H2 composed with S is the collection of m-coordinate vectors of inner products produced by allowable w vectors on a fixed sample S.
  2. The condition ||w||2 ≤ 1 determines which vectors w can generate hypothesis outputs.
  3. Cauchy-Schwarz controls an inner-product expression by converting it into a product of norms.
  4. Jensen's inequality supplies a further bound after the Cauchy-Schwarz step.
  5. The independence of σ1, ..., σm is used to simplify the final expectation in the proof.

Key Takeaways

  • H2 composed with S records every m-coordinate inner-product output obtained from vectors w satisfying ||w||2 ≤ 1.
  • The norm constraint shapes the hypothesis class by restricting the vectors that may generate outputs.
  • Cauchy-Schwarz is the inner-product control step.
  • Jensen's inequality gives a later expectation bound, and independent random signs simplify the final stage.