Unit 7: Supervised Algorithms
Master ASSEB Class XI AI Unit 7: Linear Regression, SVM, KNN, model training, cross-validation, decision boundaries, and loss functions.
Unlock Unit 7: Supervised Algorithms
Access verified code errata manual, 50 external viva questions, period lesson scripts, and practical examination rubrics.
Class XI • Unit 7 Exercise Solutions
Human-crafted academic answers for all exercise questions (Pages 26–29) formulated to secure full marks in the ASSEB Board Examinations. Includes step-by-step calculations, diagrams, and examiner scoring tips.
Predicting whether a patient has diabetes (Yes or No) is an example of:
Which metric measures the proportion of actual positive cases that were correctly caught by the model?
What mathematical function maps real numbers to probabilities between 0 and 1 in Logistic Regression?
Define the Confusion Matrix in supervised classification.
A Confusion Matrix is a 2imes2 cross-tabulation table that evaluates classification performance by tabulating four outcomes: True Positives (TP), False Positives (FP), True Negatives (TN), and False Negatives (FN).
Explain the Trade-off between Precision and Recall with a real-world example.
Precision ( rac{TP}{TP+FP}): Measures how many predicted positives were actually positive. High precision is required in email spam filtering (you never want an important college email sent to spam).
Recall ( rac{TP}{TP+FN}): Measures how many actual positive cases were caught. High recall is critical in cancer screening or airport weapons screening (you never want to miss a sick patient, tolerating minor false alarms).
What is the F1-Score and why is it preferred over Accuracy on imbalanced datasets?
The F1-Score is the harmonic mean of Precision and Recall (2imesracPimesRP+R). On imbalanced datasets (e.g., 99% healthy patients, 1% cancer), a naive model predicting "healthy" for everyone achieves 99% accuracy while failing completely. The F1-score balances both precision and recall, exposing model failure on rare classes.
Explain the working of the K-Nearest Neighbors (k-NN) algorithm. How does distance metric choice and the value of k affect the decision boundary? Discuss its computational limitations.
Working Mechanism: k-NN is an instance-based lazy learner. Given an unlabelled query point xq: (1) It computes the Euclidean distance (d=(xi-yi)2) between xq and all stored training instances; (2) Identifies the k closest neighbors; (3) Assigns the majority class vote among those k neighbors.
Effect of Hyperparameter k:
Small k (e.g., k=1): Highly flexible, jagged boundary; sensitive to individual noise points and outliers (Overfitting).
Large k: Overly smooth, rigid boundary; suppresses noise but risks ignoring subtle local class structures (Underfitting).
Computational Limitations: Because k-NN does not build an eager model during training, it must retain the entire dataset in memory and calculate distances to all N points during inference, making predictions exceedingly slow on massive real-time datasets (O(N⋅D) time complexity).