Linear Relationship Definition, Formula, and Examples (2024)

What Is a Linear Relationship?

A linear relationship (or linear association) is astatistical term used to describe a straight-line relationship between two variables. Linear relationships can be expressed either in a graphical format where the variable and the constant are connected via a straight line or in a mathematical format where the independent variable is multiplied by the slope coefficient, and added by a constant, which determines the dependent variable.

A linear relationship may be contrasted with a polynomial or non-linear (curved) relationship.

Key Takeaways

  • A linear relationship (or linear association) is astatistical term used to describe a straight-line relationship between two variables.
  • Linear relationships can be expressed either in a graphical format or as a mathematical equation of the form y = mx + b.
  • Linear relationships are fairly common in daily life.

Formula for a Linear Relationship

Mathematically, a linear relationship is one that satisfies the equation:

y=mx+bwhere:m=slopeb=y-intercept\begin{aligned} &y = mx + b \\ &\textbf{where:}\\ &m=\text{slope}\\ &b=\text{y-intercept}\\ \end{aligned}y=mx+bwhere:m=slopeb=y-intercept

In this equation, “x” and “y” are two variables that are related by the parameters “m” and “b”. Graphically, y = mx + b plots in the x-y plane as a line with slope “m” and y-intercept “b.” The y-intercept “b” is simply the value of “y” when x=0.The slope “m” is calculated from any two individual points (x1, y1) and (x2, y2) as:

m=(y2y1)(x2x1)m = \frac{(y_2 - y_1)}{(x_2 - x_1)}m=(x2x1)(y2y1)

What Does a Linear Relationship Tell You?

There are three sets of necessary criteria an equation has to meet in order to qualify as a linear one: an equation expressing a linear relationship can't consist of more than two variables, all of the variables in an equation must be to the first power, and the equation must graph as a straight line.

A commonly used linear relationship is a correlation, which describes how close to linear fashion one variable changes as related to changes in another variable.

In econometrics, linear regression is an often-used method of generating linear relationships to explain various phenomena. It is commonly used in extrapolating events from the past to make forecasts for the future. Not all relationships are linear, however. Some data describe relationships that are curved (such as polynomial relationships) while still other data cannot be parameterized.

Linear Functions

Mathematically similar to a linear relationship is the concept of a linear function. In one variable, a linear function can be written as follows:

f(x)=mx+bwhere:m=slopeb=y-intercept\begin{aligned} &f(x) = mx + b \\ &\textbf{where:}\\ &m=\text{slope}\\ &b=\text{y-intercept}\\ \end{aligned}f(x)=mx+bwhere:m=slopeb=y-intercept

This is identical to the given formula for a linear relationship except that the symbol f(x) is used in place of y. This substitution is made to highlight the meaning that x is mapped to f(x), whereas the use of y simply indicates that x and y are two quantities, related by A and B.

In the study of linear algebra, the properties of linear functions are extensively studied and made rigorous. Given a scalar C and two vectors A and B from RN, the most general definition of a linear function states that: c×f(A+B)=c×f(A)+c×f(B)c \times f(A +B) = c \times f(A) + c \times f(B)c×f(A+B)=c×f(A)+c×f(B)

Examples of Linear Relationships

Example 1

Linear relationships are pretty common in daily life. Let's take the concept of speed for instance. The formula we use to calculate speed is as follows: the rate of speed is the distance traveled over time. If someone in a minivan is traveling between Sacramento and Marysvillein California, a 44.1-mile stretch on Highway 99, and the complete journey ends up taking about 45 minutes, they will have been traveling just below 60 mph.

While there are more than two variables in this equation, it's still a linear equation because one of the variables will always be a constant (distance).

Example 2

A linear relationship can also be found in the equation distance = rate x time. Because distance is a positive number (in most cases), this linear relationship would be expressed on the top right quadrant of a graph with an X and Y-axis.

If a bicycle made for two was traveling at a rate of 30 miles per hour for 20 hours, the rider would end up traveling 600 miles. Represented graphically with the distance on the Y-axis and time on the X-axis, a line tracking the distance over those 20 hours would travel straight out from the convergence of the X and Y-axis.

Example 3

In order to convert Celsius to Fahrenheit, or Fahrenheit to Celsius, you would use the equations below. These equations express a linear relationship on a graph:

°C=59(°F32)\degree C = \frac{5}{9}(\degree F - 32)°C=95(°F32)

°F=95°C+32\degree F = \frac{9}{5}\degree C + 32°F=59°C+32

Example 4

Assume that the independent variable is the size of a house (as measured by square footage) which determines the market price of a home (the dependent variable) when it is multiplied by the slope coefficient of 207.65 and is then added to the constant term $10,500. If a home's square footage is 1,250 then the market value of the home is (1,250 x 207.65) + $10,500 = $270,062.50. Graphically, and mathematically, it appears as follows:

Linear Relationship Definition, Formula, and Examples (1)

In this example, as the size of the house increases, the market value of the house increases linearly.

Some linear relationships between two objects can be called a "proportional relationship." This relationship appears as

Y=k×Xwhere:k=constantY,X=proportionalquantities\begin{aligned} &Y = k \times X \\ &\textbf{where:}\\ &k=\text{constant}\\ &Y, X=\text{proportional quantities}\\ \end{aligned}Y=k×Xwhere:k=constantY,X=proportionalquantities

When analyzing behavioral data, there is rarely a perfect linear relationship between variables. However, trend lines can be found in data that form a rough version of a linear relationship. For example, you could look at the daily sales of ice cream and the daily high temperature as the two variables at play in a graph and find a crude linear relationship between the two.

