<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mustabin Neha</title>
    <description>The latest articles on DEV Community by Mustabin Neha (@mustabin_neha_).</description>
    <link>https://dev.to/mustabin_neha_</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4122450%2Ffaae65f5-dac9-4f72-8b2b-eb03bf809395.png</url>
      <title>DEV Community: Mustabin Neha</title>
      <link>https://dev.to/mustabin_neha_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mustabin_neha_"/>
    <language>en</language>
    <item>
      <title>Tech layoffs analysis: AI narrative vs cash runway</title>
      <dc:creator>Mustabin Neha</dc:creator>
      <pubDate>Sat, 19 Sep 2026 14:02:56 +0000</pubDate>
      <link>https://dev.to/mustabin_neha_/tech-layoffs-analysis-ai-narrative-vs-cash-runway-54k0</link>
      <guid>https://dev.to/mustabin_neha_/tech-layoffs-analysis-ai-narrative-vs-cash-runway-54k0</guid>
      <description>&lt;h1&gt;
  
  
  The AI Layoffs Story Doesn't Hold Up. The Data Says Something Older.
&lt;/h1&gt;

&lt;p&gt;Everyone is calling 2023 through 2026 the AI layoffs era. Four years of layoff data says something less flattering to the headline: the companies cutting the deepest weren't optimizing for AI. They were going out of business.&lt;/p&gt;

&lt;p&gt;I pulled the full history of tech layoffs from layoffs.fyi, over 4,000 events from 2020 to mid 2026, and ran the numbers to see whether the AI narrative actually explains the pattern, or whether it's just a convenient label for something the funding cycle has always done.&lt;/p&gt;

&lt;h2&gt;
  
  
  The companies cutting deepest aren't the ones you'd expect
&lt;/h2&gt;

&lt;p&gt;Filtered the data to companies that had raised significant capital, then sorted by how much of their workforce they cut. The top of that list isn't Meta, Google, or Salesforce making "efficiency" cuts. It's Britishvolt, Katerra, Lilium, Convoy, Cue Health, Vroom, Northvolt, Cruise, Gorillas.&lt;/p&gt;

&lt;p&gt;Every one of them cut 50 percent or more of their staff. Several cut 100 percent. That number means the company didn't restructure. It closed.&lt;/p&gt;

&lt;p&gt;None of the well known AI layoff headlines show up at this end of the data. The companies making the deepest cuts raised enormous rounds and then ran out of road entirely. That's not an AI story. That's the same venture failure story that's existed since long before anyone was framing headcount decisions around large language models.&lt;/p&gt;

&lt;h2&gt;
  
  
  Severity by funding stage barely moved after 2023
&lt;/h2&gt;

&lt;p&gt;If AI really triggered a new, harsher wave of layoffs, you'd expect the average size of a layoff to jump noticeably once the AI narrative took hold in coverage.&lt;/p&gt;

&lt;p&gt;It didn't, at least not consistently. Comparing average percentage of workforce cut before and after 2023 by funding stage:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Seed stage: dropped from 60 percent to 51 percent&lt;/li&gt;
&lt;li&gt;Acquired companies: dropped from 32 percent to 26 percent&lt;/li&gt;
&lt;li&gt;Post IPO companies: dropped slightly, from 16 percent to 14 percent&lt;/li&gt;
&lt;li&gt;Series A: rose from 33 percent to 38 percent&lt;/li&gt;
&lt;li&gt;Series C and D: ticked up a few points&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Some stages moved up, some moved down, none moved enough to look like a structural break. That's not what a genuine regime change looks like. It's what a normal, noisy funding cycle looks like when you zoom in close enough to see the variance.&lt;/p&gt;

&lt;h2&gt;
  
  
  The metric that broke, and what it revealed
&lt;/h2&gt;

&lt;p&gt;I also tested a more direct cash pressure measure: total employees laid off divided by total funds ever raised. The idea was simple. A company cutting deep relative to how little capital it had was showing real financial strain, not strategic repositioning.&lt;/p&gt;

&lt;p&gt;The top of that list was Microsoft, Cisco, Intel, and Google, each showing funds raised of under 30 million dollars against layoffs in the thousands.&lt;/p&gt;

