2023 question paper
MACHINE LEARNING
21 questions
Q1a. (a) Who is called the father of Machine Learning? (i) Geoffrey Hill (ii) Geoffrey Chaucer (iii) Geoffrey Everest Hinton (iv) Tom Mitchell20232m
Module 1: Introduction
View this question on its own page →(a) Who is called the father of Machine Learning?
(i) Geoffrey Hill
(ii) Geoffrey Chaucer
(iii) Geoffrey Everest Hinton
(iv) Tom MitchellWorked SolutionAnswer: (iv) Tom Mitchell
Explanation:
- Tom Mitchell is widely cited as the father of Machine Learning in academic curricula (author of Machine Learning, McGraw-Hill, 1997) who gave the formal definition: "A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improves with experience E."
- Arthur Samuel (1959) coined the term Machine Learning and is historically the true pioneer, but he is not listed in options.
- Geoffrey Everest Hinton is the Godfather of Deep Learning, not general ML.
- Options (i) Geoffrey Hill and (ii) Geoffrey Chaucer are distractors (poets).
In the context of this MCQ, expected answer is Tom Mitchell. If strictly historical, Arthur Samuel would be correct.
Q1b. (b) A Machine Learning technique that helps in detecting the outliers in data is called as: - (i) Clustering . (ii) Classification (iii) Anomaly Detection (iv) All of the above20232m
Module 4: Clustering, K-means, K-medoids, Density-based Hierarchical, Spectral .
View this question on its own page →(b) A Machine Learning technique that helps in detecting the outliers in data is called as:
- (i) Clustering .
(ii) Classification
(iii) Anomaly Detection
(iv) All of the above
Worked SolutionAnswer: (iii) Anomaly Detection
Explanation:
- Anomaly Detection (also called outlier detection) is the ML technique explicitly designed to identify rare items, events or observations which raise suspicions by differing significantly from the majority of the data.
- Clustering groups similar data points; outliers may be found as points not belonging to any cluster, but it is not its primary purpose.
- Classification assigns data to predefined classes; it needs labeled outlier examples which are rarely available.
- Techniques used for Anomaly Detection: Statistical (Z-score, Gaussian), Density-based (LOF, DBSCAN), Distance-based, Isolation Forest, One-Class SVM, Autoencoders.
Hence the most specific answer is (iii) Anomaly Detection. Option (iv) All of the above is not best choice because clustering/classification are not primarily outlier detectors.
- (i) Clustering .
Q1c. \(c\) In what type of learning labelled training data is used : (i) unsupervised learning (ii) supervised learning (iii) reinforcement learning (iv) active learning20232m
Module 1: Introduction
View this question on its own page →(c) In what type of learning labelled training data is used :
(i) unsupervised learning
(ii) supervised learning
(iii) reinforcement learning
(iv) active learningWorked SolutionAnswer: (ii) supervised learning
Explanation:
- Supervised learning uses labelled training data i.e. each input is paired with correct output . The algorithm learns a mapping to predict labels for unseen data. Examples: classification (spam detection), regression (house price prediction).
- Unsupervised learning uses unlabelled data to find hidden structure (clustering, dimensionality reduction, association).
- Reinforcement learning uses reward/feedback from environment through trial-and-error, not explicit correct labels.
- Active learning is a special case of semi-supervised where learner queries an oracle for labels of selected instances — it uses labels but the base definition asked is supervised.
Therefore labelled training data is the defining characteristic of supervised learning.
Q1g. What is a support vector? (i) The distance between any two data points (ii) The average distance between all data points (iii) The distance between any two boundary data points . (iv)The minimum distance between any two data points20232m
Module 3: Classification Algorithms
View this question on its own page →What is a support vector?
(i) The distance between any two data points
(ii) The average distance between all data points
(iii) The distance between any two boundary data points .
(iv)The minimum distance between any two data pointsWorked SolutionAnswer: None of the given options is precisely correct. The closest educational intent is (iii), but technically support vectors are data points, not a distance.
Correct definition:
A support vector is a training sample that lies closest to the decision hyperplane and directly influences its position and orientation. For a hard-margin SVM with hyperplane :for support vectors, and margin .
- (i) distance between any two data points — false
- (ii) average distance — false
- (iii) distance between any two boundary data points — confuses support vector (a point) with margin (a distance)
- (iv) minimum distance between any two data points — false
If forced to choose: Many university keys mark (iii) as expected answer, interpreting support vectors as the points that define the minimum distance (margin) between classes. Ideally answer should be: "the training vectors closest to the hyperplane that satisfy ".
Q1h. In neural network. which of the following techniques is used to deal with over fitting? × (i) Dropout (ii) Regularization. (iii) Batch normalization (iv) All of the above20232m
Module 3: Classification Algorithms
View this question on its own page →In neural network. which of the following techniques is used to deal with over fitting? ×
(i) Dropout
(ii) Regularization.
(iii) Batch normalization
(iv) All of the aboveWorked SolutionAnswer: (iv) All of the above
Explanation — techniques to deal with overfitting in Neural Networks:
Dropout (i): Randomly drops neurons (with prob ) during training. Prevents co-adaptation, acts as ensemble approximation. Used in fully connected layers.
Regularization (ii):
- L2 (weight decay): adds to loss, penalizes large weights.
- L1: adds , induces sparsity.
- Makes model simpler and generalizes better.
Batch Normalization (iii): Normalizes layer inputs per mini-batch to zero mean/unit variance. Reduces internal covariate shift, allows higher learning rates, has slight regularization effect due to noise from batch statistics.
Other methods: Early stopping, data augmentation, reducing network capacity, cross-validation.
Since dropout, L1/L2 regularization and batch norm all help reduce overfitting, (iv) All of the above is correct.
Q1i. A hypothesis which defines the population distribution is called .... (i) Null Hypothesis . (ii) Positive Hypothesis (iii) Negative Hypothesis (iv) Alternative Hypothesis20232m
Module 4: Clustering, K-means, K-medoids, Density-based Hierarchical, Spectral .
View this question on its own page →A hypothesis which defines the population distribution is called ....
(i) Null Hypothesis .
(ii) Positive Hypothesis
(iii) Negative Hypothesis
(iv) Alternative HypothesisWorked SolutionAnswer: (i) Null Hypothesis
Explanation:
- Null Hypothesis (): A hypothesis which defines the population distribution / assumes no effect, no difference. It is a statement to be tested and possibly rejected. Example: , distribution is Normal .
- Alternative Hypothesis ( / ): Complements , indicates existence of effect/difference.
- The term statistical hypothesis which completely specifies the population distribution (parameters) is called simple hypothesis; if does that it defines the distribution. In MCQ context, expected answer is Null Hypothesis.
Positive/Negative hypotheses are not standard statistical terms. Hence (i) Null Hypothesis is correct. If question meant simple hypothesis, null hypothesis is the standard example taught as defining population distribution under assumption.
Q1j. Which of the following is the best algorithm for text classification? (i) KNN - (ii) Decision tree (iii) Random forest (iv) Naive Bayes20232m
Module 3: Classification Algorithms
View this question on its own page →Which of the following is the best algorithm for text classification?
(i) KNN -
(ii) Decision tree
(iii) Random forest
(iv) Naive BayesWorked SolutionAnswer: (iv) Naive Bayes — generally considered best baseline for text classification, though context dependent.
Explanation:
- Naive Bayes (Multinomial/Bernoulli): Highly effective for high-dimensional sparse text (Bag-of-Words / TF-IDF). Fast, works well with small data, handles thousands of features, empirically strong for spam, sentiment, topic classification. Assumption of conditional independence of words given class surprisingly works well in practice.
- KNN: Lazy, computationally expensive at inference, suffers from curse of dimensionality in text.
- Decision Tree: Prone to overfit on sparse text, not ideal.
- Random Forest: Better than single tree but slower and often still outperformed by NB/SVM for raw text without embeddings.
In modern deep learning era, Transformers/BERT outperform all, but among given classical options, Naive Bayes (and Linear SVM — not listed) is textbook best for text. Some keys may accept Random Forest as competitive, but traditional exam answer is (iv) Naive Bayes.
Q2a. Q.2 (a) What are the important objectives of machine learning?20237m
Module 1: Introduction
View this question on its own page →Q.2 (a) What are the important objectives of machine learning?
Worked SolutionImportant Objectives of Machine Learning:
As per ML theory (combines CS, stats, optimization), main objectives:
Prediction / Generalization: Learn model that generalizes to unseen data, minimizing expected risk , not just training error. Overcome overfitting via bias-variance trade-off.
Knowledge Discovery / Pattern Recognition: Extract hidden patterns, associations, trends from large data (data mining).
Automation & Decision Making: Automate tasks requiring human intelligence (classification, recommendation, control) with minimal human intervention.
Handling Uncertainty & Noise: Deal with incomplete, noisy, high-dimensional data via probabilistic modeling.
Adaptation: Continuously improve with more experience (online learning, concept drift).
Optimization: Find efficiently (GD, SGD).
Efficiency & Scalability: Handle big data with feasible computation/memory.
Interpretability vs Performance: Balance accurate black-box (deep nets) vs explainable models.
Specific statistical goals: Minimize empirical risk + regularization:
In short: build systems that learn from data to make accurate, robust, scalable predictions/decisions and discover useful knowledge.
Q2b. Q.2 (b) Explain the inductive biased hypothesis space.20237m
Module 1: Introduction
View this question on its own page →Q.2 (b) Explain the inductive biased hypothesis space.
Worked SolutionInductive Bias and Hypothesis Space:
Hypothesis Space : Set of all hypotheses / functions learner can represent. e.g., for Boolean concepts with attributes, (general-to-specific). For linear regression, .
Inductive Bias: Set of assumptions that learner uses to generalize beyond training data and choose one hypothesis among many consistent ones. Without bias, learner cannot generalize (cannot classify unseen instances).
Mitchell definition: Any basis for choosing one generalization over another beyond consistency with data.
Types:
- Language / Restriction Bias: Restrict (e.g., only conjunctive hypotheses, only linear separators). If true concept not in , cannot learn.
- Preference / Search Bias: Prefer certain hypotheses (e.g., Occam's razor — prefer simpler, smaller trees, smaller weights; regularization prefers low norm). may still contain all, but search ordered.
Example — Candidate Elimination: = conjunctions of attributes. Bias: is conjunctive — cannot learn disjunction .
Example — Decision Tree: Bias: prefers shorter trees (information gain heuristic) that fit data.
Why needed: No Free Lunch — without bias, all hypotheses consistent with data are equally valid, no prediction on unseen point. Bias makes learning possible but limits learnability; incorrect bias → underfitting.
Relation to Occam's Razor: "Prefer simplest hypothesis fitting data" — implemented via MDL, regularization, pruning.
Q3a. What is Linear Regression? Explain in detail using example and list all the assumption to be met before starting with linear regression.20237m
Module 2: Linear Models and Bayesian Learning
View this question on its own page →What is Linear Regression? Explain in detail using example and list all the assumption to be met before starting with linear regression.
Worked SolutionLinear Regression:
Model: , with . Goal: learn minimizing squared loss or MLE under Gaussian noise.
Closed form: (OLS). Gradient descent also: $w:=w-\eta
abla J$.Example: Predict house price (in lakhs) from size (sq ft). Data: (1000,50), (1500,70), (2000,90) → learn → for 1200 sq ft predict L.
Types: Simple (one predictor), Multiple (many), Polynomial (features but linear in parameters).
Assumptions to be met before Linear Regression:
- Linearity: Relationship between and is linear (check scatter plot, residuals vs fitted).
- Independence of errors: Observations independent (no autocorrelation, Durbin-Watson).
- Homoscedasticity: Constant variance of residuals (Breusch-Pagan test).
- Normality of residuals: for inference (Q-Q plot, Shapiro-Wilk) — not strictly for prediction.
- No multicollinearity: Predictors not highly correlated (VIF <5-10).
- No autocorrelation and no endogeneity ().
- No influential outliers (Cook's distance).
- Features not random, measured without error, sample size .
Checks/Remedies: Transform variables (log), remove outliers, ridge if multicollinearity, Weighted LS if heteroscedasticity. Violations bias estimates / invalidate p-values.
- Install PocketlyBudget App•POCKETLY
Pocketly on Android
Log daily food, travel, and hostel expenses instantly. Set monthly spending limits and see where your money goes without complex spreadsheets.
Q3b. How does Back Propagation Rule help in learning in Neural Network?20237m
Module 3: Classification Algorithms
View this question on its own page →How does Back Propagation Rule help in learning in Neural Network?
Worked SolutionBackpropagation Rule — How it Helps Learning in Neural Networks:
Neural network learns by minimizing loss or cross-entropy via gradient descent. Backpropagation efficiently computes for all weights using chain rule, propagating error backward.
Steps:
- Forward pass: For each layer : , . Compute loss .
- Backward pass:
- Output error: $\delta^{(L)} =
abla_a L \odot \sigma'(z^{(L)})$ - Propagate:
- Gradients: ,
- Output error: $\delta^{(L)} =
- Update: ,
Why crucial:
- Makes training deep networks computationally feasible instead of naive .
- Enables learning of hierarchical features (early layers edges, deeper semantic).
- Works with any differentiable activation (sigmoid, ReLU, tanh).
- Basis for SGD, Adam optimization.
Example: 2-layer MLP with MSE: error at output , hidden error — weight updates proportional to contribution to error (credit assignment). Without backprop, no efficient credit assignment across layers would be possible.
Extensions: Batch norm, dropout, gradient clipping to stabilize backprop, avoid vanishing/exploding gradients.
Q4a. Discuss various issues in Decision Tree Learning.20237m
Module 3: Classification Algorithms
View this question on its own page →Discuss various issues in Decision Tree Learning.
Worked SolutionIssues in Decision Tree Learning:
Determining Correct Depth / Overfitting: Fully grown tree overfits training data (memorizes noise). Need pruning.
- Pre-pruning: Stop early via max_depth, min_samples_split, test, information gain threshold.
- Post-pruning: Grow full, then prune using validation set (reduced-error pruning, cost-complexity pruning in CART with ).
Attribute Selection Measure: Information Gain biases to many-valued attributes (e.g., ID column). Gain Ratio (C4.5) normalizes by SplitInfo, Gini index (CART), or use least biased measures.
Handling Continuous Attributes: Need to find optimal threshold for split vs by sorting values and evaluating gain for candidate mid-points — per attribute.
Handling Missing Values: Training: ignore missing or distribute fractionally (C4.5). Testing: follow both branches weighted. Alternatives: surrogate splits (CART), imputation.
Handling Noisy Data & Outliers: Noise causes incorrect splits; pruning and robust measures (e.g., use majority voting at leaves) help.
Inconsistent Data: Same feature vector with different labels → cannot achieve 100% accuracy; need probabilistic leaves.
Computational Complexity: Finding optimal tree is NP-hard; greedy heuristics may produce locally optimal but globally suboptimal trees. Ensembles mitigate.
Data Fragmentation: Splits reduce sample per leaf, estimates unreliable at deep levels.
Instability / High Variance: Small data perturbations → very different tree (solved by Random Forest bagging).
Class Imbalance: Majority class dominates gain; need weighted entropy, stratified sampling, cost-sensitive splits.
Replicated Subtrees & Oblique Splits: Axis-parallel splits cannot represent diagonal boundaries efficiently → need multivariate trees.
Q4b. Discuss with examples of instance-based learning algorithms.20237m
Module 3: Classification Algorithms
View this question on its own page →Discuss with examples of instance-based learning algorithms.
Worked SolutionInstance-Based Learning (Lazy Learning): Stores training instances, delays generalization until query. Prediction via similarity to stored instances, not explicit model.
General steps: Store ; for query , find nearest neighbors by distance (Euclidean/Manhattan/cosine), combine (majority vote / weighted average / local regression).
Examples:
k-Nearest Neighbors (k-NN):
- Classification: (optionally distance-weighted: )
- Regression:
- Choose via CV; small flexible but noisy, large smooth but underfits. Need feature scaling, handles multi-modal, no training time, slow query , needs KD-tree/ball-tree for speed. Pros: simple, effective with many data. Cons: curse of dimensionality, sensitive to irrelevant features.
Locally Weighted Regression (LWR):
- Fits local model (e.g., linear) weighted by kernel . Prediction where .
- Example: LOESS for smoothing.
Case-Based Reasoning (CBR): Solves new problems by adapting solutions from similar past cases (e.g., medical diagnosis: retrieve similar patient cases, adapt treatment). Retrieve-Reuse-Revise-Retain cycle.
Radial Basis Function (RBF) Network (kernel memory based): Some interpretations include it.
Characteristics: No explicit training, incremental easily, ability to model complex boundaries locally, but memory intensive, needs careful distance metric selection and feature weighting.
Q5a. State the mathematical formulation of the SVM problem. Give an outline of the method for solving the problem.20237m
Module 3: Classification Algorithms
View this question on its own page →State the mathematical formulation of the SVM problem. Give an outline of the method for solving the problem.
Worked SolutionMathematical Formulation of SVM Problem:
Given , .
Primal (Soft-margin, most general):
s.t. ,Hard margin special case , .
Dual (Wolfe Dual, kernelizable):
Using Lagrange multipliers , :
KKT: , ,
Dual:
s.t. ,(linear) or kernel .
Decision: , from support vectors where via .
Outline of Method for Solving:
- Choose (and kernel hyperparameters via CV).
- Solve Quadratic Programming dual for ( convex QP). Use algorithms: SMO (Sequential Minimal Optimization) — iteratively optimizes pair of analytically, efficient ; or interior point, gradient ascent.
- Identify Support Vectors (approx ). SVs on margin , inside/errors .
- Compute (implicitly via kernel) and averaging over margin SVs.
- Classify new via sign of kernel expansion.
For large data, use LIBSVM / LIBLINEAR, Pegasos (primal SGD).
Properties: Convex, global optimum, sparsity (only SVs matter), max margin minimizes VC bound, good generalization.
Q5b. A patient takes a lab test and the result comes back positive. It is known that the test returns a correct positive result in only 98% of the cases and a correct negative result in only 97% of the cases. Furthermore, only 0.008 of the entire population has this disease. (i) What is the probability that this patient has cancer? (ii) What is the probability that he does not have cancer? (iii) What is the diagnosis?20237m
Module 2: Linear Models and Bayesian Learning
View this question on its own page →A patient takes a lab test and the result comes back positive. It is known that the test returns a correct positive result in only 98% of the cases and a correct negative result in only 97% of the cases. Furthermore, only 0.008 of the entire population has this disease.
(i) What is the probability that this patient has cancer?
(ii) What is the probability that he does not have cancer?
(iii) What is the diagnosis?Worked SolutionGiven: Test correct positive (sensitivity), correct negative $P(-|
eg D)=0.97P(+|
eg D)=0.03P(D)=0.008$.We compute posterior using Bayes: where $P(+)=P(+|D)P(D)+P(+|
eg D)P(
eg D)$.- , $P(
eg D)=0.992$ - , $P(+|
eg D)=1-0.97=0.03$
(i)
**(ii) $P(
eg D|+) =1 -0.2085=0.7915 \approx 79.2%0.02976/0.0376=0.7915$)(iii) Diagnosis: Despite positive test, patient most probably does NOT have cancer/disease (about 79% chance healthy) because disease is rare (base rate fallacy). Positive predictive value only ~21%. Recommend further testing (more specific test, follow-up) — do not immediately diagnose cancer. If used as MAP classifier, predict $
eg D$ (no cancer).Note: This classic low-prevalence paradox shows importance of prior. If prevalence higher, posterior rises sharply.
- , $P(
Q6. For the Sun Burn data set given below, construct a decision tree. | Name | Hair | Height | Weight | Location | Class | |--------|--------|----------|---------|----------|-------| | Sunita | Blonde | Average | Light | No | Yes | | Anita | Blonde | Tall | Average | Yes | No | | Kavita | Brown | Short | Average | Yes | No | | Sushma | Blonde | Short | Average | No | Yes | | Xavier | Red | Average | Heavy | No | Yes | | Balaji | Brown | Tall | Heavy | No | No | | Ramesh | Brown | Average | Heavy | No | No | | Sweta | Blonde | Short | Light | Yes | No |202314m
Module 3: Classification Algorithms
View this question on its own page →For the Sun Burn data set given below, construct a decision tree.
Name Hair Height Weight Location Class Sunita Blonde Average Light No Yes Anita Blonde Tall Average Yes No Kavita Brown Short Average Yes No Sushma Blonde Short Average No Yes Xavier Red Average Heavy No Yes Balaji Brown Tall Heavy No No Ramesh Brown Average Heavy No No Sweta Blonde Short Light Yes No Worked SolutionSun Burn Decision Tree Construction (ID3 style):
Dataset: 8 examples, 4 attributes + Class {Yes=3, No=5}
EntropyEvaluate each attribute Information Gain.
Similar exhaustive calc shows Hair or Height gives high gain. Manual computation:
- Hair: Blonde (4 ex: 2Y,2N) , Brown (3 ex:0Y,3N) , Red (1 ex:1Y,0N) → Weighted → Gain
- Weight & Location similar calculations, Hair best initially.
Root: Hair
- Hair=Brown → Leaf No (3/3, pure)
- Hair=Red → Leaf Yes (1/1)
- Hair=Blonde (4 ex remains: Sunita Y, Anita N, Sushma Y, Sweta N) — need further split on remaining attributes (Height, Weight, Location).
Subset Blonde : 2Y/2N
- Height: Tall 1N, Average 1Y, Short 1Y+1N () → Gain small
- Weight: Light 1Y1N (), Average 2 examples 1Y1N → no gain
- Location: No → 2Y (Sunita,Sushma) pure Yes; Yes →2N (Anita,Sweta) pure No → Weighted entropy → Gain
So next split Location.
Resulting Tree:
Hair? ├─ Brown → No ├─ Red → Yes └─ Blonde → Location? ├─ No → Yes (Sunita,Sushma) └─ Yes → No (Anita,Sweta)Alternative equivalent tree with Weight/Height may also achieve pure leaves but Location gives perfect split for this subset. This tree classifies all 8 training examples correctly (100% training accuracy).
If using Gini/C4.5, structure similar; root may be Location then Hair depending tie-breaking; any fully consistent tree with 3 leaves is acceptable. Pruning not needed due small data.
Interpretation: For this data, Hair color and absence of Location (No) predicts Sun Burn Yes in blondes.
Q7a. Discuss the Algorithmic convergence & Generalization property of ANN.20237m
Module 3: Classification Algorithms
View this question on its own page →Discuss the Algorithmic convergence & Generalization property of ANN.
Worked SolutionAlgorithmic Convergence & Generalization of ANN:
Algorithmic Convergence:
- Perceptron: Converges in finite steps if linearly separable (Novikoff theorem, mistakes ). For non-separable, does not converge without modification (pocket algorithm).
- MLP with Backprop/GD: Non-convex loss, no guarantee of global optimum; GD converges to stationary point / local minima if learning rate (Lipschitz) and with decreasing schedule , (Robbins-Monro). SGD converges almost surely to local minima. Practical: momentum, Adam help escape saddle points, converge faster but may not generalize optimally. Over-parameterized nets converge to zero training loss (interpolation regime).
- Factors: Weight initialization (Xavier/He), learning rate scheduling, batch size, gradient vanishing/exploding (sigmoid/tanh) mitigated by ReLU, BatchNorm, Residuals.
- Universal Approximation: Single hidden layer with enough neurons can approximate any continuous function (Cybenko 1989) — ensures representational capacity to converge to target if optimization succeeds.
Generalization Property:
- Capacity vs Generalization: More parameters → higher VC dimension, risk overfitting. Classical bias-variance U-curve: test error decreases then increases. Modern deep nets exhibit double descent — over-parameterized still generalizes due to implicit regularization.
- Measures: Generalization error . Controlled by regularization: weight decay (), dropout, early stopping, data augmentation, batchnorm.
- Theoretical bounds: VC, Rademacher. For ANN with weights, VC .
- Empirical: Validation set, cross-validation estimate generalization; early stopping halts before validation error rises.
- Inductive bias: Smoothness, translational invariance (CNN) improve generalization to unseen data.
- Trade-off: Under-parameterized → underfit, over-parameterized without regularization → memorize noise, poor test performance. Proper tuning yields best generalization.
ANN converges algorithmically via gradient methods but generalization requires controlling complexity.
Q7b. What are the applications of supervised machine learning in modern business?20237m
Module 3: Classification Algorithms
View this question on its own page →What are the applications of supervised machine learning in modern business?
Worked SolutionApplications of Supervised ML in Modern Business:
Supervised learning (labeled ) drives most enterprise AI where historical outcomes exist.
Finance / Banking:
- Credit scoring, loan default prediction (classification, risk modeling)
- Fraud detection (supervised on labeled transactions)
- Algorithmic trading price prediction (regression)
E-commerce / Retail:
- Recommendation systems (collaborative filtering as supervised ranking)
- Customer churn prediction, Lifetime Value (LTV) regression
- Demand forecasting (time series regression), price optimization
Marketing / Sales:
- Targeted advertising CTR prediction
- Lead scoring, sentiment analysis on customer feedback (NLP classification)
- A/B test outcome modeling
Healthcare / Insurance:
- Disease diagnosis from labs/images (supervised classification)
- Claim fraud detection, underwriting risk
Operations / Supply Chain:
- Inventory demand prediction, predictive maintenance (failure classification from sensor logs)
- Delivery time estimation, route optimization regression
HR / Management:
- Employee attrition prediction, resume screening classification
Customer Service:
- Chatbot intent classification, ticket routing, spam filtering
Value: Automates decision making, personalizes experience, reduces cost, improves accuracy over rules. Requires labeled data collection, feature engineering, monitoring for drift, ROI measured via precision/recall for business KPI trade-off (e.g., high recall for fraud at cost of precision).
Example workflow: Bank collects 100k loan records labeled default/no-default with features (income, history) → train XGBoost, validate precision 0.85 → deploy to score new applications.
Q8a. Write short notes on Probably Approximately Correct (PAC) learning model.20237m
Module 5: Probabilistic & Reinforcement Methods
View this question on its own page →Write short notes on Probably Approximately Correct (PAC) learning model.
Worked SolutionProbably Approximately Correct (PAC) Learning Model (Valiant 1984):
Framework to analyze learnability: when can learner, with high probability, find approximately correct hypothesis with polynomial sample/computation?
Setup: Instance space , concept class , hypothesis space , distribution over , target , training set labeled by .
Learner outputs .
Definition: is PAC-learnable if exists algorithm and polynomial such that for any , any , any , given examples, outputs with .
Error: $Error_D(h)=P_{x\sim D}[h(x)
eq c(x)]$, training error zero for consistent learner.: Accuracy parameter (approximately correct, error ≤). : Confidence (probably, with probability 1-).
Sample complexity bounds:
For finite : sufficient for consistent learner (if realizable). Using Hoeffding: .For infinite , VC-dimension : (agnostic: ).
Examples:
- Conjunctions of literals: PAC-learnable with
- Axis-aligned rectangles in PAC-learnable, .
- Parity not efficiently PAC-learnable.
Agnostic PAC: $c
otin Hh\min_{h\in H}Error_D(h)+\epsilon$.Implications: PAC gives theoretical guarantee linking sample size, hypothesis complexity ( or VC), accuracy and confidence. Guides Occam's razor: simpler needs fewer samples.
Limitations: Distribution-free worst-case, often loose bounds, assumes i.i.d.
Q8b. What is the difference between K-NN and K-means clustering algorithms?20237m
Module 4: Clustering, K-means, K-medoids, Density-based Hierarchical, Spectral .
View this question on its own page →What is the difference between K-NN and K-means clustering algorithms?
Worked SolutionK-NN vs K-means:
Aspect K-NN (K-Nearest Neighbors) K-means (Clustering) Type Supervised, instance-based, lazy classifier/regressor Unsupervised clustering Purpose Predict label for query using labeled neighbors Group unlabeled data into clusters minimizing SSE Input Labeled training Unlabeled only, need preset Working For query , find nearest labeled points by distance, majority vote / average: Iteratively assign points to nearest centroid , recompute mean, repeat until convergence Training No model building, stores data Builds model (centroids) Prediction cost per query (slow) after training (fast assign) Output Single label per query Cluster id for all points Choosing = neighborhood size via CV (bias-variance) = number clusters via elbow/silhouette Example Classify email as spam using 5 nearest labeled emails Segment customers into 3 groups without labels Common confusion: Both use distance and , but meanings completely different: in K-NN = neighbors to vote, in K-means = clusters. K-NN needs labels, K-means does not. K-NN predicts new point, K-means discovers structure.
When to use: Labels available + need classification → K-NN. No labels + need grouping → K-means.
- Install PocketlyBudget App•POCKETLY
Pocketly on Android
Log daily food, travel, and hostel expenses instantly. Set monthly spending limits and see where your money goes without complex spreadsheets.
Q9. Write short notes on any two of the following: (a) Naive Bayes (b) Logistic Regression \(c\) Back Propagation algorithm202314m
Module 3: Classification Algorithms
View this question on its own page →Write short notes on any two of the following:
(a) Naive Bayes
(b) Logistic Regression
(c) Back Propagation algorithmWorked SolutionShort Note — Any Two (all three covered for completeness):
(a) Naive Bayes:
Bayes classifier with strong independence assumption.
. Types: Gaussian (continuous ), Multinomial (counts/TF for text), Bernoulli (binary). Training: Estimate priors , likelihoods via MLE/MAP with Laplace smoothing to avoid zero counts. Prediction: (log sum for stability). Pros: Fast , works well on high-dim sparse text, needs little data. Cons: independence violated often, poor probability calibration. Use for spam, sentiment, document classification.(b) Logistic Regression:
Discriminative linear classifier modeling , . Decision boundary linear. Loss = binary cross-entropy (MLE). Gradient $
abla J = X^T(\hat y - y)/mL1/L2P(y=k|x)=\exp(w_k^T x)/\sum \exp(w_j^T x)w^T x=0$ → 0.5 threshold.(c) Back Propagation:
Algorithm to train MLPs by efficient gradient via chain rule. Forward: , compute loss. Backward: $\delta^{(L)}=
abla L \odot f'(z^{(L)})\delta^{(l)}=W^{(l+1)T}\delta^{(l+1)}\odot f'(z^{(l)})\partial L/\partial W^{(l)}=\delta^{(l)}a^{(l-1)T}W:=W-\eta\partial L/\partial WO(W)O(W^2)$. Needs differentiable activations, suffers vanishing gradient (solved by ReLU, residual, batchnorm).For exam attempt any two → choose (a) and (b) for completeness, or (b)+(c) as requested.
Coursify — Personal AI Course Generator
Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.