Lexicostatistics is a quantitative method used to compare the vocabulary of different languages in order to estimate their historical relationships and classify them genetically. By analyzing the similarities and differences in core vocabulary, researchers can infer how closely related languages are, providing insights into their evolutionary paths.