<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Vector Spaces on Arshad Siddiqui</title><link>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/</link><description>Recent content in Vector Spaces on Arshad Siddiqui</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/index.xml" rel="self" type="application/rss+xml"/><item><title>Basis and Rank</title><link>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/020-basis-and-rank/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/020-basis-and-rank/</guid><description>&lt;h1 id="basis-and-rank">
 Basis and Rank
 
 &lt;a class="anchor" href="#basis-and-rank">#&lt;/a>
 
&lt;/h1>
&lt;p>A &lt;strong>basis&lt;/strong> is a minimal set of linearly independent vectors that spans a space.&lt;/p>
&lt;p>The &lt;strong>dimension&lt;/strong> of a space is the number of vectors in a basis.&lt;/p>
&lt;blockquote class="book-hint info">
&lt;p>Key Idea:
Basis = independence + spanning.
Rank tells us how many independent directions exist in a matrix.&lt;/p>
&lt;/blockquote>
&lt;p>A basis must satisfy two conditions ⭐&lt;/p>
&lt;ol>
&lt;li>Vectors must be linearly independent&lt;/li>
&lt;li>Vectors must span the space&lt;/li>
&lt;/ol>
&lt;p>This means:&lt;/p>
&lt;ul>
&lt;li>No redundancy (independence)&lt;/li>
&lt;li>Full coverage (spanning)&lt;/li>
&lt;/ul>

&lt;span>
 \[ 
\text{Span}(v_1, v_2, \dots, v_k) = V
 \]
 &lt;/span>



&lt;span>
 \[ 
c_1 v_1 + \cdots + c_k v_k = 0 \Rightarrow c_i = 0
 \]
 &lt;/span>


&lt;hr>
&lt;h2 id="why-basis-matters">
 Why Basis Matters
 
 &lt;a class="anchor" href="#why-basis-matters">#&lt;/a>
 
&lt;/h2>
&lt;ul>
&lt;li>Represents space efficiently&lt;/li>
&lt;li>Removes redundancy&lt;/li>
&lt;li>Helps define coordinates&lt;/li>
&lt;li>Used in ML for feature representation&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h1 id="dimension">
 Dimension
 
 &lt;a class="anchor" href="#dimension">#&lt;/a>
 
&lt;/h1>
&lt;p>Dimension is the number of vectors in a basis.&lt;/p></description></item><item><title>Linear Independence</title><link>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/010-linear-independence/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/010-linear-independence/</guid><description>&lt;h1 id="linear-independence">
 Linear Independence
 
 &lt;a class="anchor" href="#linear-independence">#&lt;/a>
 
&lt;/h1>
&lt;p>A set of vectors is &lt;strong>linearly independent&lt;/strong> if none of them can be written as a linear combination of the others.&lt;/p>

&lt;span style="color: green;">
 &lt;span>
 \[ 
c_1\mathbf{v}_1 + \cdots + c_k\mathbf{v}_k = \mathbf{0}
\;\Rightarrow\;
c_1=\cdots=c_k=0
 \]
 &lt;/span>

&lt;/span>
&lt;p>Independence means each vector adds &lt;strong>new information&lt;/strong>.&lt;/p>
&lt;h2 id="why-it-matters">
 Why it matters
 
 &lt;a class="anchor" href="#why-it-matters">#&lt;/a>
 
&lt;/h2>
&lt;ul>
&lt;li>Detects redundancy&lt;/li>
&lt;li>Connects to rank and basis&lt;/li>
&lt;/ul>
&lt;p>If one vector can already be formed using others, it does not add anything new.&lt;/p></description></item><item><title>Norm</title><link>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/030-norm/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/030-norm/</guid><description>&lt;h1 id="norm">
 Norm
 
 &lt;a class="anchor" href="#norm">#&lt;/a>
 
&lt;/h1>
&lt;p>A &lt;strong>norm&lt;/strong> measures the length (magnitude) of a vector.&lt;/p>
&lt;ul>
&lt;li>the norm of a vector x measures the distance from the origin to the point x.&lt;/li>
&lt;/ul>
&lt;p>Common example: Euclidean norm.&lt;/p>

