What is Linear Regression? | Definition from TechTarget (2024)

What is Linear Regression? | Definition from TechTarget (1)

By

  • George Lawton

What is linear regression?

Linear regression identifies the relationship between the mean value of one variable and the corresponding values of one or more other variables. This can involve analyses such as estimating sales based on product prices or predicting crop yield based on rainfall. At a basic level, the term regression means to return to a former or less developed state.

Linear regression in machine learning builds on this fundamental concept to model the relationship between variables using various ML techniques to generate a regression line between variables such as sales rate and marketing spend. In practice, machine learning tends to be more useful when working with multiple variables, called multivariate regression, where the relationships between them require more complex regression coefficients.

Linear regression is a basic component in supervised learning. At its core, linear regression can help determine if one explanatory variable can provide value in predicting the outcome of the other. For example, does ad spending on one medium or another have any meaningful impact on sales?

In the most basic case, linear regression tries to predict the value of one variable, called the dependent variable, given another variable, called the independent variable. For example, if you were trying to predict sales rate based on advertising spend, sales would be the dependent variable, while ad spend would be the independent variable.

This article is part of

What is machine learning? Guide, definition and examples

  • Which also includes:
  • The different types of machine learning explained
  • How to build a machine learning model in 7 steps
  • CNN vs. RNN: How are they different?

Linear regression is linear in that it guides the development of a function or model that fits a straight line to a graph of the data. This line also minimizes the difference between a predicted value for the dependent variable given the corresponding independent variable.

In the case of estimating sales rate, each dollar in sales might climb regularly within a certain range for every dollar spent on ads and then slow down once the ad market reaches a saturation point. In these cases, more complex functions need to be constructed using statistics or ML techniques to fit the data onto a straight line.

What is Linear Regression? | Definition from TechTarget (2)

Why is linear regression important?

Linear regression is important for the following reasons:

  • It works with unlabeled data.
  • It is relatively simple and fast.
  • It can be applied as a fundamental building block in business and science.
  • It supports predictive analytics.
  • It helps separate important relationships for further analysis or model development.
  • It improves the accuracy of ML models for trend analysis.

Types of linear regression

There are three main types of linear regression.

Simple linear regression

Simple linear regression finds a function that maps data points to a straight line onto a graph of two variables.

Multiple linear regression

Multiple linear regression finds a function that maps data points to a straight line between one dependent variable, like ice cream sales, and a function of two or more independent variables, such as temperature and advertising spend.

Nonlinear regression

Nonlinear regression finds a function that fits two or more variables onto a curve rather than a straight line.

Examples of linear regression

Three common ways linear regression is used are the following:

  1. Identifying the magnitude of the effect an independent variable, like temperature, might have on a dependent variable like ice cream sales.
  2. Forecasting the impact of changes driven by the independent variable -- for example, how much more ice cream might be sold with different levels of advertising?
  3. Predicting trends and future values -- like how much ice cream should be stocked to meet demand if the temperature is predicted to reach 90 degrees Fahrenheit?

Linear regression use cases

Typical use cases for linear regression in business include the following:

  • Pricing elasticity. How much will sales drop if the price is increased by a given amount?
  • Risk management. What is the anticipated liability for a given storm strength?
  • Commodities futures. What is the relationship between rainfall and crop yield?
  • Fraud detection. What is the probability of a transaction being fraudulent?
  • Business analysis. How much could sales rise with various levels of profit-sharing incentives?

Advantages and disadvantages of linear regression

Advantages of linear regression include the following:

  • It aids exploratory data analysis.
  • It can identify relationships between variables.
  • It is relatively straightforward to implement.

Disadvantages of linear regression include the following:

  • It does not work well if the data is not truly independent.
  • Machine learning linear regression is prone to underfitting that does not account for rare events.
  • Outliers can skew the accuracy of linear regression models.

Key assumptions of linear regression

Linear regression requires the data set to support the following properties:

  • Data needs to be organized as a continuous series, such as time, sales in dollars or advertising spend. It does not work directly with data that comes in the form of categories like days of the week or product type.
  • Observations need to be truly independent of each other. For example, sales and profits might not be independent if the cost of goods or other factors do not affect profits separately.
  • Data needs to be cleansed of any outliers.
  • The amount each data point varies from the straight line needs to be consistent over changes in the independent variable, called hom*oscedasticity.

