Maths Project 2 2025
Maths Project 2 2025
Table of Contents
1. Introduction
2. What is Regression Analysis?
3. Method of Least Squares
4. Finding Regression Equations
5. Derivation of the Formulae
6. Angle between Regression Lines
7. Applications of Regression Analysis
8. Solved Example
9. Conclusion
10. References
1. Introduction
Regression analysis is one of the key statistical tools used to identify relationships between two
or more variables. In this project, we will derive regression equations using the method of least
squares, which minimizes the sum of the squares of errors. We will also determine the angle
between the two regression lines.
For two variables XXX and YYY, linear regression determines two regression lines:
1. Regression line of Y on X
2. Regression line of X on Y
3. Method of Least Squares
The method of least squares is a technique to find the "best fit" line for a set of data points.
The best-fit line minimizes the sum of the squares of the vertical deviations from the actual
data points to the line.
Y=a+bXY = a + bXY=a+bX
X=c+dYX = c + dYX=c+dY
2. Regression line of Y on X:
o Formula: Y−Yˉ=b(X−Xˉ)Y - \bar{Y} = b(X - \bar{X})Y−Yˉ=b(X−Xˉ), where
bbb is the slope.
o Slope (bbb) is given by: b=∑(X−Xˉ)(Y−Yˉ)∑(X−Xˉ)2b = \frac{\sum (X - \
bar{X})(Y - \bar{Y})}{\sum (X - \bar{X})^2}b=∑(X−Xˉ)2∑(X−Xˉ)(Y−Yˉ)
3. Regression line of X on Y:
o Formula: X−Xˉ=d(Y−Yˉ)X - \bar{X} = d(Y - \bar{Y})X−Xˉ=d(Y−Yˉ), where
ddd is the slope.
o Slope (ddd) is given by: d=∑(X−Xˉ)(Y−Yˉ)∑(Y−Yˉ)2d = \frac{\sum (X - \
bar{X})(Y - \bar{Y})}{\sum (Y - \bar{Y})^2}d=∑(Y−Yˉ)2∑(X−Xˉ)(Y−Yˉ)
where b1b_1b1 and b2b_2b2 are the slopes of the two regression lines.
8. Solved Example
Data Given:
XXX YYY
1 2
2 3
3 5
XXX YYY
4 4
5 6
Solution:
9. Conclusion
In this project, we explored the method of least squares to derive regression equations for a given
set of data. We also calculated the angle between the two regression lines. Regression analysis is
a powerful tool with practical applications in various fields.
10. References
1. NCERT Mathematics Textbook (Class 12)
2. Statistics for Economics – Gupta and Kapoor
3. Online Sources – Khan Academy, BYJU'S
This structure will cover your project in 10 pages. Each section can include further details, step-
by-step calculations, and examples to make it more comprehensive and visually appealing. Add
graphs or tables where necessary for clarity.
Regression Equations by the Method of Least
Squares and Angles between Regression
Lines
Data Used
Consider the following dataset where XXX and YYY are two variables:
X Y
2 3
4 5
6 7
8 9
10 11
1. Mean of X and Y
The mean is calculated as follows:
Step-by-Step Calculation:
2. Regression Line of Y on X
The formula for the regression line of YYY on XXX is:
Y−Yˉ=b(X−Xˉ)Y - \bar{Y} = b(X - \bar{X})Y−Yˉ=b(X−Xˉ)
Step 1: Calculations
Substitute values:
Y=X+1Y = X + 1Y=X+1
3. Regression Line of X on Y
The formula for the regression line of XXX on YYY is:
Sum:
∑(Y−Yˉ)2=16+4+0+4+16=40\sum (Y - \bar{Y})^2 = 16 + 4 + 0 + 4 + 16 =
40∑(Y−Yˉ)2=16+4+0+4+16=40
Substitute values:
Simplify:
X=Y−1X = Y - 1X=Y−1
Here:
Substitute values:
Thus:
θ=0∘\theta = 0^\circθ=0∘
5. Final Results
1. Regression Line of Y on X: Y=X+1Y = X + 1Y=X+1
2. Regression Line of X on Y: X=Y−1X = Y - 1X=Y−1
3. Angle between the Regression Lines: θ=0∘\theta = 0^\circθ=0∘
6. Conclusion
Through this project, we derived the regression equations using the method of least squares.
We also calculated the angle between the two regression lines and observed that the lines are
parallel when their slopes are equal.
This is a complete example with all calculations shown step by step. It includes formulas,
tabulated data, and derived results. You can easily expand explanations or add graphs for a
polished 10-page project.
1. Scatter Plot
Purpose: To plot the given data points (X,Y)(X, Y)(X,Y) on a graph.
Description:
o X-axis: Independent variable (XXX)
o Y-axis: Dependent variable (YYY)
o Plot all the data points as small dots.
Why: A scatter plot shows the general trend or pattern in the data.
1.Use the equations you derived (e.g., Y=X+1Y = X + 1Y=X+1 and X=Y−1X = Y -
1X=Y−1).
2. Draw the lines on the same graph.
3. Mark the means (Xˉ,Yˉ)(\bar{X}, \bar{Y})(Xˉ,Yˉ) as a reference point.
Why: Visualizing both lines on the scatter plot shows how they fit the data and intersect.
1. Data points (blue dots): Representing the given dataset (X,Y)(X, Y)(X,Y).
2. Regression Line of Y on X (red line): Y=X+1Y = X + 1Y=X+1.
3. Regression Line of X on Y (green line): X=Y−1X = Y - 1X=Y−1.
4. Mean Point (purple dot): (Xˉ=6,Yˉ=7)(\bar{X} = 6, \bar{Y} = 7)(Xˉ=6,Yˉ=7).
This graph visually represents the data and regression lines clearly.