A learner must find a conjunction of literals over n=10 Boolean variables (each variable may appear positively, negated, or not at all) in the realisable setting. Treat the class as having 310+1 hypotheses (the extra one is the always-false conjunction). How many examples guarantee error at most 0.1 with probability at least 0.95?

Learning theory, PAC learning
Level L2 Elementary. Length Short. Nature Mat Mathematical.

What's being asked

Whether you can count a hypothesis class and plug it into the realisable finite-class bound.

Key idea

m≥1ϵ(ln⁡∣H∣+ln⁡1δ) with ∣H∣=310+1=59050.

Steps

  1. Count ∣H∣: each of the 10 variables has 3 choices (positive literal, negated literal, absent), giving 310=59049, plus the always-false conjunction, so ∣H∣=59050.
  2. Set ϵ=0.1 and δ=0.05.
  3. Compute ln⁡∣H∣=ln⁡59050≈10.986 and ln⁡1δ=ln⁡20≈2.996. The sum is about 13.982.
  4. Divide by ϵ: m≥13.982/0.1=139.82. Round up to m=140.
  5. Note that ln⁡∣H∣≈nln⁡3 grows linearly in n, so the sample size is linear in the number of variables, even though ∣H∣ is exponential.

Common mistakes

How long your answer should be

4–5 lines; about 2 minutes.

Last checked on 4 December 2026.

Read this

Previous in Learning theory: The halving algorithm is run on a finite class of 1000 hypotheses and the labels are realisable (some hypothesis in the class is always correct). What is the largest number of mistakes it can make, and why?
Next in Learning theory: A perceptron is run on linearly separable data with ∥xi∥≤5 for all i. Some unit vector w∗ separates it with margin yi w∗ ⁣⋅xi≥0.5. What upper bound does Novikoff's theorem give on the number of mistakes? What changes if all inputs are multiplied by 10?