#PROBABILITY AND STATISTICS PLEASE HELP

178 messages · Page 1 of 1 (latest)

novel tendon
#

Twenty-five ants are placed randomly on a meter-long rod; the thirteenth ant
from the west end of the rod is our friend, Ant Alice. Each ant is facing east
or west with equal probability. They proceed to march forward (that is, in
whatever direction they are facing) at 1 cm/sec; whenever two ants collide,
they reverse directions. What is the expected number of collisions that Alice herself has?

meager pilotBOT
#
  1. Do not ping the Moderators, unless someone is breaking the rules.
  2. Do not ping the Helper Moderators, unless there is a conflict between helpers.
  3. Do not ping other members randomly for help.
  4. Ask your question and show the work you've done so far. If you've posted a screenshot of a question, specify which part you need help with.
  5. Wait patiently for a helper to come along.
  6. If the Helper has answered your question, remember to thank them with the Mathematics Ranks bot and close the thread with:

+close
Feel free to nominate the person for helper of the week in #helper-nominations
If you're happy with the help you got here, and the server overall, you can contribute financially as well:

white galleon
novel tendon
#

and doesnt participate again

#

in any collision

white galleon
#

Which is logically equivalent to just having an infinitely long rod.

novel tendon
#

well yea

#

it is , ig

#

though i do not see how that helps us whatsoever

white galleon
novel tendon
white galleon
#

I mean, how is expectation defined?

novel tendon
#

simulate the event

#

millions of times

white galleon
#

No.

novel tendon
#

the average answer

#

thats one way to look at it

white galleon
#

It's really not.

novel tendon
#

other way is sum X.p(x)

novel tendon
novel tendon
#

i have tried

novel tendon
#

nope

#

try to find the probability that alice undergoes exactly k collisions

#

i am not seeing any way to do this

white galleon
#

Well, for k = 0, it's trivially 1/2^12.

novel tendon
#

yes

white galleon
#

Look, what we can do to try to find a pattern is start with a smaller example.

novel tendon
#

yea i understand that but i am confident this problem is not really gonna be doable with a strategy like that

#

like there was another variation of this problem

#

that i was able to do

#

what is total expected no of collissions between ants

#

the way i did that was the following

#

u assume each ant carries a flag

#

whenever 2 ants collide

#

you can say they just exchange flags

#

and the flags sort of just pass thru any ant , like a ghost

#

so using this , we can just analyze flags

#

there are 25C2 flags

#

pairs of flags*

#

and for each pair , either both flags point in same direction east or west, or they point towards each other , or away from each other each being equally likely

#

so probability for any 1 pair to have a collission is 1/4

#

using linearity of expectation the total number of expected collissions comes out to be 25c2*1/4 which is 300/4=75

#

i know we have to do something similar to this ghost flag process in this problem too but i am struggling to figure how exactly we do that

white galleon
#

How do you "know" that?

novel tendon
#

problem is part of 3 problems each of which utilizes this fact

#

if you want , feel free to try and find a pattern for general k , i am confident you wont be able to

#

bcuz idts there exists any pattern

white galleon
#

You do realize there are literally infinitely many possible functions from N to N, right? And yet you're confident that literally none of them count what we want to know here?

novel tendon
#

no of course there may exist some function

#

but it being simple enough that you just notice it from a pattern?

#

i dont think so

white galleon
#

Well, let's think about the other ants in this line.

#

What's the expected number of collisions for an ant on the end?

novel tendon
#

for an ant on the end

#

i will have

#

with 1/2probability

#

0 collisions

#

with 1/2 probability 1 collission

#

so 1/2 a collision

white galleon
novel tendon
#

well its trivial isnt it

#

oh wait

#

it is possible that all ants go to the right

#

so its actually 1* (1/2-1/2^24) + 1/2^240 + 1/20

#

so its 1/2 - 1/2^24

#

except for the case where all ants are going away from our ant there will always be 1 collision for this corner ant

#

bcuz the moment it collides it will again go off to infinity with no ant being able to catch up due to all of them moving at same speed

white galleon
#

Right.

#

So now, what about the ant second from the end?

novel tendon
#

with 1/4 probablity it goes to infinity straight away

#

and suddenly it becomes very complex

#

and i am not really sure how to end up with a closed form expression now

white galleon
#

Well, I don't see how it's that complex.

novel tendon
#

it may undergo as many as 3 collisions

#

but calculating probability for each does not seem simple

white galleon
#

The probability of zero collisions is 1/2^2 + 1/2^23.

novel tendon
#

yea

#

for 1 collision ig it wud be 1/4*(1-1/2^23) ig?

white galleon
#

Hmm. Show the work?

novel tendon
#

this only happens

#

again assume its the left end we are talking about WLOG

#

then the ant even more left to it has to go away from it

#

and this ant we are looking at has to go towards right

#

and from the remaining 23 ants

#

at least 1 has to be looking left

#

probability for which is 1- 1/2^23

