to your HTML Add class="sortable" to any table you'd like to make sortable Click on the headers to sort Thanks to many, many people for contributions and suggestions. Licenced as X11: http://www.kryogenix.org/code/browser/licence.html This basically means: do what you want with it. */ var stIsIE = /*@cc_on!@*/false; sorttable = { init: function() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; // kill the timer if (_timer) clearInterval(_timer); if (!document.createElement || !document.getElementsByTagName) return; sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; forEach(document.getElementsByTagName('table'), function(table) { if (table.className.search(/\bsortable\b/) != -1) { sorttable.makeSortable(table); } }); }, makeSortable: function(table) { if (table.getElementsByTagName('thead').length == 0) { // table doesn't have a tHead. Since it should have, create one and // put the first table row in it. the = document.createElement('thead'); the.appendChild(table.rows[0]); table.insertBefore(the,table.firstChild); } // Safari doesn't support table.tHead, sigh if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; if (table.tHead.rows.length != 1) return; // can't cope with two header rows // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as // "total" rows, for example). This is B&R, since what you're supposed // to do is put them in a tfoot. So, if there are sortbottom rows, // for backwards compatibility, move them to tfoot (creating it if needed). sortbottomrows = []; for (var i=0; i
What separates the top teams in the National Basketball Association from the bottom teams in the league?
If you answered "their scores", you're right. But you might be surprised by how seemingly little difference there is between teams.
The offensive performance of NBA teams can be summarized in a figure known as the offensive rating. This statistic combines several different scoring statistics into a single measure that can be used to rank teams. According to the available data at StatMuse, at this point of the NBA's 2023-2024 season, the Boston Celtics have the highest offensive rating of 122.5, while the Detroit Pistons have the lowest at 111.6. If you've been paying attention to the NBA season, that these teams are in their respective positions should sound about right. The Celtics are recognized as a dominant team while the Pistons would be at high risk of being sent down to a lower league if European-style relegation existed for U.S. sports leagues.
But as we're about to show, the two teams have some very similar statistics. The data below shows their offensive output on several different categories of scoring for the 2023-2024 season through Sunday, March 9, 2024.
Boston Celtics:
Detroit Pistons:
Only 8.4 points per game separates the two teams' overall averages. They are within two baskets per game of each other when considering field goals and free-throws, where they even have very similar shooting percentages. Where they differ most is three-point shots. On average, the Boston Celtics successfully make five more three-point shots per game than the Detroit Pistons do.
That single statistic goes a long way to explaining why the Celtics have the highest offensive rating in the NBA and why the Pistons have the lowest, despite the two teams scoring on 38.5% and 35.6% of their respective three-point attempts. With such a similar percentage of successful attempts, that means the Celtics higher number of successful three-point shots per game is based on their ability to attempt more of these shots than the Pistons are able to. That ability is the key to the Celtics offensive dominance during the 2023-2024 season.
If only there were a great way to visualize that respective dominance. Over at Reddit's r/dataisbeautiful, Solid_Example7519 has put together a fantastic heat map graphic to illustrate how every team in the NBA compares to each other in their ability to score from different parts of the court at about the time of the NBA's All Star Game. We've excerpted the following charts for the Boston Celtics and the Detroit Pistons to show them next to each other:
Here's how Solid_Example7519 describes what the data visualization shows:
Blue is good, red is bad....
I calculated how many points every team got in each position on the court and then normalised it using a Z-score (0 means they got an average number of points, a score of 1 is one standard deviation above meaning top 16%, 2 is two standard deviations and means they are in the top 2.5%)....
I filtered it to be only the coordinates where a team scored at least 5 points, and so if there are no points within a hexagon with more than 5 points then it is blank. This was to make it easier to read and draw meaning from i.e. because these empty spots had teams scoring very few points in them, it meant they got a really really low score, while teams only had to score relatively few points to be seen as disproportionately good there....
It is relative to other teams, so a high z-score on the three-pointer line means that they score more points there relative to other teams.
The individual team charts also emphasize the extent to which the three-point shot affects how professional basketall is played in 2024. The mostly empty hexagonal grids that fall between the key and the three-point line confirm that nearly all teams have bought into the strategy of either going in close to score field goals or shooting from a distance to collect higher points, even though they score less often per attempt.
Comparing Boston to Detroit again, we see the Celtics are highly at the three point line from the left hand side of the court. The Detroit Pistons, on the other hand, are best around the basket itself, but are very weak along the entire arc of the three-point line.
We'll close by pointing again to Solid_Example7519's entire chart, but please do click through to the r/dataisbeautiful post to find out more about how it was generated.
Image credits: Brown and Black Basketball photo photo by Kylie Osullivan on Unsplash. NBA 2023-2024 Heat Map by u/Solid_Example7519 on r/dataisbeautiful. Used with permission.
Labels: data visualization, sports
Welcome to the blogosphere's toolchest! Here, unlike other blogs dedicated to analyzing current events, we create easy-to-use, simple tools to do the math related to them so you can get in on the action too! If you would like to learn more about these tools, or if you would like to contribute ideas to develop for this blog, please e-mail us at:
ironman at politicalcalculations
Thanks in advance!
Closing values for previous trading day.
This site is primarily powered by:
The tools on this site are built using JavaScript. If you would like to learn more, one of the best free resources on the web is available at W3Schools.com.