A few key points…
Last Updated on July 20, 2023 by Editorial Team
Author(s): Lawrence Alaso Krukrubo
Originally published on Towards AI.
Using matrix algebra…

Hello World, ever wondered how your favourite Machine Learning algorithms actually work? Let’s see how a Multiple Linear Regression(MLR) model computes the ideal parameters, given the features matrix (X) and target variable(y), using Linear Algebra.
X is an (m * n feature matrix) and y is an(m* 1 column vector)
Where:
m is the number of observations or rows in the data set
n is the number of attributes or variables selected for the prediction
X is the m * n feature matrix of independent variables
y is the target or dependent variable
I assume you know the basics of linear regression and can walk through the… Read the full blog for free on Medium.
Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming a sponsor.
Published via Towards AI
Towards AI Academy
We Build Enterprise-Grade AI. We'll Teach You to Master It Too.
15 engineers. 100,000+ students. Towards AI Academy teaches what actually survives production.
Start free — no commitment:
→ 6-Day Agentic AI Engineering Email Guide — one practical lesson per day
→ Agents Architecture Cheatsheet — 3 years of architecture decisions in 6 pages
Our courses:
→ AI Engineering Certification — 90+ lessons from project selection to deployed product. The most comprehensive practical LLM course out there.
→ Agent Engineering Course — Hands on with production agent architectures, memory, routing, and eval frameworks — built from real enterprise engagements.
→ AI for Work — Understand, evaluate, and apply AI for complex work tasks.
Note: Article content contains the views of the contributing authors and not Towards AI.