&lt;p&gt;That number is wrong, and it's worth explaining why rather than hiding it. For public companies, this dataset's funds raised figure only captures pre IPO venture rounds. It has nothing to do with a company that has a market cap in the trillions. The metric isn't measuring cash pressure for these companies at all, it's measuring a number that stopped being relevant the day they went public.&lt;/p&gt;

&lt;p&gt;So the fix is the finding. This metric only means something for private, pre IPO companies still living off the capital they've raised. Once I restricted it that way, the picture matched the rest of the story: it's the small and mid stage companies burning through raised capital that show real financial distress, not the household names doing headline making cuts.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this actually says
&lt;/h2&gt;

&lt;p&gt;Put the three findings together and the AI layoffs narrative starts looking less like an explanation and more like a label applied after the fact. The most extreme layoffs in this dataset are companies that failed outright. The severity of cuts by funding stage hasn't shifted enough since 2023 to support a new era. And the one metric that looked like it proved a cash crisis story broke the moment it hit a public company, because it was never designed to measure one.&lt;/p&gt;

&lt;p&gt;The AI narrative is cheaper to write than "we raised too much and burned through it too fast." The data agrees with the second one.&lt;/p&gt;

&lt;p&gt;*Full analysis and code: &lt;a href="https://github.com/quantnoesis/Tech-Layoffs-AI-vs-Cash/tree/main" rel="noopener noreferrer"&gt;GitHub Link&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>layoff</category>
      <category>techtalks</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Credit Card Fraud Detection</title>
      <dc:creator>Mustabin Neha</dc:creator>
      <pubDate>Sat, 12 Sep 2026 19:42:22 +0000</pubDate>
      <link>https://dev.to/mustabin_neha_/credit-card-fraud-detection-1k9h</link>
      <guid>https://dev.to/mustabin_neha_/credit-card-fraud-detection-1k9h</guid>
      <description>&lt;h1&gt;
  
  
  What 284,807 Credit Card Transactions Taught Me About Fraud (And About Trusting My Own Charts)
&lt;/h1&gt;

&lt;p&gt;I've been building a data analytics portfolio that combines my finance and accounting background with hands on Python. My first project looked at ROE across the top 200 US companies. For this one, I wanted something with a bit more edge, so I picked a dataset that's practically a rite of passage in data science: the Kaggle Credit Card Fraud Detection dataset. Nearly 285,000 real, anonymized European transactions from September 2013, with fraud making up a tiny fraction of the total.&lt;/p&gt;

&lt;p&gt;I wasn't trying to build a model. I just wanted to understand the shape of fraud in the data, the way an auditor might poke at a ledger looking for anomalies. What I found along the way was a lesson that applies well beyond fraud detection: a chart can be technically correct and still lead you to the wrong conclusion if you don't check what's behind it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How rare is fraud, really?
&lt;/h2&gt;

&lt;p&gt;Out of 284,807 transactions, only 492 were fraudulent. That's 0.173 percent. Put another way, if you picked transactions at random, you'd need to look at almost 600 of them before expecting to see a single fraud case. This is the classic "needle in a haystack" problem that makes fraud detection genuinely hard: any method that just predicts "not fraud" every time would already be right 99.8 percent of the time, which tells you accuracy alone is a useless metric here.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fraud hides in small amounts
&lt;/h2&gt;

&lt;p&gt;I split the data into fraud and normal transactions and compared their amount distributions. Normal transactions span a huge range, some go past $25,000. Fraudulent transactions cluster tightly at the low end and basically disappear once you get into the thousands. In this dataset, fraud isn't going for the big score. It's staying small and easy to overlook, which is exactly the kind of behavior that slips past a distracted reviewer or a threshold-based alert set too high.&lt;/p&gt;

&lt;h2&gt;
  
  
  The chart that lied to me (a little)
&lt;/h2&gt;

&lt;p&gt;Here's where it got interesting. I broke the data down by hour of day and counted how many fraud cases showed up in each hour. Hour 2 and hour 11 stood out with the highest raw counts, around 57 and 53 cases respectively. My first instinct was to write that up as "fraud spikes at 2am and 11am."&lt;/p&gt;

