<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/linear-regression-what-why-how--97vtp10nb" -->

---
title: Linear Regression-What, Why &amp; How? | daily.dev
description: Linear regression is a statistical method used to understand the relationship between variables and make predictions. It has assumptions about linearity,...
canonical: https://daily.dev/posts/linear-regression-what-why-how--97vtp10nb
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Linear Regression-What, Why &amp; How? | daily.dev
og:description: Linear regression is a statistical method used to understand the relationship between variables and make predictions. It has assumptions about linearity,...
og:url: https://daily.dev/posts/linear-regression-what-why-how--97vtp10nb
og:image: https://api.daily.dev/og/posts/97vTP10nb.png
og:image:alt: Linear Regression-What, Why &amp; How?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Linear Regression-What, Why & How?

**[GoPenAI](https://daily.dev/sources/gopenai)** · 2 min read · 7 upvotes · 0 comments

## Summary

Linear regression is a statistical method used to understand the relationship between variables and make predictions. It has assumptions about linearity, independence, homoscedasticity, normality of residuals, no multicollinearity, and no influential outliers. It is popular due to its simplicity, interpretability, and usefulness for modeling continuous outcomes. The algorithm involves calculating coefficients using mathematical equations and can be extended to multiple dimensions using matrix notation. Regularization techniques like L1 and L2 can be used to prevent overfitting. R2 score is a metric used to assess the model's fit to the data.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.gopenai.com/linear-regression-what-why-how-85c2e2d8cd2c>

---

Tags: [#machine-learning](https://daily.dev/tags/machine-learning), [#data-analysis](https://daily.dev/tags/data-analysis), [#math](https://daily.dev/tags/math), [#statistics](https://daily.dev/tags/statistics), [#linear-regression](https://daily.dev/tags/linear-regression)

[View this post on daily.dev](https://daily.dev/posts/linear-regression-what-why-how--97vtp10nb)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Linear Regression-What, Why & How?","url":"https://daily.dev/posts/linear-regression-what-why-how--97vtp10nb","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/linear-regression-what-why-how--97vtp10nb"},"datePublished":"2024-04-30T15:49:48.831Z","dateModified":"2024-05-09T07:52:51.999Z","description":"Linear regression is a statistical method used to understand the relationship between variables and make predictions. It has assumptions about linearity,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b7544f9c21f275b70b4190843be3691c?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b7544f9c21f275b70b4190843be3691c?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"GoPenAI","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"GoPenAI","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f34dfd0c312c4a59b897eb64ad28d895","url":"https://daily.dev/sources/gopenai"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/linear-regression-what-why-how--97vtp10nb","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":7},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"machine-learning,data-analysis,math,statistics,linear-regression","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"GoPenAI","item":"https://daily.dev/sources/gopenai"},{"@type":"ListItem","position":3,"name":"Linear Regression-What, Why & How?"}]}
```