&lt;span>
 \[ 
\lVert \mathbf{x} \rVert_2 = \sqrt{x_1^2 + \cdots + x_n^2}
 \]
 &lt;/span>


&lt;blockquote class="book-hint info">
&lt;p>Key Idea:
Norm = measure of size or length of a vector.
It generalises the idea of distance in geometry to higher dimensions.&lt;/p>
&lt;/blockquote>
&lt;hr>
&lt;h2 id="common-norms">
 Common norms
 
 &lt;a class="anchor" href="#common-norms">#&lt;/a>
 
&lt;/h2>
&lt;ul>
&lt;li>L1&lt;/li>
&lt;li>L2&lt;/li>
&lt;li>Infinity norm&lt;/li>
&lt;/ul>
&lt;h2 id="why-it-matters">
 Why it matters
 
 &lt;a class="anchor" href="#why-it-matters">#&lt;/a>
 
&lt;/h2>
&lt;ul>
&lt;li>norms quantify size&lt;/li>
&lt;li>are used in distances and regularisation.&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h1 id="intuition-from-lectures">
 Intuition (From Lectures)
 
 &lt;a class="anchor" href="#intuition-from-lectures">#&lt;/a>
 
&lt;/h1>
&lt;p>From lecture discussions on analytic geometry:&lt;/p></description></item><item><title>Inner Products and Dot Product</title><link>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/040-inner-products/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/040-inner-products/</guid><description>&lt;h1 id="inner-products-and-dot-product">
 Inner Products and Dot Product
 
 &lt;a class="anchor" href="#inner-products-and-dot-product">#&lt;/a>
 
&lt;/h1>
&lt;p>An &lt;strong>inner product&lt;/strong> maps two vectors to a &lt;strong>single scalar&lt;/strong>.&lt;/p>
&lt;p>It allows us to measure:&lt;/p>
&lt;ul>
&lt;li>similarity&lt;/li>
&lt;li>vector length&lt;/li>
&lt;li>projections&lt;/li>
&lt;li>orthogonality&lt;/li>
&lt;/ul>


&lt;script src="https://arshadhs.github.io/mermaid.min.js">&lt;/script>

 &lt;script>mermaid.initialize({
 "flowchart": {
 "useMaxWidth":true
 },
 "theme": "default"
}
)&lt;/script>




