FREE Live Master Session: Code Your AI Companion for Kids

    Register for Free →
    Subject 843 • Unit 6 • 6 Marks Theory (9h Theory + 15h Practical)

    Unit 6: Machine Learning AlgorithmsLinear Regression, KNN Classification & K-Means Clustering

    The comprehensive CBSE Class 11 guide for Unit 6. Master Supervised Learning: Correlation, Pearson's r, Line of Best Fit (Least Squares), K-Nearest Neighbors (KNN), and Unsupervised Learning: 4 Clustering methods, K-Means mechanics, and 20 Handbook MCQs with Answer Key.

    Practice 20 Handbook MCQs
    Supervised Continuous Modeling

    1. Correlation, Pearson's r & Linear Regression

    Correlation measures the strength and direction of linear dependence between two continuous quantitative variables. It ranges from -1 to +1. Remember: "Causation is not always correlation".

    Pearson's Correlation Coefficient Formula:

    r = [ n(Σxy) - (Σx)(Σy) ] / √[ (nΣx² - (Σx)²)(nΣy² - (Σy)²) ]

    In the Handbook's age (x) vs. weight (y) calculation for 6 people (n = 6, Σx = 202, Σy = 409, Σxy = 13937, Σx² = 7280, Σy² = 28365):
    r = 1004 / √8366284 ≈ 0.35 (positive moderate association).

    Line of Best Fit & Least Squares Method:

    Linear regression fits the line y = a + bx + e by minimizing the sum of squared differences between observed values and predicted values. The regression line always passes through the centroids of both features (μx, μy). In Excel, parameters are verified using =SLOPE() and =INTERCEPT().

    Supervised Discrete Modeling

    2. Classification Paradigms & K-Nearest Neighbors (KNN)

    Binary

    2 class labels: Spam / Ham, Cancer / Normal, Pass / Fail.

    Multi-Class

    > 2 mutually exclusive classes: Iris flower species, digits 0–9.

    Multi-Label

    Instances belong to multiple classes (e.g. photo tags: apple + person).

    Imbalanced

    Highly skewed majority vs. minority distribution (e.g. fraud detection).

    Steps in the K-Nearest Neighbors (KNN) Algorithm:

    1. Select KKK: Choose the number of nearest neighbors (hyperparameter).
    2. Calculate Distance: Compute Euclidean distance from the query sample to all training points.
    3. Identify Neighbors: Select the KKK training instances with the smallest distances.
    4. Majority Vote: Count class frequencies among the KKK neighbors.
    5. Assign Class: Assign the candidate point to the class receiving the maximum vote.
    Unsupervised Pattern Discovery

    3. Clustering Methods & K-Means Algorithm

    1. Partitioning Clustering (K-Means)

    Divides data into KKK non-hierarchical groups around centroids minimizing within-cluster variance.

    2. Density-Based (DBSCAN)

    Connects contiguous dense areas into arbitrarily shaped clusters separated by sparse regions.

    3. Distribution-Based (GMM / EM)

    Clusters data points based on probability distributions (e.g. Gaussian Mixture Models).

    4. Hierarchical (Agglomerative)

    Constructs a tree-like dendrogram that can be cut at any desired level without pre-specifying KKK.

    The K-Means Clustering Algorithm Mechanics:

    • 1. Select KKK (number of clusters).
    • 2. Randomly place KKK centroids in the data space.
    • 3. Assign every data point to its closest centroid.
    • 4. Calculate the mean position of points in each cluster and update the centroid.
    • 5. Repeat reassignment and centroid recalculation until no points shift clusters (convergence).
    Board Exam Practice • 20 Questions

    Official Handbook MCQs & Answer Key

    Click any option to instantly see if you're correct with the official CBSE explanation.

    1

    Which of the following are recognized types of correlation in statistical analysis?

    2

    Which technique analyzes the relationship between dependent and independent variables to provide a predictive mechanism?

    3

    Which visual plot is ideal for testing the linear relationship between an independent and a dependent variable?

    4

    Which of the following scatter plot patterns represents a positive correlation?

    5

    Which regression technique is used when there is only ONE independent variable predicting the dependent variable?

    6

    What is one major advantage of Linear Regression analysis?

    7

    What is Supervised Learning in Artificial Intelligence?

    8

    Which type of classification involves categorizing data into exactly TWO distinct classes?

    9

    What is Logistic Regression commonly used for in machine learning?

    10

    What is the primary goal of classification algorithms in AI?

    11

    The K-Nearest Neighbors (KNN) algorithm assigns a class label to a new data point by considering:

    12

    What is Clustering in Machine Learning?

    13

    Which category of machine learning does Clustering belong to?

    14

    Which clustering technique connects contiguous high-density regions separated by sparser areas?

    15

    The K-Means clustering algorithm is a classic example of which clustering category?

    16

    Which clustering approach generates a tree-like dendrogram that can be cut at different levels?

    17

    What is a recognized limitation of the K-Means clustering algorithm?

    18

    Which clustering method allows a single data instance to belong to multiple clusters with degrees of membership?

    19

    In the K-Means algorithm, what must be pre-specified by the user before running the clustering process?

    20

    What are data points that deviate significantly from the overall dataset pattern called?

    Fast Revision Summary

    Unit 6 Quick Recall Cheat Sheet

    Pearson's r: Linear correlation metric between -1 and +1; 0 indicates no linear relationship.
    Linear Regression: Fits y = a + bx + e using Least Squares Method minimizing squared error residuals.
    KNN Classifier: Supervised classification picking the majority vote among K Euclidean nearest neighbors.
    K-Means: Unsupervised partitioning clustering grouping unlabeled instances around K iterative centroids.
    Clear Your Doubts

    Frequently Asked Questions (FAQ)

    Ace Your Machine Learning Exam • Subject 843

    Master Machine Learning Algorithms with 1:1 Live Tutoring

    Understand the mathematical proofs and Python implementation behind Linear Regression, KNN, and K-Means. Get personalized 1-on-1 coaching to build practical ML workflows and score top marks in Class 11 AI.