<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>OLS on Arshad Siddiqui</title><link>https://arshadhs.github.io/tags/ols/</link><description>Recent content in OLS on Arshad Siddiqui</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 21 Feb 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://arshadhs.github.io/tags/ols/index.xml" rel="self" type="application/rss+xml"/><item><title>Ordinary Least Squares</title><link>https://arshadhs.github.io/docs/ai/machine-learning/03-ordinary-least-squares/</link><pubDate>Sat, 21 Feb 2026 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/machine-learning/03-ordinary-least-squares/</guid><description>&lt;h1 id="direct-solution-method---ordinary-least-squares-and-the-line-of-best-fit">
 Direct solution method - Ordinary Least Squares and the Line of Best Fit
 
 &lt;a class="anchor" href="#direct-solution-method---ordinary-least-squares-and-the-line-of-best-fit">#&lt;/a>
 
&lt;/h1>
&lt;p>It is possible to compute the best parameters for linear regression &lt;strong>in one shot&lt;/strong> (closed-form),
instead of iteratively improving them step-by-step. fileciteturn34file10turn34file6&lt;/p>
&lt;p>For linear regression, the direct method is usually &lt;strong>Ordinary Least Squares (OLS)&lt;/strong>.&lt;/p>
&lt;p>Ordinary Least Squares (OLS) chooses the “best” line by &lt;strong>minimising squared prediction errors&lt;/strong>.&lt;/p>
&lt;blockquote class="book-hint info">
&lt;p>Key takeaway:
OLS defines “best fit” as the line that minimises the total squared residual error across all data points.&lt;/p></description></item><item><title>Cost Function</title><link>https://arshadhs.github.io/docs/ai/machine-learning/03-cost-function/</link><pubDate>Sat, 21 Feb 2026 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/machine-learning/03-cost-function/</guid><description>&lt;h1 id="cost-function">
 Cost Function
 
 &lt;a class="anchor" href="#cost-function">#&lt;/a>
 
&lt;/h1>
&lt;ul>
&lt;li>
&lt;p>also known as an objective function&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>how far the predicted values are from the actual ones&lt;/strong>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>measure of the difference between predicted values and actual values&lt;/p>
&lt;/li>
&lt;li>
&lt;p>quantifies the error between a model&amp;rsquo;s predicted values and actual values&lt;/p>
&lt;/li>
&lt;li>
&lt;p>measures the model’s error on a group of datapoints&lt;/p>
&lt;/li>
&lt;li>
&lt;p>method used to predict values by drawing the best-fit line through the data&lt;/p>
&lt;/li>
&lt;li>
&lt;p>used to evaluate the accuracy of a model’s predictions&lt;/p></description></item></channel></rss>