Machine Learning Theory
- 27Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What are the two core assumptions about the data in supervised learning according to learning theory?
27 questions
- 1
What are the two core assumptions about the data in supervised learning according to learning theory?
Model answer
There exists a data distribution D from which all (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
Why is the hypothesis output by a learning algorithm considered a random variable?
Model answer
Because the training set S 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
In learning theory, what is heta∗ (or h∗) and why is it considered not random?
Model answer
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
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]) and the true hypothesis (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
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
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∗ but tightly concentrated. Low bias, high variance: sampling distribution is centered near heta∗ but widely dispersed.
Explanation
This visualization helps understand the bias-variance tradeoff independently of data view.
- 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
How does increasing the training set size m affect the variance of the estimator?
Model answer
As m increases, variance decreases (tends to 0 as moinfty). The rate of decrease is called statistical efficiency.
Explanation
More data concentrates the sampling distribution.
- 9
What is a consistent estimator?
Model answer
An estimator is consistent if hathetaoheta∗ as the sample size moinfty (in probability).
Explanation
Consistency means the estimator converges to the true value with infinite data.
- 10
What is an unbiased estimator?
Model answer
An estimator is unbiased if mathbbE[hatheta]=heta∗ for all sample sizes m.
Explanation
Unbiasedness means the sampling distribution is centered at the true parameter regardless of sample size.
- 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
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
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
Define Bayes error (irreducible error) in the context of error decomposition.
Model answer
Bayes error is the error of the best possible hypothesis g (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
Define approximation error.
Model answer
Approximation error is the difference between the best error achievable within the hypothesis class (epsilon(h∗)) and the Bayes error (epsilon(g)). It measures the cost of restricting the hypothesis class.
Explanation
It is a property of the class, not the data sample.
- 16
Define estimation error.
Model answer
Estimation error is the difference between the error of the learned hypothesis (epsilon(hath))andthebestin−classerror(epsilon(h_*)$). It arises because we only have finite data.
Explanation
Estimation error decreases as sample size increases.
- 17
Write the decomposition of the total error (generalization error of hath) in terms of Bayes error, approximation error, and estimation error.
Model answer
epsilon(hath)=extBayeserror+extapproximationerror+extestimationerror.
Explanation
This decomposition separates irreducible error, class limitation, and finite-data effects.
- 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
What is empirical risk minimization (ERM)?
Model answer
ERM is a learning algorithm that selects the hypothesis hath from a class H 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
State the union bound inequality.
Model answer
For any events A1,ldots,AK, P(cupi=1KAi)leqsumi=1KP(Ai).
Explanation
A simple but fundamental tool for bounding probabilities over multiple hypothesis.
- 21
State Hoeffding's inequality for a Bernoulli distribution.
Model answer
For i.i.d. Bernoulli samples Z1,ldots,Zm with mean phi, let hat{phi} = rac{1}{m}sum Z_i. For any gamma>0, P(∣hatphi−phi∣>gamma)leq2exp(−2gamma2m).
Explanation
It quantifies how the empirical mean deviates from the true mean.
- 22
How does Hoeffding's inequality apply to the generalization error of a fixed hypothesis h?
Model answer
For a fixed h, the empirical error hatepsilon(h) is an average of i.i.d. Bernoulli( epsilon(h) ) variables, so P(∣hatepsilon(h)−epsilon(h)∣>gamma)leq2exp(−2gamma2m).
Explanation
This gives a pointwise bound for one hypothesis.
- 23
Why is the pointwise bound from Hoeffding insufficient for ERM?
Model answer
Because ERM chooses hath based on the data, making hath and the data dependent. A bound must hold uniformly over all h in the class.
Explanation
Uniform convergence ensures that the empirical risks of all hypotheses are close to their true risks simultaneously.
- 24
Derive the uniform convergence bound for a finite hypothesis class of size K.
Model answer
Using union bound: P(existshinH:∣hatepsilon(h)−epsilon(h)∣>gamma)leq2Kexp(−2gamma2m). Thus, with probability geq1−delta, for all h, |hat{epsilon}(h)-epsilon(h)| leq sqrt{rac{1}{2m}lograc{2K}{delta}} by setting delta=2Kexp(−2gamma2m).
Explanation
The bound degrades proportionally to log K.
- 25
What is the sample complexity expression for a finite hypothesis class to achieve generalization error margin gamma with confidence 1−delta?
Model answer
m geq rac{1}{2gamma^2} lograc{2K}{delta}.
Explanation
This tells how many examples are needed to guarantee uniform convergence.
- 26
For an ERM algorithm on a finite hypothesis class, bound the generalization error of hath in terms of the best-in-class error.
Model answer
With probability geq1−delta, epsilon(hat{h}) leq epsilon(h_*) + 2sqrt{rac{1}{2m}lograc{2K}{delta}}.
Explanation
This follows from uniform convergence: epsilon(hath)leqhatepsilon(hath)+gammaleqhatepsilon(h∗)+gammaleqepsilon(h∗)+2gamma.
- 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 logK.
Explanation
It enables sample complexity bounds for flexible models like neural networks.

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