#### A PHP Error was encountered

Severity: Warning

Message: count(): Parameter must be an array or an object that implements Countable

Filename: controllers/calculator.php

Line Number: 37

Regression Calculator - Online Calculator - Tutorpace

# Regression Calculator

## Online Tutoring Is The Easiest, Most Cost-Effective Way For Students To Get The Help They Need Whenever They Need It.

#### SIGN UP FOR A FREE TRIAL

Regression calculator is used to calculate the regression of the given values. Regression can be defined as the statistical

analysis which is used to find out the relationship between the two variables. The equation of the regression is given as y = a

+ bx where a is the intercept and b is the slope and the formula for a is given as a = [sigma (y) – b (sigma x)] / N and    b = [N

sigma(xy) – (sigma x) (sigma y)] / [N sigma (x^2) – (sigma x) ^2].

Example 1: The values of the x is given as 2, 4, 6 and 8 and y values are given as 3, 7, 5 and 10 find out the regression

equation.

Given that x values and y values. Now find out sigma (xy) and sigma (x^2), sigma x and sigma y and substitute all these values

in the a and b values then we will get them as a = 1.5 and b = 0.95 now the required regression equation is y = 1.5 + (0.95)x.

Hence the regression equation is y = 1.5 + (0.95) x.

Example 2: X    1    2    3    4

Y     6    8    3    3  find out the regression equation

Given that x and y values. Now find out sigma x, sigma y, sigma x^2 and sigma xy and substitute all these values in a and b

then we will get them as a = 8.5 and b = -1.4. Now the required regression equation is 8.5 – (1.4) x.

Hence the regression equation is y = 8.5 – (1.4) x.