Practice
1. In the context of statistical significance testing in ML, which of the following best describes a p-value?
easy
Solution
Step 1: Understand p-value definition
A p-value is the probability of observing the data, or something more extreme, given that the null hypothesis is true.Step 2: Eliminate wrong options
The probability that the null hypothesis is true. is incorrect because p-value is not the probability that the null hypothesis is true. The probability of the alternative hypothesis being true. is incorrect because it does not relate to the alternative hypothesis. The probability of making a Type I error. is incorrect because it confuses p-value with Type I error probability.Final Answer:
Option A -> Option AQuick Check:
P-value is about data given null hypothesis [OK]
Hint: P-value is about data given null hypothesis [OK]
Common Mistakes:
2. In the context of why machine learning exists, which of the following problems is most suitable for a machine learning approach rather than a rule-based system?
easy
Solution
Step 1: Identify the nature of the problem.
Predicting the next word in a sentence involves understanding context and patterns, which are complex and not easily defined by rules.Step 2: Eliminate rule-based problems.
Options A, C, and D are deterministic and can be solved with explicit algorithms.Final Answer:
Option A -> Option AQuick Check:
ML for patterns, rules for logic. [OK]
Hint: ML excels at pattern recognition, not deterministic logic. [OK]
Common Mistakes:
3. A model shows high precision but low recall. What could be a potential issue?
medium
Solution
Step 1: Analyze the metric imbalance.
High precision and low recall suggest the model is cautious in predicting positives.Step 2: Identify the root cause.
The model is likely too conservative, leading to fewer positive predictions.Final Answer:
Option B -> Option BQuick Check:
High precision, low recall = conservative model. [OK]
Hint: High precision, low recall = conservative model. [OK]
Common Mistakes:
4. You are designing a transformer model for a language translation task. Which normalization technique would you choose and why?
hard
Solution
Step 1: Consider the architecture of transformers.
Transformers process sequences and often use self-attention mechanisms, where Layer Normalization is more effective.Step 2: Evaluate the benefits of Layer Normalization.
Layer Normalization normalizes across features, which is beneficial for the attention mechanism in transformers.Final Answer:
Option A -> Option AQuick Check:
Layer Norm fits transformers' self-attention. [OK]
Hint: Layer Norm fits transformers' self-attention. [OK]
Common Mistakes:
5. You are tasked with reducing the dimensionality of a dataset for a clustering task. The dataset contains both numerical and categorical features. Which approach should you take?
hard
Solution
Step 1: Consider the nature of the data
Dimensionality reduction techniques like PCA and t-SNE require numerical input.Step 2: Evaluate the options
PCA cannot handle categorical data directly. t-SNE is computationally expensive and not ideal for mixed data types. LDA is not suitable for unsupervised clustering tasks.Final Answer:
Option A -> Option AQuick Check:
UMAP for mixed data types [OK]
Hint: UMAP for mixed data types [OK]
Common Mistakes:
