# A Good Shooter or Just a Good Shot Selector? Using Python to Find Out

DevFeed: [A Good Shooter or Just a Good Shot Selector? Using Python to Find Out](<https://devfeed.tech/articles/a-good-shooter-or-just-a-good-shot-selector-using-python-to-find-out-114934.md>)

Original publisher: [Read original article](<https://towardsdatascience.com/a-good-shooter-or-just-a-good-shot-selector-using-python-to-find-out/>)

Author: Pol Marin

Published: 2026-11-03T14:00:00Z

Content type: article

Language: en

Sources: [Towards Data Science](<https://devfeed.tech/sources/towards-data-science.md>)

Topics: [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Data Science](<https://devfeed.tech/topics/data-science.md>), [Python](<https://devfeed.tech/topics/python.md>), [scikit-learn](<https://devfeed.tech/topics/scikit-learn.md>), [Sports](<https://devfeed.tech/topics/sports.md>)

Tags: [aggregate](<https://devfeed.tech/tags/aggregate.md>), [analyst](<https://devfeed.tech/tags/analyst.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [approach](<https://devfeed.tech/tags/approach.md>), [arc](<https://devfeed.tech/tags/arc.md>), [article](<https://devfeed.tech/tags/article.md>), [aspect](<https://devfeed.tech/tags/aspect.md>), [based](<https://devfeed.tech/tags/based.md>), [basic](<https://devfeed.tech/tags/basic.md>), [basketball](<https://devfeed.tech/tags/basketball.md>), [basketball-analytics](<https://devfeed.tech/tags/basketball-analytics.md>), [bayes](<https://devfeed.tech/tags/bayes.md>), [benefit](<https://devfeed.tech/tags/benefit.md>), [better](<https://devfeed.tech/tags/better.md>), [build](<https://devfeed.tech/tags/build.md>), [building](<https://devfeed.tech/tags/building.md>), [can](<https://devfeed.tech/tags/can.md>), [data](<https://devfeed.tech/tags/data.md>), [data-science](<https://devfeed.tech/tags/data-science.md>), [editor-s-picks](<https://devfeed.tech/tags/editor-s-picks.md>), [logistic-regression](<https://devfeed.tech/tags/logistic-regression.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [python](<https://devfeed.tech/tags/python.md>)

## AI overview

A logistic regression model can estimate the make probability for each shot from features such as distance, shot value, type, corner location, and late shot-clock status. Multiplying expected field-goal percentage by two or three points yields expected points per shot (xPPS), which helps distinguish the value of a player's shot selection from points scored above or below expectation. The article uses randomized synthetic data for 12 players and cautions that residual overperformance is not proof of repeatable skill. Its simple model omits context such as contests and movement, and does not capture free throws, turnovers, rebounds, or teammate opportunities; calibration checks and future-season tests or empirical-Bayes shrinkage are suggested as ways to assess reliability.

## Source excerpt

In basketball, field-goal percentage tells us how often a player makes a shot. But what about the shots' difficulty? Let's use Python and machine learning to separate shot selection from shot making. The post A Good Shooter or Just a Good Shot Selector? Using Python to Find Out appeared first on Towards Data Science.