This is a technique I designed to obtain the optimal cluster in the kmeans agorithm in an analytical way. It is mainly based on Lagrange interpolation, derivation and Elbow. The article also talks about the importance of numerical analysis, approximation theory and numerical methods (on which I rely). Finally I designed a class in python which brings all this together, in a new method which I call Elbow-Lagrange.
gbzenobi/Elbow_selection_method_using_lagrange_calculus_and_numerical_analysis
My technique is based on the following fundamental pillars: Interpolation, Calculus, Numerical analysis, Numerical methods, linearity. Also i explore KMeans and elbow method in machine learning
Jupyter Notebook