🌍 Machine Learning · flashcards

Machine Learning Core Concepts Flashcards

51 question-and-answer cards covering Core Concepts as it is examined in Machine Learning. 24 of them are printed below, taken from across the deck — no signup, no paywall on the preview.

51Cards in deck
24Free preview
12Syllabus topics
~239Chars per answer
FreePrice

24 sample cards from the Core Concepts deck

Sampled from the end of the deck, so these are different cards from the ones shown on the syllabus page.

  1. Define clustering and name two main approaches.

    Clustering is unsupervised grouping of data points so that points within a group are more similar to each other than to points in other groups. Two main approaches: partitional (e.g., k-means) and hierarchical (agglomerative/divisive).

  2. Describe the k-means clustering algorithm steps.

    (1) Choose $k$ and initialize $k$ centroids; (2) assign each point to its nearest centroid; (3) recompute each centroid as the mean of its assigned points; (4) repeat steps 2-3 until assignments no longer change (convergence). It minimizes within-cluster sum of squares.

  3. What objective (inertia) does k-means minimize?

    Within-cluster sum of squares (WCSS): $$J = \sum_{i=1}^{k}\sum_{x \in C_i} \lVert x - \mu_i \rVert^2$$ where $\mu_i$ is the centroid of cluster $C_i$.

  4. What is the elbow method for choosing $k$ in k-means?

    Plot the within-cluster sum of squares (inertia) against the number of clusters $k$. The 'elbow' — the point where adding more clusters yields diminishing reduction in inertia — suggests a good value of $k$.

  5. How does DBSCAN differ from k-means?

    DBSCAN is density-based: it groups densely packed points (using parameters $\varepsilon$ and minPts) and labels sparse points as noise. Unlike k-means, it does not require specifying the number of clusters, finds arbitrarily shaped clusters, and handles outliers.

  6. What does the silhouette coefficient measure and what is its range?

    It measures how well a point fits its own cluster vs. the nearest other cluster: $$s = \frac{b - a}{\max(a, b)}$$ where $a$ is mean intra-cluster distance and $b$ is mean nearest-cluster distance. It ranges from $-1$ (poor) to $+1$ (well-clustered).

  7. What is dimensionality reduction and why is it useful?

    It reduces the number of input features while preserving as much meaningful information as possible. Benefits: combats the curse of dimensionality, reduces overfitting and computation, removes redundancy, and enables visualization (2D/3D).

  8. What is the curse of dimensionality?

    As the number of features grows, the volume of the feature space increases exponentially, so data becomes sparse. Distances between points become less meaningful, and models need exponentially more data to generalize, degrading performance.

  9. What does Principal Component Analysis (PCA) do?

    PCA finds new orthogonal axes (principal components) that are linear combinations of the original features, ordered by the variance they capture. Projecting onto the top components reduces dimensionality while retaining maximal variance.

  10. How are principal components related to the covariance matrix in PCA?

    The principal components are the eigenvectors of the data's covariance matrix, and the amount of variance each captures equals its corresponding eigenvalue $\lambda_i$. Components are ranked by descending eigenvalue.

  11. How is the proportion of variance explained by the first $m$ principal components computed?

    $$\text{Explained variance ratio} = \frac{\sum_{i=1}^{m} \lambda_i}{\sum_{j=1}^{d} \lambda_j}$$ where $\lambda_i$ are the eigenvalues (component variances) and $d$ is the total number of components.

  12. What is t-SNE primarily used for, and how does it differ from PCA?

    t-SNE (t-Distributed Stochastic Neighbor Embedding) is a non-linear technique for visualizing high-dimensional data in 2D/3D by preserving local neighborhood structure. Unlike PCA (linear, variance-preserving), t-SNE focuses on local similarity and is mainly for visualization, not feature transformation.

  13. What is association rule learning?

    An unsupervised method for discovering interesting relationships (rules of the form $X \Rightarrow Y$) between items in large transactional datasets — classically used for market basket analysis to find items frequently bought together.

  14. Define support, confidence, and lift for an association rule $X \Rightarrow Y$.

    Support $= P(X \cap Y)$ (frequency of the itemset). Confidence $= P(Y \mid X) = \frac{P(X \cap Y)}{P(X)}$ (reliability). Lift $= \frac{P(X \cap Y)}{P(X)P(Y)}$ — lift $> 1$ means positive correlation, $= 1$ independence, $< 1$ negative.

  15. What principle does the Apriori algorithm rely on?

    The Apriori (anti-monotone) principle: if an itemset is frequent, all of its subsets are also frequent; equivalently, if an itemset is infrequent, all of its supersets are infrequent. This prunes the search space when mining frequent itemsets.

  16. What are the core components of a reinforcement learning problem?

    An agent interacting with an environment via: states $s$, actions $a$, a reward signal $r$, a policy $\pi$ (mapping states to actions), and (often) a value function. The goal is to learn a policy maximizing cumulative reward.

  17. Write the formula for the discounted cumulative return $G_t$ in reinforcement learning.

    $$G_t = \sum_{k=0}^{\infty} \gamma^k r_{t+k+1}$$ where $\gamma \in [0,1]$ is the discount factor that weights future rewards less than immediate ones.

  18. Explain the exploration-exploitation trade-off in reinforcement learning.

    Exploitation chooses actions known to yield high reward; exploration tries new actions to discover potentially better ones. An agent must balance both — e.g., via an $\varepsilon$-greedy policy — to avoid settling on a suboptimal policy.

  19. State the Q-learning update rule.

    $$Q(s,a) \leftarrow Q(s,a) + \alpha \left[ r + \gamma \max_{a'} Q(s',a') - Q(s,a) \right]$$ where $\alpha$ is the learning rate and $\gamma$ the discount factor. It is an off-policy, model-free method.

  20. What is the difference between bias and variance, and what is the bias-variance trade-off?

    Bias is error from overly simplistic assumptions (underfitting); variance is error from sensitivity to training-data fluctuations (overfitting). The trade-off: decreasing one tends to increase the other, and total expected error decomposes as $\text{Bias}^2 + \text{Variance} + \text{Irreducible error}$.

  21. What is k-fold cross-validation?

    The data is split into $k$ equal folds; the model is trained on $k-1$ folds and validated on the remaining fold, repeating $k$ times so each fold serves once as validation. The performance is averaged, giving a more robust, less variance-prone estimate of generalization.

  22. Distinguish overfitting from underfitting and give one remedy for each.

    Overfitting: model fits training noise, low train error but high test error — remedy: regularization, more data, or simpler model. Underfitting: model too simple to capture the pattern, high error everywhere — remedy: a more complex model or better features.

  23. Compare bagging and boosting as ensemble methods.

    Bagging trains models in parallel on bootstrap samples and averages them to reduce variance (e.g., Random Forest). Boosting trains models sequentially, each correcting the previous one's errors by reweighting, reducing bias (e.g., AdaBoost, Gradient Boosting / XGBoost).

  24. What is the difference between grid search and random search for hyperparameter optimization?

    Grid search exhaustively evaluates every combination in a predefined discrete grid of hyperparameter values. Random search samples combinations randomly from the search space — often more efficient at finding good values when only a few hyperparameters matter, for the same compute budget.

What this deck covers

The Core Concepts deck follows the Machine Learning Core Concepts syllabus — 5 chapters and 12 topics — so questions land on material that is genuinely examinable rather than trivia around it. That works out to roughly 10.2 cards per chapter.

Answers are written to be recallable, not just readable — averaging about 239 characters, which is long enough to carry the reasoning and short enough to say out loud.

A deck like this earns its keep on the second and third pass. Read the syllabus first so you know the shape of the subject, then use the cards to find the specific facts that have not stuck.

Core Concepts flashcards FAQ

How many Core Concepts flashcards are in this Machine Learning deck?

51 cards. This page previews 24 of them, sampled evenly across the deck so you can judge the difficulty before installing anything.

Are these Machine Learning flashcards free?

Yes. The preview here is free to read with no signup, and the full 51-card deck is free inside the Examius app.

What do the Core Concepts cards cover?

They follow the Machine Learning Core Concepts syllabus — 5 chapters and 12 topics — so the questions track what is actually examinable.

How should I use these flashcards?

Read the syllabus first so you know the shape of the subject, then drill the deck. Examius schedules each card with spaced repetition, so cards you keep missing come back sooner and ones you know drift further apart.