---
title: "Discussion on \"Negative R²?! How I Broke Regression in Python (and What It Taught Me About Statsmodels)\" | Hashnode"
description: "Discussion on \"Negative R²?! How I Broke Regression in Python (and What It Taught Me About Statsmodels)\". Learn why negative R² occurs in regression and how to handle it using Python's statsmodels library. Plus, understand pseudo R² in logistic regression"
url: "https://hashnode.com/posts/negative-rc2b2-how-i-broke-regression-in-python-and-what-it-taught-me-about-statsmodels-6728be553bea/694a2e8085c085794e313b34"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Negative R²?! How I Broke Regression in Python (and What It Taught Me About Statsmodels)](https://data-career-starters.hashnode.dev/negative-rc2b2-how-i-broke-regression-in-python-and-what-it-taught-me-about-statsmodels-6728be553bea?utm_source=hashnode&utm_medium=feed)

Learn why negative R² occurs in regression and how to handle it using Python's statsmodels library. Plus, understand pseudo R² in logistic regression

Dec 23, 2025 · 7 min read · data-career-starters.hashnode.dev  
Updated Feb 19  
Read the article

-   [#statistics](https://hashnode.com/tag/statistics)
-   [#linearregression](https://hashnode.com/tag/linearregression)
-   [#r2](https://hashnode.com/tag/r2)

## Written by

[Stat Hacks](https://hashnode.com/@stathacks)

@stathacks

  
[View profile](https://hashnode.com/@stathacks)

Simplifying Statistics and Data Science

Data Scientist (former Statistician) with a Psychology background. I create clear, practical content that makes statistics easy to understand.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
