Machine Learning
105602Module 2: Statistical Decision Theory and Bayesian Learning
1(c). Ridge regression primarily uses which penalty? (i) L0 (ii) L2 (iii) L1 (iv) Entropy20262m
Module 2: Statistical Decision Theory and Bayesian Learning
View this question on its own page →Ridge regression primarily uses which penalty? (i) L0 (ii) L2 (iii) L1 (iv) Entropy
Worked SolutionAnswer: (ii) L2
Ridge regression minimizes squared error plus an L2 penalty: (\sum_i(y_i-\hat y_i)^2 + \lambda\sum_j\beta_j^2). It shrinks coefficients toward zero but usually does not set them exactly to zero.
3(b). The following data shows the hours studied (X) and marks obtained (Y) by 6 students: X = 2, 3, 5, 6, 8, 9; Y = 50, 55, 65, 70, 80, 85. Find the regression equation of Y on X and predict the marks for a student who studies 7 hours.20267m
Module 2: Statistical Decision Theory and Bayesian Learning
View this question on its own page →The following data shows the hours studied (X) and marks obtained (Y) by 6 students: X = 2, 3, 5, 6, 8, 9; Y = 50, 55, 65, 70, 80, 85. Find the regression equation of Y on X and predict the marks for a student who studies 7 hours.
Worked SolutionRegression of marks on study hours
Data: (X=(2,3,5,6,8,9)), (Y=(50,55,65,70,80,85)). The points lie exactly on a straight line: every additional study hour corresponds to 5 additional marks.
The least-squares line is (\hat Y=a+bX), with slope (b=S_{xy}/S_{xx}=5) and intercept (a=\bar Y-b\bar X=40).
Regression equation: (\boxed{\hat Y=40+5X})
For (X=7): (\hat Y=40+5(7)=\boxed{75}) marks.
SVGVector Architecture Diagram (SVG)4(a). Explain Principal Component Analysis. Describe the steps involved in transforming the original features into principal components.20267m
Module 2: Statistical Decision Theory and Bayesian Learning
View this question on its own page →Explain Principal Component Analysis. Describe the steps involved in transforming the original features into principal components.
Worked SolutionPrincipal Component Analysis (PCA)
PCA is an unsupervised dimensionality-reduction technique that transforms correlated numeric features into orthogonal principal components, ordered by how much variance they explain.
Steps:
- Center each feature (and often standardize when scales differ).
- Compute the covariance or correlation matrix.
- Find eigenvalues and eigenvectors (or use SVD).
- Sort eigenvectors by decreasing eigenvalue.
- Select the first (k) components using explained variance.
- Project centered data onto the selected eigenvectors: (Z=X_cW_k).
The first component captures the greatest possible variance; each subsequent component captures the greatest remaining variance subject to orthogonality. PCA is sensitive to scaling and captures linear variance, not necessarily class separation.
MermaidDiagramRendering diagram…4(b). Explain Bayesian Learning in detail. Discuss Maximum Likelihood, Maximum A Posteriori and Bayes estimation, and explain the role of conjugate priors with suitable examples.20267m
Module 2: Statistical Decision Theory and Bayesian Learning
View this question on its own page →Explain Bayesian Learning in detail. Discuss Maximum Likelihood, Maximum A Posteriori and Bayes estimation, and explain the role of conjugate priors with suitable examples.
Worked SolutionBayesian learning: ML, MAP and Bayes estimates
Bayesian learning updates prior beliefs using observed data:
[P(\theta\mid D)=\frac{P(D\mid\theta)P(\theta)}{P(D)}]
- Maximum Likelihood (ML): choose (\hat\theta_{ML}=\arg\max_\theta P(D\mid\theta)); uses likelihood only.
- Maximum A Posteriori (MAP): choose (\hat\theta_{MAP}=\arg\max_\theta P(D\mid\theta)P(\theta)); combines likelihood and prior.
- Bayes estimate: a posterior summary (often posterior mean) minimizing a specified expected loss; it need not equal the MAP estimate.
- Conjugate prior: a prior whose posterior stays in the same distribution family, simplifying updates.
Example: for Bernoulli data with success probability (p), a Beta((\alpha,\beta)) prior is conjugate. After (s) successes and (f) failures, posterior is Beta((\alpha+s,\beta+f)). The posterior mean is ((\alpha+s)/(\alpha+\beta+s+f)). A prior can regularize estimates when data are scarce.
Q1(d). State Bayes theorem.20232m
Module 2: Statistical Decision Theory and Bayesian Learning
View this question on its own page →State Bayes theorem.
Q1(i). What is regression?20232m
Module 2: Statistical Decision Theory and Bayesian Learning
View this question on its own page →What is regression?
Q5(a). Explain about principal component analysis in detail.20237m
Module 2: Statistical Decision Theory and Bayesian Learning
View this question on its own page →Explain about principal component analysis in detail.
Q5(b). Explain about the least-squares method.20237m
Module 2: Statistical Decision Theory and Bayesian Learning
View this question on its own page →Explain about the least-squares method.