Machine Learning Theory
- 35Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- 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?
- There exists a data-generating distribution D from which (x,y) pairs are sampled. 2. All samples are independently and identically distributed (i.i.d.) from D.
Or swipe the card
35 cards
What are the two main assumptions about data in supervised learning theory?
- There exists a data-generating distribution D from which (x,y) pairs are sampled. 2. All samples are independently and identically distributed (i.i.d.) from D.
What is the learning process in terms of a training set, learning algorithm, and hypothesis?
Given a training set S={(x1,y1),…,(xm,ym)} sampled from D, a learning algorithm outputs a hypothesis h (a function from x to y).
Why is the hypothesis h^ considered a random variable?
Because the training set S is a random sample from D, and the learning algorithm deterministically maps S to h^; thus h^ inherits randomness from S.
Is the true parameter θ∗ considered random?
No, θ∗ is an unknown constant, not associated with any probability distribution.
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[θ^]−θ∗.
Define variance in the context of a learning algorithm.
Variance measures the dispersion of the hypothesis around its expected value: Var(θ^)=E[(θ^−E[θ^])2].
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.
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.
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.
How does increasing the amount of training data (m) affect variance?
Increasing m reduces variance. As m→∞, variance tends to 0.
What is a consistent estimator?
An estimator θ^ is consistent if θ^→θ∗ in probability as m→∞ (i.e., variance and bias both go to zero).
What is an unbiased estimator?
An estimator θ^ is unbiased if E[θ^]=θ∗ for all sample sizes m.
What is statistical efficiency as related to variance?
Efficiency refers to the rate at which variance decreases as m increases. A more efficient algorithm achieves lower variance with fewer samples.
How can you combat high variance? (two methods)
- Increase the amount of training data. 2. Apply regularization (e.g., L2 or L1 penalty).
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).
How can you combat high bias?
Increase the hypothesis class (e.g., use a more complex model) or use a different algorithm.
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.
What is the Bayes error (or irreducible error)?
The Bayes error ϵ(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 g.
Define approximation error.
Approximation error is the difference between the Bayes error and the best possible error within a restricted hypothesis class H: ϵ(h∗)−ϵ(g).
Define estimation error.
Estimation error is the difference between the error of the learned hypothesis h^ and the best-in-class error: ϵ(h^)−ϵ(h∗).
What is the total generalization error decomposition?
ϵ(h^)=Bayesϵ(g)+approximation(ϵ(h∗)−ϵ(g))+estimation(ϵ(h^)−ϵ(h∗))
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. The approximation error and Bayes error are often grouped together as bias (with respect to g).
What is Empirical Risk Minimization (ERM)?
ERM is a learning algorithm that outputs a hypothesis h^ERM=argminh∈Hϵ^(h), where ϵ^(h)=m1∑i=1m1[h(xi)=yi] is the training error.
What are the two central questions addressed by uniform convergence?
- 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?
State the union bound (Boole's inequality).
For any (finite or countable) set of events A1,A2,…,Ak, P(⋃i=1kAi)≤∑i=1kP(Ai).
State Hoeffding's inequality for a Bernoulli random variable.
Let Z1,…,Zm be i.i.d. Bernoulli(ϕ), and ϕ^=m1∑Zi. For any γ>0, P(∣ϕ^−ϕ∣>γ)≤2exp(−2γ2m).
Apply Hoeffding's inequality to a fixed hypothesis h. What does it give?
For a fixed h, let ϵ^(h) be the empirical error and ϵ(h) the generalization error. Then P(∣ϵ^(h)−ϵ(h)∣>γ)≤2exp(−2γ2m).
Why is the pointwise Hoeffding bound insufficient for ERM analysis?
Because the ERM hypothesis h^ depends on the same data used to compute ϵ^(h^), so h^ and the data are not independent. A bound that holds for a fixed h does not directly apply to h^.
What is uniform convergence in this context?
Uniform convergence ensures that with high probability, the empirical error ϵ^(h) is close to the generalization error ϵ(h) for all hypotheses h in the class simultaneously.
For a finite hypothesis class of size K, derive the uniform convergence bound using Hoeffding and the union bound.
P(∃h∈H:∣ϵ^(h)−ϵ(h)∣>γ)≤2Kexp(−2γ2m).
What is the sample complexity bound for a finite hypothesis class?
To guarantee P(∣ϵ^(h)−ϵ(h)∣≤γ for all h)≥1−δ, it suffices that m≥2γ21log(δ2K).
State the generalization bound for the ERM hypothesis in a finite class.
With probability at least 1−δ, ϵ(h^)≤ϵ(h∗)+22m1logδ2K.
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.
How does the sample complexity bound change for infinite hypothesis classes with finite VC dimension?
The sample complexity is of order O(γ2VC(H)+log(1/δ)).
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.

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