Linear regression vs. logistic regression

Linear regression is just one class of regression techniques for fitting numbers onto a graph.

Multivariate regression might fit data to a curve or a plane in a multidimensional graph representing the effects of multiple variables.

Logistic regression predicts whether a given data point belongs to one class or another, such as spam/not spam for an email filter or fraud/not fraud for a credit card authorizer.

This was last updated in August 2023

Continue Reading About linear regression

  • Top 9 types of machine learning algorithms, with cheat sheet
  • The white-box model approach aims for interpretable AI
  • 2 supervised learning techniques that aid value predictions
  • 15 common data science techniques to know and use

Related Terms

What is machine learning bias (AI bias)?
Machine learning bias, also known as 'algorithm bias' or 'AI bias,' is a phenomenon that occurs when an algorithm produces ...Seecompletedefinition
What is machine learning operations (MLOps)?
Machine learning operations (MLOps) is the development and use of machine learning models by development operations (DevOps) ...Seecompletedefinition
What is singularity in technology and AI?
In technology, the singularity describes a hypothetical future where technology growth is out of control and irreversible.Seecompletedefinition

Dig Deeper on Machine learning platforms

  • What is SPSS (Statistical Package for the Social Sciences)?By: RahulAwati
  • What is supervised learning?By: KinzaYasar
  • What is regression in machine learning?By: GeorgeLawton
  • What are machine learning algorithms? 12 types explainedBy: CameronHashemi-Pour
What is Linear Regression? | Definition from TechTarget (2024)
Top Articles
Lost Ark Dungeons: How To Find Chaos And Abyss Dungeons
Breaking down the average portfolio mix by investor age
Bild Poster Ikea
Bj 사슴이 분수
Roblox Roguelike
Kathleen Hixson Leaked
How To Do A Springboard Attack In Wwe 2K22
Voorraad - Foodtrailers
St Petersburg Craigslist Pets
Tv Guide Bay Area No Cable
Miles City Montana Craigslist
Deshret's Spirit
R Tiktoksweets
Immediate Action Pathfinder
Chicken Coop Havelock Nc
Premier Reward Token Rs3
What is Cyber Big Game Hunting? - CrowdStrike
Parent Resources - Padua Franciscan High School
Indiana Wesleyan Transcripts
Hobby Stores Near Me Now
6892697335
Wood Chipper Rental Menards
2011 Hyundai Sonata 2 4 Serpentine Belt Diagram
Is Light Raid Hard
Gen 50 Kjv
Joann Fabrics Lexington Sc
How often should you visit your Barber?
Publix Coral Way And 147
Egg Crutch Glove Envelope
Craigslist Dallastx
Gwen Stacy Rule 4
Ixl Lausd Northwest
What Time Does Walmart Auto Center Open
Car Crash On 5 Freeway Today
Xemu Vs Cxbx
THE 10 BEST Yoga Retreats in Konstanz for September 2024
Staar English 1 April 2022 Answer Key
Ljw Obits
Sephora Planet Hollywood
Albertville Memorial Funeral Home Obituaries
968 woorden beginnen met kruis
Verizon Outage Cuyahoga Falls Ohio
Craigslist Freeport Illinois
Ig Weekend Dow
FREE - Divitarot.com - Tarot Denis Lapierre - Free divinatory tarot - Your divinatory tarot - Your future according to the cards! - Official website of Denis Lapierre - LIVE TAROT - Online Free Tarot cards reading - TAROT - Your free online latin tarot re
Citroen | Skąd pobrać program do lexia diagbox?
Wzzm Weather Forecast
Craigslist Cars For Sale By Owner Memphis Tn
Black Adam Showtimes Near Cinemark Texarkana 14
How To Connect To Rutgers Wifi
Wayward Carbuncle Location
Dr Seuss Star Bellied Sneetches Pdf
Latest Posts
Article information

Author: Chrissy Homenick

Last Updated:

Views: 6326

Rating: 4.3 / 5 (74 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Chrissy Homenick

Birthday: 2001-10-22

Address: 611 Kuhn Oval, Feltonbury, NY 02783-3818

Phone: +96619177651654

Job: Mining Representative

Hobby: amateur radio, Sculling, Knife making, Gardening, Watching movies, Gunsmithing, Video gaming

Introduction: My name is Chrissy Homenick, I am a tender, funny, determined, tender, glorious, fancy, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.