Quizzes & Puzzles8 mins ago
Number Of Attempts So That I Get X Free Throws In A Row
hi, I have this problem of maths, my probability is always 71.7% for every free throw . Assume I never get nervous or anything, I always have 71.7%
I'll do many free throws in a year, so whats the minimum number (y) of free throws that i need to try in order to make sure that in those number (y) of free throws I have at least 90% to success in (x) jumps in a row at least once?
I need a formula that gives me y based on x and on a probability of 0.717
I'll do many free throws in a year, so whats the minimum number (y) of free throws that i need to try in order to make sure that in those number (y) of free throws I have at least 90% to success in (x) jumps in a row at least once?
I need a formula that gives me y based on x and on a probability of 0.717
Answers
This is an interesting discussion of run probabilitie s: http://www.a skamathemati cian.com/201 0/07/q-whats -the-chance- of-getting-a -run-of-k-su ccesses-in-n -bernoulli-t rials-why-us e-approximat ions-when-th e-exact-answ er-is-known/
16:17 Thu 29th Aug 2013
(^ means to the power of: N^2 = N x N, N^3 = N x N x N and so on.)
Chance that one throw is successful : 0.717
Chance that three consecutive throws are all successful : 0.717^3 = 0.369
So chance that the run of three is not successful : 1 - 0.369 = 0.631
In a trial of seven throws there are five runs of three (each throw except the last two is the start of a run).
The chance that all five are unsuccessful : 0.631^5 = (slightly more than) 0.100 or 10%
So the chance that at least one run is successful is slightly less than 90%
In a trial of eight throws there are six runs of three.
The chance that all are unsuccessful : 0.631^6 = 0.063 or 6.3%
So the chance that at least one run is successful is about 93.7%
So eight throws are needed (but seven very nearly gives the 90% required).
Post a request if you want to see my general formula (the "x" and "y" of the OP) for the problem.
Chance that one throw is successful : 0.717
Chance that three consecutive throws are all successful : 0.717^3 = 0.369
So chance that the run of three is not successful : 1 - 0.369 = 0.631
In a trial of seven throws there are five runs of three (each throw except the last two is the start of a run).
The chance that all five are unsuccessful : 0.631^5 = (slightly more than) 0.100 or 10%
So the chance that at least one run is successful is slightly less than 90%
In a trial of eight throws there are six runs of three.
The chance that all are unsuccessful : 0.631^6 = 0.063 or 6.3%
So the chance that at least one run is successful is about 93.7%
So eight throws are needed (but seven very nearly gives the 90% required).
Post a request if you want to see my general formula (the "x" and "y" of the OP) for the problem.
p = probability of success on one throw
q = probability of success for n consecutive throws
A = number of throws
Chance that one throw is successful : p
Chance that n consecutive throws are all successful : p^n
So chance that the run of n is not successful : 1 - p^n
In a trial of A throws there are A - n + 1 runs of n throws
The chance that all are unsuccessful : (1 - p^n)^(A - n+1)
The chance that all are unsuccessful : 1 - q
(1 - p^n)^(A - n + 1) = 1 - q
The only way I know to solve this is to take logs
(A - n + 1)*log(1 - p^n) = log(1 - q)
A - n + 1 = log(1 - q)/log(1 - p^n)
A = log(1 - q)/log(1 - p^n) + n - 1
A scientific calculator (including that included with Windows &) will handle this.
q = probability of success for n consecutive throws
A = number of throws
Chance that one throw is successful : p
Chance that n consecutive throws are all successful : p^n
So chance that the run of n is not successful : 1 - p^n
In a trial of A throws there are A - n + 1 runs of n throws
The chance that all are unsuccessful : (1 - p^n)^(A - n+1)
The chance that all are unsuccessful : 1 - q
(1 - p^n)^(A - n + 1) = 1 - q
The only way I know to solve this is to take logs
(A - n + 1)*log(1 - p^n) = log(1 - q)
A - n + 1 = log(1 - q)/log(1 - p^n)
A = log(1 - q)/log(1 - p^n) + n - 1
A scientific calculator (including that included with Windows &) will handle this.
I like the look of that solution -- it's behaving in the way I'd expect.
For the benefit of fairyrak, in his original notation the formula Jonathon-Joe has given would be written:
y = log(1-0.9)/log(1-0.717^x) + x -1
You can generalise this easily enough by changing 0.717 to whatever probability of success on one throw you'd like, and 0.9 to whatever probability of success of x consecutive free throws you wish.
For the benefit of fairyrak, in his original notation the formula Jonathon-Joe has given would be written:
y = log(1-0.9)/log(1-0.717^x) + x -1
You can generalise this easily enough by changing 0.717 to whatever probability of success on one throw you'd like, and 0.9 to whatever probability of success of x consecutive free throws you wish.
While you're still thinking about it, vascop, would you be so kind as to check my working earlier, when I tried to calculate the probability for three straight throws given 4, 5, or 6 attempts? In principle, if JJ's formula is correct, then it should reproduce the results backwards, that is, that requiring a q of 0.577 would give A=5.
Should just add that I found the "martingale solution", but it's to a slightly different question: what is the expected number of trials needed before you obtain a chain of x successive free throws? The answer is:
[1/(1-p)]*{(1/p^x)-1}
for p = 0.717, x=3 this gives y = 6.05, so that you would expect to have a string of three successive free throws after six attempts or so. And the expected time to obtain nine consecutive throws is 67 attempts. But expectation doesn't mean 90% probability -- so perhaps, after all, this is a problem that needs to be calculated in a different way. I think some doubts remain over JJ's solution but it looks the right sort of approach.
http:// mathpro blems12 3.files .wordpr ess.com /2010/0 9/marti ngaleex tras.pd f
[1/(1-p)]*{(1/p^x)-1}
for p = 0.717, x=3 this gives y = 6.05, so that you would expect to have a string of three successive free throws after six attempts or so. And the expected time to obtain nine consecutive throws is 67 attempts. But expectation doesn't mean 90% probability -- so perhaps, after all, this is a problem that needs to be calculated in a different way. I think some doubts remain over JJ's solution but it looks the right sort of approach.
http://
thanks for your effort so far, yes I want the number of throws for the general case instead of than the expected value. Although thanks finding the expected value too, it's interesting. That formula also behaves well with some stats that I had, but I'm still analyzing too, I'll be checking in some hours
i rely less on the formula for now, there might be some error in one of the formulas or a mathematical explanation or another thing because
for
p=0.732
with a percentage of success wanted in x jumps in a row at least once=96%
x (the number of free throws in a row that i have to get)=26
it gives this result
y (the solution according to jonathan joe) =10748.8551
the expected value according to jim= 12429.302
also i made simulated stats with a program and got 0 succesfull chains of 26 or more times in 10700 tries
what do you think? was it just luck? or something happened like a very strong deviation caused by such a high x of 26 or more free throws in a row? and i entered 96% thinking that it was a high enough %
note: and i got 2 chains of 25 in the simulation
for
p=0.732
with a percentage of success wanted in x jumps in a row at least once=96%
x (the number of free throws in a row that i have to get)=26
it gives this result
y (the solution according to jonathan joe) =10748.8551
the expected value according to jim= 12429.302
also i made simulated stats with a program and got 0 succesfull chains of 26 or more times in 10700 tries
what do you think? was it just luck? or something happened like a very strong deviation caused by such a high x of 26 or more free throws in a row? and i entered 96% thinking that it was a high enough %
note: and i got 2 chains of 25 in the simulation
@jim
I have checked your calculations and I get:
3/3 37%
3/4 47%
3/5 43%
3/6 30%
Using JJs formula I can't get 3,4,5,6 from these percentages.
The reason I think JJ's formula might be wrong is because he wtites in his post:
"In a trial of A throws there are A - n + 1 runs of n throws "
I don't think this is correct. For example, for A=5 and n=3 this gives 3 which we know is incorrect and should be 8 I think, as you worked out in your post:
SSSSS
SSSSF
SSSFS
SFSSS
FSSSS
SSSFF
FSSSF
FFSSS
I have checked your calculations and I get:
3/3 37%
3/4 47%
3/5 43%
3/6 30%
Using JJs formula I can't get 3,4,5,6 from these percentages.
The reason I think JJ's formula might be wrong is because he wtites in his post:
"In a trial of A throws there are A - n + 1 runs of n throws "
I don't think this is correct. For example, for A=5 and n=3 this gives 3 which we know is incorrect and should be 8 I think, as you worked out in your post:
SSSSS
SSSSF
SSSFS
SFSSS
FSSSS
SSSFF
FSSSF
FFSSS
"
3/3 37%
3/4 47%
3/5 43%
3/6 30%
"
Seems odd that three straight free throws is less likely having had six attempts than five, which is also less than four... Sure about those last two?
I was running simulations checking the 9/53 case and it doesn't seem to match up. Counting any set of 53 trials as successful if there is at least one string of nine free throws or greater, then the average success rate seems to be of order 60%, which is somewhat less than 90. Which goes against JJ's formula again. Back to the drawing board...
(method for simulation follows:
colA: = randbetween(1,1000)
collB: = IF(cellA
3/3 37%
3/4 47%
3/5 43%
3/6 30%
"
Seems odd that three straight free throws is less likely having had six attempts than five, which is also less than four... Sure about those last two?
I was running simulations checking the 9/53 case and it doesn't seem to match up. Counting any set of 53 trials as successful if there is at least one string of nine free throws or greater, then the average success rate seems to be of order 60%, which is somewhat less than 90. Which goes against JJ's formula again. Back to the drawing board...
(method for simulation follows:
colA: = randbetween(1,1000)
collB: = IF(cellA
Related Questions
Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.