&lt;p&gt;Then I paused. A raw count doesn't tell you if an hour is actually risky or if it just processes more transactions overall. An hour with 50,000 total transactions and 53 fraud cases is a very different story from an hour with 5,000 total transactions and the same 53 fraud cases. So I recalculated using the fraud rate per hour instead: fraud count divided by total transactions in that hour.&lt;/p&gt;

&lt;p&gt;The corrected picture was sharper and more honest. Hour 2 held up as a genuine hotspot, with a fraud rate of 1.71 percent, about 10 times the overall average. Hour 4 also stood out at 1.04 percent, roughly 6 times average. But hour 11, which looked like the second biggest spike in the raw count chart, dropped to a much quieter 0.31 percent once normalized. It was still slightly above average, but nowhere near as dramatic as the count chart made it look. Some of that raw spike was volume, not risk.&lt;/p&gt;

&lt;p&gt;This is the same trap I ran into on my last project with ROE. A ratio, a rate, or a count can look meaningful on its own, but it only means something once you check what's underneath it. In accounting terms, it's the equivalent of not trusting a margin number until you've looked at both the numerator and the denominator.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually predicts fraud in this data
&lt;/h2&gt;

&lt;p&gt;The dataset's 28 numeric features are anonymized (they've been through a PCA transformation, so we don't know what they represent in plain business terms), but a few of them clearly carry signal. Looking at correlation with the fraud label, three features stood out with the strongest negative correlation: low values on these features were the clearest indicator of fraud in the dataset. A smaller set of features showed a positive relationship, though weaker. Even without knowing what these features represent in the real world, this is a useful reminder that a handful of variables often carry most of the predictive weight, a pattern worth knowing before building anything more complex on top of a dataset like this.&lt;/p&gt;

&lt;h2&gt;
  
  
  The takeaway
&lt;/h2&gt;

&lt;p&gt;Rare event data is a genuinely different animal from the balanced spreadsheets many of us are used to in finance. It punishes lazy metrics and rewards checking your assumptions twice. My biggest takeaway from this project wasn't really about credit cards. It was a reminder that the first chart you make is a hypothesis, not a conclusion, and it's worth the extra five minutes to check whether what you're seeing is a real pattern or just a byproduct of the data's shape.&lt;/p&gt;

&lt;p&gt;The full notebook and code are on GitHub if you want to dig into the analysis yourself, or replicate it with a different rare-event dataset.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This is part of an ongoing series applying Python and data analysis to finance and accounting questions.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>data</category>
      <category>code</category>
      <category>fraud</category>
    </item>
    <item>
      <title>What ROE Doesn't Tell You</title>
      <dc:creator>Mustabin Neha</dc:creator>
      <pubDate>Sat, 12 Sep 2026 17:49:46 +0000</pubDate>
      <link>https://dev.to/mustabin_neha_/a-beginners-look-at-200-us-companies-financial-health-3ajk</link>
      <guid>https://dev.to/mustabin_neha_/a-beginners-look-at-200-us-companies-financial-health-3ajk</guid>
      <description>&lt;h1&gt;
  
  
  What ROE Doesn't Tell You: A Beginner's Look at 200 US Companies' Financial Health
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;My first Python data project, and what it taught me about reading ratios like an analyst, not a spreadsheet.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I Started Here
&lt;/h2&gt;

&lt;p&gt;I have a formal background in finance and accounting, but I'm brand new to Python. So instead of learning Python through generic tutorials, I decided to learn it by doing the kind of analysis I actually understand: financial statement ratios. I used a Kaggle dataset covering pre-calculated ratios ROE, current ratio, debt-to-equity, and more for the top 200 US companies, and worked through it in Google Colab.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step One: Just Look at the Data
&lt;/h2&gt;

&lt;p&gt;Before doing anything clever, I loaded the CSV with pandas and checked the basics: what columns existed, how many rows, what data types, and quick summary statistics (mean, min, max) across all the ratios. This is a habit worth keeping regardless of the tool you don't analyze what you haven't looked at first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ranking by ROE and a Reality Check
&lt;/h2&gt;

&lt;p&gt;Return on Equity (ROE) is one of the most commonly cited profitability metrics: it tells you how efficiently a company turns shareholder equity into profit. So naturally, my first move was to sort all 200 companies by ROE and see who came out on top.&lt;/p&gt;

&lt;p&gt;The answer: &lt;strong&gt;McKesson Corporation&lt;/strong&gt;, by a wide margin.&lt;/p&gt;

