Shyam Gupta: Home Page

Linear Functions


Linear functions have two properties of Additivity and Homogeneity:

$f(x+y) = f(x) + f(y)$

$f(\alpha x) = \alpha f(x)$, where $\alpha$ is a scalar.

System of Linear Equations


Let’s say we want to predict the power output of a wind turbine. We’ve collected data for the following:

When we plot the dataset, below is how it looks:

2025-03-31 at 14.36.01@2x.jpg

We can see that the data points fit across a line: the goal of Linear Regression is to find the line for the best fit for the above data points.

2025-03-31 at 14.39.53@2x.jpg

Linear Regression assumes that the relation between input (wind speed) and output (power output) is linear (i.e. can be modeled by a straight line), and treats the dataset as a system of linear equations. Its goal is to find the values of $(m,b)$.

In Machine Learning, a straight line is generally written as:

<aside> 💡

$y = wx + b$, where $w$ is the weight and $b$ is the bias term.

</aside>