Machine Learning Theory
- 26Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What are the two core assumptions in supervised learning as described in the lecture?
What are the two core assumptions in supervised learning as described in the lecture?
26 questions
- 1
What are the two core assumptions in supervised learning as described in the lecture?
- A
There exists a data distribution D and all samples are independent.
- B
The training set is finite and the test set infinite.
- C
The true parameter is random and the estimator is unbiased.
- D
The hypothesis class is finite and the learning algorithm is deterministic.
Correct answer
AThere exists a data distribution D and all samples are independent.
Explanation
The lecture states two main assumptions: a data generating distribution D from which (x,y) pairs are sampled, and that all samples are independently drawn from D.
- A
- 2
Why is the hypothesis h^ (or θ^) considered a random variable?
- A
Because the true parameter θ∗ is random.
- B
Because the learning algorithm uses randomness.
- C
Because the hypothesis class is infinite.
- D
Because it is a deterministic function of the random training set.
Correct answer
DBecause it is a deterministic function of the random training set.
Explanation
The training set S is a random variable; feeding it through a deterministic learning algorithm yields a random hypothesis.
- A
- 3
In the lecture, how is the true parameter θ∗ characterized?
- A
It is an unknown constant, not random.
- B
It is a random variable with a prior distribution.
- C
It is the output of the learning algorithm.
- D
It is the expected value of the estimator.
Correct answer
AIt is an unknown constant, not random.
Explanation
The lecture states that θ∗ is not random; it is an unknown constant.
- A
- 4
In the parameter view of bias-variance, what does bias measure?
- A
The complexity of the hypothesis class.
- B
How much the hypothesis varies with different training sets.
- C
Whether the sampling distribution is centered around the true parameter.
- D
The difference between training error and test error.
Correct answer
CWhether the sampling distribution is centered around the true parameter.
Explanation
Bias checks if the sampling distribution (of θ^) is centered around the true parameter θ∗.
- A
- 5
In the parameter view of bias-variance, what does variance measure?
- A
The number of parameters in the model.
- B
The rate at which the estimator converges.
- C
The deviation of the true parameter from the estimator.
- D
The dispersion of the sampling distribution around its mean.
Correct answer
DThe dispersion of the sampling distribution around its mean.
Explanation
Variance measures how spread out the sampling distribution is (second moment).
- A
- 6
How do underfitting and overfitting relate to bias and variance?
- A
Both underfitting and overfitting are due to high bias.
- B
Both underfitting and overfitting are due to high variance.
- C
Underfitting corresponds to high variance and overfitting to high bias.
- D
Underfitting corresponds to high bias and overfitting to high variance.
Correct answer
DUnderfitting corresponds to high bias and overfitting to high variance.
Explanation
Underfitting (high bias) means the model cannot capture the true pattern; overfitting (high variance) means the model is too sensitive to noise.
- A
- 7
What happens to the variance of the estimator as the training set size m increases?
- A
The variance tends to zero as m goes to infinity.
- B
The variance first decreases then increases.
- C
The variance increases because more data introduces more noise.
- D
The variance remains constant regardless of m.
Correct answer
AThe variance tends to zero as m goes to infinity.
Explanation
The lecture states that as m increases, variance tends to zero; the sampling distribution becomes more concentrated.
- A
- 8
What does it mean for a learning algorithm to be consistent?
- A
The variance of the estimator is zero.
- B
The estimator is unbiased for all sample sizes.
- C
As m→∞, the estimator θ^ converges to the true parameter θ∗.
- D
The algorithm always returns the same hypothesis.
Correct answer
CAs m→∞, the estimator θ^ converges to the true parameter θ∗.
Explanation
Consistency means that as the sample size grows, the estimator tends to the true parameter.
- A
- 9
What is an unbiased estimator?
- A
The estimator minimizes the training error.
- B
The expected value of the estimator equals the true parameter for any m.
- C
The estimator always returns the true parameter.
- D
The variance of the estimator is zero.
Correct answer
BThe expected value of the estimator equals the true parameter for any m.
Explanation
An unbiased estimator has E[θ^]=θ∗ for all m.
- A
- 10
Which of the following is a method to reduce variance?
- A
Increasing the training set size m.
- B
Reducing regularization.
- C
Using a larger hypothesis class.
- D
Adding more parameters to the model.
Correct answer
AIncreasing the training set size m.
Explanation
The lecture mentions that more data reduces variance; regularization also reduces variance.
- A
- 11
How does regularization affect bias and variance?
- A
It typically decreases bias and increases variance.
- B
It increases both bias and variance.
- C
It typically increases bias and decreases variance.
- D
It decreases both bias and variance.
Correct answer
CIt typically increases bias and decreases variance.
Explanation
Regularization shrinks the hypothesis space, increasing bias but reducing variance.
- A
- 12
What is a recommended way to fight high bias?
- A
Decrease the number of parameters.
- B
Increase the sample size.
- C
Make the hypothesis class larger.
- D
Add regularization.
Correct answer
CMake the hypothesis class larger.
Explanation
The lecture suggests that to fight high bias, you can make H bigger, which reduces bias but may increase variance.
- A
- 13
What is the Bayes error?
- A
The error of the hypothesis learned from finite data.
- B
The error of the best possible hypothesis g.
- C
The training error of the empirical risk minimizer.
- D
The error of the best hypothesis in the class H.
Correct answer
BThe error of the best possible hypothesis g.
Explanation
Bayes error is the error of the optimal hypothesis g, also called irreducible error.
- A
- 14
What is approximation error?
- A
The difference between the Bayes error and the error of the best hypothesis in the class.
- B
The difference between training error and test error.
- C
The difference between the error of the best hypothesis in the class and the error of the learned hypothesis.
- D
The error due to having a finite sample.
Correct answer
AThe difference between the Bayes error and the error of the best hypothesis in the class.
Explanation
Approximation error is ϵ(h∗)−ϵ(g), where h∗ is best in class and g is the optimal hypothesis.
- A
- 15
What is estimation error?
- A
The difference between the Bayes error and the error of the learned hypothesis.
- B
The error due to the choice of hypothesis class.
- C
The difference between the error of the learned hypothesis and the error of the best hypothesis in the class.
- D
The variance of the estimator.
Correct answer
CThe difference between the error of the learned hypothesis and the error of the best hypothesis in the class.
Explanation
Estimation error is ϵ(h^)−ϵ(h∗), where h^ is the learned hypothesis.
- A
- 16
Which error component is also called irreducible error?
- A
Bayes error.
- B
Estimation error.
- C
Empirical error.
- D
Approximation error.
Correct answer
ABayes error.
Explanation
The Bayes error (ϵ(g)) is irreducible even with infinite data and the best model.
- A
- 17
What is the purpose of empirical risk minimization (ERM)?
- A
To minimize the generalization error.
- B
To maximize the training accuracy while ignoring test performance.
- C
To find a hypothesis that minimizes the average training error.
- D
To find the best possible hypothesis g.
Correct answer
CTo find a hypothesis that minimizes the average training error.
Explanation
ERM selects the hypothesis that minimizes the empirical risk, i.e., training error.
- A
- 18
What does Hoeffding's inequality bound?
- A
The probability that the empirical mean deviates from the true mean by more than a margin γ.
- B
The probability that two events occur simultaneously.
- C
The convergence rate of gradient descent.
- D
The maximum value of a bounded random variable.
Correct answer
AThe probability that the empirical mean deviates from the true mean by more than a margin γ.
Explanation
Hoeffding's inequality gives a bound on P(∣ϕ^−ϕ∣>γ)≤2exp(−2γ2m).
- A
- 19
What is the union bound?
- A
The probability of an intersection of events is at most the product of their probabilities.
- B
The probability of a union of events is at most the sum of their probabilities.
- C
The sum of probabilities of disjoint events equals 1.
- D
The union of independent events has probability equal to 1 minus their product.
Correct answer
BThe probability of a union of events is at most the sum of their probabilities.
Explanation
The union bound states P(⋃iAi)≤∑iP(Ai).
- A
- 20
For a fixed hypothesis h, Hoeffding's inequality can be applied to the difference between empirical error and generalization error. What is the bound?
- A
P(∣ϵ^(h)−ϵ(h)∣>γ)≤2γ2m1.
- B
P(∣ϵ^(h)−ϵ(h)∣>γ)≤2exp(−2γ2m).
- C
P(∣ϵ^(h)−ϵ(h)∣>γ)≤2exp(−γm).
- D
P(∣ϵ^(h)−ϵ(h)∣>γ)≤1−m1.
Correct answer
BP(∣ϵ^(h)−ϵ(h)∣>γ)≤2exp(−2γ2m).
Explanation
The bound is 2exp(−2γ2m) as per the lecture (variances are between 0 and 1 for classification error).
- A
- 21
For a finite hypothesis class of size K, what is the uniform convergence bound for the probability that there exists a hypothesis with ∣ϵ^(h)−ϵ(h)∣>γ?
- A
P(∃h∈H:∣ϵ^(h)−ϵ(h)∣>γ)≤K/exp(2γ2m).
- B
P(∃h∈H:∣ϵ^(h)−ϵ(h)∣>γ)≤2γ2mK.
- C
P(∃h∈H:∣ϵ^(h)−ϵ(h)∣>γ)≤2Kexp(−2γ2m).
- D
P(∃h∈H:∣ϵ^(h)−ϵ(h)∣>γ)≤2exp(−2γ2m).
Correct answer
CP(∃h∈H:∣ϵ^(h)−ϵ(h)∣>γ)≤2Kexp(−2γ2m).
Explanation
Using union bound over all K hypotheses, the bound becomes 2Kexp(−2γ2m).
- A
- 22
What is the sample complexity required to ensure that with probability at least 1−δ, the margin γ is achieved for a finite hypothesis class of size K?
- A
m≥γ21log(δK).
- B
m≥2γ21log(δ2K).
- C
m≥γlog(2K/δ).
- D
m≥γ22Klog(δ1).
Correct answer
Bm≥2γ21log(δ2K).
Explanation
Solving the bound for m gives m≥2γ21log(δ2K).
- A
- 23
For ERM with a finite hypothesis class, the generalization error of the learned hypothesis h^ is bounded by the best-in-class error plus 2γ. What is γ expressed in terms of m, K, and δ?
- A
γ=m2log(δK).
- B
γ=2m1log(δ2K).
- C
γ=2m1log(δ2K).
- D
γ=m1log(δK).
Correct answer
Bγ=2m1log(δ2K).
Explanation
From the sample complexity formula, γ=2m1log(δ2K).
- A
- 24
What does the VC dimension quantify?
- A
The number of training examples needed to achieve zero training error.
- B
The variance of the estimator for a given hypothesis class.
- C
The capacity or expressiveness of an infinite hypothesis class.
- D
The bias of the empirical risk minimizer.
Correct answer
CThe capacity or expressiveness of an infinite hypothesis class.
Explanation
VC dimension assigns a size to infinite hypothesis classes; it measures how 'expressive' the class is.
- A
- 25
In the context of VC dimension, how does the sample complexity relate to the VC dimension d?
- A
The required sample size is on the order of d to get good generalization.
- B
The required sample size is equal to d.
- C
The required sample size is exponential in d.
- D
The required sample size is independent of d.
Correct answer
AThe required sample size is on the order of d to get good generalization.
Explanation
The lecture states that sample complexity is generally of order the VC dimension to obtain good results.
- A
- 26
Which inequality is used in the derivation of uniform convergence for finite hypothesis classes?
- A
Markov's inequality and Chebyshev's inequality.
- B
Cauchy-Schwarz inequality and the central limit theorem.
- C
Hoeffding's inequality and the union bound.
- D
Jensen's inequality and the law of large numbers.
Correct answer
CHoeffding's inequality and the union bound.
Explanation
The lecture uses Hoeffding for each hypothesis and then the union bound across them.
- A

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