📊 Methodology Behind PYQ Frequency Analysis
The prioritized focus areas below are derived from an empirical review of SRM IST Semester 6 examinations (July 2024, July 2025 Supplementary, and December 2025 End-Semester). Topics are classified by occurrence weight across 2-mark conceptual questions and 15-mark comprehensive derivations. This statistical curriculum mapping is designed to structure revision priorities efficiently; it does not replace the complete academic syllabus.
Unit 1 • Foundational Concepts
Data Science Lifecycle & Exploratory Data Analysis
1.1 The Data Science Lifecycle
The standard data science pipeline progresses systematically through six interconnected stages: Problem Formulation, Data Ingestion, Data Preprocessing/Wrangling, Exploratory Data Analysis (EDA), Model Formulation & Training, and Model Deployment with Monitoring. Each stage feeds back into prior phases when diagnostic checks fail.
1.2 Missing Value Imputation Techniques
Data can be Missing Completely at Random (MCAR), Missing at Random (MAR), or Missing Not at Random (MNAR). For numerical variables with low skewness, mean imputation preserves the distribution mean but artificially suppresses variance. For skewed distributions, median imputation provides robust central tendency. For categorical variables, mode imputation or constant indicator encoding is standard. Advanced machine learning pipelines employ K-Nearest Neighbors (KNN) Imputation or Multivariate Imputation by Chained Equations (MICE) to model missing features conditionally on observed features.
1.3 Feature Scaling & Normalization
Algorithms calculating Euclidean distances (K-Means, KNN, SVM, Gradient Descent) require feature scaling to prevent features with larger physical units from dominating optimization.
Min-Max Scaling: x_scaled = (x - x_min) / (x_max - x_min) [Maps values to range [0, 1]]
Standardization: z = (x - μ) / σ [Produces mean = 0, standard deviation = 1]
🎯 High-Yield Exam Focus (Unit 1):
- Outlier Identification (1.5 × IQR Rule): Compute Interquartile Range IQR = Q3 - Q1. Mild outliers fall outside [Q1 - 1.5 × IQR, Q3 + 1.5 × IQR]. Extreme outliers fall outside [Q1 - 3 × IQR, Q3 + 3 × IQR].
- Structured vs. Semi-Structured vs. Unstructured Data: Distinguish tabular relational data from JSON key-value stores and raw unstructured text/audio corpora.
Unit 2 • Statistical Foundations
Probability Distributions & Statistical Hypothesis Testing
2.1 Parametric Probability Distributions
Continuous modeling relies fundamentally on the Gaussian (Normal) distribution N(μ, σ²), governed by the bell-shaped probability density function. The Central Limit Theorem (CLT) proves that the sampling distribution of the sample mean approaches normality as sample size n ≥ 30, regardless of the underlying population distribution.
2.2 Hypothesis Testing Framework
Hypothesis testing evaluates empirical data against a default assumption:
- Null Hypothesis (H0): Assumes zero effect, equality of parameters, or no relationship between populations.
- Alternative Hypothesis (Ha): Assumes a statistically significant difference or directional effect.
- Type I Error (α): Rejecting H0 when H0 is true (False Positive). Significance level α is conventionally set to 0.05 or 0.01.
- Type II Error (β): Failing to reject H0 when Ha is true (False Negative). Statistical Power is defined as 1 - β.
2.3 Selecting Statistical Test Criteria
Z-Test: Known population variance σ, large sample size n ≥ 30: z = (x̄ - μ) / (σ / √n)
t-Test: Unknown population variance, sample s, small n < 30: t = (x̄ - μ) / (s / √n), df = n - 1
ANOVA: Compares means across k > 2 groups: F = Mean Square Between / Mean Square Within
Chi-Square: Evaluates categorical independence: χ² = Σ (Observed - Expected)² / Expected
Unit 3 • Supervised Learning
Linear Regression, Logistic Regression & Decision Trees
3.1 Linear Regression (Ordinary Least Squares)
Linear regression models the relationship between dependent variable y and independent features X: ŷ = β0 + Σ βj xj. The OLS objective function minimizes the Residual Sum of Squares (RSS):
Cost Function J(β) = (1 / 2n) Σ (y_i - ŷ_i)² = (1 / 2n) ||y - Xβ||²
Normal Equation: β = (X^T X)^(-1) X^T y
L1 vs. L2 Regularization: Ridge regression adds an L2 penalty λ Σ βj², shrinking coefficients continuously to control multicollinearity. Lasso regression adds an L1 penalty λ Σ |βj|, driving uninformative feature weights to exact zero and performing intrinsic feature selection.
3.2 Logistic Regression & Decision Boundaries
Logistic regression models binary classification probabilities using the sigmoid activation function:
Sigmoid: P(y=1|x) = σ(z) = 1 / (1 + e^(-z)), where z = β_0 + β^T x
Log-Odds: ln( P / (1 - P) ) = β_0 + β_1 x_1 + ... + β_p x_p
Loss Function: Cross-Entropy = - [ y ln(ŷ) + (1 - y) ln(1 - ŷ) ]
📐 Worked Example 1: Decision Tree Split via Information Gain
Problem Statement: A target variable has 14 instances: 9 "Yes" and 5 "No". An attribute A partitions the dataset into Subset 1 (6 instances: 4 Yes, 2 No) and Subset 2 (8 instances: 5 Yes, 3 No). Calculate the Information Gain IG(S, A).
-
Step 1: Compute Parent Entropy H(S)
p+ = 9/14 ≈ 0.6429, p- = 5/14 ≈ 0.3571
H(S) = - [ p+ log2(p+) + p- log2(p-) ] = - [ 0.6429 × (-0.6374) + 0.3571 × (-1.4855) ]
H(S) = 0.4098 + 0.5305 = 0.9403 bits
-
Step 2: Compute Child Entropies
Subset 1 (S1, n=6): H(S1) = - [ (4/6) log2(4/6) + (2/6) log2(2/6) ] = - [ 0.6667(-0.585) + 0.3333(-1.585) ] = 0.9183 bits
Subset 2 (S2, n=8): H(S2) = - [ (5/8) log2(5/8) + (3/8) log2(3/8) ] = - [ 0.625(-0.678) + 0.375(-1.415) ] = 0.9544 bits
-
Step 3: Compute Expected Child Entropy
H(S, A) = (6/14) × H(S1) + (8/14) × H(S2) = (0.4286 × 0.9183) + (0.5714 × 0.9544) = 0.3936 + 0.5453 = 0.9389 bits
-
Step 4: Calculate Information Gain
IG(S, A) = H(S) - H(S, A) = 0.9403 - 0.9389 = 0.0014 bits
Interpretation: The split achieves negligible reduction in entropy; attribute A has weak discriminatory power on this dataset.
Unit 4 • Unsupervised Learning
K-Means Clustering & Principal Component Analysis (PCA)
4.1 K-Means Clustering Algorithm
K-Means partitions n observations into k non-overlapping clusters by minimizing the Within-Cluster Sum of Squares (WCSS, or inertia):
Objective: Minimize J = Σ_{j=1}^k Σ_{i ∈ C_j} ||x_i - μ_j||²
Algorithm:
1. Initialize k centroids randomly or via K-Means++ (probabilistic distance-weighted selection).
2. Assignment Step: Assign each sample x_i to the closest centroid μ_j: c_i = argmin_j ||x_i - μ_j||².
3. Update Step: Recalculate centroids as the arithmetic mean: μ_j = (1 / |C_j|) Σ_{i ∈ C_j} x_i.
4. Repeat until convergence: centroids move less than tolerance ε.
4.2 Principal Component Analysis (PCA)
PCA performs orthogonal linear transformation to project high-dimensional data onto lower-dimensional subspaces while maximizing variance:
- Mean-Center Data: Subtract feature means: X_centered = X - mean(X).
- Compute Covariance Matrix: Σ = (1 / (n - 1)) × X_centered^T × X_centered (dimension p × p).
- Eigen-Decomposition: Solve Σ v_i = λ_i v_i, yielding eigenvalues λ1 ≥ λ2 ≥ ... ≥ λp and eigenvectors v_i.
- Select Principal Components: Form projection matrix W from the eigenvectors corresponding to the top k eigenvalues.
- Explained Variance Ratio: The fraction of total variance explained by component j equals λj / Σ λi.
Unit 5 • Evaluation & Optimization
Model Performance Metrics & Validation Strategies
📐 Worked Example 2: Complete Confusion Matrix Metric Derivation
Problem Statement: A diagnostic classifier yields: True Positives (TP) = 85, False Positives (FP) = 15, False Negatives (FN) = 10, and True Negatives (TN) = 190. Calculate all key performance metrics.
- Total Population N: TP + FP + FN + TN = 85 + 15 + 10 + 190 = 300 instances.
- Accuracy: (TP + TN) / N = (85 + 190) / 300 = 275 / 300 = 91.67%
- Precision (Positive Predictive Value): TP / (TP + FP) = 85 / (85 + 15) = 85 / 100 = 85.00%
- Recall / Sensitivity (True Positive Rate): TP / (TP + FN) = 85 / (85 + 10) = 85 / 95 = 89.47%
- Specificity (True Negative Rate): TN / (TN + FP) = 190 / (190 + 15) = 190 / 205 = 92.68%
- F1-Score (Harmonic Mean): 2 × (Precision × Recall) / (Precision + Recall) = 2 × (0.85 × 0.8947) / (0.85 + 0.8947) = 2 × 0.7605 / 1.7447 = 0.8718 (87.18%)
5.2 Bias-Variance Decomposition
Expected generalization error on unseen test data decomposes into three distinct components:
Expected MSE = Bias²(f̂) + Variance(f̂) + σ²_irreducible
• High Bias (Underfitting): Model is overly simplistic (e.g. linear model on non-linear data). High training and test error.
• High Variance (Overfitting): Model fits training noise (e.g. deep unpruned decision trees). Low training error, high test error.
• Irreducible Error σ²: Inherent noise in the real-world measurement process that cannot be eliminated.
Academic Provenance & Verification Notice: This study guide is authored by peer student tutors and academic contributors for the SRM IST 18CSC303J / 21CSC303J curriculum. Formulations, derivations, and worked numericals are aligned with standard university reference works. For discrepancies or curriculum updates, submit queries via
Contact Us.