PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches
|Home/Machine Learning/Other

Explain SVM kernels and complexity

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of Support Vector Machines, including support vectors and primal/dual formulations, the kernel trick and why Gram matrices must be positive semidefinite, computational scaling of linear versus kernel SVMs, and the roles of hyperparameters and their effects on imbalanced data.

  • hard
  • Other
  • Machine Learning
  • Data Scientist

Explain SVM kernels and complexity

Company: Other

Role: Data Scientist

Category: Machine Learning

Difficulty: hard

Interview Round: Onsite

Support Vector Machines: (a) Define support vectors and the primal/dual formulations. (b) Explain the kernel trick and why the kernel matrix must be positive semidefinite; give a condition under which a function is a valid kernel (Mercer). (c) State how training and inference complexity scale with number of samples n and features p for linear vs kernel SVMs. (d) Interpret the roles of C, γ (RBF), and degree (poly); propose a robust hyperparameter search plan on an imbalanced dataset.

Quick Answer: This question evaluates understanding of Support Vector Machines, including support vectors and primal/dual formulations, the kernel trick and why Gram matrices must be positive semidefinite, computational scaling of linear versus kernel SVMs, and the roles of hyperparameters and their effects on imbalanced data.

Related Interview Questions

  • Derive and regularize logistic regression - Other (hard)
  • Design anomaly detection and handle imbalanced logistic regression - Other (Medium)
  • Extract companies from noisy text - Other (hard)
  • Evaluate and select K in K-means - Other (medium)
  • Compare trees, RF, and gradient boosting - Other (medium)
Other logo
Other
Oct 13, 2025, 9:49 PM
Data Scientist
Onsite
Machine Learning
1
0
Loading...

Support Vector Machines – Core Concepts and Practice

You are interviewing for a Data Scientist role. Answer the following about Support Vector Machines (SVMs):

(a) Support vectors and primal/dual formulations

  • Define support vectors.
  • Write the soft-margin SVM primal and dual formulations and interpret key variables.

(b) Kernel trick and PSD requirement

  • Explain the kernel trick: what it does and how it is used in SVMs.
  • Explain why the kernel (Gram) matrix must be positive semidefinite (PSD).
  • State a condition under which a function is a valid kernel (Mercer condition).

(c) Computational scaling

  • State how training time, inference time, and memory scale with number of samples n and features p for:
    • Linear SVM
    • Kernel SVM (e.g., RBF, polynomial)

(d) Hyperparameters and robust search on imbalanced data

  • Interpret the roles of C, γ (RBF), and degree (polynomial).
  • Propose a robust hyperparameter search plan for an imbalanced dataset.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More Other•More Data Scientist•Other Data Scientist•Other Machine Learning•Data Scientist Machine Learning
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.