<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bandwidth on Aayush Bajaj's Augmenting Infrastructure</title><link>https://abaj.ai/tags/bandwidth/</link><description>Recent content in Bandwidth on Aayush Bajaj's Augmenting Infrastructure</description><generator>Hugo</generator><language>en</language><copyright>© 2026 Aayush Bajaj</copyright><lastBuildDate>Fri, 10 Jul 2026 08:20:25 +1000</lastBuildDate><atom:link href="https://abaj.ai/tags/bandwidth/index.xml" rel="self" type="application/rss+xml"/><item><title>Locally Weighted Regression</title><link>https://abaj.ai/wiki/ml/supervised/regression/locally-weighted/</link><pubDate>Thu, 09 Jul 2026 21:02:56 +1000</pubDate><guid>https://abaj.ai/wiki/ml/supervised/regression/locally-weighted/</guid><description>&lt;p>a straight line is too rigid for a wiggly world, and a global degree-9 polynomial is a hostage negotiation.&lt;span class="margin-note" data-note="the third option — splines — is a different page&amp;#39;s problem.">
 &lt;span class="margin-note-indicator">𐃏&lt;/span>
&lt;/span>

locally weighted regression (LWR — and its robust cousin LOWESS) takes the diplomatic route: fit the simplest possible model, but fit it &lt;em>freshly at every query point&lt;/em>, paying attention only to the training points nearby.&lt;/p>
&lt;h2 id="motivation">motivation&lt;a href="#motivation" class="post-heading__anchor" aria-hidden="true">#&lt;/a>
&lt;/h2>
&lt;ul>
&lt;li>linear regression commits to one \(\theta\) for the whole input space. if the true \(f\) bends, the residue of that commitment is bias everywhere.&lt;/li>
&lt;li>the fix need not be a fancier global family. &lt;strong>any smooth function is locally linear&lt;/strong> — taylor says so — so a linear fit weighted toward a neighbourhood of \(x_0\) can track an arbitrary smooth \(f\).&lt;/li>
&lt;li>the price: there is no longer a &amp;ldquo;trained model&amp;rdquo;. LWR is &lt;strong>memory-based and non-parametric&lt;/strong> — like &lt;a
 href="https://abaj.ai/wiki/ml/supervised/classification/knn/"
 
 
>k-nearest neighbours&lt;/a>, it keeps the entire training set and does all of its work at prediction time. training is \(O(1)\); every query costs a fresh weighted least-squares solve.&lt;span class="margin-note" data-note="the classical name for this family is &amp;#39;lazy learning&amp;#39;, which is also a fair description of the author.">
 &lt;span class="margin-note-indicator">𐃏&lt;/span>
&lt;/span>
&lt;/li>
&lt;/ul>
&lt;h2 id="the-estimator">the estimator&lt;a href="#the-estimator" class="post-heading__anchor" aria-hidden="true">#&lt;/a>
&lt;/h2>
&lt;h3 id="weighted-least-squares-at-a-query-point">weighted least squares at a query point&lt;a href="#weighted-least-squares-at-a-query-point" class="post-heading__anchor" aria-hidden="true">#&lt;/a>
&lt;/h3>
&lt;p>fix a query \(x_0\). assign each training point a weight \(w_i(x_0) \ge 0\) that decays with distance from \(x_0\), then solve the weighted least-squares problem&lt;/p></description></item></channel></rss>