This project is a Polynomial Regression Fitting Tool that allows you to:
- Input your own
xandyvalues. - Automatically determine the best polynomial degree using the R² score.
- View the resulting LaTeX equation of the polynomial.
- Visualize the best-fit polynomial curve alongside your data points.
- ✅ Accepts custom data points entered by the user.
- ✅ Automatically selects the optimal polynomial degree (avoiding overfitting).
- ✅ Displays the polynomial equation in LaTeX format for easy use in reports/papers.
- ✅ Provides the R² score as a goodness-of-fit measure.
- ✅ Plots both data points and the best-fit curve with
matplotlib.
Make sure you have the following libraries installed:
pip install numpy matplotlib sympy scikit-learn