What does it mean for a hypothesis class to be PAC (probably approximately correct) learnable, and what roles do and play?
Learning theory, PAC learning
Level L1 Beginner. Length Short. Nature Th Theoretical.
What's being asked
Whether you understand what "probably" and "approximately correct" mean intuitively and can separate the roles of and .
Key idea
A hypothesis class (a set of candidate models) is PAC learnable if, given enough random training examples, an algorithm can find a rule that is "probably" (with confidence at least ) "approximately correct" (with true error at most ), no matter what the underlying data distribution looks like.
Steps
- Explain "approximately correct" (): is the error tolerance — we ask that the learned model's true error on future data be at most (for example, at most wrong).
- Explain "probably" (): is the failure probability — because an unlucky random training set can always mislead a learner, we only require the error guarantee to hold with probability at least over the sample draw.
- Explain why it is distribution-free: the required number of training examples may grow as or gets smaller (or as the model class gets richer), but it must work for any data distribution.
- Note what comes next: the formal sample-complexity function and the agnostic setting (when no model in the class gets zero error) appear in later questions.
Common mistakes
- Swapping the roles of the two parameters: is the accuracy tolerance, while is the allowed chance of getting a bad training sample.
- Thinking the probability is over a single test point; it is over the random draw of the entire training set.
How long your answer should be
3–4 sentences explaining 'probably', 'approximately correct' and the roles of and .
Read this
- Shalev-Shwartz and Ben-David, Understanding Machine Learning, Chapter 3: Free PDF. Definition 3.1 (p. 43) for PAC learnability and Definition 3.3 (p. 46) for the agnostic version, with the roles of ε and δ explained right after.
- Mohri, Rostamizadeh and Talwalkar, Foundations of Machine Learning (2nd ed.), Chapter 2: Free PDF linked from this page. Section 2.1, Definition 2.3 (p. 11): PAC learning including the efficiency (polynomial-time) requirement, with a worked rectangle example.
- NPTEL: Pattern Recognition (IISc Bangalore, Prof. P.S. Sastry): Module 7: PAC learning framework, which defines PAC learnability and the roles of accuracy and confidence.
Previous in Learning theory: What is the mistake-bound (online learning) model, and how is it different from PAC learning? If a secret rule is one of 8 candidate rules and each mistake lets you throw away at least half of the candidates, how many mistakes can you make at most?
Next in Learning theory: For a class of classifiers, what is the growth function, i.e. how many different ways can the class label points? For the one-dimensional thresholds , how many labellings can they make on 3 points?