Regression lines calculator
Find both regression lines and the correlation coefficient the way ISC Mathematics asks: from the pairs of data (with the deviation table), from summary numbers like Σx and Σxy, or from the two regression lines (which is which, the means and r). Add a value to estimate the other.
How to use it
- 1Choose what you have: the data, summary numbers (Σx, Σy, Σxy …) or the two regression lines.
- 2Fill in the boxes, and a value to estimate if the question asks for one.
- 3Press Solve for both regression lines, b_yx, b_xy and r with the working.
Answer
- Regression line of y on x
- y = ($-\dfrac{3}{2}$)x + 13
- Regression line of x on y
- x = ($-\dfrac{1}{6}$)y + $\dfrac{31}{6}$
Values
- x̄ (mean of x)
- 4
- ȳ (mean of y)
- 7
- b_yx
- $-\dfrac{3}{2}$
- b_xy
- $-\dfrac{1}{6}$
- r (correlation)
- -0.5
Graph
Dots are the data; the lines cross at the means (green ring). The dashed line is x on y.
The lines
- Regression line of y on x: y - 7 = ($-\dfrac{3}{2}$)(x - 4), so y = ($-\dfrac{3}{2}$)x + 13
- Regression line of x on y: x - 4 = ($-\dfrac{1}{6}$)(y - 7), so x = ($-\dfrac{1}{6}$)y + $\dfrac{31}{6}$
About the Regression lines calculator
What it does
Finds both regression lines and the correlation coefficient the way ISC Mathematics asks: from pairs of data (with the deviation table), from summary numbers such as Σx and Σxy, or from the two regression lines themselves (which is which, the means and r). Add a value to estimate the other variable.
The formulas
- byx = r σy/σx = (nΣxy − ΣxΣy) / (nΣx² − (Σx)²), the slope of the line of y on x.
- bxy = r σx/σy = (nΣxy − ΣxΣy) / (nΣy² − (Σy)²).
- Line of y on x: y − ȳ = byx (x − x̄). Line of x on y: x − x̄ = bxy (y − ȳ).
- r² = byx × bxy, and r has the same sign as both coefficients.
- Both lines pass through the point of the means (x̄, ȳ).
Common questions
Which line do I use to estimate y?
The regression line of y on x. To estimate x from a value of y, use the line of x on y.
Can r be bigger than 1?
No. r always lies between −1 and 1. If you get more, check the data or which line is which.
Where do the two regression lines cross?
At the point (x̄, ȳ), the means of x and y.
Practise on real ISC questions
- Read the following statements and choose the correct option. (I) The correlation coefficient and the…2025
- Two lines of regression are given as $4x + 3y + 7 = 0$ and $3x + 4y + 8 = 0$. Identify the line of regression…2025
- The line of regression of marks in Maths ($X$) and marks in English ($Y$) for a class of $50$ students is…2023 Specimen
- If the lines of regression are parallel to coordinate axes, then the coefficient of correlation is:2021 Specimen
- A movie cinema is considering significantly reducing the price of their popcorn as they believe their…2025 Practice
- The graph below shows the two lines of regressions for a certain set of $x$ and $y$ values. What is the mean…2025 Practice
- Which one of the following statements is correct?2025 Improvement
- Given that the observations are $(9,-4), (10, -3), (11,-1), (13,1), (14,3), (15,5), (16,8)$, find the two…2018 Specimen
- Statement 1: Two regression coefficients cannot have the same sign. Statement 2: Both the regression…2026
- Find the equation of the regression line of $y$ on $x$, if the observations $(x, y)$ are as follows…2021 Specimen
More Mathematics tools
- LPP solver (graphical method)Linear programming by the graphical method: the feasible region drawn, corner points and the optimum.
- Matrix inverse and equations solverDeterminant, minors, cofactors, adjoint and inverse; or solve equations by the matrix method.
- Matrix calculator and equation solverProducts, sums, powers, transposes and inverses of matrices of any size, and equations like AX = B.
- Probability distribution calculatorFind k, the mean, variance and standard deviation of a random variable, with the working table.
- 3D geometry and vectors calculatorPoints, vectors, lines and planes: distances, angles, foot and image, shortest distance, intersections.
- Bayes' theorem and binomial calculatorBayes' theorem with the total probability table, or a binomial distribution with P(X = r), mean and variance.
- Venn diagram generator and visualiserDraw the Venn diagram of two or three events and shade A ∪ B, A′ ∩ B, (A ∪ B)′ or B given A step by step, with the probability.
- Probability solver for events A, B and CPress buttons for what you know about two or three events and whether they are independent, mutually exclusive or exhaustive; every probability that follows is worked out step by step.