The question I intend to pursue with this project is how much different barttorvik stats and rankings actually correspond to a team’s performance in the NCAA tournament. Barttorvik is a college basketball analytics platform that tracks various metrics such as tempo-free efficiency, rebound percentages, and game projections. I hope to use these projections to find out the formula of a tournament winning team.
Collecting the Data
I intend to collect this data by web scraping the Barttorvik site and collecting metrics I want to pursue. These include adjusted offensive/defensive efficiency, record, power rating, WAB, turnover pct, rebound percentage, seed, and tourney result. This should give me enough metrics to determine what truly makes a winning team.
Loading the Dataset
library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.2.1 ✔ readr 2.2.0
✔ forcats 1.0.1 ✔ stringr 1.6.0
✔ ggplot2 4.0.1 ✔ tibble 3.3.1
✔ lubridate 1.9.5 ✔ tidyr 1.3.2
✔ purrr 1.2.2
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
Rows: 2865 Columns: 13
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (4): team, conf, record, tourney_result
dbl (9): adjoe, adjde, barthag, adj_t, wab, Turnover_pct, Rebound_pct, year,...
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
Creating a subset
The first thing to do is to create a subset of the dataset consisting only of teams that actually made the tournament. I did this by filtering out all na values in the seed column as that indicates team that missed the tournament. The round_levels was also created to distinguish how far a team advanced in the tournament. Using this we can create the rounds_advanced object which returns the level of the round that the team went to. For example, a team that got eliminated in the round of 32 would have advanced one round. Finally, using this the deep_run object was created which returns that a team had a ’deep run” if they advanced 3 or more rounds.
This table summarizes the average seed, power rating (barthag), and adjusted offensive and defensive efficiency of tournament teams, grouped by the furthest round they reached. As expected the mean seed decreases, and power ratings increase as the rounds increase. So does adjusted offensive and defensive efficiency, something to note is that a lower adjusted defensive efficiency is actually better. So in conclusion there is nothing out of the ordinary. The only thing of note is that the trend for adjusted offensive/defensive efficiency in the later rounds is definetly weaker compared to the earlier rounds.
Graph #1: Comparing power ratings and round reached
This graph compares the power ratings(barthag) of tournament teams by the furthest round they reached. Median rating rises with each round, as expected, from roughly 0.58 for teams eliminated in the First Four to above 0.9 for teams reaching the Sweet Sixteen and furuther. Something to note is that early exits range widely, while deep-run teams are concentrated at the top of the scale. A few low-rated teams still advanced, for example, a team rated near 0.29 reached the Round of 32. This is an example of one of the cinderella runs(likely was FDU) The medians for the Sweet Sixteen through the Final Four are similar, showing that rating separates early exits from deep runs better than it separates the later rounds from each other.
tourney %>%filter(!is.na(tourney_result)) %>%ggplot(aes(x = tourney_result, y = barthag)) +geom_boxplot() +labs(x ="Furthest round reached", y ="Power Rating")
Graph #2: Comparing tournament success with adjusted offensive/defensive efficiency
This graph plots each tournament team’s adjusted offensive and defensive efficiency, with teams that reached the Sweet 16 or better highlighted via the deep run variable. Deep-run teams cluster in the region of high offensive efficiencyand low defensive efficiency, lower defensive values indicate better defense. Teams eliminated earlier are spread across the full graphic, with most of the weakest offensive and defensive teams in the upper left(the bad corner). The plot suggests that deep runs tend to come from teams that are strong on both ends, though the overlap shows efficiency alone doesn’t determine the outcome.
ggplot(tourney, aes(x = adjoe, y = adjde, color = rounds_advanced)) +geom_point() +labs(x ="Adjusted offensive efficiency", y ="Adjusted defensive efficiency")
Graph #3: Comparing power ratings and seed
This graph plots each tournament team’s power rating against its seed. Rating declines as the seed number rises, slowly across the top eight seeds and more steeply for the lowest seeds Teams with deep runsare concentrated at the best seeds and highest ratings At every seed, ratings vary substantially, so teams that share a seed are not equally as good. This suggests a power rating may add information beyond seed, which the regression that is done later tests directly.
ggplot(tourney, aes(x = seed, y = barthag, color = rounds_advanced)) +geom_jitter() +labs(x ="Seed", y ="Power Rating")
Graph #4: Power ratings of teams that made it to the sweet 16
This graph shows the average power rating(barthag) of the 16 teams that reached the Sweet Sixteen in each season. 2020 is empty because of covid) The average was about 0.95 in 2019, fell to its lowest point of about 0.89 in 2021, and then rose every year afterward. In 2021, the teams that advanced were less highly rated than in any other season, so that tournament was had more upsets. Since then, the second weekend has been increasingly made up of higher rated teams, and the most recent seasons are above the 2019 level. An interesting to look at in the future is to see if NIL truly did affect march madness in that higher rated teams are less likely to get upset. As of right now there is not enough data to make that conclusion.
tourney %>%filter(tourney_result >="Sweet Sixteen") %>%group_by(year) %>%summarise(mean_barthag =mean(barthag), teams =n()) %>%ggplot(aes(x = year, y = mean_barthag)) +geom_point() +labs(x ="Season",y ="Average power rating of Sweet Sixteen teams",title ="Average Power Rating of Sweet Sixteen Teams by Season")
Graph #5: Seed vs Mean round-reached
This graph shows the average furthest-round reached by tournament teams at each seed, Advancement falls as the seed number rises as expected. One seeds average more than 4, two seeds about 3.3, three seeds about 2.9, and four seeds about 2.7. The decline continues through the middle seeds, to about 1.9 for 6 seeds and 1.5 for 8 seeds, and then steadies out. Seed 16 is lowest at about 0.7. A few seeds break the pattern, 9 seeds average more than 7 and 8 seeds, and 12 and 15 seeds average slightly more than comparable seeds. Overall, seed is a strong predictor of how far a team advances, especially at the top of the bracket, but it separates the lower seeds poorly, which is where ratings may add information.
Question: Do teams that make deep tournament runs have higher power ratings than teams that exit early?
Null hypothesis: The mean power rating is the same for deep-run and early-exit teams.
Alternative hypothesis: There is a difference between the power ratings of deep-run vs early-exit teams
t.test(barthag ~ deep_run, data = tourney)
Welch Two Sample t-test
data: barthag by deep_run
t = -15.885, df = 473.57, p-value < 2.2e-16
alternative hypothesis: true difference in means between group FALSE and group TRUE is not equal to 0
95 percent confidence interval:
-0.1939664 -0.1512614
sample estimates:
mean in group FALSE mean in group TRUE
0.7511165 0.9237304
Using the 5% significance level, we reject the null hypothesis because 0.05 > 2.2e-16
Conclusion: There is statistically significant evidence that deep-run teams have higher power ratings than teams that exit early.
Linear Regression
To test whether power rating adds information beyond seed, I compared two linear regressions predicting the furthest round reached for teams. The seed model explained about 37% of the variation, with each onestep increase in seed number associated with about 0.18 fewer rounds. Adding barthag did not improve the model: adjusted R squared was still 0.370. Although deep-run teams have higher ratings on average, the ratings do not predict advancement beyond what seed already captures, likely because the two measure much of the same team strength.
m1 <-lm(rounds_advanced ~ seed, data = tourney)m2 <-lm(rounds_advanced ~ seed + barthag, data = tourney)summary(m1)
Call:
lm(formula = rounds_advanced ~ seed, data = tourney)
Residuals:
Min 1Q Median 3Q Max
-2.2760 -0.6493 -0.0952 0.4351 4.2662
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 3.45672 0.10731 32.21 <2e-16 ***
seed -0.18074 0.01078 -16.76 <2e-16 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 1.097 on 474 degrees of freedom
Multiple R-squared: 0.3722, Adjusted R-squared: 0.3709
F-statistic: 281 on 1 and 474 DF, p-value: < 2.2e-16
summary(m2)
Call:
lm(formula = rounds_advanced ~ seed + barthag, data = tourney)
Residuals:
Min 1Q Median 3Q Max
-2.2694 -0.6551 -0.0928 0.4416 4.2649
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 3.38978 0.57644 5.881 7.74e-09 ***
seed -0.17876 0.01992 -8.973 < 2e-16 ***
barthag 0.06257 0.52936 0.118 0.906
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 1.098 on 473 degrees of freedom
Multiple R-squared: 0.3722, Adjusted R-squared: 0.3695
F-statistic: 140.2 on 2 and 473 DF, p-value: < 2.2e-16
anova(m1, m2)
Analysis of Variance Table
Model 1: rounds_advanced ~ seed
Model 2: rounds_advanced ~ seed + barthag
Res.Df RSS Df Sum of Sq F Pr(>F)
1 474 570.48
2 473 570.46 1 0.016851 0.014 0.906
Conclusion
This question asked whether Barttorvik’s efficiency metrics are related to how far teams go in the NCAA tournament, and whether they add information beyond a team’s seed. Using team data from eight seasons of Barttorvik’s T-Rank, the evidence is the same for every analysis. Teams that advance further are stronger on nearly every measure. Average power rating rises from about 0.56 for teams eliminated in the First Four to about 0.95 for teams that reached the final. Adjusted offensive efficiency rises from about 105 to 120, and adjusted defensive efficiency falls from about 102 to 91, which is an improvement because lower values are better. Deep_run teams cluster in the region of high offense and low defensive efficiency, which suggests that tournament success comes from being strong on both ends of the floor. The hypothesis test supports that deep-run teams(Elite 8 or better) had a significantly higher mean power rating than teams that were bounced earlier. Seed is also a strong predictor as precited, particularly for the higher seeds, where one seeds average more than four furthest-round levels and sixteen seeds average about 0.7. But seed does not sepearte the lower seeds well, and ratings vary widely among teams with the same seed, which suggested that Bartorivik ratings carry additional information that can be useful to determine how well a team will do. However that was not the case after doiong the regression as the Barthag model did not raise the adjusted R squared. I theorize this is because the selection commitee also looks at the power rating to determine seeds. The seasonal results also add context. The 2021 tournament had the highest average seed among Sweet Sixteen teams and the lowest average rating, which makes it the most upset heavy tournament in the data. Since then, Sweet Sixteen teams have become more highly rated, and the two most recent seasons are above the 2019 level. Overall, Barttorvik’s metrics clearly track tournament success, since deep-run teams are stronger on offense, defense, and power rating, but they do not predict how far a team will go beyond what its seed already tells us.
Sources
Torvik, B. (n.d.). *T-Rank: College basketball ratings and tempo-free statistics* [Data set]. Barttorvik.com. https://barttorvik.com