What Is a Positive Linear Relationship?

A positive linear relationship is represented by an upward line on a graph. It means that if one variable increases then the other variable increases. Conversely, a negative linear relationship would show a downward line on a graph. If one variable increases then the other variable decreases.

What Is a Nonlinear Relationship?

A nonlinear relationship can be seen by scatter plots on a graph following a certain pattern but that pattern is not linear, meaning the representation is not a straight line.

What Is an Example of a Linear Relationship in Statistics?

An example of a linear relationship would be an hourly-paid worker. The more hours they work, the more money they receive. This relationship would be a linear one as every increase in an hour worked would correspond to the same increase in pay.

The Bottom Line

A linear relationship in statistics shows a straight-line relationship between two variables. It typically shows how well two variables correlate with one another. Though no behavioral relationship is perfect enough to generate a true linear relationship, trends are usually found in data to assume one exists.

Linear Relationship Definition, Formula, and Examples (2024)

FAQs

Linear Relationship Definition, Formula, and Examples? ›

A linear relationship (or linear association) is a statistical term used to describe a straight-line relationship between two variables. Linear relationships can be expressed either in a graphical format or as a mathematical equation of the form y = mx + b. Linear relationships are fairly common in daily life.

What is the formula for a linear relationship? ›

A linear relationship or correlation is a statistical expression that occurs when two variables satisfy the mathematical formula y = mx + b. On a graph with an x- and a y-axis, linear relationships appear as straight lines. Linear relationships are common across many applications.

What is an example of a linear relationship? ›

What is a linear relation example? An example of a linear relationship is the number of hours worked compared to the amount of money earned. The number of hours would be the independent variable and the money earned would be the dependent variable. The amount of money earned depends on the number of hours worked.

What is the linear formula? ›

The standard form for linear equations in two variables is Ax+By=C. For example, 2x+3y=5 is a linear equation in standard form. When an equation is given in this form, it's pretty easy to find both intercepts (x and y).

How to solve linear relationships? ›

Solving a linear equation usually means finding the value of y for a given value of x. If the equation is already in the form y = mx + b, with x and y variables and m and b rational numbers, solving for specific values is straightforward. Choose a value for x, and compute the corresponding value for y.

How to calculate linearity? ›

This is calculated by: linearity = |slope| (process variation) (4) The percentage linearity is calculated by: % linearity = linearity / (process variation) (5) and shows how much the bias changes as a percentage of the process variation. the coefficients. Of particular interest is the P-value for the slope.

What is a real life example of a linear equation? ›

An example could be each pizza costs $10 and the delivery fee is $5, so the linear model would be y=10x+5, where y represents the total cost and x represents the number of pizzas.

What is the formula for a linear equation with two points? ›

The standard form linear equation from two points is Ax + By + C = 0 with A, B, and C as above.

How to solve the linear equation? ›

To solve linear equations, find the value of the variable that makes the equation true. Use the inverse of the number that multiplies the variable, and multiply or divide both sides by it. Simplify the result to get the variable value. Check your answer by plugging it back into the equation.

What is an example of a linear relationship equation? ›

Example 2. A linear relationship can also be found in the equation distance = rate x time. Because distance is a positive number (in most cases), this linear relationship would be expressed on the top right quadrant of a graph with an X and Y-axis.

How do you classify a linear relationship? ›

Example of Classifying a Linear Relationship

Step 1: Based on the points on the scatterplot, determine whether the points consistently get higher or lower as you move along the x-axis. If there is a consistent trend, move to step 2. If there is no consistent trend, the scatterplot is nonlinear.

How to find a linear relationship in a table? ›

If you have a table instead of a graph to look at, you should look at the rate of change. If the rate of the change in the input to the change in the output is the same for every point in the table, then the table represents a linear function.

What is the formula for a linear pair? ›

These are known as a 'Pair of Linear Equations in Two Variables'. To generalize them, a pair of linear equations in two variables x and y is: a1x + b1 y + c1 = 0 and a2x + b2 y + c2 = 0. Where a1, b1, c1, a2, b2, c2 are all real numbers and a12+ b12 ≠ 0, a22+ b22 ≠ 0.

What is the formula for linear correlation? ›

The correlation coefficient formula is: r = n ∑ X Y − ∑ X ∑ Y ( n ∑ X 2 − ( ∑ X ) 2 ) ⋅ ( n ∑ Y 2 − ( ∑ Y ) 2 ) .

What is the formula for linear rule? ›

Rules for relationships

All linear relationships can be expressed in the form: y = m x + c y=mx+c y=mx+c. m is equal to the change in the y-values for every increase in the x-value by 1.

What is the formula for a linear term? ›

Linear equations do not have any exponent other than 1 in any term. The general form of a linear equation is expressed as Ax + By + C = 0, where A, B, and C are any real numbers and x and y are the variables. Whereas, quadratic equations have at least one term containing a variable that is raised to the second power.

References

Top Articles
Latest Posts
Article information

Author: Rubie Ullrich

Last Updated:

Views: 6485

Rating: 4.1 / 5 (52 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Rubie Ullrich

Birthday: 1998-02-02

Address: 743 Stoltenberg Center, Genovevaville, NJ 59925-3119

Phone: +2202978377583

Job: Administration Engineer

Hobby: Surfing, Sailing, Listening to music, Web surfing, Kitesurfing, Geocaching, Backpacking

Introduction: My name is Rubie Ullrich, I am a enthusiastic, perfect, tender, vivacious, talented, famous, delightful person who loves writing and wants to share my knowledge and understanding with you.