In this C++ project, the regression analysis is done to find equations that will fit the data. Linear regression is one type of regression analysis. The equation for a line is y = a + bX.

First, you can download the source code and unzip it to use. U can run this source code on any platform like Visual Studio Code, Dev c++, etc.

**Data_input():**

The Data_input () function will take all the available input for x-coordinates and y-coordinates from the user.

Instead of the array, we used vector datatype because we don't need to specify the size of the vector while declaring.

**Data_process():**

Data_process() function will calculate all the necessary calculations required for the formula of linear regression.

**Linear_reg():**

Linera_reg() function will process on calculated data and provide the desired output.

the set precision() method is to display output up to a specific decimal number using the library

Submitted by Shubham Chandrakant Shinde (Shubham25)

Download packets of source code on Coders Packet