[ home ] [ math / cs / ai / phy / as / chem / bio / geo ] [ civ / aero / mech / ee / hdl / os / dev / web / app / sys / net / sec ] [ med / fin / psy / soc / his / lit / lin / phi / arch ] [ off / vg / jp / 2hu / tc / ts / adv / hr / meta / tex ] [ chat ] [ wiki ]

/math/ - Mathematics


Name
Email
Subject
Comment
Verification
Instructions:
  • Press the Get Captcha button to get a new captcha
  • Find the correct answer and type the key in TYPE CAPTCHA HERE
  • Press the Publish button to make a post
  • Incorrect answer to the captcha will result in an immediate ban.
File
Password (For file deletion.)

25 Dec 2021Mathchan is launched into public

10 / 1 / 9 / ?

File: 1638294292313.png ( 363.02 KB , 1195x1240 , 1640551533576.png )

Image
Supose you have two baskets with one ball each. Probability that one basket has k ball in 0-th time is

p0,kp_{0,k}


therefore

p0,1=1p_{0,1} = 1


and for k != 1

p0,k=0p_{0,k} = 0
.

Now (You) choose random ball from any basket (every ball have the same probability of being chosen, not dependent on which basket is it placed in). You put new ball in a basket where this choosen ball was. :0 You repeat this t times.

In math language it is probably:

pt,k=pt1,k1k1t+1+pt1,ktkt+1p_{t,k} = p_{t-1,k-1}\frac{k-1}{t+1} + p_{t-1,k}\frac{t-k}{t+1}


Now

The most bone-chilling, slow-burn, atmosphere-oozing thing I discovered about it:

pt,k=1t+1p_{t,k} = \frac{1}{t+1}


HOLY SCIENCE!!!!!!!!1

Probability of having k balls after t time is always the same!!!!!
>>
gem
>>
>>
>>101
Thonks. I must create thread about calculating the probability of kot id on /bant/, /pol/ and similar boards with ids.
>>
>>104
that'd be really cool
>>
>>
>Probability of having k balls after t time is always the same!!!!!
I agree. And this probability is 1/2. It either happens or it doesn't.
>>
>>254
and now consider the conditional probability of it happening or not.
>>
>>73
op is a faggot (test)
>>
>>269
Your containment board >>>/test/
>>
>>73
Your post was kind of difficult to read so I will try to summarise the problem and solution in my own words. I also think you made a typo, so my reccurance relation looks very slightly different to yours, but the solution is the same.


Problem

You have two boxes, box #1 and box #2. You also have a bag with an unlimited number of balls. At time 0, box #1 has one ball and box #2 has one ball.

In every iteration:
- Choose a ball at random from the set of balls that are in the boxes.
- Take a new ball from the bag and put it into the box where the chosen ball was.

So at time
tt
, there are
t+2t+2
balls in both boxes. Each box has between
11
and
t+1t+1
balls (inclusive).

Let
pt,kp_{t,k}
denote the probability that box #1 has exactly k balls at time t.

So by the initial conditions:
-
p0,k=1p_{0,k}=1
if
k=1k=1

-
p0,k=0p_{0,k}=0
otherwise

Derive a closed form expression for
pt,kp_{t,k}
.


Solution

We know that at time
t1t-1
there were
(t1)+2=t+1(t-1)+2=t+1
balls in both boxes.

At time
tt
, how can box #1 come to contain
kk
balls? There are two cases:
- at time
t1t-1
it had
k1k-1
balls and was chosen
- at time
t1t-1
it had
kk
balls and was not chosen

This leads to the following reccurence relation

pt,k=pt1,k1k1t+1+pt1,kt+1kt+1p_{t,k} = p_{t-1,k-1}\frac{k-1}{t+1} + p_{t-1,k}\frac{t+1-k}{t+1}


which has the solution by induction on
tt


pt,k=1t+1p_{t,k} = \frac{1}{t+1}


where
1<=k<=t+11<=k<=t+1
.

Base case for
t=1t=1
is trivial.

pt,kp_{t,k}


=pt1,k1k1t+1+pt1,kt+1kt+1 = p_{t-1,k-1}\frac{k-1}{t+1} + p_{t-1,k}\frac{t+1-k}{t+1}


=1(t1)+1k1t+1+1(t1)+1t+1kt+1 = \frac{1}{(t-1)+1}\frac{k-1}{t+1} + \frac{1}{(t-1)+1}\frac{t+1-k}{t+1}


by inductive assumption and because
t>=1t>=1
so no problems with dividing by 0

=k1t(t+1)+t+1kt(t+1) = \frac{k-1}{t(t+1)} + \frac{t+1-k}{t(t+1)}


=k1+t+1kt(t+1) = \frac{k-1+t+1-k}{t(t+1)}


=tt(t+1) = \frac{t}{t(t+1)}


=1t+1 = \frac{1}{t+1}


which is what we wanted.


Now for some values of
kk
, namely
11
and
t+1t+1
this is somewhat an obvious result because in these cases, we have to look at the probability of choosing one box repeatedly which is just
t!(t+1)!=1t+1\frac{t!}{(t+1)!}=\frac{1}{t+1}
, but for the other cases it is not so obvious. Drawing a tree diagram helps verify the result, I did it up to
t=3t=3
.

Cool problem overall anon :)