A score margin measures the difference between two opposing teams’ scores. In the game data, it is calculated from the road and home scores as margin = ptsR - ptsH, so negative values indicate a home-team win and positive values indicate a road-team win. section 17.4.3
NBA game example
Philadelphia scored 87 points against Boston’s 105, producing a margin of -18. Oklahoma City’s 100 points against Golden State’s 108 produced -8. These margins can be compared with opening and closing point spreads. section 17.4.3
Once calculated, the margin supports exploratory analysis: absolute differences compare it with opening and closing spreads, while SmartEDA summarizes its distribution and visualizes numeric relationships.
