Concepts / Realizable Assumption

Realizable Assumption

The realizable assumption is a required condition of this version of the PAC definition. The guarantee applies when the labeling function f is consistent with the hypothesis class H, together with the distribution D under consideration.

  • Programming

Why the Assumption Matters

PAC learnability is not simply the claim that an algorithm can produce a useful hypothesis. It is a precise guarantee about when a hypothesis class H can be learned. The definition specifies how many labeled examples are needed, which algorithm receives them, what distribution produces the examples, how the examples are labeled, and how accurate and reliable the returned hypothesis must be.

Key point

The realizable assumption is a required condition of this version of the PAC definition. The guarantee applies when the labeling function f is consistent with the hypothesis class H, together with the distribution D under consideration.

From Examples to a Guarantee

The PAC process can be read as a pipeline. A distribution D over the instance space X supplies examples. The labeling function f assigns labels to those examples. The learning algorithm receives enough labeled examples and returns a hypothesis h. PAC learnability then asks whether h has loss at most epsilon with probability at least 1 minus delta.

Ddistribution over XLabeled examplesdrawn from D and labeled byfLearning algorithmreceives enough exampleshreturned hypothesisPAC guaranteeloss at most epsilon withprobability at least 1minus deltadraws instancesprovides labeled datareturnsis evaluated by
How do examples drawn from D and labeled by f flow into the learning algorithm, and what guarantee does it provide about the returned hypothesis h?

The Definition Components

Each symbol in the PAC definition has a distinct role. H is the hypothesis class to be learned. The function m_H determines how many labeled examples are required for the chosen accuracy and confidence parameters. Epsilon describes the permitted loss, while delta describes the amount of probability left outside the guarantee. D is a distribution over the instance space X, and f is the labeling function. The learning algorithm uses labeled examples and returns h, the hypothesis whose loss is evaluated.

Hhypothesis classm_Hsample-complexity functionepsilonaccuracy parameterdeltaconfidence parameterDdistribution over Xflabeling functionhreturned hypothesishas sample functionsets required accuracysets required confidencedescribes labeled examplesprovides target labels for comparisondefines learned hypothesis space
How are H, m_H, epsilon, delta, D, f, and h connected within the definition of PAC learnability?
SymbolRole
HHypothesis class being learned
m_HFunction that determines the required number of examples
epsilonAllowed loss in the returned hypothesis
deltaProbability amount excluded from the guarantee
DDistribution over the instance space X
fLabeling function
hHypothesis returned by the learning algorithm

The main components of the PAC learnability definition

What Realizable Means

The realizable assumption says that the target labeling function f is consistent with the hypothesis class H in the setting defined by H, D, and f. In practical terms, the target labeling situation is treated as one that the chosen hypothesis class can represent. This condition matters because the stated PAC guarantee is required only when the realizable assumption holds.

Hhypothesis classftarget labeling functionRealizable assumptionf is consistent with HPAC guaranteeloss at most epsilon withprobability at least 1minus deltaprovides the hypothesis spacemust be consistent withallows the definition's guarantee
What does it mean for the target function f to be consistent with the hypothesis class H, and why is that condition part of the PAC definition?

Reading the Sample Threshold

Worked example

A Symbolic PAC Scenario

Suppose H is a hypothesis class, D is a distribution over X, and f is a labeling function consistent with H. What must happen when the learner receives m examples satisfying m at least m_H(epsilon, delta)?

  1. 1
    Check the assumption

    The realizable assumption must hold with respect to H, D, and f.

  2. 2
    Check the sample size

    The number of labeled examples must meet the threshold m at least m_H(epsilon, delta).

  3. 3
    Run the learner

    The learning algorithm receives the labeled examples and returns a hypothesis h.

  4. 4
    Apply the guarantee

    The returned h must have loss at most epsilon with probability at least 1 minus delta.

Result

PAC learnability requires that a suitable function m_H and a suitable learning algorithm exist so this guarantee holds for every allowed epsilon and delta, every distribution D over X, and every labeling function f when the realizable assumption holds.

The threshold m_H(epsilon, delta) connects the learner's resources to the requested guarantee. The learner must receive at least that many labeled examples. The source definition does not specify a particular numerical value for m_H; it requires that such a function exist and determine the required sample size.

What do you think happens?

If the learner receives m examples with m less than m_H(epsilon, delta), does the PAC definition require the stated guarantee?

  • Yes, the same guarantee is required

  • No, the definition's threshold condition has not been met

Reveal answer
Answer:

No, the definition's threshold condition has not been met.

The stated guarantee is required after the sample threshold m at least m_H(epsilon, delta) is satisfied. The definition does not state the same guarantee for a smaller sample.

Common Interpretation Errors

  • Common mistake

    Treating m_H as the returned hypothesis.

    What it looks like

    Reading m_H as if it were h.

    Why it fails

    m_H is the function that determines how many examples are required, while h is the hypothesis returned by the learning algorithm.

    Do this instead

    Keep the roles separate: m_H sets the sample threshold, and h is evaluated using the PAC guarantee.

  • Common mistake

    Ignoring the realizable assumption.

    What it looks like

    Applying the guarantee without checking the relationship among H, D, and f.

    Why it fails

    The definition requires the realizable assumption to hold.

    Do this instead

    State explicitly that the guarantee is conditional on the realizable setting.

  • Common mistake

    Confusing epsilon with delta.

    What it looks like

    Describing delta as the allowed loss of h.

    Why it fails

    The guarantee uses epsilon for the loss bound and 1 minus delta for the probability level.

    Do this instead

    Remember the two parts separately: loss at most epsilon, with probability at least 1 minus delta.

  • Common mistake

    Assuming the source provides a numerical sample bound.

    What it looks like

    Claiming a specific number of examples without a specified m_H.

    Why it fails

    The definition only states that m_H supplies the required bound.

    Do this instead

    Use the symbolic threshold m at least m_H(epsilon, delta) unless a particular function is provided.

  • Common mistake

    Treating PAC learnability as a guarantee for one fixed situation only.

    What it looks like

    Checking the definition for only one choice of epsilon, delta, or D.

    Why it fails

    The definition requires the guarantee for every allowed epsilon and delta, every distribution D over X, and every labeling function f when realizability holds.

    Do this instead

    Pay attention to the scope of the quantifiers in the definition.

Practice Check

MEDIUM

Explain the PAC guarantee in your own words using all seven components: H, m_H, epsilon, delta, D, f, and h. Your explanation must include the sample threshold, the realizable assumption, the loss bound, and the probability bound.

Hints
  • Start by identifying what H contains and what m_H determines.
  • State how D and f produce the labeled learning problem.
  • Finish by explaining what h must satisfy after m reaches m_H(epsilon, delta).

A complete answer should say that H is PAC learnable when there is a sample-complexity function m_H and a suitable learning algorithm such that, for every allowed epsilon and delta, every distribution D over X, and every labeling function f satisfying the realizable assumption, receiving at least m_H(epsilon, delta) labeled examples leads to a returned hypothesis h with loss at most epsilon with probability at least 1 minus delta.

Key Takeaways

  • PAC learnability describes when a hypothesis class H can be learned under a precise probabilistic guarantee.
  • The function m_H determines the required number of labeled examples, expressed by the threshold m at least m_H(epsilon, delta).
  • D supplies the distribution over the instance space X, f supplies the labels, and the algorithm returns a hypothesis h.
  • The realizable assumption requires the labeling situation defined by H, D, and f to be consistent with the hypothesis class.
  • After enough examples, h must have loss at most epsilon with probability at least 1 minus delta.

More concepts starting with R