1. Home
  2. Explore
  3. Computer Science
  4. Machine Learning Theory

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Machine Learning Theory

  • 27Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Learning Assumptions

What are the two core assumptions about the data in supervised learning according to learning theory?

27 questions

  1. 1

    What are the two core assumptions about the data in supervised learning according to learning theory?

    Model answer

    There exists a data distribution DDD from which all (x,y)(x,y)(x,y) pairs are sampled, and all samples are sampled independently (i.i.d.).

    Explanation

    These assumptions allow theoretical analysis; without them, generalization theory becomes much harder.

  2. 2

    Why is the hypothesis output by a learning algorithm considered a random variable?

    Model answer

    Because the training set SSS is a random variable from the data distribution, and feeding a random variable through a deterministic learning algorithm yields a random variable (the hypothesis).

    Explanation

    Each different training set yields a different hypothesis, so the hypothesis has a sampling distribution.

  3. 3

    In learning theory, what is heta∗ heta^*heta∗ (or h∗h^*h∗) and why is it considered not random?

    Model answer

    heta∗ heta^*heta∗ is the true underlying parameter (or best possible hypothesis) – an unknown constant, not a random variable, so no probability distribution is associated with it.

    Explanation

    It is a fixed target; randomness only comes from the finite training data.

  4. 4

    Define bias of an estimator in the context of learning algorithms.

    Model answer

    Bias is the difference between the expected value of the estimated hypothesis (mathbbE[hath]mathbb{E}[hat{h}]mathbbE[hath]) and the true hypothesis (h∗h^*h∗). It measures whether the sampling distribution is centered around the true parameter.

    Explanation

    High bias means the algorithm systematically deviates from the truth, regardless of data size.

  5. 5

    Define variance of an estimator in the context of learning algorithms.

    Model answer

    Variance is the dispersion (spread) of the sampling distribution of the estimated hypothesis around its mean. It measures how much the estimate fluctuates with different training sets.

    Explanation

    High variance means the algorithm is sensitive to noise in the training data.

  6. 6

    From the parameter view, how would you characterize algorithms with high bias, low variance and low bias, high variance?

    Model answer

    High bias, low variance: sampling distribution is far from heta∗ heta^*heta∗ but tightly concentrated. Low bias, high variance: sampling distribution is centered near heta∗ heta^*heta∗ but widely dispersed.

    Explanation

    This visualization helps understand the bias-variance tradeoff independently of data view.

  7. 7

    Explain the relationship between underfitting/overfitting and bias/variance.

    Model answer

    Underfitting corresponds to high bias (model too simple); overfitting corresponds to high variance (model too complex).

    Explanation

    These are data-view manifestations of the same concepts.

  8. 8

    How does increasing the training set size mmm affect the variance of the estimator?

    Model answer

    As mmm increases, variance decreases (tends to 0 as moinftym o inftymoinfty). The rate of decrease is called statistical efficiency.

    Explanation

    More data concentrates the sampling distribution.

  9. 9

    What is a consistent estimator?

    Model answer

    An estimator is consistent if hathetaoheta∗hat{ heta} o heta^*hathetaoheta∗ as the sample size moinftym o inftymoinfty (in probability).

    Explanation

    Consistency means the estimator converges to the true value with infinite data.

  10. 10

    What is an unbiased estimator?

    Model answer

    An estimator is unbiased if mathbbE[hatheta]=heta∗mathbb{E}[hat{ heta}] = heta^*mathbbE[hatheta]=heta∗ for all sample sizes mmm.

    Explanation

    Unbiasedness means the sampling distribution is centered at the true parameter regardless of sample size.

  11. 11

    Name two ways to reduce variance in a learning algorithm.

    Model answer

    Increase the amount of training data, or add regularization (e.g., L1/L2).

    Explanation

    Regularization shrinks the hypothesis class, reducing variance at the cost of introducing some bias.

  12. 12

    Why does adding regularization typically increase bias?

    Model answer

    Regularization shrinks the hypothesis class, moving it away from the true function, thus introducing bias.

    Explanation

    The tradeoff: lower variance often comes with higher bias.

  13. 13

    How can you fight high bias in a learning algorithm?

    Model answer

    Increase the size of the hypothesis class (make the model more complex) or try different algorithms.

    Explanation

    A larger class reduces approximation error, but may increase variance.

  14. 14

    Define Bayes error (irreducible error) in the context of error decomposition.

    Model answer

    Bayes error is the error of the best possible hypothesis ggg (the ideal predictor) given infinite data. It is irreducible and can be non-zero due to inherent noise in the data.

    Explanation

    Even the optimal predictor makes errors if the data generation process is stochastic.

  15. 15

    Define approximation error.

    Model answer

    Approximation error is the difference between the best error achievable within the hypothesis class (epsilon(h∗)epsilon(h_*)epsilon(h∗​)) and the Bayes error (epsilon(g)epsilon(g)epsilon(g)). It measures the cost of restricting the hypothesis class.

    Explanation

    It is a property of the class, not the data sample.

  16. 16

    Define estimation error.

    Model answer

    Estimation error is the difference between the error of the learned hypothesis (epsilon(hath)epsilon(hat{h})epsilon(hath))andthebestin−classerror( and the best in-class error (andthebestin−classerror(epsilon(h_*)$). It arises because we only have finite data.

    Explanation

    Estimation error decreases as sample size increases.

  17. 17

    Write the decomposition of the total error (generalization error of hathhat{h}hath) in terms of Bayes error, approximation error, and estimation error.

    Model answer

    epsilon(hath)=extBayeserror+extapproximationerror+extestimationerrorepsilon(hat{h}) = ext{Bayes error} + ext{approximation error} + ext{estimation error}epsilon(hath)=extBayeserror+extapproximationerror+extestimationerror.

    Explanation

    This decomposition separates irreducible error, class limitation, and finite-data effects.

  18. 18

    How does the bias-variance decomposition relate to the approximation-estimation decomposition?

    Model answer

    They are related but not identical. In bias-variance decomposition, bias often includes approximation error plus some estimation bias, and variance captures the variability due to finite data. The approximation-estimation decomposition splits error based on class limitation vs. data limitation.

    Explanation

    Both perspectives help diagnose different sources of error.

  19. 19

    What is empirical risk minimization (ERM)?

    Model answer

    ERM is a learning algorithm that selects the hypothesis hathhat{h}hath from a class HHH that minimizes the training error (empirical risk) on the given data.

    Explanation

    Many algorithms (e.g., logistic regression) approximate ERM by minimizing a surrogate loss.

  20. 20

    State the union bound inequality.

    Model answer

    For any events A1,ldots,AKA_1, ldots, A_KA1​,ldots,AK​, P(cupi=1KAi)leqsumi=1KP(Ai)P(cup_{i=1}^K A_i) leq sum_{i=1}^K P(A_i)P(cupi=1K​Ai​)leqsumi=1K​P(Ai​).

    Explanation

    A simple but fundamental tool for bounding probabilities over multiple hypothesis.

  21. 21

    State Hoeffding's inequality for a Bernoulli distribution.

    Model answer

    For i.i.d. Bernoulli samples Z1,ldots,ZmZ_1,ldots,Z_mZ1​,ldots,Zm​ with mean phiphiphi, let hat{phi} = rac{1}{m}sum Z_i. For any gamma>0gamma>0gamma>0, P(∣hatphi−phi∣>gamma)leq2exp(−2gamma2m)P(|hat{phi}-phi|>gamma) leq 2exp(-2gamma^2 m)P(∣hatphi−phi∣>gamma)leq2exp(−2gamma2m).

    Explanation

    It quantifies how the empirical mean deviates from the true mean.

  22. 22

    How does Hoeffding's inequality apply to the generalization error of a fixed hypothesis hhh?

    Model answer

    For a fixed hhh, the empirical error hatepsilon(h)hat{epsilon}(h)hatepsilon(h) is an average of i.i.d. Bernoulli( epsilon(h)epsilon(h)epsilon(h) ) variables, so P(∣hatepsilon(h)−epsilon(h)∣>gamma)leq2exp(−2gamma2m)P(|hat{epsilon}(h)-epsilon(h)|>gamma) leq 2exp(-2gamma^2 m)P(∣hatepsilon(h)−epsilon(h)∣>gamma)leq2exp(−2gamma2m).

    Explanation

    This gives a pointwise bound for one hypothesis.

  23. 23

    Why is the pointwise bound from Hoeffding insufficient for ERM?

    Model answer

    Because ERM chooses hathhat{h}hath based on the data, making hathhat{h}hath and the data dependent. A bound must hold uniformly over all hhh in the class.

    Explanation

    Uniform convergence ensures that the empirical risks of all hypotheses are close to their true risks simultaneously.

  24. 24

    Derive the uniform convergence bound for a finite hypothesis class of size KKK.

    Model answer

    Using union bound: P(existshinH:∣hatepsilon(h)−epsilon(h)∣>gamma)leq2Kexp(−2gamma2m)P(exists hin H: |hat{epsilon}(h)-epsilon(h)|>gamma) leq 2Kexp(-2gamma^2 m)P(existshinH:∣hatepsilon(h)−epsilon(h)∣>gamma)leq2Kexp(−2gamma2m). Thus, with probability geq1−deltageq 1-deltageq1−delta, for all hhh, |hat{epsilon}(h)-epsilon(h)| leq sqrt{ rac{1}{2m}log rac{2K}{delta}} by setting delta=2Kexp(−2gamma2m)delta = 2Kexp(-2gamma^2 m)delta=2Kexp(−2gamma2m).

    Explanation

    The bound degrades proportionally to log K.

  25. 25

    What is the sample complexity expression for a finite hypothesis class to achieve generalization error margin gammagammagamma with confidence 1−delta1-delta1−delta?

    Model answer

    m geq rac{1}{2gamma^2} log rac{2K}{delta}.

    Explanation

    This tells how many examples are needed to guarantee uniform convergence.

  26. 26

    For an ERM algorithm on a finite hypothesis class, bound the generalization error of hathhat{h}hath in terms of the best-in-class error.

    Model answer

    With probability geq1−deltageq 1-deltageq1−delta, epsilon(hat{h}) leq epsilon(h_*) + 2sqrt{ rac{1}{2m}log rac{2K}{delta}}.

    Explanation

    This follows from uniform convergence: epsilon(hath)leqhatepsilon(hath)+gammaleqhatepsilon(h∗)+gammaleqepsilon(h∗)+2gammaepsilon(hat{h}) leq hat{epsilon}(hat{h})+gamma leq hat{epsilon}(h_*)+gamma leq epsilon(h_*)+2gammaepsilon(hath)leqhatepsilon(hath)+gammaleqhatepsilon(h∗​)+gammaleqepsilon(h∗​)+2gamma.

  27. 27

    What is VC dimension and why is it used?

    Model answer

    VC dimension is a measure of the capacity (expressiveness) of an infinite hypothesis class, used to provide uniform convergence bounds similar to those for finite classes but with VC dimension replacing logKlog KlogK.

    Explanation

    It enables sample complexity bounds for flexible models like neural networks.

1 of 27
Question 1 of 27

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent