The goal of this program is to compute the values of the linear equation y = mx + b while using matrix operations. This program will read in a text file of points stored in the form of a 2 x N matrix and calculate the regression line for those points using built in matrix operations.
Must run this program using a points file; there is one in this repository I have provided as an example.
Make file is included for all dependencies.
This was my first project for my data-structures and algorithms class in undergrad.
C++ 11
./ols points100.txt
Based on the file points100.txt here is the solution for the equation y = mx + b.
Optimal vector Beta: |1.97942| |4.78617|
Number of operations to obtain answer: 24