Research Article

Implementation of Curve Fitting using Polynomial Regression in Python

by  Ahmad Farhan Alshammari
journal cover
International Journal of Computer Applications
Foundation of Computer Science (FCS), NY, USA
Volume 186 - Issue 6
Published: Jan 2024
Authors: Ahmad Farhan Alshammari
10.5120/ijca2024923400
PDF

Ahmad Farhan Alshammari . Implementation of Curve Fitting using Polynomial Regression in Python. International Journal of Computer Applications. 186, 6 (Jan 2024), 27-32. DOI=10.5120/ijca2024923400

                        @article{ 10.5120/ijca2024923400,
                        author  = { Ahmad Farhan Alshammari },
                        title   = { Implementation of Curve Fitting using Polynomial Regression in Python },
                        journal = { International Journal of Computer Applications },
                        year    = { 2024 },
                        volume  = { 186 },
                        number  = { 6 },
                        pages   = { 27-32 },
                        doi     = { 10.5120/ijca2024923400 },
                        publisher = { Foundation of Computer Science (FCS), NY, USA }
                        }
                        %0 Journal Article
                        %D 2024
                        %A Ahmad Farhan Alshammari
                        %T Implementation of Curve Fitting using Polynomial Regression in Python%T 
                        %J International Journal of Computer Applications
                        %V 186
                        %N 6
                        %P 27-32
                        %R 10.5120/ijca2024923400
                        %I Foundation of Computer Science (FCS), NY, USA
Abstract

The goal of this research is to develop a curve fitting program using polynomial regression in Python. Curve fitting is an important application in machine learning. It helps to find the curve that best fits to the data points. The polynomial regression is used to model the relationship between the independent variable (x) and the dependent variable (y) using a polynomial function of degree (n). Polynomial regression can provide linear and non-linear models. The basic steps of curve fitting using polynomial regression are explained: preparing observed points, computing matrix, computing transpose of matrix, multiplying by transpose, performing forward elimination, performing back substitution, finding out coefficients, making polynomial equation, computing predicted points, and plotting curve. The developed program was tested on an experimental dataset from Kaggle. The program successfully performed the basic steps of curve fitting using polynomial regression and provided the required results.

References
  • Sammut, C., & Webb, G. I. (2011). "Encyclopedia of Machine Learning". Springer Science & Business Media.
  • Jung, A. (2022). "Machine Learning: The Basics". Singapore: Springer.
  • Badillo, S., Banfai, B., Birzele, F., Davydov I., Hutchinson, L., Kam-Thong, T., Siebourg-Polster, J., Steiert B., Zhang, J. "An Introduction to Machine Learning". Clinical Pharmacology & Therapeutics, 107(4), 871-885.
  • Forsyth, D. (2019). "Applied Machine Learning". Cham: Springer International Publishing.
  • Chopra, D., & Khurana, R. (2023). "Introduction to Machine Learning with Python". Bentham Science Publishers.
  • Raschka, S. (2015). "Python Machine Learning". Packt Publishing Ltd.
  • Richert, W., & Coelho, L. (2013). "Building Machine Learning Systems with Python". Packt Publishing Ltd.
  • Jordan, M. I., & Mitchell, T. M. (2015). "Machine Learning: Trends, Perspectives, and Prospects". Science, 349(6245), 255-260.
  • Das, S., Dey, A., Pal, A., & Roy, N. (2015). "Applications of Artificial Intelligence in Machine Learning: Review and Prospect". International Journal of Computer Applications, 115(9), 31-41.
  • Dhall, D., Kaur, R., & Juneja, M. (2020). "Machine Learning: A Review of the Algorithms and its Applications". Proceedings of ICRIC 2019: Recent Innovations in Computing, 47-63.
  • Sarker, I. H. (2021). "Machine Learning: Algorithms, Real-world Applications and Research Directions". SN Computer Science, 2(3), 160.
  • Brandt, S. (2014). "Data Analysis: Statistical and Computational Methods for Scientists and Engineers". Cham: Springer.
  • VanderPlas, J. (2017). "Python Data Science Handbook: Essential Tools for Working with Data". O'Reilly Media.
  • Johansson, R. (2015). "Numerical Python: A Practical Techniques Approach for Industry". Apress.
  • Atkinson, K. (1989). "An Introduction to Numerical Analysis". John Wiley & Sons.
  • Chapra, S. C. (2010). "Numerical Methods for Engineers". McGraw-Hill.
  • Golub, G. H., & Van Loan, C. F. (2013). "Matrix Computations". JHU Press.
  • Cassel, K. W. (2021). "Matrix, Numerical, and Optimization Methods in Science and Engineering". Cambridge University Press.
  • Arlinghaus, S. (2023). "Practical Handbook of Curve Fitting". CRC Press.
  • Zielesny, A. (2016). "From Curve Fitting to Machine Learning". Berlin Heidelberg: Springer.
  • Lancaster, P., & Salkauskas, K. (1986). "Curve and Surface Fitting: An Introduction". London: Academic Press.
  • Guest, P. G. (2012). "Numerical Methods of Curve Fitting". Cambridge University Press.
  • Motulsky, H., & Christopoulos, A. (2004). "Fitting Models to Biological Data using Linear and Nonlinear Regression: A Practical Guide to Curve Fitting". Oxford University Press.
  • Fahrmeir, L., Kneib, T., Lang, S., & Marx, B. D. (2021). "Regression: Models, Methods, and Applications". Berlin: Springer.
  • Peckov, A. (2012). "A Machine Learning Approach to Polynomial Regression". Ljubljana, Slovenia, URL: https://kt.ijs.si/wp-content/uploads/2021/11/phd_ aleksandar_peckov.pdf.
  • Ostertagová, E. (2012). "Modeling using Polynomial Regression". Procedia Engineering, 48, 500-506.
  • Gupta, A., Sharma, A., & Goel, A. (2017). "Review of Regression Analysis Models". International Journal of Engineering Research & Technology, 6(08), 58-61.
  • Kumar, S., & Bhatnagar, V. (2022). "A Review of Regression Models in Machine Learning". Journal of Intelligent Systems and Computing, 3(1), 40-47.
  • Choksi, B., Venkitaraman, A., & Mali, S. (2017). "Finding Best Fit for Hand-drawn Curves using Polynomial Regression". International Journal of Computer Applications, 174(5), 20-23.
  • Stigler, S. (1974). "Gergonne's 1815 Paper on The Design and Analysis of Polynomial Regression Experiments". Historia Mathematica, 1(4), 431–439.
  • Python: https://www.python.org
  • Numpy: https://www.numpy.org
  • Pandas: https:// pandas.pydata.org
  • Matplotlib: https://www. matplotlib.org
  • NLTK: https://www.nltk.org
  • SK Learn: https://scikit-learn.org
  • Kaggle: https://www.kaggle.com
Index Terms
Computer Science
Information Sciences
No index terms available.
Keywords

Artificial Intelligence Machine Learning Curve Fitting Polynomial Regression Numerical Methods Gauss Method Python Programming.

Powered by PhDFocusTM