Regression AnalysisYour browser does not support Java
Arc Length of a Curve Arc Length of a Parametric CurveCurve Arc Length of a Polar CurveCurve Compute Area under a Curve Compute Area Between Curves Compute Area under Polar Curve Compute Center of Mass Compute Correlation Analysis
Compute Probability of Dice Graph Differentials Comupute Volume - Disks Graph Parametric Curves Graph Parametric 3D Curves Graph Parametric 3D Surfaces Graph Polar Curves Graph Rectangular
Graph Rectangular 3D Stats Easy Regression Analysis Stats Easy Starter Arc Length Parametric 3d curve Surface Area Surface Area Polar Curves Volume - Washers

Linear Regression is the process to develop an equation to express the linear ( straight line ) relationship between two variables. For example , incase there is a correlation between two variables amount of money spent on advertising by Apple Computers and number of Apple computers sold, we may want to ascertain an equation that will fit the trend in data for us to be able to predict sales for varying amounts of ad spend. Lets demonstrate this with an example:

The Edison Electric company is studying the relationship between kilowatt hours ( thousands ) used and the number of rooms in a private single-family residence. A random sample of 10 homes yielded the following:

Number of Rooms Killowatt-Hours (000)
13 10
10 8
15 11
7 6
11 9
9 7
11 9
11 11
6 5
7 8

The Least Square Principle. Our judgment is removed by determining the regression line using a math method known as the least square principle. This method gives what is commonly called the best-fitting line. It minimizes the sum of squares of the vertical distances between the actual Y values and the predicted values of Y. General form of the regression equation is Y' = a + bX

where Y' is the predicted value of Y variable for a chosen X value.
a is the Y-intercept, it is the estimated value of Y when X = 0.
b is the slope of the line,
X is any value of the independent variable that is chosen,

The values a and b in the regression equation are usually referred to as the estimated regression coefficients and they are computed as follows:

Slope of Linear Equation of Regression

Y intercept of Equation of Regression

X is the value of independent variable
Y is the value of the dependent variable
n is the number of items in the sample

Lets compute these values of b and a for our data

X Y X2 Y2 XY
13 10 169 100 130
10 8 100 64 80
15 11 225 121 165
7 6 49 36 42
11 9 121 81 99
9 7 81 49 63
11 9 121 81 99
11 11 121 121 121
6 5 36 25 30
7 8 49 64 56
sigma x100 sigma y84 sigma x square1072 sigma y square742 sigma x y885

Slope of line of regression

Y intercept of line of regression

The equation is Y' = 2.15 + 0.625 X

The scatter diagram and line graph are shown below:

Scatter Diagram and line graph of regression

Related Topic

How to compute Arc Length (Rectangular)
How to compute Arc Length (Parametric)
How to compute Arc Length (Parametric 3D Curve)
How to compute Arc Length (Polar)
How to compute Area Under Curve
How to computer Area Between Curves
How to compute Area under Polar Curve
How to compute Centroid (Center Of Mass)
How to do Correlation Analysis
How to compute Probability of Dice
How to compute Volume for Disks (Surface of Revolution)
How to compute Volume for Washers (Surface of Revolution)
How to Graph 2D Parametric Curves
How to Graph 3D Parametric Curves
How to Graph 3D Parametric Surfaces
How to Graph Polar Curves
How to Graph in Rectangular Coordinates (Cartesian Plane)
How to Graph 3D in Rectangular Coordinates (Space)
How to find Numerical Differentials f '(x) of f(x)
How to do Regression Analysis
How to compute Arithmetic Mean, Harmonic Mean, Geometric Mean, Range, Median, Mean Deviation, Standard Deviation, moments about means, Variance for raw data
How to compute Surface Area (Rectangular)
How to compute Surface Area (Polar Functions)