#

complement of probability that all go right

#

so 1/4* that

#

but you do see how this will get more and more complicated with no visible pattern as we go further?

white galleon
#

I agree that it will get more complicated. I disagree that there will be no visible pattern.

novel tendon
#

for 2 collisions ig it is again 1/4*(1-1/2^23) , as this time both left most ants have to move towards each other , then after collission we need 1 more collision with one of the ants from the 23 ones , so at least one must move left from those 23 which is same as before

#

for 3 collisions we can just look at the remaining probability that is 1- ( 2* (1/4)(1-1/2^23) + 1/2^2+1/2^23))= 1-(3/8 + 3/2^24)

white galleon
#

Maybe it would be more useful to go back to considering the probability of n collisions of the center ant.

novel tendon
#

hmm

#

for 1 collision it wud be 1/2^12 (1-1/2^12)

#

or is it wait

#

yea

#

it is

#

all ants that are on that side facing away from alice must keep going away from her with prob 1/2^12

#

and all ants that are on the side that alice is looking at

#

we must need at least 1 to move towards alice

#

prob of that is 1-1/2^12

white galleon
#

Right.

#

2 collisions?

novel tendon
#

its much more complicated for 2

#

cuz we need to ensure that alice collides with only 1 ant from the 12 she is facing and then these 12 go on to infinity without collissions

#

then we multiply this by (1-1/2^12) for 1 collision with 1 of the ants from direction she is not facing

novel tendon
#

so thats 12C1/2^12

#

so 12C1/2^12(1-1/2^12)

white galleon
#

And of course, 1 = 12C0, right?

#

Can you sense the pattern?

#

Let's think about 3 collisions now.

novel tendon
#

for 3 we need 2 collissions in direction she is facing so 12c2/2*12 and 1 collission from direction she isnt facing so thats 12C1/2^12

white galleon
#

Well, remember.

novel tendon
#

wait is it gonna be 12c1/2^12

white galleon
#

Hmm.

novel tendon
#

yea it is

#

we need exactly 1 ant

white galleon
#

I guess at 3 collisions we do start caring about every ant?

novel tendon
#

wdym by that

white galleon
#

Well, because for 0 and 1, we only care about the ants in the direction Alice ends up going, and the one ant she collides with.

novel tendon
#

yea

#

so for k=4 it shud be

#

12c2/2^12 * 12c2/2^12

#

for k=5 maybe 12c3/2^12 * 12c2/2^12?

white galleon
novel tendon
#

so it becomes sum of (2r)(12Cr)^2/2^24 from r=2 to 12 and (2r-1)12Cr*12Cr-1/2^24 from r=2 to r=12

white galleon
#

Wait, no.

novel tendon
#

we are assuming a direction WLOG

white galleon
#

Yeah, I figured it out.

white galleon
#

No, that's not what confused me.

#

I forgot that the turns have to be in order.

novel tendon
#

yea

novel tendon
#

oh wait we have to find expected lmao

#

so we multiply by the number of collissions for each term

white galleon
#

That would make sense to me.

novel tendon
#

ive edited it

#

and i think this seems right now

#

but unfortunately this sum is not something i know how to evaluate

#

maybe wolfram alpha will help here

white galleon
#

I mean, maybe it's telescoping?

novel tendon
#

uh idts

#

ill ask gpt to tell me prompt to put in wolfram

white galleon
#

Yeah, don't.

novel tendon
#

why though

white galleon
#

Don't ever use chatbots for math.

novel tendon
#

anyways wolfram is giving a much smaller answer

#

the actual ans is around 10.7

#

so even if we add the terms for 0 1 and 2 to this

#

we wont be close to the right answer

#

that means we messed up somewhere

#

man thats disappointing af

white galleon
#

Is dividing by 2^24 accurate?

novel tendon
#

yea cuz we are essentially fixing directions

#

for all 24 ants

novel tendon
#

can someone please take a look at the calculations we have done and see if we went wrong somewhere??

novel tendon
#

Lmao I just realized

#

@white galleon we have been stupid af xd

#

In the case of 4 collisions say

#

After all 4 collisions happens we just need all ants in the direction Alice was facing to be now all going away from her but not for the ants that Alice is facing away from

#

We had written 12c2*12c2 /2^24

#

Rather it would be 12c2/2^12 for ants on right side ie . Direction Alice is facing

#

And for direction she isnt facing we just need at least 2 to move right but if it's more than that it still works

#

SO it's 1- probability 0 ant goes right -probability 1 ant goes right

#

Lmfao we gotta do it this way for all the cases

lost nightBOT
#

@novel tendon

<:HelpIcon:1304095958283321385>| Help Reminder

Hello thegrimreaper4480, this is a friendly reminder that your help request has been inactive for more than 24 hours. If you no longer need assistance, please consider closing the thread using the +close command. This thread will be automatically closed in 3 days if it remains inactive.

lost nightBOT
#

@white galleon The user still needs help with this help request.