Data mining is a practice that employs mathematical algorithms to search for hidden information in a large amount of data to analyse the underlying pattern and law, and this practice is also known as knowledge discovery in data. The National Basketball Association (NBA) is the professional basketball game at the highest level in the world, and many events in an NBA game are used for statistical analysis. In this paper, data mining technology was applied based on event statistics to quantify the ability of basketball players and teams, the aim of the exercise being to predict basketball results. According to the NBA (2013–2018) season competition data, the quantitative evaluation method was firstly used to establish a player ability evaluation model, and the feature variable selection history game data weighting method was selected to construct a team player ability evaluation feature system. Secondly, machine learning algorithms such as linear regression,