&lt;p&gt;If you don't know McKesson's story, this looks like a slam-dunk a company squeezing enormous returns out of shareholder capital. But here's where the accounting background matters more than the code: McKesson has spent years aggressively buying back its own stock, which shrinks shareholder equity sometimes down to very small or even negative levels. Since ROE is calculated as Net Income divided by Equity, a shrunken denominator can inflate the ratio dramatically, even when the underlying business performance hasn't changed all that much.&lt;/p&gt;

&lt;p&gt;In other words: &lt;strong&gt;a high ROE isn't automatically a sign of a great business it can just as easily be a sign of financial engineering.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Widening the Lens: Liquidity and Leverage
&lt;/h2&gt;

&lt;p&gt;To avoid over-indexing on one ratio, I pulled two more views:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Current Ratio&lt;/strong&gt; (short-term liquidity can a company cover its near-term obligations?)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Debt-to-Equity&lt;/strong&gt; (leverage how much debt is the company carrying relative to equity?)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Sorting by Current Ratio surfaced a completely different leaderboard from ROE &lt;strong&gt;NVIDIA, Activision Blizzard, Texas Instruments, Intuitive Surgical, Arista Networks, TransDigm Group, DexCom, Monster Beverage, Vertex Pharmaceuticals, and Zoetis&lt;/strong&gt; topped the list, all with current ratios well above 3 (NVIDIA highest at over 7). None of these were anywhere near the ROE top 10. That alone is worth sitting with: the "best" company depends entirely on which question you're asking. A company can be a poor ROE performer and still be extremely safe on liquidity, or vice versa profitability and short-term financial safety are simply answering different questions.&lt;/p&gt;

&lt;p&gt;Looking at these alongside ROE gives a much more honest picture than any single number in isolation. A company with a sky-high ROE but also very high debt-to-equity is telling a very different story than one with high ROE and conservative leverage even if the ROE figure looks identical on paper.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing the McKesson Theory Across All 200 Companies
&lt;/h2&gt;

&lt;p&gt;The McKesson observation raised a question: is this a one-off, or a pattern? To check, I plotted every company's ROE against its Debt-to-Equity ratio in a single scatter chart, rather than just looking at the top 10.&lt;/p&gt;

&lt;p&gt;The result: most of the 200 companies cluster tightly in the bottom-left corner of the chart low debt-to-equity, low-to-moderate ROE, no visible relationship between the two. But a handful of companies break sharply away from that cluster, sitting far to the right with debt-to-equity ratios in the thousands. The most extreme point on the entire chart debt-to-equity near 4,300 and ROE above 12 is almost certainly McKesson.&lt;/p&gt;

&lt;p&gt;So it's not a broad, systemic trend across all 200 companies most businesses don't show any strong link between leverage and ROE. But the few genuine outliers on the chart are exactly the companies worth double-checking before taking their ROE at face value, since extreme ROE and extreme leverage do show up together for them. McKesson isn't unique in kind, just the most extreme example of a small group.&lt;/p&gt;

&lt;p&gt;Either way, this is the more rigorous version of the same instinct: don't trust one ratio, and don't trust one company's story as proof of a pattern until you've checked it across the full dataset.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Takeaway
&lt;/h2&gt;

&lt;p&gt;The biggest lesson from this project wasn't a Python lesson it was a reminder that &lt;strong&gt;ratios are shorthand, not truth.&lt;/strong&gt; ROE, on its own, answers "how much profit relative to equity?" but says nothing about &lt;em&gt;why&lt;/em&gt; the equity is the size it is. The moment you pull in debt levels, buyback history, or industry context, the story can change completely.&lt;/p&gt;

&lt;p&gt;For anyone with a finance background moving into data work: this is exactly the kind of judgment that a model or a script can't replicate on its own knowing which number to be suspicious of, and why, is domain knowledge, not code.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;This was project one of an ongoing series where I'm using Python to explore different corners of finance next up: either rounding out this dataset further, or moving into a completely different area like credit risk, budgeting trends, or market data.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built with Python (pandas, matplotlib) in Google Colab. Dataset: "Financial Statement Data for Top 200 US Companies" via Kaggle.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>datascience</category>
      <category>finance</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
