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?
#PROBABILITY AND STATISTICS PLEASE HELP
178 messages · Page 1 of 1 (latest)
- Do not ping the Moderators, unless someone is breaking the rules.
- Do not ping the Helper Moderators, unless there is a conflict between helpers.
- Do not ping other members randomly for help.
- 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.
- Wait patiently for a helper to come along.
- 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:
What happens when an ant reaches the end of the rod?
it falls off
and doesnt participate again
in any collision
Which is logically equivalent to just having an infinitely long rod.
Filtering irrelevant information out of the question is helpful.
Any idea on how to actually solve the problem though?
Well, yes.
I mean, how is expectation defined?
No.
It's really not.
other way is sum X.p(x)
the intuitive meaning still holds true
unfortunately though there really is no nice way to do it this way
i have tried
Isn't there?
nope
try to find the probability that alice undergoes exactly k collisions
i am not seeing any way to do this
Well, for k = 0, it's trivially 1/2^12.
yes
Look, what we can do to try to find a pattern is start with a smaller example.
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
How do you "know" that?
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
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?
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
Well, let's think about the other ants in this line.
What's the expected number of collisions for an ant on the end?
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
Show your work there.
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
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
Well, I don't see how it's that complex.
it may undergo as many as 3 collisions
but calculating probability for each does not seem simple
The probability of zero collisions is 1/2^2 + 1/2^23.
Hmm. Show the work?
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?
I agree that it will get more complicated. I disagree that there will be no visible pattern.
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)
Maybe it would be more useful to go back to considering the probability of n collisions of the center ant.
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
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
oh ig this can be done in the way we choose any 1 ant from these 12 to go towards alice rest all look right
so thats 12C1/2^12
so 12C1/2^12(1-1/2^12)
And of course, 1 = 12C0, right?
Can you sense the pattern?
Let's think about 3 collisions now.
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
Well, remember.
wait is it gonna be 12c1/2^12
Hmm.
I guess at 3 collisions we do start caring about every ant?
wdym by that
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.
yea
so for k=4 it shud be
12c2/2^12 * 12c2/2^12
for k=5 maybe 12c3/2^12 * 12c2/2^12?
Or should we double that?
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
Wait, no.
Yeah, I figured it out.
does this seem right
yea
and to this we add the case for 0 and 1 and 2 collissions
oh wait we have to find expected lmao
so we multiply by the number of collissions for each term
That would make sense to me.
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
I mean, maybe it's telescoping?
Yeah, don't.
why though
Don't ever use chatbots for math.
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
Is dividing by 2^24 accurate?
the order of our answer is correct so dividing by 2^24 isnt the issue i think
can someone please take a look at the calculations we have done and see if we went wrong somewhere??
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
@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.
@white galleon The user still needs help with this help request.