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

  • 35Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Learning Framework Assumptions
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What are the two main assumptions about data in supervised learning theory?

Tap to flipClick to flipspace
  1. There exists a data-generating distribution DDD from which (x,y)(x,y)(x,y) pairs are sampled. 2. All samples are independently and identically distributed (i.i.d.) from DDD.

Or swipe the card

35 cards

  1. What are the two main assumptions about data in supervised learning theory?

    1. There exists a data-generating distribution DDD from which (x,y)(x,y)(x,y) pairs are sampled. 2. All samples are independently and identically distributed (i.i.d.) from DDD.
  2. What is the learning process in terms of a training set, learning algorithm, and hypothesis?

    Given a training set S={(x1,y1),…,(xm,ym)}S = \{(x_1, y_1), \dots, (x_m, y_m)\}S={(x1​,y1​),…,(xm​,ym​)} sampled from DDD, a learning algorithm outputs a hypothesis hhh (a function from xxx to yyy).

  3. Why is the hypothesis h^\hat{h}h^ considered a random variable?

    Because the training set SSS is a random sample from DDD, and the learning algorithm deterministically maps SSS to h^\hat{h}h^; thus h^\hat{h}h^ inherits randomness from SSS.

  4. Is the true parameter θ∗\theta^*θ∗ considered random?

    No, θ∗\theta^*θ∗ is an unknown constant, not associated with any probability distribution.

  5. Define bias in the context of a learning algorithm.

    Bias measures whether the expected hypothesis (over random training sets) is centered around the true parameter. Bias(θ^)=E[θ^]−θ∗\text{Bias}(\hat{\theta}) = \mathbb{E}[\hat{\theta}] - \theta^*Bias(θ^)=E[θ^]−θ∗.

  6. Define variance in the context of a learning algorithm.

    Variance measures the dispersion of the hypothesis around its expected value: Var(θ^)=E[(θ^−E[θ^])2]\text{Var}(\hat{\theta}) = \mathbb{E}[ (\hat{\theta} - \mathbb{E}[\hat{\theta}])^2 ]Var(θ^)=E[(θ^−E[θ^])2].

  7. What does high bias imply about a learning algorithm?

    High bias means the algorithm's output stays far from the true parameter regardless of how much data is provided; it cannot change its mind even with infinite data.

  8. What does high variance imply about a learning algorithm?

    High variance means the algorithm is easily swayed by noise in the data; its output varies significantly with different training sets.

  9. Are bias and variance correlated?

    No, bias and variance are independent properties of an algorithm. An algorithm can have any combination of low/high bias and low/high variance.

  10. How does increasing the amount of training data (mmm) affect variance?

    Increasing mmm reduces variance. As m→∞m \to \inftym→∞, variance tends to 0.

  11. What is a consistent estimator?

    An estimator θ^\hat{\theta}θ^ is consistent if θ^→θ∗\hat{\theta} \to \theta^*θ^→θ∗ in probability as m→∞m \to \inftym→∞ (i.e., variance and bias both go to zero).

  12. What is an unbiased estimator?

    An estimator θ^\hat{\theta}θ^ is unbiased if E[θ^]=θ∗\mathbb{E}[\hat{\theta}] = \theta^*E[θ^]=θ∗ for all sample sizes mmm.

  13. What is statistical efficiency as related to variance?

    Efficiency refers to the rate at which variance decreases as mmm increases. A more efficient algorithm achieves lower variance with fewer samples.

  14. How can you combat high variance? (two methods)

    1. Increase the amount of training data. 2. Apply regularization (e.g., L2 or L1 penalty).
  15. How does adding regularization affect bias and variance?

    Regularization reduces variance (by shrinking the hypothesis class) but typically increases bias (by moving the estimator away from the true parameter).

  16. How can you combat high bias?

    Increase the hypothesis class (e.g., use a more complex model) or use a different algorithm.

  17. What is the bias-variance tradeoff?

    Actions that reduce bias (e.g., larger hypothesis class) tend to increase variance, and actions that reduce variance (e.g., regularization) tend to increase bias. Optimal generalization is achieved by balancing the two.

  18. What is the Bayes error (or irreducible error)?

    The Bayes error ϵ(g)\epsilon(g)ϵ(g) is the minimum possible error achievable by any hypothesis, given by the inherent noise in the data. It is the error of the true function ggg.

  19. Define approximation error.

    Approximation error is the difference between the Bayes error and the best possible error within a restricted hypothesis class HHH: ϵ(h∗)−ϵ(g)\epsilon(h_*) - \epsilon(g)ϵ(h∗​)−ϵ(g).

  20. Define estimation error.

    Estimation error is the difference between the error of the learned hypothesis h^\hat{h}h^ and the best-in-class error: ϵ(h^)−ϵ(h∗)\epsilon(\hat{h}) - \epsilon(h_*)ϵ(h^)−ϵ(h∗​).

  21. What is the total generalization error decomposition?

    ϵ(h^)=ϵ(g)⏟Bayes+(ϵ(h∗)−ϵ(g))⏟approximation+(ϵ(h^)−ϵ(h∗))⏟estimation\epsilon(\hat{h}) = \underbrace{\epsilon(g)}_{\text{Bayes}} + \underbrace{(\epsilon(h_*) - \epsilon(g))}_{\text{approximation}} + \underbrace{(\epsilon(\hat{h}) - \epsilon(h_*))}_{\text{estimation}}ϵ(h^)=Bayesϵ(g)​​+approximation(ϵ(h∗​)−ϵ(g))​​+estimation(ϵ(h^)−ϵ(h∗​))​​

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

    In the bias-variance decomposition, the estimation error is further split into Bias2+Variance\text{Bias}^2 + \text{Variance}Bias2+Variance. The approximation error and Bayes error are often grouped together as bias (with respect to ggg).

  23. What is Empirical Risk Minimization (ERM)?

    ERM is a learning algorithm that outputs a hypothesis h^ERM=arg⁡min⁡h∈Hϵ^(h)\hat{h}_{\text{ERM}} = \arg\min_{h \in H} \hat{\epsilon}(h)h^ERM​=argminh∈H​ϵ^(h), where ϵ^(h)=1m∑i=1m1[h(xi)≠yi]\hat{\epsilon}(h) = \frac{1}{m}\sum_{i=1}^m \mathbf{1}[h(x_i) \neq y_i]ϵ^(h)=m1​∑i=1m​1[h(xi​)=yi​] is the training error.

  24. What are the two central questions addressed by uniform convergence?

    1. For a fixed hypothesis, how does its training error relate to its generalization error? 2. How does the generalization error of the ERM hypothesis compare to the best possible generalization error in the class?
  25. State the union bound (Boole's inequality).

    For any (finite or countable) set of events A1,A2,…,AkA_1, A_2, \dots, A_kA1​,A2​,…,Ak​, P(⋃i=1kAi)≤∑i=1kP(Ai).P\left(\bigcup_{i=1}^k A_i\right) \leq \sum_{i=1}^k P(A_i).P(⋃i=1k​Ai​)≤∑i=1k​P(Ai​).

  26. State Hoeffding's inequality for a Bernoulli random variable.

    Let Z1,…,ZmZ_1, \dots, Z_mZ1​,…,Zm​ be i.i.d. Bernoulli(ϕ)(\phi)(ϕ), and ϕ^=1m∑Zi\hat{\phi} = \frac{1}{m}\sum Z_iϕ^​=m1​∑Zi​. For any γ>0\gamma > 0γ>0, P(∣ϕ^−ϕ∣>γ)≤2exp⁡(−2γ2m).P(|\hat{\phi} - \phi| > \gamma) \leq 2\exp(-2\gamma^2 m).P(∣ϕ^​−ϕ∣>γ)≤2exp(−2γ2m).

  27. Apply Hoeffding's inequality to a fixed hypothesis hhh. What does it give?

    For a fixed hhh, let ϵ^(h)\hat{\epsilon}(h)ϵ^(h) be the empirical error and ϵ(h)\epsilon(h)ϵ(h) the generalization error. Then P(∣ϵ^(h)−ϵ(h)∣>γ)≤2exp⁡(−2γ2m).P(|\hat{\epsilon}(h) - \epsilon(h)| > \gamma) \leq 2\exp(-2\gamma^2 m).P(∣ϵ^(h)−ϵ(h)∣>γ)≤2exp(−2γ2m).

  28. Why is the pointwise Hoeffding bound insufficient for ERM analysis?

    Because the ERM hypothesis h^\hat{h}h^ depends on the same data used to compute ϵ^(h^)\hat{\epsilon}(\hat{h})ϵ^(h^), so h^\hat{h}h^ and the data are not independent. A bound that holds for a fixed hhh does not directly apply to h^\hat{h}h^.

  29. What is uniform convergence in this context?

    Uniform convergence ensures that with high probability, the empirical error ϵ^(h)\hat{\epsilon}(h)ϵ^(h) is close to the generalization error ϵ(h)\epsilon(h)ϵ(h) for all hypotheses hhh in the class simultaneously.

  30. For a finite hypothesis class of size KKK, derive the uniform convergence bound using Hoeffding and the union bound.

    P(∃h∈H:∣ϵ^(h)−ϵ(h)∣>γ)≤2Kexp⁡(−2γ2m).P\left(\exists h \in H: |\hat{\epsilon}(h)-\epsilon(h)| > \gamma\right) \leq 2K \exp(-2\gamma^2 m).P(∃h∈H:∣ϵ^(h)−ϵ(h)∣>γ)≤2Kexp(−2γ2m).

  31. What is the sample complexity bound for a finite hypothesis class?

    To guarantee P(∣ϵ^(h)−ϵ(h)∣≤γ for all h)≥1−δP(|\hat{\epsilon}(h)-\epsilon(h)| \leq \gamma \text{ for all } h) \geq 1-\deltaP(∣ϵ^(h)−ϵ(h)∣≤γ for all h)≥1−δ, it suffices that m≥12γ2log⁡(2Kδ).m \geq \frac{1}{2\gamma^2} \log\left(\frac{2K}{\delta}\right).m≥2γ21​log(δ2K​).

  32. State the generalization bound for the ERM hypothesis in a finite class.

    With probability at least 1−δ1-\delta1−δ, ϵ(h^)≤ϵ(h∗)+212mlog⁡2Kδ.\epsilon(\hat{h}) \leq \epsilon(h_*) + 2\sqrt{\frac{1}{2m}\log\frac{2K}{\delta}}.ϵ(h^)≤ϵ(h∗​)+22m1​logδ2K​​.

  33. What is the VC dimension used for?

    VC dimension extends the concept of hypothesis class 'size' to infinite classes. It measures the capacity or expressiveness of a hypothesis class by the largest set of points the class can shatter.

  34. How does the sample complexity bound change for infinite hypothesis classes with finite VC dimension?

    The sample complexity is of order O(VC(H)+log⁡(1/δ)γ2)O\left(\frac{\text{VC}(H) + \log(1/\delta)}{\gamma^2}\right)O(γ2VC(H)+log(1/δ)​).

  35. What is the key takeaway about sample complexity and VC dimension?

    To achieve good generalization, the number of training examples should be on the order of the VC dimension of the hypothesis class.

Card 1 of 35
Card 1 of 35

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent