Concepts / Realizable Assumption

Realizable Assumption

PAC learnability is a definition involving a hypothesis class H, a function m_H, and a learning algorithm.

  • 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.

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.

draws instancesprovides labeled datareturnsis evaluated byDdistribution over XLabeled examplesdrawn from D and labeled byfLearning algorithmreceives enough exampleshreturned hypothesisPAC guaranteeloss at most epsilon withprobability at least 1minus delta
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.

has sample functionsets required accuracysets required confidencedescribes labeled examplesprovides target labels for comparisondefines learned hypothesis spaceHhypothesis classm_Hsample-complexity functionepsilonaccuracy parameterdeltaconfidence parameterDdistribution over Xflabeling functionhreturned hypothesis
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.

provides the hypothesis spacemust be consistent withallows the definition's guaranteeHhypothesis classftarget labeling functionRealizable assumptionf is consistent with HPAC guaranteeloss at most epsilon withprobability at least 1minus delta
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

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)?

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

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

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

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

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

  • Treating m_H as the returned hypothesis.

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

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

  • Ignoring the realizable assumption.

    The definition requires the realizable assumption to hold.

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

  • Confusing epsilon with delta.

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

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

  • Assuming the source provides a numerical sample bound.

    The definition only states that m_H supplies the required bound.

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

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

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

    Fix: 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.