<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mathematical Foundations for Machine Learning on Arshad Siddiqui</title><link>https://arshadhs.github.io/categories/mathematical-foundations-for-machine-learning/</link><description>Recent content in Mathematical Foundations for Machine Learning on Arshad Siddiqui</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 28 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://arshadhs.github.io/categories/mathematical-foundations-for-machine-learning/index.xml" rel="self" type="application/rss+xml"/><item><title>Primal and Dual Perspective for Linear SVM</title><link>https://arshadhs.github.io/docs/ai/maths/010-linear-algebra/07-dimensionality-reduction/15-primal-dual-perspective-for-linear-svm/</link><pubDate>Thu, 28 May 2026 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/maths/010-linear-algebra/07-dimensionality-reduction/15-primal-dual-perspective-for-linear-svm/</guid><description>&lt;h1 id="primal-and-dual-perspective-for-linear-svm">
 Primal and Dual Perspective for Linear SVM
 
 &lt;a class="anchor" href="#primal-and-dual-perspective-for-linear-svm">#&lt;/a>
 
&lt;/h1>
&lt;p>A linear Support Vector Machine finds a hyperplane that separates two classes with the maximum possible margin.&lt;/p>
&lt;p>The primal view gives the direct geometric optimisation problem.
The dual view rewrites the problem using Lagrange multipliers and reveals why only support vectors matter.&lt;/p>
&lt;blockquote class="book-hint info">
&lt;p>&lt;strong>Key takeaway:&lt;/strong> Linear SVM maximises the margin by minimising
&lt;span>
( \frac{1}{2}|w|^2 )
&lt;/span>&lt;/p>
&lt;p>subject to correct-classification constraints.
The dual solution expresses
&lt;span>
( w )
&lt;/span>&lt;/p></description></item><item><title>Mathematical Preliminaries for SVM</title><link>https://arshadhs.github.io/docs/ai/maths/010-linear-algebra/07-dimensionality-reduction/14-mathematical-preliminaries-for-svm/</link><pubDate>Thu, 28 May 2026 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/maths/010-linear-algebra/07-dimensionality-reduction/14-mathematical-preliminaries-for-svm/</guid><description>&lt;h1 id="mathematical-preliminaries-for-svm">
 Mathematical Preliminaries for SVM
 
 &lt;a class="anchor" href="#mathematical-preliminaries-for-svm">#&lt;/a>
 
&lt;/h1>
&lt;p>Support Vector Machines use optimisation, geometry and kernels.
Before deriving SVM, we need constrained optimisation, Lagrange multipliers, primal and dual problems, KKT conditions, hyperplanes and kernel functions.&lt;/p>
&lt;blockquote class="book-hint info">
&lt;p>&lt;strong>Key takeaway:&lt;/strong> SVM is built on constrained optimisation.
The hard-margin SVM primal problem is a quadratic optimisation problem with linear inequality constraints.
The dual problem uses Lagrange multipliers and leads naturally to support vectors and kernels.&lt;/p></description></item><item><title>Nonlinear SVM</title><link>https://arshadhs.github.io/docs/ai/maths/010-linear-algebra/07-dimensionality-reduction/16-nonlinear-svm/</link><pubDate>Thu, 28 May 2026 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/maths/010-linear-algebra/07-dimensionality-reduction/16-nonlinear-svm/</guid><description>&lt;h1 id="nonlinear-svm">
 Nonlinear SVM
 
 &lt;a class="anchor" href="#nonlinear-svm">#&lt;/a>
 
&lt;/h1>
&lt;p>A linear SVM works well when the data can be separated by a straight line or hyperplane.
When the data is not linearly separable in the original input space, nonlinear SVM maps the data to a higher-dimensional feature space where a linear separator may exist.&lt;/p>
&lt;blockquote class="book-hint info">
&lt;p>&lt;strong>Key takeaway:&lt;/strong> Nonlinear SVM uses the kernel trick.
Instead of explicitly mapping
&lt;span>
( x )
&lt;/span>&lt;/p>
&lt;p>to
&lt;span>
( \phi(x) )
&lt;/span>&lt;/p>
&lt;p>, we compute inner products in the feature space using a kernel:&lt;/p></description></item></channel></rss>