Interesting exercise of probability

Click For Summary

Discussion Overview

The discussion revolves around a probability exercise involving a snake's movement in a forest. The snake can move in three directions: left, right, or straight, with the stipulation that if it encounters its tail, it dies. Participants explore the probability of the snake walking at least 10 meters before dying, incorporating various mathematical models and approaches.

Discussion Character

  • Exploratory, Mathematical reasoning, Debate/contested

Main Points Raised

  • One participant describes the snake's movement and proposes determining the probability of it walking at least 10 meters before dying.
  • Another participant suggests encoding the snake's movements as a sequence of -1's, 0's, and 1's, and formulates a probability expression based on the length of this sequence.
  • A different participant introduces a set of states and recursive equations to model the snake's movements, leading to a matrix formulation for calculating probabilities.
  • One participant provides a specific probability value of 12913/19683, presumably as a result of their calculations.

Areas of Agreement / Disagreement

Participants present multiple approaches to the problem, and while they share some common ground in their mathematical modeling, there is no consensus on a single method or final probability value. The discussion remains unresolved with competing views on the calculations.

Contextual Notes

Some assumptions about the snake's movements and the conditions for dying are not fully articulated, and the mathematical steps leading to the final probability value are not detailed, leaving room for interpretation and further exploration.

Alexsandro
Messages
49
Reaction score
0
A snake with a little more than 4 meters takes a walk for the forest in the following way. After to walk 1 meter in definitive direction it decides aleatoriamente if she capsizes for the left or if she capsizes for the right or if she continues in the same direction, independently of the previous decisions. However, if at some moment it finds its proper tail, it does not recognize it, bites and dies poisoned. She determines the probability of that the snake walks at least 10 meters before dying.
 
Physics news on Phys.org
Consider encoding the above movements this way,
1. whenever the snake moves right, mark it as -1
2. whenever the snake moves straight, mark it as 0
3. whenever the snake moves left, mark it as 1

Thus the movements of snake can be encoded as a stream of -1's,0's and 1's.
This sequence terminates whenever we see 4 consecutive 1's or -1's.
The required probability then becomes,
P(length of sequence >=10)
= 1 - P(length of sequence<10)
I think this should be computable, albeit tedious (which is why i am avoiding doing it right now anyways).

-- AI
 
-- and all mirror reflections state 1 whre the last 2 metres can be oriented in any way
_| " state 2 where the last 2 metres should not be oriented parallel to the first one

=| state 3

We can formulate the following:

p1(n+1)=1/3.p1(n)+1/3.p2(n)+1/3.p3(n)
p2(n+1)=2/3.p1(n)+1/3.p2(n)+1/3.p3(n)
p3(n+1)=0.p1(n)+1/3.p2(n)+0.p3(n)

which is of the form
P(n+1)=T.P(n)
So we have
P(9)=T^9.P(0)..as we need 9 movs to be alive so that it definitely moves 1 more metre
where P(0)=[1,0,0]'

SO we get

P(9)=[0.2317 0.3136 0.1108]

or pr(living)=0.6560
 
Last edited:
To be more precise it is
12913/19683
 

Similar threads

  • · Replies 116 ·
4
Replies
116
Views
18K
  • Poll Poll
  • · Replies 2 ·
Replies
2
Views
9K
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
28
Views
9K
  • · Replies 8 ·
Replies
8
Views
7K
  • · Replies 69 ·
3
Replies
69
Views
14K
  • · Replies 0 ·
Replies
0
Views
4K
  • · Replies 40 ·
2
Replies
40
Views
6K
Replies
9
Views
3K