Machine Learning

105602
Back to Machine Learning

Module 2: Statistical Decision Theory and Bayesian Learning

  1. 1(c). Ridge regression primarily uses which penalty? (i) L0 (ii) L2 (iii) L1 (iv) Entropy20262m

    Module 2: Statistical Decision Theory and Bayesian Learning

    Ridge regression primarily uses which penalty? (i) L0 (ii) L2 (iii) L1 (iv) Entropy

    View this question on its own page →
    Worked Solution

    Answer: (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.

  2. 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

    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.

    View this question on its own page →
    Worked Solution

    Regression 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)
    Study hours (X)Marks (Y)Y = 40 + 5X
  3. 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

    Explain Principal Component Analysis. Describe the steps involved in transforming the original features into principal components.

    View this question on its own page →
    Worked Solution

    Principal 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:

    1. Center each feature (and often standardize when scales differ).
    2. Compute the covariance or correlation matrix.
    3. Find eigenvalues and eigenvectors (or use SVD).
    4. Sort eigenvectors by decreasing eigenvalue.
    5. Select the first (k) components using explained variance.
    6. 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.

    MermaidDiagram
    Rendering diagram…
  4. 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

    Explain Bayesian Learning in detail. Discuss Maximum Likelihood, Maximum A Posteriori and Bayes estimation, and explain the role of conjugate priors with suitable examples.

    View this question on its own page →
    Worked Solution

    Bayesian 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.

  5. Q1(d). State Bayes theorem.20232m

    Module 2: Statistical Decision Theory and Bayesian Learning

    State Bayes theorem.

    View this question on its own page →
  6. Q1(i). What is regression?20232m

    Module 2: Statistical Decision Theory and Bayesian Learning

    What is regression?

    View this question on its own page →
  7. Q5(a). Explain about principal component analysis in detail.20237m

    Module 2: Statistical Decision Theory and Bayesian Learning

    Explain about principal component analysis in detail.

    View this question on its own page →
  8. Q5(b). Explain about the least-squares method.20237m

    Module 2: Statistical Decision Theory and Bayesian Learning

    Explain about the least-squares method.

    View this question on its own page →