
Lead Data Scientist @Apple . Learning, coding, sharing. One post at a time. Data | AI | ML | Quant
India
Joined April 2025
- Tweets1.5K
- Following76
- Followers138
- Likes109K
Slot machines: Pull lever, pray for cherries to align, lose money 99% of time.
Vibe coding: Smash keys, pray for code to align, lose sanity 99% of time.
Both: Addictive gambling where the house (entropy) always wins. 🎰💻
1
4
109
LLMs didn’t just change coding, they killed Agile.
Here’s why your stand-ups, story points and gantt charts don’t matter anymore.
Business leaders have seen what AI can do:
✅ Idea today
✅ Feature tomorrow
No one wants to wait for sprint reviews, backlogs or planning anymore.
Agile ceremonies made sense when humans wrote every line of code.
But now? AI ships faster than your team can estimate story points.
The new reality:
> No project estimations
> No endless alignment meetings
> No JIRA fields that add zero value
Just: ‘Build this.’ And it’s live tomorrow.
Speed > Perfection. That’s the new game.
2
73
Telling a kid "you're smart" is like handing them a glass crown.
It looks pretty, but it shatters under pressure.
Celebrate their effort, their hustle, their courage to fail. That’s how you build a kid who conquers.
1
57
When you know you've cracked the final round of interview and sit in front of the screen waiting for the email from HR.
Here's me thinking I'm being underpaid and then there are companies saying that they can't afford me. 😢
2
135
Naive Bayes is one of the most elegant and deceptively simple classification algorithms. This thread will explain its statistical foundations, practicality, and extensions.
🧵👇
nitter.cf/shreycapital/status/19…
🧵Naive Bayes for Classification
Don’t let the word “naive” fool you.
It is fast, simple, and surprisingly effective when you need quick, probabilistic classification.
Let’s break it down:
📌 What is Naive Bayes?
📌 Why exact Bayes is hard
📌 The naive trick
📌 What about numeric features?
2
161
🧵Naive Bayes for Classification
Don’t let the word “naive” fool you.
It is fast, simple, and surprisingly effective when you need quick, probabilistic classification.
Let’s break it down:
📌 What is Naive Bayes?
📌 Why exact Bayes is hard
📌 The naive trick
📌 What about numeric features?
Polynomial and Spline regression bridges the gap between linear models and non-linear flexibility. A thread 🧵👇
nitter.cf/shreycapital/status/19…
🧵 Polynomial & Spline Regression + GAMs – Modelling Nonlinear Relationships the Smart Way
Real-world data often bends, curves and twists.
How do we capture that nonlinearity without losing interpretability?
Let’s dive into:
> Polynomial Regression
> Splines
> Generalised Additive Models (GAMs)
1
99
🧵 Polynomial & Spline Regression + GAMs – Modelling Nonlinear Relationships the Smart Way
Real-world data often bends, curves and twists.
How do we capture that nonlinearity without losing interpretability?
Let’s dive into:
> Polynomial Regression
> Splines
> Generalised Additive Models (GAMs)
Regression Diagnostics is where we stop trusting the summary table and start asking:
"Can I trust this model?"
This thread will explain what to check after fitting a regression, why it matters, and how to interpret visual and statistical red flags.👇
nitter.cf/shreycapital/status/19…
🧵Regression Diagnostics – How to Know If Your Model Is Lying
Your regression ran.
You got an R².
You checked the p-values.
But wait…
Did you check if the assumptions are holding?
Let’s talk about:
📍 Outliers & influential points
📍 Heteroskedasticity
📍 Non-normality
📍 Correlated errors
📍 Partial residuals & nonlinearity
🧵Regression Diagnostics – How to Know If Your Model Is Lying
Your regression ran.
You got an R².
You checked the p-values.
But wait…
Did you check if the assumptions are holding?
Let’s talk about:
📍 Outliers & influential points
📍 Heteroskedasticity
📍 Non-normality
📍 Correlated errors
📍 Partial residuals & nonlinearity
Moving from fitting lines to thinking deeply about what those lines mean. Misinterpreting regression coefficients, especially with correlated predictors, is one of the most common mistakes.
A thread on Interpreting the Regression Equation 👇
nitter.cf/shreycapital/status/19…
🧵 Interpreting the Regression Equation - Beyond the Coefficients
You’ve run the regression.
You’ve got the equation.
But do you really know what the coefficients mean?
Let’s talk:
✅ Correlated predictors
✅ Confounding variables
✅ Main effects vs. interactions
👇
1
5
204
Factor (categorical) variables in regression are often overlooked. Many get stuck on dummy variable encoding, interpreting coefficients and what to do when categories explode in size or are ordinal. A thread on Factor Variables in Regression 👇🏻
nitter.cf/shreycapital/status/19…
🧵Factor Variables in Regression: Everything You Need to Know
Regression loves numbers. But the real world? Full of categories.
How do we include:
✅ Gender, region, product type
✅ Education level (ordered)
✅ Or 100+ categories?
Let’s dive in 👇
#Regression #MachineLearning
🧵 Interpreting the Regression Equation - Beyond the Coefficients
You’ve run the regression.
You’ve got the equation.
But do you really know what the coefficients mean?
Let’s talk:
✅ Correlated predictors
✅ Confounding variables
✅ Main effects vs. interactions
👇
🧵Factor Variables in Regression: Everything You Need to Know
Regression loves numbers. But the real world? Full of categories.
How do we include:
✅ Gender, region, product type
✅ Education level (ordered)
✅ Or 100+ categories?
Let’s dive in 👇
#Regression #MachineLearning
An essential topic for practitioners, Regression is often used for prediction. A thread on Prediction Using Regression, covering extrapolation dangers, confidence intervals, and prediction intervals 👇🏻
nitter.cf/shreycapital/status/19…
🧵 Prediction Using Regression: What You Need to Know (but Most People Don’t)
Regression is a powerful tool for prediction but also easy to misuse, especially when:
> You extrapolate
> You ignore uncertainty
> You confuse confidence and prediction intervals
Let’s dive in 👇🏻
Exception handling is not just try/except.
In real-world Python apps, error handling is architecture.
✅ Custom exceptions
🔗 Exception chaining
🧼 Graceful fallback logic
Let’s go beyond basics and handle errors like a pro 🧵👇



