# statistics question

**URL:** https://boards.straightdope.com/t/statistics-question/507110
**Category:** Factual Questions
**Created:** [August 20, 2009, 7:27pm UTC](https://boards.straightdope.com/t/statistics-question/507110 "2009-08-20T19:27:27Z")
**Posts on this page:** 16
**Page:** 2

<div class="post-metadata">

### Author: ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)
#### Post date: [August 21, 2009, 7:57pm UTC](https://boards.straightdope.com/t/statistics-question/507110/21 "2009-08-21T19:57:48Z")

</div>

> [@](#):
>
> I think Pasta is on the right track. If you have no reason to think any particular ‘true’ shooting percentage is more likely than any other, then the only way to predict future performance ranking is ranking by the percentage made previously.

True as far as it goes, but you do have reason to think some particular true percentages are more likely than others. If someone makes the one and only free throw he’s attempted so far, his true percentage is a lot more likely to be the league average than it is to be 100%.

---

<div class="post-metadata">

### Author: ![Kimmy\_Gibbler](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@Kimmy\_Gibbler](https://boards.straightdope.com/u/Kimmy_Gibbler)
#### Post date: [August 21, 2009, 7:57pm UTC](https://boards.straightdope.com/t/statistics-question/507110/22 "2009-08-21T19:57:52Z")

</div>

> [@Munch](#):
>
> This bullshit “get out of your mom’s basement and just watch the games” argument is getting tiresome.

What _are_ you going on about?

---

<div class="post-metadata">

### Author: ![tim314](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tim314/32/3468_2.png) [@tim314](https://boards.straightdope.com/u/tim314)
#### Post date: [August 21, 2009, 8:09pm UTC](https://boards.straightdope.com/t/statistics-question/507110/23 "2009-08-21T20:09:26Z")

</div>

> [@Quercus](#):
>
> I think **Pasta** is on the right track. If you have no reason to think any particular ‘true’ shooting percentage is more likely than any other, then the only way to predict future performance ranking is ranking by the percentage made previously. Now, you’ll be more confident in your predictions for some players, but you can’t change the ordering. For example, if player A made 744 of 1000 shots, player B made 6 of 10 and player C made 580 of 1000, the only possible ranking (without guessing what the distribution of ‘true’ abilities is) is A\>B\>C. In this case, you’ll be pretty sure that A\>C over the long run while not be very sure at all where B will end up, but the only way to rank B is between A and C. (Or, in other words, if you have to bet, bet that A\>B\>C, but put a lot of money on A\>C and as little as possible on A\>B or B\>C).
> 
> Now, if you follow **Pasta** ’s idea and come up with some idea of what the league average is, and how players tend to fall around it, you can, with at least some kind of mathematical precision, say things like “Player Z made 0 of 3 shots, but that’s such a small sample that it’s more likely than they’re close to the league average in percentage than it is likely that they’re actually a zero percent shooter. So we’ll rank player Z above player S who only made 2,146 of 11,784 free throws and has demonstrated that they’re almost certainly well below league average.”

Well, is there any reason not to think the “true” league average shooting percentage is close to the average shooting percentage from my sample of all players?

The sample size for an _individual_ player might be too small to trust that their measured FT % reflects their true FT %, but for the league as a _whole_ the sample is much larger.

---

<div class="post-metadata">

### Author: ![Pasta](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pasta](https://boards.straightdope.com/u/Pasta)
#### Post date: [August 21, 2009, 8:22pm UTC](https://boards.straightdope.com/t/statistics-question/507110/24 "2009-08-21T20:22:48Z")

</div>

> [@tim314](#):
>
> Well, is there any reason not to think the “true” league average shooting percentage is close to the average shooting percentage from my sample of all players?
> 
> The sample size for an _individual_ player might be too small to trust that their measured FT % reflects their true FT %, but for the league as a _whole_ the sample is much larger.

I think the last two (on topic) posts might have missed what **Quercus** is saying. I’m pretty sure what he said agrees with what you guys are saying (and what I was saying). That is, one can use the full sample of players to learn about the underlying true distribution of percentages. This distribution, and a little integration, is all that is needed to rank players.

**Quercus** first paragraph was not a statement of what one should do but rather a Devil’s-advocate setup for his second paragraph.

---

<div class="post-metadata">

### Author: ![Munch](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/munch/32/5281_2.png) [@Munch](https://boards.straightdope.com/u/Munch)
#### Post date: [August 21, 2009, 8:29pm UTC](https://boards.straightdope.com/t/statistics-question/507110/25 "2009-08-21T20:29:31Z")

</div>

> [@Kimmy\_Gibbler](#):
>
> What _are_ you going on about?

Since there seems to be some confusion, why don’t you just explain what these sentences mean:

“If you want to know who is likely to sink more free throws, you’ve just got to watch them try to sink free throws. No math formula is going to take its place.”

Are you suggesting that it is feasible to “watch them”? Are you suggesting that you watch all 1230 games each and every year and are capable of determining who, given any two players amongst the entire NBA rosterdom, is more likely to hit a FT than the other?

---

<div class="post-metadata">

### Author: ![Kimmy\_Gibbler](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@Kimmy\_Gibbler](https://boards.straightdope.com/u/Kimmy_Gibbler)
#### Post date: [August 21, 2009, 8:50pm UTC](https://boards.straightdope.com/t/statistics-question/507110/26 "2009-08-21T20:50:32Z")

</div>

> [@Munch](#):
>
> Since there seems to be some confusion, why don’t you just explain what these sentences mean:
> 
> “If you want to know who is likely to sink more free throws, you’ve just got to watch them try to sink free throws. No math formula is going to take its place.”
> 
> Are you suggesting that it is feasible to “watch them”? Are you suggesting that you watch all 1230 games each and every year and are capable of determining who, given any two players amongst the entire NBA rosterdom, is more likely to hit a FT than the other?

I am saying that if you want to rank players, you’ve got to have data on their performance. And that means having a robust number of data points. If you don’t have that, you cannot just meditate on the idea of professional basketball and come up with a math formula that will allow you to rank the players in the absence of a sufficient number of data points.

What are you saying? That you have some kind of basketball ESP that allows you to determine who the better player is without having data about their past performance?

---

<div class="post-metadata">

### Author: ![tim314](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tim314/32/3468_2.png) [@tim314](https://boards.straightdope.com/u/tim314)
#### Post date: [August 21, 2009, 9:02pm UTC](https://boards.straightdope.com/t/statistics-question/507110/27 "2009-08-21T21:02:06Z")

</div>

> [@Kimmy\_Gibbler](#):
>
> I am saying that if you want to rank players, you’ve got to have data on their performance. And that means having a robust number of data points. If you don’t have that, you cannot just meditate on the idea of professional basketball and come up with a math formula that will allow you to rank the players in the absence of a sufficient number of data points.

**Kimmy** , no one is talking about not using datapoints. Extrapolating from data is exactly what I’m trying to do.

What you seem to be saying in this post, near as I can tell, is “Unless you have so much data on every player’s FT shooting that you can be confident his true FT % is virtually identical to his measured FT %, it’s impossible to say anything about how good a FT shooter he’s likely to be.” This is untrue, as **Pasta** ’s excellent suggestion above demonstrates. Obviously more data is always better, but that doesn’t mean we can’t say anything without it.

Extreme example: Let’s say I’ve measured the FT % of every player in the league. Let’s say the league average is 70%, and the best player in the league is at 90%. Some new player joins the league. I have _zero_ datapoints on the new player. I can still say with quite a bit of confidence that he’s probably worse than the guy with the 90% FT%, just based on what I know about the league-wide distribution of FT%.

---

<div class="post-metadata">

### Author: ![Kimmy\_Gibbler](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@Kimmy\_Gibbler](https://boards.straightdope.com/u/Kimmy_Gibbler)
#### Post date: [August 21, 2009, 9:10pm UTC](https://boards.straightdope.com/t/statistics-question/507110/28 "2009-08-21T21:10:03Z")

</div>

> [@tim314](#):
>
> **Kimmy** , no one is talking about not using datapoints. Extrapolating from data is exactly what I’m trying to do.
> 
> What you seem to be saying in this post, near as I can tell, is “Unless you have so much data on every player’s FT shooting that you can be confident his true FT % is virtually identical to his measured FT %, it’s impossible to say anything about how good a FT shooter he’s likely to be.” This is untrue, as **Pasta** ’s excellent suggestion above demonstrates. Obviously more data is always better, but that doesn’t mean we can’t say anything without it.
> 
> Extreme example: Let’s say I’ve measured the FT % of every player in the league. Let’s say the league average is 70%, and the best player in the league is at 90%. Some new player joins the league. I have _zero_ datapoints on the new player. I can still say with quite a bit of confidence that he’s probably worse than the guy with the 90% FT%, just based on what I know about the league-wide distribution of FT%.

But what you cannot do, and what you hope to do, is come up with an average for a player for whom you have a few, but not enough data points.

Let’s say the league average is 1/2 and you have a player for whom you have three data points, two of which were successes. Your best estimate of the proportion of free throws he will sink is 2/3. Naturally, this statistic will have larger confidence intervals at all confidence levels than those calculated for players on whom you have more data.

And this is where you must rest, because you cannot do better than this. But, it seems you think you could if only you could craft some model, perhaps some weighting of the league average and the observed proportion, then you could happen upon the “real” proportion. There is no mathematical justification for this misguided faith.

---

<div class="post-metadata">

### Author: ![tim314](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tim314/32/3468_2.png) [@tim314](https://boards.straightdope.com/u/tim314)
#### Post date: [August 21, 2009, 9:17pm UTC](https://boards.straightdope.com/t/statistics-question/507110/29 "2009-08-21T21:17:33Z")

</div>

> [@Kimmy\_Gibbler](#):
>
> Let’s say the league average is 1/2 and you have a player for whom you have three data points, two of which were successes. Your best estimate of the proportion of free throws he will sink is 2/3.

If you have only three datapoints, guessing their true FT% is close to the league average would make a lot more sense than guessing their true FT % is close to their measured FT%.

If we watch a random NBA player sink three shots, and I say “I bet his FT% is 70%” (or whatever the league average is) and you say “I bet his FT% is 100%”, I’ll be closer to the truth more often than you. Say clearly I _can_ do better than just taking his measured FT %.

Obviously, you can have more confidence that your guesses are good if you have more data, and no one is disputing this.

---

<div class="post-metadata">

### Author: ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)
#### Post date: [August 21, 2009, 9:35pm UTC](https://boards.straightdope.com/t/statistics-question/507110/30 "2009-08-21T21:35:45Z")

</div>

Everything drowns in the problem of the priors, like most statistics, so far as I can see. And it’s not like you’ll find One True Prior Probability Distribution to work from. As I see it, priors are choices we make for how to analyze a situation, not data we discover empirically.

---

<div class="post-metadata">

### Author: ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)
#### Post date: [August 21, 2009, 9:39pm UTC](https://boards.straightdope.com/t/statistics-question/507110/31 "2009-08-21T21:39:49Z")

</div>

> [@Pasta](#):
>
> Applying Bayes’ theorem:  
> _P_(_r_[sub]1[/sub]\>_r_[sub]2[/sub]|obs) = 0.5_P_(obs|_r_[sub]1[/sub]\>_r_[sub]2[/sub])  
> where I have used the fact that the prior probability _P_(_r_[sub]1[/sub]\>_r_[sub]2[/sub]) must be 0.5, since either player could be the better one.

Shouldn’t this come out to 0.5_P_(obs|_r_[sub]1[/sub]\>_r_[sub]2[/sub])/_P_(obs)? What happened to the denominator? And, of course, P(obs) is the tricky term; we can expand it out to the sum/integral of P(obs | r[sub]1[/sub] = …, r[sub]2[/sub] = …) \* P(r[sub]1[/sub] = …) \* P(r[sub]2[/sub] = …), but we’re left in worries about the prior distributions of r[sub]1[/sub] and r[sub]2[/sub] (presumably identical).

---

<div class="post-metadata">

### Author: ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)
#### Post date: [August 21, 2009, 9:55pm UTC](https://boards.straightdope.com/t/statistics-question/507110/32 "2009-08-21T21:55:20Z")

</div>

> [@Kimmy\_Gibbler](#):
>
> And this is where you must rest, because you cannot do better than this. But, it seems you think you could if only you could craft some model, perhaps some weighting of the league average and the observed proportion, then you could happen upon the “real” proportion. There is no mathematical justification for this misguided faith.

You may not be able to find the “real” proportion, but you can combine information about the league averages with information about a player’s record to get a reasonable estimate. See T. Herzog’s “Introduction to Credibility Theory” for a very detailed treatment.

---

<div class="post-metadata">

### Author: ![Pasta](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pasta](https://boards.straightdope.com/u/Pasta)
#### Post date: [August 21, 2009, 11:36pm UTC](https://boards.straightdope.com/t/statistics-question/507110/33 "2009-08-21T23:36:51Z")

</div>

> [@Indistinguishable](#):
>
> Shouldn’t this come out to…

Ah, yes, of course. Apologies for my haste. Yes, the missing demoninator P(obs) can be calculated with an integral nearly identical to the one I included.

It does come down to determining a prior distribution, but I think the large collection of data at hand (all players) can reasonably be used to inform our prior.

In the limit of infinite players, we could use only those who shot the most often to construct the underlying distribution. However, the resulting distribution would then be good for ranking everyone, including those who only shot once or twice.

In reality, assessing and propagating uncertainties on D(r) due to the (finite) data we use to inform it allows us to estimate uncertainties on the rankings. Or better, we can incorporate the assessed uncertainties on D(r) into our definition of the prior and integrate those out as part of the P(obs) calculation.

---

<div class="post-metadata">

### Author: ![Pasta](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pasta](https://boards.straightdope.com/u/Pasta)
#### Post date: [August 22, 2009, 12:38am UTC](https://boards.straightdope.com/t/statistics-question/507110/34 "2009-08-22T00:38:09Z")

</div>

For the heck of it, here is the distribution of (FT made)/(FT attempted) for all player-years from 1990 to 2007 for which the player attempted at least 75 free throws:

[A quick estimate of D(r).](http://www.hep.caltech.edu/~rbpatter/sdmb/FT_1990-2007_atleast75FTA.gif)  
ETA: I just slapped sqrt(_N_)-derived errors from the bin contents on the curve as a quick-n-dirty example of how one can also assess uncertainties on D(r) which can be integrated over when calculating P(obs|anything).

---

<div class="post-metadata">

### Author: ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)
#### Post date: [August 22, 2009, 12:53am UTC](https://boards.straightdope.com/t/statistics-question/507110/35 "2009-08-22T00:53:07Z")

</div>

> [@Thudlow\_Boink](#):
>
> This strikes me as a good idea.
> 
> There may not be a “best” way to rank the players, but if you ranked them according to the lower limits of their confidence intervals (the “I’m pretty sure he’s at least this good” number), that seems as good a way as any to me.

You run into a big problem with a scheme like this. Any given confidence interval contains the true value of the quantity being estimated with probability 1 - a. Therefore, if you fit n confidence intervals independently, the probability that they all contain the true value is (1 - a)[sup]n[/sup]. For sufficiently large n, this is a small number, and it’s very likely that you’re dealing with bad numbers somewhere.

---

<div class="post-metadata">

### Author: ![Pasta](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pasta](https://boards.straightdope.com/u/Pasta)
#### Post date: [August 22, 2009, 1:07am UTC](https://boards.straightdope.com/t/statistics-question/507110/36 "2009-08-22T01:07:52Z")

</div>

This doesn’t have anything to do with the OP given the assumptions that are implicit in the thread, but while I’m playing with data… Here’s how the mean FT success rate varies with how often a player is at line, showing an expected trend (since attempts and success rate will both be positively correlated with how good the player is).

[Mean rate vs. attempts](http://www.hep.caltech.edu/~rbpatter/sdmb/FT_meanrate_v_attempts.gif)

[Previous page](https://boards.straightdope.com/t/statistics-question/507110.md?page=1)
