ACM-VIT / Algos-for-all-Amigos

This repository consists an implementation of the Algorithms encountered in Computer Science, Physics and Mathematics.
MIT License
9 stars 10 forks source link

Fix Linear Regression by Least Squares #22

Open Chasmiccoder opened 2 years ago

Chasmiccoder commented 2 years ago

Hey there! Welcome to Hacktoberfest 2021!

Thanks for taking interest in this project.

In the Mathematics folder, there is a folder, titled 'least-squares' that plots the regression line for univariate data. However, there are some issues with the current project.

1) Each time a new point is added, the point gets added twice, which is redundant. 2) Although the regression line is computed properly, it does not plot the line, which is essential for visualization. 3) The correlation coefficient is not displayed.

image

Tech Stack - HTML, CSS, JS


Feel free to contact us here (Telegram) if you need any help!


It's okay if you don't finish 100% of what is required, it's the attempt that matters! We'll accept PRs even if they complete a sub-component of this issue (depending on the code submitted and the effort taken) All the best :D