&lt;pre class="mermaid">
flowchart TD
T[&amp;#34;Inner&amp;lt;br/&amp;gt;products&amp;lt;br/&amp;gt;(types)&amp;#34;] --&amp;gt; DOT[&amp;#34;Euclidean&amp;lt;br/&amp;gt;Dot product&amp;#34;]
T --&amp;gt; WIP[&amp;#34;Weighted&amp;lt;br/&amp;gt;inner product&amp;#34;]
T --&amp;gt; FN[&amp;#34;Function-space&amp;lt;br/&amp;gt;(integral)&amp;#34;]
T --&amp;gt; HERM[&amp;#34;Complex&amp;lt;br/&amp;gt;Hermitian&amp;#34;]
T --&amp;gt; MAT[&amp;#34;Matrix&amp;lt;br/&amp;gt;inner product&amp;lt;br/&amp;gt;(Frobenius)&amp;#34;]

DOT --&amp;gt; Rn[&amp;#34;Vectors in&amp;lt;br/&amp;gt;
&amp;lt;span&amp;gt;
 \( \mathbb{R}^n \)
 &amp;lt;/span&amp;gt;

&amp;#34;]
WIP --&amp;gt; SPD[&amp;#34;SPD matrix&amp;lt;br/&amp;gt;W&amp;#34;]
FN --&amp;gt; L2[&amp;#34;L2 space&amp;lt;br/&amp;gt;functions&amp;#34;]
HERM --&amp;gt; Cn[&amp;#34;Vectors in&amp;lt;br/&amp;gt;C^n&amp;#34;]
MAT --&amp;gt; Mnm[&amp;#34;Matrices&amp;lt;br/&amp;gt;R^{m×n}&amp;#34;]

style T fill:#90CAF9,stroke:#1E88E5,color:#000

style DOT fill:#C8E6C9,stroke:#2E7D32,color:#000
style WIP fill:#C8E6C9,stroke:#2E7D32,color:#000
style FN fill:#C8E6C9,stroke:#2E7D32,color:#000
style HERM fill:#C8E6C9,stroke:#2E7D32,color:#000
style MAT fill:#C8E6C9,stroke:#2E7D32,color:#000

style Rn fill:#CE93D8,stroke:#8E24AA,color:#000
style SPD fill:#CE93D8,stroke:#8E24AA,color:#000
style L2 fill:#CE93D8,stroke:#8E24AA,color:#000
style Cn fill:#CE93D8,stroke:#8E24AA,color:#000
style Mnm fill:#CE93D8,stroke:#8E24AA,color:#000
&lt;/pre>

&lt;hr>
&lt;h2 id="definition">
 Definition
 
 &lt;a class="anchor" href="#definition">#&lt;/a>
 
&lt;/h2>
&lt;p>For vectors&lt;br>

&lt;span>
 \( \mathbf{a}, \mathbf{b} \in \mathbb{R}^n \)
 &lt;/span>

&lt;/p></description></item><item><title>Lengths and Distances</title><link>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/050-lengths-and-distances/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/050-lengths-and-distances/</guid><description>&lt;h1 id="lengths-and-distances">
 Lengths and Distances
 
 &lt;a class="anchor" href="#lengths-and-distances">#&lt;/a>
 
&lt;/h1>
&lt;p>The &lt;strong>length&lt;/strong> of a vector is given by its norm.&lt;/p>
&lt;p>The &lt;strong>distance&lt;/strong> between two points (vectors) is the norm of their difference.&lt;/p>
&lt;p>Distance quantifies &lt;strong>how far two vectors (data points) are&lt;/strong> from each other.&lt;/p>

&lt;span>
 \[ 
d(\mathbf{x},\mathbf{y}) = \lVert \mathbf{x} - \mathbf{y} \rVert
 \]
 &lt;/span>


&lt;blockquote class="book-hint info">
&lt;p>Key Idea:
Length measures size of a single vector.
Distance measures separation between two vectors.
Distance = norm applied to difference.&lt;/p></description></item><item><title>Angles and Orthogonality</title><link>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/060-angles-and-orthogonality/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/060-angles-and-orthogonality/</guid><description>&lt;h1 id="angles-and-orthogonality">
 Angles and Orthogonality
 
 &lt;a class="anchor" href="#angles-and-orthogonality">#&lt;/a>
 
&lt;/h1>
&lt;p>Once we define an inner product, we can define the &lt;strong>angle between two vectors&lt;/strong>.&lt;/p>
&lt;p>Angles allow us to measure how aligned or different two vectors are in space.&lt;/p>
&lt;blockquote class="book-hint info">
&lt;p>Key Idea:
Angle measures similarity between vectors.
Orthogonality means complete independence (no similarity).&lt;/p>
&lt;/blockquote>
&lt;h2 id="why-it-matters-in-machine-learning">
 Why It Matters in Machine Learning
 
 &lt;a class="anchor" href="#why-it-matters-in-machine-learning">#&lt;/a>
 
&lt;/h2>
&lt;ul>
&lt;li>PCA produces orthogonal components&lt;/li>
&lt;li>Orthogonal features reduce redundancy&lt;/li>
&lt;li>Gradient directions depend on angle&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h1 id="angle-formula">
 Angle Formula
 
 &lt;a class="anchor" href="#angle-formula">#&lt;/a>
 
&lt;/h1>
&lt;p>For vectors in n-dimensional space:&lt;/p></description></item><item><title>Orthonormal Basis</title><link>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/070-orthonormal-basis/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/070-orthonormal-basis/</guid><description>&lt;h1 id="orthonormal-basis">
 Orthonormal Basis
 
 &lt;a class="anchor" href="#orthonormal-basis">#&lt;/a>
 
&lt;/h1>
&lt;p>A basis is &lt;strong>orthonormal&lt;/strong> if its vectors are:&lt;/p>
&lt;ul>
&lt;li>orthogonal to each other&lt;/li>
&lt;li>each has unit length&lt;/li>
&lt;/ul>

&lt;span>
 \[ 
\langle \mathbf{e}_i, \mathbf{e}_j \rangle =
\begin{cases}
1 &amp; i=j \\
0 &amp; i\ne j
\end{cases}
 \]
 &lt;/span>


&lt;blockquote class="book-hint info">
&lt;p>Key Idea:
Orthonormal basis = perfectly independent + perfectly scaled.
This makes computations extremely simple and stable.&lt;/p>
&lt;/blockquote>
&lt;p>Why it matters: orthonormal bases make projections and computations simple.&lt;/p>
&lt;hr>
&lt;h1 id="intuition-from-lectures">
 Intuition (From Lectures)
 
 &lt;a class="anchor" href="#intuition-from-lectures">#&lt;/a>
 
&lt;/h1>
&lt;p>From analytic geometry and vector space lectures:&lt;/p></description></item><item><title>Feature Space</title><link>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/feature-space/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/feature-space/</guid><description>&lt;h1 id="feature">
 Feature
 
 &lt;a class="anchor" href="#feature">#&lt;/a>
 
&lt;/h1>
&lt;p>A &lt;strong>feature&lt;/strong> is an individual measurable property or characteristic of a data point used as input to a machine learning model.&lt;/p>
&lt;p>Each feature corresponds to &lt;strong>one dimension&lt;/strong>.&lt;/p>

&lt;link rel="stylesheet" href="https://arshadhs.github.io/katex/katex.min.css" />
&lt;script defer src="https://arshadhs.github.io/katex/katex.min.js">&lt;/script>

 &lt;script defer src="https://arshadhs.github.io/katex/auto-render.min.js" onload="renderMathInElement(document.body, {
 &amp;#34;delimiters&amp;#34;: [
 {&amp;#34;left&amp;#34;: &amp;#34;$$&amp;#34;, &amp;#34;right&amp;#34;: &amp;#34;$$&amp;#34;, &amp;#34;display&amp;#34;: true},
 {&amp;#34;left&amp;#34;: &amp;#34;$&amp;#34;, &amp;#34;right&amp;#34;: &amp;#34;$&amp;#34;, &amp;#34;display&amp;#34;: false},
 {&amp;#34;left&amp;#34;: &amp;#34;\\(&amp;#34;, &amp;#34;right&amp;#34;: &amp;#34;\\)&amp;#34;, &amp;#34;display&amp;#34;: false},
 {&amp;#34;left&amp;#34;: &amp;#34;\\[&amp;#34;, &amp;#34;right&amp;#34;: &amp;#34;\\]&amp;#34;, &amp;#34;display&amp;#34;: true}
 ]
});">&lt;/script>

&lt;span>
 \[ 
x_i \in \mathbb{R}
 \]
 &lt;/span>


&lt;p>A data point with ( d ) features is represented as:&lt;/p></description></item><item><title>Cauchy–Schwarz</title><link>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/cauchyschwarz/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/010-maths/010-linear-algebra/02-vector-spaces/cauchyschwarz/</guid><description>&lt;h1 id="cauchyschwarz-inequality">
 Cauchy–Schwarz Inequality
 
 &lt;a class="anchor" href="#cauchyschwarz-inequality">#&lt;/a>
 
&lt;/h1>
&lt;p>The &lt;strong>Cauchy–Schwarz Inequality&lt;/strong> is one of the most important results in linear algebra.&lt;/p>
&lt;p>It places a fundamental bound on the inner product of two vectors.&lt;/p>
&lt;blockquote class="book-hint info">
&lt;p>If you see &lt;strong>angle&lt;/strong>, &lt;strong>cosine&lt;/strong>, &lt;strong>similarity&lt;/strong>, or &lt;strong>inner product bounds&lt;/strong>&lt;br>
→ think &lt;strong>Cauchy–Schwarz Inequality&lt;/strong>&lt;/p>
&lt;p>Key Idea:
The inner product (dot product) can never exceed the product of magnitudes.
This ensures all geometric interpretations (angles, cosine) are valid.&lt;/p>
&lt;/blockquote>
&lt;hr>
&lt;h2 id="statement-of-the-inequality">
 Statement of the Inequality
 
 &lt;a class="anchor" href="#statement-of-the-inequality">#&lt;/a>
 
&lt;/h2>
&lt;p>For any vectors:&lt;/p></description></item></channel></rss>