MHB Probability of Winning a Game with Random Number 0-1/2

  • Thread starter Thread starter mathworker
  • Start date Start date
  • Tags Tags
    Linear Probability
mathworker
Messages
110
Reaction score
0
B is playing a game in which he has to choose a number A between 0 and 1/2 and his probability of winning if he choose A is $$A^2$$.

What is the probability that he wins if he chooses a number randomly between 0 and 1/2?

I have encountered this at middle of some-other problem and couldn't make a move...
 
Last edited:
Physics news on Phys.org
mathworker said:
B is playing a game in which he has to choose a number A between 0 and 1/2 and his probability of winning if he choose A is $$A^2$$.
I have encountered this at middle of some-other problem and couldn't make a move...

If f(x) is the unknown p.d.f. of A, then $\displaystyle \int_{0}^{A} f(x)\ dx = A^{2} \implies f(x) = 2\ x$, so that the requested probability is $\displaystyle P = \int_{0}^{\frac{1}{2}} 2\ x\ dx = \frac{1}{4}$...

Kind regards

$\chi$ $\sigma$
 
mathworker said:
B is playing a game in which he has to choose a number A between 0 and 1/2 and his probability of winning if he choose A is $$A^2$$.
I have encountered this at middle of some-other problem and couldn't make a move...

If I choose $$A=a$$ my probability of wining is $$p_w(a)=a^2$$.

Now the distribution of $$A$$ is not specified, so let its pdf be $$f_A$$, which has support $$[0,1/2]$$. Then the probability of winning is:

$$P({\rm{win}})=\int_0^{1/2} a^2 f_A(a)\;da$$

Given the wording of the problem a natural assumption might be:

$$f_A(x)=\begin{cases} 2,&x \in [0,1/2]\\0,&{\rm{otherwise}} \end{cases}$$

Then:

$$P({\rm{win}})=\int_0^{1/2} 2\; a^2 \;da=\left[ \frac{2\;a^3}{3} \right]_0^{1/2}=\frac{1}{12}$$

Code:
--> N=100000;
--> a=rand(1,N)*0.5;
--> b=rand(size(a));
--> w=b<=a.^2;
--> sum(w)/N

ans =
    0.0832

--> 1/12

ans =
    0.0833

-->

.
 
Last edited:
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...

Similar threads

Back
Top