When I discovered this in my undergrad for the first time, I was excited for weeks together. Suddenly, many things made sense together. Calculus had been linear algebra all along.
Smooth functions are basically a list of its values at a bunch of its points (although infinitely many points to be accurate and capture the entire function). Differentiation is a linear transformation of smooth functions and hence is a matrix operating on functions as vectors.
Once you see this, you see that calculus was just linear algebra all along. If D is the matrix of differentiation, then :
Eigen vectors of D => exponential functions
Fourier Transform => diagonalisation of D
Solving a linear differential equations => narrowing down a basis of solutions
This was one of my first AHA moments that made me fall in love with math. Functional analysis is basically trying to extend linear algebra into infinite dimensions in a formal manner to make the handwavy arguments above precise.
Math and ML → Part 1: The Mathematical Foundation of Regularization
Regularization is one of the most crucial techniques in machine learning for preventing overfitting. But have you ever wondered why it actually works from a mathematical perspective?
The Problem: When a model overfits, it essentially memorizes the training data instead of learning the underlying patterns. This leads to excellent performance on training data but poor generalization to unseen test data.
The Mathematical Root Cause: Let's dive into the math
In ordinary linear regression (first equation), we estimate parameters (θ*) by solving a system of equations.
Here's where things get tricky:
When your feature matrix exhibits high multicollinearity (features are highly correlated), certain columns become linearly dependent on others. Mathematically, this drives the determinant of the matrix toward zero, making it singular or leaning more towards a singular matrix.
The problems? The inverse becomes unstable, leading to:
>Unreliable parameter estimates
>Extreme coefficient values
>Poor model generalization
And here's the reality: Multicollinearity isn't some edge case; it's incredibly common in real world datasets.
The Mathematical Solution: Regularization, look at the second equation. Notice how the regularization parameter (α) is added to the diagonal of the matrix?
By adding αI to X^T X, we're mathematically guaranteeing that the matrix remains invertible, regardless of multicollinearity in the original data.
Even when X^T X is singular, (X^T X + αI) is always invertible for α > 0.
This ensures:
>Stable parameter estimation
>Controlled coefficient magnitudes
>Better generalization to new data
This is Part 1 of my "Math & ML" series, where I'll bridge the gap between mathematical theory and practical machine learning.
I want to show you the "why" behind the algorithms, not just the "how."
If you found this insightful and want more content connecting mathematics to ML intuition, let me know in the comments!
Retweets appreciated to help others discover the mathematical beauty in ML!
thank you @claudeai and @GeminiApp , am making app or exe games of all these hard ML books and playing and learning :D
its really funny....
download a pdf -> make an exe game on it ->Play!!
Something very interesting that I read this weekend. Worth your time - https://t.co/f7vIiD6uu9
The author talk about the idea of "high agency" - an attitude/mindset that makes apparently impossible things possible.
A good elucidation of "क्षुद्रं हृदयदौर्बल्यं त्यक्त्वोत्तिष्ठ"
أبارك لإخواني الحكام وشعب دولة الإمارات والمقيمين على أرضها، عيد الاتحاد الخامس والخمسين، سائلاً المولى عز وجل أن يحفظ بلادنا ويديم عليها نعمة الأمن والعزة والازدهار. في هذا العام أثبتت الإمارات ما تتمتع به من قوة ومنعة وما يرتكز عليه نموذجها من أسس راسخة وتلاحم مجتمعي قوي إضافة إلى كفاءة مؤسساتها وجاهزيتها في التعامل مع مختلف التحديات. والحمد لله اليوم نقف على أرض صلبة، ونواصل جميعاً العمل من أجل مستقبل أكثر إشراقاً وتقدماً لبلدنا. وفي هذه المناسبة سعدت باللقاء مع عدد من مواليد 2 ديسمبر، احتفاءً بهذا التاريخ العزيز على قلوبنا والذي كان بداية لانطلاق مشروع حضاري وإنساني آمن بأن الإنسان غاية التنمية وركيزتها والاستثمار فيه أعظم استثمار في المستقبل.
أشكركم جميعاً فرداً فرداً، إماراتيين ومقيمين، على جهودكم وعطائكم، وعلى محبتكم الصادقة لهذه الأرض وفخركم بالانتماء إليها، الله يحفظكم ويحفظ الإمارات، وكل عام وأنتم ووطن زايد الخير بخير.
Probability is critical for AI. My new course at https://t.co/8zGsFiXRML covers parametric probability distributions including the Bernoulli, categorical, geometric, Poisson, beta, exponential, and normal distributions and shows how they are all members of the exponential family.
civilization, world edition 🌍 (playable)
you liked the maps, now play them: pick one of 199 countries with its real 2025 economy, people and army, and lead it to 2100.
all open data (World Bank, UN, NOAA, ESA).
i left Claude on it overnight, feedback welcome ✌️
https://t.co/s7sNM6aqEb
Euler, Gauss, Maxwell, etc. -- even Ramanujan and Galois -- didn't skip the foundations. Ramanujan self-studied thousands of theorems as a teenager. Galois had an intense period of mathematical upskilling before producing the original work that made him famous.
Major Sandeep Unnikrishnan: A Legacy of Courage and Sacrifice.
On November 26, 2008, Mumbai was shaken by a series of horrific terror attacks. Two days later, on November 28, Major Sandeep Unnikrishnan made the supreme sacrifice while leading an operation to rescue hostages and protect fellow citizens.
A proud son of Keralam, his extraordinary courage, selflessness, and devotion to duty remain etched in our national memory. His sacrifice reminds us of the extraordinary price our brave soldiers are willing to pay to protect the nation.
His courage will continue to inspire generations, and his sacrifice will never be forgotten. Heartfelt tributes to this brave son of Keralam on his martyrdom anniversary.
#MajorSandeepUnnikrishnan #MumbaiAttacks #VDSatheesan
I urge everyone interested in AI to watch these three thought-provoking lectures by @paulfchristiano, who lays out his case for the risk of an AI takeover.
@paulfchristiano is the co-inventor of RLHF and Director of the Alignment Research Center.
https://t.co/AhiqQiFx4q
Remember innocent lives lost & salute the brave security personnel who made the supreme sacrifice during 26/11 Mumbai terror attacks.
Committed to combating terrorism in all its forms & manifestations and bringing those involved to justice. Zero tolerance for terrorism.
#NeverForget
26/11 is a day when we remember the lives we lost, but also the many ordinary people who did extraordinary things.
Some helped strangers, some opened their doors, and some simply stayed and helped when they could have walked away.
Remembering these unsung heroes today. 🙏
Linear algebra builds AI. Then AI turns around and proves you can't do linear algebra faster than n^(9/4). Nothing says 'thank you' like pulling up the asymptotic ladder behind you.
I asked Claude to populate a Civilization-style game map with real data from the US. Opus 5.5 downloaded and parse a ton of public data and 7 hours and 45K lines of code later... it works :)
- 31 real data sources including Census, BEA, BLS, EIA, NOAA, USGS, DoD, NPS, FAA, FEMA, CDC...
- Real elevation, land cover, GDP, jobs, power plants, mines, ports, airports, bases, parks, universities, freight flows, disasters; all reconciled onto one 25 km hex grid.
- The data is converted into Civilization language, e.g. Gold yield is GDP. A city's districts are its real industry specializations: San Jose gets a Campus, Detroit is "Motor city". Its citizens are its real workforce: 1 in 4 San Jose workers are engineers, coders or scientists, against 1 in 14 nationally. Wonders are chosen by published rules, such as national parks by visitor numbers and universities by R&D spending, etc etc.
- 19 lenses (income, degrees, faith, disasters…), a City View for 524 metros, and nine advisors plus an Explorer. The Explorer turns any column for any of 3,100+ counties into a table and scatter plot, linked to the map.
- Claude decided to skip a few states and territories sry
- Built using Claude Code desktop app, Opus 5.5 on medium and turning on ultracode.
It's deployed here: https://t.co/QMhmafXMj5 and the "?" has the source link too. I don't exactly know where I was going with this but it's really fun to browse and play with. Possibly it can be expanded or built into a game. I only have half of my weekly Claude quote left though so someone else will have to take over :D. Claude also made a trailer:
I think something wonderful happened in the math community. For many years people were afraid to work on well-established problems like Riemann Hypothesis because they seemed completely out of reach. Now we are finally seeing mathematics being moved forward at an unprecedented scale. Many moonshots and completely bonkers ideas. Only good things can come out of this. Mathematics is not dead.
"The secret to success in life is consistent effort. Whether it's exercise or learning math or whatever the heck it is you're trying to do. You don't have to do the superhuman effort thing. Just get started and then make a consistent push every day." -- @exojason
This is the Keralam we are proud of.
Unforgettable views. Pure serenity. Nature at its finest.
I invite my fellow Indians and people from around the world to come and experience the beauty of our land.
@KeralaTourism#VisitKeralam#KeralaTourism#VDSatheesan