This guide is derived from the earlier outline (edition not confirmed) for CACS456 (Machine Learning). All units and topics follow the outlined sequence; wording and examples are original student study material, not official TU text.
How to use this guide
Machine learning is tested through conceptual questions, algorithm selection, and interpretation of results. The exam rewards understanding of when to apply which technique, the assumptions behind each method, and the ability to read and interpret confusion matrices and ROC curves. Practice identifying the right problem type (classification vs. regression) and matching it to the appropriate algorithm. Marks are awarded for correct terminology, stating assumptions, and explaining the trade-offs between bias and variance.
Learning Outcomes
By the end of this course, a student should be able to:
- Explain the fundamental concepts of machine learning, including types of learning and the machine learning process flow.
- Select and apply appropriate supervised learning algorithms for classification and regression problems.
- Evaluate model performance using confusion matrices, accuracy, precision, recall, F1-score, and ROC AUC.
- Apply unsupervised learning techniques for clustering and dimensionality reduction.
- Explain the bias-variance trade-off and how it influences model selection and complexity.
- Perform principal component analysis for dimensionality reduction and interpret the results.
Unit 1: Introduction to machine learning
Teaching hours: 10
Topics in outline order
- History of ML
- Brain-neuron learning system
- Definition and types of learning
- Need of ML
- Data and tools
- Review of statistics
- Training
- Validation and test data
- Theory of learning – feasibility of learning – error and noise – training versus testing
- Generalization bound – approximation – generalization tradeoff – bias and variance – learning curve
Explanation
-
History of ML. The field of machine learning traces its roots to the 1950s, when Arthur Samuel coined the term "machine learning" and developed a checkers-playing program that improved through experience. Key milestones include: the Perceptron (Frank Rosenblatt, 1958), the first neural network model; the AI winter (1970s-1980s), when limited computing power and unrealistic expectations slowed progress; the resurgence in the 1990s driven by support vector machines, decision trees, and the availability of large datasets; and the deep learning revolution (2010s), powered by convolutional neural networks, massive labeled data, and GPU acceleration. Understanding the history helps contextualize current methods and appreciate the evolution of algorithms, theoretical foundations, and computing infrastructure.
-
Brain-neuron learning system. Biological neurons receive inputs via dendrites, integrate them at the cell body (soma), and fire an output signal via the axon to other neurons or effectors. The strength of synaptic connections (weights) is modified by experience, a process analogous to learning. In artificial neural networks, this is modeled as adjustable weights that are updated during training. Key properties: neurons have threshold activation functions, learning occurs through weight adjustment, and networks can exhibit complex nonlinear behavior through layered interconnections.
-
Definition and types of learning. Machine learning is the study of computer algorithms that improve automatically through experience. The three main types are: Supervised learning, where the algorithm learns from labeled training data (input-output pairs); Unsupervised learning, where the algorithm finds patterns in unlabeled data; and Reinforcement learning, where an agent learns to make decisions by receiving rewards or penalties from an environment. A fourth category, Self-supervised learning, generates labels from the data itself and has become prominent in deep learning. Each type has distinct algorithms, evaluation metrics, and application domains.
-
Need of ML. Machine learning enables computers to perform tasks for which explicitly programmed algorithms are difficult to design. ML is needed when: the problem is too complex for hand-crafted rules (e.g., image recognition), the pattern is non-stationary (changes over time), the volume of data is too large for humans to analyze, or the system must adapt to new situations. ML applications span spam filtering, fraud detection, recommendation systems, medical diagnosis, speech recognition, autonomous driving, and financial forecasting. The common thread is extracting predictive power from data.
-
Data and tools. ML relies on data as the fuel for learning. Quality data is clean, labeled (for supervised), representative, and sufficient in volume. Key features: training set (used to learn the model), validation set (used to tune hyperparameters and select models), and test set (used to evaluate final performance, never seen during training). Common tools and libraries: Python with scikit-learn, TensorFlow, PyTorch; R with caret and random.forest; MATLAB; cloud platforms (AWS SageMaker, Google AI Platform, Azure ML). Data formats include CSV, JSON, SQL tables, and binary formats (TFRecord, LibSVM).
-
Review of statistics. Statistical foundations are essential for ML: probability quantifies uncertainty; random variables assign numerical values to outcomes; distributions (normal, binomial, Poisson) describe data patterns; expected value and variance summarize central tendency and spread; covariance and correlation measure linear relationships; hypothesis testing assesses statistical significance; confidence intervals quantify estimation uncertainty. Key concepts: overfitting occurs when a model captures noise rather than signal; underfitting occurs when a model is too simple to capture the underlying pattern.
-
Training. Training is the process of estimating model parameters from labeled data. In supervised learning, the algorithm minimizes a loss function (e.g., mean squared error for regression, cross-entropy for classification) that measures the discrepancy between predicted and actual values. The training process involves presenting input-output pairs, computing predictions, calculating the loss, and updating parameters via optimization (gradient descent, stochastic gradient descent, or quasi-Newton methods). Proper training requires sufficient data, appropriate model complexity, and convergence monitoring.
-
Validation and test data. The validation set is used during training to select hyperparameters and compare different models, preventing overfitting to the training data. The test set provides an unbiased evaluation of the final model generalizability, and must never be used during model selection or hyperparameter tuning. Common practices: k-fold cross-validation (data split into k subsets, each used once as validation), hold-out validation (fixed train/test split), and stratified k-fold (preserves class proportions in classification tasks). Data leakage (information from test/train leaking into the other set) must be avoided.
-
Theory of learning – feasibility of learning – error and noise – training versus testing. The feasibility of learning depends on the availability of sufficiently many examples, the capacity of the model relative to the complexity of the target function, and the noise level in the data. Error is the difference between the predicted and true value; it comprises bias (error due to overly simple model assumptions) and variance (error due to sensitivity to training data fluctuations). Noise is irreducible error caused by randomness in the data generation process. The training phase learns from data; the testing phase evaluates on unseen data. The generalization error (test error) is what matters, not the training error.
-
Generalization bound – approximation – generalization tradeoff – bias and variance – learning curve. The approximation error (bias) is the error of the best function in the hypothesis class; it decreases as the model class becomes more expressive. The estimation error (variance) is the error due to estimating from finite data; it increases with model complexity. The generalization bound (e.g., VC dimension, Rademacher complexity) provides a theoretical limit on how well a model can perform on unseen data. The bias-variance tradeoff states that as model complexity increases, bias decreases but variance increases; the optimal complexity minimizes total error (bias² + variance + irreducible noise). A learning curve plots training error and validation error against the number of training examples or model complexity, revealing whether the model is underfitting (high bias, high training and validation error) or overfitting (low training error, high gap between training and validation error).
Unit 2: Introduction to Supervised Learning
Teaching hours: 11
Topics in outline order
- Classification problems
- Linear Regression – Predicting numerical value
- Finding best fit line with linear regression
- Perceptron
- Learning neural networks structures
- Decision tree representation
- Appropriate problems for decision tree learning
- Basic decision tree algorithm
- Support vector machines
- Separating data with maximum margin
- Finding the maximum margin
Explanation
-
Classification problems. Classification is the supervised learning task of assigning input samples to one of discrete target classes. A binary classification problem has two classes (e.g., spam vs. not spam, disease vs. healthy). Multiclass classification has more than two classes (e.g., digit recognition 0-9, animal species). Key considerations: the number and nature of classes, class imbalance (one class much more frequent than others), and the cost of misclassification (some errors are more costly than others). Evaluation metrics include accuracy, precision, recall, F1-score, and ROC AUC. Classification algorithms include logistic regression, k-NN, decision trees, SVM, random forests, and neural networks.
-
Linear Regression – Predicting numerical value. Linear regression models the relationship between a scalar dependent variable y and one or more independent variables x using a linear function:
y = β₀ + β₁x₁ + β₂x₂ + ... + βₚxₚ + ε, where β₀ is the intercept, β₁...βₚ are coefficients, and ε is the error term. The goal is to estimate the coefficients that minimize the sum of squared residuals (ordinary least squares). Linear regression assumes: linearity in parameters, independence of errors, homoscedasticity (constant error variance), and normality of errors. It is interpretable (coefficients represent marginal effects) but may perform poorly if the true relationship is nonlinear. -
Finding best fit line with linear regression. The "best fit" line is found by minimizing the residual sum of squares (RSS):
RSS = Σ(yᵢ − ŷᵢ)², where yᵢ is the actual value and ŷᵢ is the predicted value for observation i. The ordinary least squares (OLS) solution has a closed-form:β = (XᵀX)⁻¹Xᵀy, where X is the design matrix and y is the response vector. However, if XᵀX is singular or near-singular (multicollinearity), regularization (ridge regression:β = (XᵀX + λI)⁻¹Xᵀy) or pseudo-inverse methods are used. The coefficient of determination R² measures the proportion of variance in y explained by the model. -
Perceptron. The perceptron is a single-layer neural network that computes a weighted sum of inputs and applies a step activation function:
y = 1 if Σwᵢxᵢ + b > 0, else 0. It can solve linearly separable problems (where a straight line/hyperplane separates the classes). The perceptron learning rule updates weights iteratively:w(t+1) = w(t) + η(yᵢ − ŷᵢ)xᵢ, where η is the learning rate, yᵢ is the true label, and ŷᵢ is the predicted label. The perceptron convergence theorem guarantees convergence if the data is linearly separable; otherwise, learning cycles indefinitely. The perceptron is the foundation of deep neural networks. -
Learning neural networks structures. A neural network consists of layers of interconnected neurons (perceptrons). Feedforward networks propagate signals forward from input to output without cycles. Multilayer perceptrons (MLPs) have one or more hidden layers between input and output, with nonlinear activation functions (sigmoid, tanh, ReLU) enabling the network to approximate any continuous function (Universal Approximation Theorem). Backpropagation is the algorithm for training: forward pass computes predictions, computes loss, and backward pass computes gradients via the chain rule, updating weights:
w ← w − η ∂L/∂w. Network architectures vary: MLPs for general-purpose learning, CNN for image data, RNN for sequences, and transformers for attention-based processing. -
Decision tree representation. A decision tree is a flowchart-like tree structure where each internal node represents a test on an attribute (e.g., x₁ ≤ threshold), each branch represents the outcome of the test, and each leaf node represents a class label (classification) or value (regression). The top node is the root node, and lower nodes are internal nodes or leaves. Paths from root to leaf represent classification rules. Trees can handle both numerical and categorical data, capture nonlinear relationships, and provide interpretable rules. However, they are prone to overfitting, which is mitigated by pruning, ensemble methods (random forests, gradient boosting), and tree depth limits.
-
Appropriate problems for decision tree learning. Decision trees are suitable when: the relationship between features and target is nonlinear and complex; interpretability is important (rules can be extracted); there are mixed feature types (numerical and categorical); the feature set includes irrelevant or redundant variables (trees perform feature selection); the dataset is small to medium-sized. Trees may not be ideal when the decision boundary is highly intricate and smooth (e.g., spiral data) or when probabilities are needed (calibrated trees help). Common applications: customer churn prediction, credit risk assessment, medical diagnosis, and gene expression analysis.
-
Basic decision tree algorithm. The algorithm recursively splits the data to create the tree. At each node, the best split is chosen by maximizing a split criterion. For classification, common criteria are: Gini impurity (probability of misclassifying a randomly chosen element) and entropy (measure of disorder, based on information theory). The information gain is the reduction in entropy achieved by a split; the gain ratio adjusts information gain by the split's intrinsic information. For regression, the criterion is mean squared error (MSE) reduction. The recursion stops when: all samples at a node belong to the same class (pure node), the maximum tree depth is reached, the minimum number of samples per node is met, or the split does not improve the criterion sufficiently (pruning). The resulting tree is traversed by testing each condition along the path from root to leaf.
-
Support vector machines. SVM is a discriminative classifier that finds the hyperplane that maximizes the margin between two classes. The margin is the distance between the hyperplane and the nearest data points from each class, called support vectors. For linearly separable data, the optimal hyperplane is unique and maximizes the margin. For non-linearly separable data, slack variables allow some misclassification, and the soft margin trades off margin width versus classification error, controlled by the regularization parameter C. The kernel trick maps data into higher dimensions where a linear separator may exist: common kernels include linear, polynomial (degree p), radial basis function (RBF:
K(x, z) = exp(−γ||x−z||²)), and sigmoid. SVM benefits: high-dimensional effectiveness, versatility via kernels, and robustness to overfitting in high-dimensional spaces. -
Separating data with maximum margin. The objective of SVM is to find the hyperplane
wᵀx + b = 0that maximizes the margin γ = 2 / ||w||, subject to the constraintsyᵢ(wᵀxᵢ + b) ≥ 1for all training examples (for hard-margin SVM). The optimization problem is a convex quadratic program: minimize½||w||²subject to the constraints. The solution depends only on the support vectors (data points with non-zero Lagrange multipliers), making the model sparse and efficient. For the soft-margin SVM, the constraints becomeyᵢ(wᵀxᵢ + b) ≥ 1 − ξᵢ, with ξᵢ ≥ 0 being slack variables, and the objective includes a penalty termC Σξᵢ. -
Finding the maximum margin. The dual formulation of the SVM optimization problem involves Lagrange multipliers αᵢ ≥ 0: maximize
W(α) = Σαᵢ − ½ ΣΣαᵢαⱼyᵢyⱼK(xᵢ, xⱼ)subject toΣαᵢyᵢ = 0and0 ≤ αᵢ ≤ C. The optimal decision function isf(x) = ΣαᵢyᵢK(xᵢ, x) + b, where the sum is over support vectors. After solving for αᵢ via quadratic programming (or SMO algorithm), the bias term b is computed from support vectors. Prediction for a new sample x is:ŷ = sign(f(x)). The kernel function K determines the shape of the decision boundary; the RBF kernel can model complex, nonlinear boundaries, while the linear kernel produces a hyperplane.
Unit 3: Bayesian and instance-based learning
Teaching hours: 11
Topics in outline order
- Probability theory and Bayes rule. Classifying with Bayes decision theory
- Conditional Probability
- Bayesian Belief Network
- K-nearest neighbor
Explanation
-
Probability theory and Bayes rule. Classifying with Bayes decision theory. Probability quantifies the likelihood of an event. Bayes' theorem states:
P(A|B) = P(B|A)P(A) / P(B), where P(A|B) is the posterior probability of A given B, P(B|A) is the likelihood, P(A) is the prior, and P(B) is the evidence. Bayes decision theory provides a framework for making optimal classification decisions based on probabilities. The Bayes classifier assigns a new observation x to the class Cᵢ that maximizes the posterior probability P(Cᵢ|x). Assuming conditional independence of features given the class (the naive Bayes assumption), the posterior factorizes asP(Cᵢ|x) ∝ P(Cᵢ) Πⱼ P(xⱼ|Cᵢ), where P(Cᵢ) is the prior class probability and P(xⱼ|Cᵢ) is the feature likelihood. Naive Bayes is simple, efficient, and often surprisingly effective despite the strong independence assumption. It works well for text classification, spam filtering, and discrete feature domains. -
Conditional Probability. Conditional probability P(A|B) is the probability of event A occurring given that B has occurred. It is defined as
P(A|B) = P(A ∩ B) / P(B), provided P(B) > 0. Key properties: P(A|B) = P(B|A)P(A)/P(B) (Bayes' theorem), and for independent events, P(A∩B) = P(A)P(B). Conditional probability is fundamental for Bayesian inference, allowing updating of beliefs as new evidence accumulates. -
Bayesian Belief Network. A Bayesian Belief Network (BBN), also called a Bayesian network or belief network, is a directed acyclic graph (DAG) where nodes represent random variables and edges represent conditional dependencies. Each node has a conditional probability table (CPT) quantifying the effect of parent nodes. BBNs model joint distributions over multiple variables and support inference: computing the probability of certain variables given evidence on others. They are used for probabilistic reasoning, risk assessment, and decision-making under uncertainty. Inference can be exact (variable elimination, belief propagation) or approximate (Monte Carlo sampling, variational methods).
-
K-nearest neighbor. k-NN is a instance-based (lazy) learning algorithm that classifies a query point based on the majority vote of its k nearest neighbors in the training feature space. Distance metrics include Euclidean (
√Σ(xᵢ−zᵢ)²), Manhattan (L1: Σ|xᵢ−zᵢ|), and Minkowski (Lp: (Σ|xᵢ−zᵢ|ᵖ)^(1/p)). The choice of k: small k yields complex boundaries (high variance, low bias); large k yields smoother boundaries (low variance, high bias). k-NN is non-parametric (makes no assumptions about the underlying distribution), computationally expensive at prediction time (must compute distances to all training points), and sensitive to the scale of features (feature normalization is essential). It works well for moderate-dimensional spaces and when the decision boundary is irregular.
Unit 4: Introduction to un-supervised learning and dimensionality reduction
Teaching hours: 10
Topics in outline order
- Introduction to clustering
- K- Mean clustering
- Different distance functions for clustering
- Hierarchical clustering
- Supervised learning after clustering
- Dimensionality reduction techniques
- Principal component analysis
Explanation
-
Introduction to clustering. Clustering is the task of grouping a set of objects such that objects in the same group (cluster) are more similar to each other than to those in other groups. It is an unsupervised learning method (no labeled target). Key challenges: defining "similarity" (distance metric), choosing the number of clusters (k), and interpreting the resulting groups. Clustering is exploratory: it reveals natural groupings in data without predefined categories. Applications: customer segmentation, anomaly detection, image segmentation, gene expression analysis, and social network analysis. Common algorithms: k-means, hierarchical, DBSCAN, and Gaussian mixture models.
-
K- Mean clustering. k-means partitions n observations into k clusters, where each observation belongs to the cluster with the nearest mean (centroid). The algorithm: (a) initialize k centroids randomly (or using k-means++ for smarter initialization); (b) assign each observation to the nearest centroid based on Euclidean distance; (c) recompute centroids as the mean of all observations in the cluster; (d) repeat steps b and c until convergence (centroids no longer change, or maximum iterations reached). The objective is to minimize the within-cluster sum of squares (WCSS):
WCSS = Σᵢ Σⱼ∈Cᵢ ||xⱼ − μᵢ||², where μᵢ is the centroid of cluster Cᵢ. Limitations: assumes clusters are spherical and of similar size, is sensitive to initial centroid placement, and requires specifying k in advance. The elbow method (plotting WCSS vs. k) and silhouette analysis help choose k. -
Different distance functions for clustering. Distance metric choice affects clustering results. Euclidean distance (L2):
√Σ(xᵢ−zᵢ)², assumes spherical clusters. Manhattan distance (L1): Σ|xᵢ−zᵢ|, better for high-dimensional or grid-like data. Minkowski distance (Lp): (Σ|xᵢ−zᵢ|ᵖ)^(1/p), generalizes both; p=2 is Euclidean, p=1 is Manhattan. Cosine similarity measures the angle between vectors, ignoring magnitude; useful for text data. Mahalanobis distance accounts for feature correlations and scales, defined as√( (x−μ)ᵀ Σ⁻¹ (x−μ) ), where Σ is the covariance matrix. Distance metric should be chosen based on data distribution and clustering goals. -
Hierarchical clustering. Hierarchical clustering builds a tree of clusters (dendrogram) either agglomeratively (bottom-up: start with n singleton clusters, repeatedly merge the closest pair) or divisively (top-down: start with one cluster, recursively split). Linkage criteria determine the distance between clusters: single linkage (minimum distance between any pair), complete linkage (maximum distance), average linkage (average distance over all pairs), and Ward's method (minimizes the increase in total WCSS). The dendrogram visualizes the hierarchical structure, and cutting the tree at a given height yields clusters. Hierarchical clustering does not require specifying k in advance, but can be computationally O(n³) for naive implementations.
-
Supervised learning after clustering. Clustering can be used as a preprocessing step for supervised learning. Feature creation: cluster assignments or cluster centroid distances become additional features for a downstream classifier. Data augmentation: synthetic samples can be generated based on cluster characteristics. Cluster-aware modeling: different models can be trained for different clusters, recognizing that different subgroups may have different patterns. Caution: clustering is unsupervised; clusters may not correspond to the classification task, and using them as features may introduce bias or overfitting. Evaluation should verify that the clustering improves the supervised task.
-
Dimensionality reduction techniques. Dimensionality reduction reduces the number of features while preserving important information. Feature selection selects a subset of the original features based on relevance (e.g., filter methods using correlation, wrapper methods using model performance, embedded methods within tree models). Feature extraction transforms the original features into a lower-dimensional space: Principal Component Analysis (PCA) is the most common method, which finds orthogonal directions (principal components) that maximize variance. Other methods include Linear Discriminant Analysis (LDA) for supervised reduction, t-SNE (t-Distributed Stochastic Neighbor Embedding) for visualization, and autoencoders (neural network-based nonlinear reduction). Dimensionality reduction improves computational efficiency, mitigates the curse of dimensionality, and can improve model generalization by removing noise and redundancy.
-
Principal component analysis. PCA is a linear dimensionality reduction technique that transforms the data into a new coordinate system where the greatest variance by any projection of the data comes to lie on the first coordinate (the first principal component), the second greatest variance on the second coordinate, and so on. Steps: (a) standardize the data (zero mean, unit variance); (b) compute the covariance matrix Σ; (c) compute the eigenvectors and eigenvalues of Σ; (d) sort eigenvectors by descending eigenvalues; (e) select the top k eigenvectors (principal components) that explain sufficient variance; (f) transform the original data:
Z = XW, where W is the matrix of selected eigenvectors. Variance explained: the eigenvalue associated with each principal component indicates the variance captured. The cumulative variance proportion helps choose k: retain enough components to explain, e.g., 95% of total variance. PCA is sensitive to feature scaling; if features have disparate scales, standardization is critical. PCA is unsupervised (uses only the input X, not the target y) and is widely used for visualization, noise reduction, and preprocessing before modeling.
Unit 5: Measures for Performance Evaluation of ML algorithms
Teaching hours: 6
Topics in outline order
- Classification accuracy
- Confusion matrix Misclassification costs
- Sensitivity and specificity
- ROC curve
- Recall and precision
- Box plot confidence interval
Explanation
-
Classification accuracy. Accuracy is the proportion of correct predictions among total predictions:
Accuracy = (TP + TN) / (TP + TN + FP + FN). It is the most intuitive performance metric but can be misleading in imbalanced datasets (e.g., 99% accuracy on a 99:1 binary classification where the model always predicts the majority class). Accuracy should be complemented with other metrics, especially when class distribution is skewed. -
Confusion matrix Misclassification costs. A confusion matrix for binary classification is a 2×2 table: [[TN, FP], [FN, TP]], where TN = true negatives, FP = false positives, FN = false negatives, TP = true positives. Misclassification cost assigns a cost to each type of error: e.g., in medical testing, a false negative (missing a disease) may be more costly than a false positive (unnecessary follow-up). The total cost is
Cost = C_FP × FP + C_FN × FN + C_TN × TN + C_TP × TP, where C_ij is the cost of predicting class j when the true class is i. Minimizing expected cost guides threshold selection and model selection, especially in asymmetric misclassification scenarios. -
Sensitivity and specificity. Sensitivity (also called true positive rate or recall) is the proportion of actual positives correctly identified:
Sensitivity = TP / (TP + FN). Specificity (true negative rate) is the proportion of actual negatives correctly identified:Specificity = TN / (TN + FP). High sensitivity is critical when missing positive cases is dangerous (e.g., disease screening). High specificity is critical when false alarms are costly (e.g., spam filtering). The two metrics operate in opposite directions: increasing sensitivity typically decreases specificity, and vice versa, reflecting the trade-off. -
ROC curve. The Receiver Operating Characteristic (ROC) curve plots the true positive rate (sensitivity) against the false positive rate (1 − specificity) at various classification thresholds. The area under the ROC curve (AUC-ROC) summarizes the model's ability to distinguish classes: AUC = 1 indicates perfect discrimination, AUC = 0.5 indicates no discrimination (random guessing). The ROC curve is threshold-invariant (shows performance across all thresholds) and useful for comparing models on imbalanced datasets. The optimal threshold can be chosen based on the slope of the ROC curve, the cost ratio of false to true errors, or the point closest to the top-left corner (maximum Youden's index: J = sensitivity + specificity − 1).
-
Recall and precision. Recall (same as sensitivity) is
TP / (TP + FN): the proportion of actual positives correctly predicted. Precision isTP / (TP + FP): the proportion of predicted positives that are actual positives. F1-score is the harmonic mean of precision and recall:F1 = 2 × (precision × recall) / (precision + recall). Precision is important when false positives are costly (e.g., spam filtering, where legitimate emails marked as spam are lost). Recall is important when false negatives are dangerous (e.g., medical diagnosis, where missing a disease has serious consequences). The precision-recall trade-off: increasing the classification threshold typically increases precision but decreases recall, and vice versa. -
Box plot confidence interval. A box plot visualizes the distribution of a dataset through its quartiles: the box spans from the first quartile (Q1) to the third quartile (Q3), with a line at the median (Q2). The interquartile range (IQR) is Q3 − Q1. Outliers are plotted as individual points beyond 1.5 × IQR from the box. For model evaluation, box plots of performance metrics (e.g., accuracy across cross-validation folds) reveal variability and outliers. A confidence interval for the mean accuracy can be constructed as
mean ± t × (s / √n), where s is the sample standard deviation and n is the number of folds. This quantifies the uncertainty in the estimated performance.
Key Terms (Comprehensive)
Machine learning · supervised learning · unsupervised learning · reinforcement learning · self-supervised learning · training set · validation set · test set · data leakage · feature · label · model · hypothesis · hypothesis space · loss function · optimization · gradient descent · stochastic gradient descent · convergence · overfitting · underfitting · bias · variance · irreducible noise · generalization error · learning curve · classification · regression · binary classification · multiclass classification · decision boundary · support vector machine · kernel trick · radial basis function · perceptron · neural network · backpropagation · feedforward · multilayer perceptron · decision tree · Gini impurity · entropy · information gain · gain ratio · regression tree · random forest · gradient boosting · k-nearest neighbor · k-NN · clustering · k-means · hierarchical clustering · dendrogram · linkage criteria · Ward's method · silhouette analysis · silhouette coefficient · dimensionality reduction · feature selection · feature extraction · principal component analysis · PCA · covariance matrix · eigenvalue · eigenvector · variance explained · cumulative variance · standardization · curse of dimensionality · accuracy · precision · recall · F1-score · sensitivity · specificity · true positive · true negative · false positive · false negative · ROC curve · AUC-ROC · confusion matrix · misclassification cost · threshold · calibration · box plot · quartile · interquartile range · outlier · learning algorithm · model selection · hyperparameter · cross-validation
References from the Source Syllabus
- CACS456 Machine Learning course outline (2018), TU FOHSS PDF pp. 144-146
- Tom M. Mitchell, "Machine Learning", McGraw-Hill, 1997
- Andrew Ng, "Machine Learning" Coursera course
- Ian Goodfellow, Yoshua Bengio and Aaron Courville, "Deep Learning", MIT Press, 2016
- Kevin P. Murphy, "Machine Learning: A Probabilistic Perspective", MIT Press, 2012
- Wasserman, Larry, "All of Statistics: A Concise Course in Statistical Inference", Springer, 2004
- Hastie, Tibshirani and Friedman, "The Elements of Statistical Learning", Springer, 2009
End of Guide