Probability: Expected distance of an accelerating car - with a twist

Click For Summary

Discussion Overview

The discussion revolves around a probability problem framed in the context of a race car's movement on a straight track, focusing on calculating the expected distance traveled by the car after a specified number of turns, particularly considering the effects of random events that can reset the car's velocity. The problem involves elements of expected value, probability distributions, and potential applications of Markov chains.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Technical explanation

Main Points Raised

  • One participant describes a scenario where a race car's velocity increases based on random number generation, with a crash occurring if a specific number is rolled, resetting the velocity to zero.
  • The same participant calculates the expected distance traveled before the first crash, arriving at a value of 3540 units based on a triangular number formula.
  • The participant seeks to determine the expected distance after a fixed number of turns (60), expressing uncertainty about the complexity of the problem and mentioning the potential relevance of Markov chains.
  • Another participant emphasizes the importance of understanding how often the random number is generated, suggesting that without this information, the expected distance cannot be accurately determined.
  • A later reply introduces a recurrence relation for calculating the expected distance, denoting it as d_n, and provides a formula involving probabilities and triangular numbers, while assuming initial conditions for the recurrence.

Areas of Agreement / Disagreement

Participants express differing views on the clarity of the problem's parameters, particularly regarding the frequency of random number generation. While there is a proposed method for calculating expected distance, the discussion does not reach a consensus on the overall approach or the feasibility of the calculations.

Contextual Notes

The discussion includes assumptions about the nature of the random number generation and the conditions under which the car moves, which may affect the calculations. The complexity of the problem is acknowledged, particularly in relation to the number of possible outcomes and the use of recurrence relations.

HexNash
Messages
2
Reaction score
0
I have an expected value probability problem. Unfortunately, I do not know enough about mathematics to determine if it is even remotely feasible to try to solve it. The best way to explain it is to disguise it as a physics problem:

Imagine a race car on a never-ending straight track. Let's call the position it starts at 0 units, and its starting velocity is 0 units per turn. Suppose we generate a random number from 1 to 60. If any number except 60 comes up, its current velocity is increased by 1, and the car is moved forward the number of units corresponding to the new velocity. However, if a 60 is rolled, it crashes: the current velocity is reset to 0, and the car is not moved (as the new velocity is 0u/t).

Now, the initial problem I worked out was how many units, on average, the car will travel before it crashes once. That was fairly easy: because the distance the car travels corresponds to a triangular number [n(n+1)/2], and the probability of the trial ending is always 1/60 each turn, the expected value corresponds to the equation: sum of (n(n+1)/2)(1/60)(59/60)^n from n=0 to n=infinity = 3540

However, I have another problem I am trying to solve that is proving much more difficult:
What is the expected distance of the car after 60 (or in general, n) turns?
In this scenario, when a car crashes, its velocity is reset to 0, but it is still "in the race" for the remaining number of turns.

I have tried all different kinds of techniques to try to figure this out, but to no avail. I'm hoping this isn't too complicated or tedious to compute, but considering there are 966,467 ways to partition 60, all with differing odds of occurring, I'm not too confident. Doing some research, I found that something called a "Markov chain" might help, but I am not familiar with how those work.

Does anyone know how I can tackle this? It is nothing really important, just a thought experiment I was curious about, but it is really bugging me.
 
Physics news on Phys.org
One thing you do NOT say is how often this random number is generated. Not knowing long the car moves at a given velocity, you cannot say how far it would go.
 
HallsofIvy said:
One thing you do NOT say is how often this random number is generated. Not knowing long the car moves at a given velocity, you cannot say how far it would go.

It is discrete: each time a number is generated it is a turn, and the velocity is changed and the car is moved forward. For example, given the sequence of generated numbers: 53 04 34 60 23 47, that is 6 turns and the car is moved 1+2+3+0+1+2 = 9 units. What I am trying to figure out is the expected value after 60 turns.
 
Let d_n be the expected distance that the car will travel in a race of duration n. Let T be the last time the car is stopped (so if there is no crash we'll put T = 0). Now we can set up the following recurrence for d_n:
d_n = \sum_{i=0}^n P(T=i)(d_{i-1} + \Delta(n-i))
where \Delta(m) is the mth triangular number, and we assume d_{-1} = d_0 = 0. Now, P(T=i) = (1/60)(59/60)^{n-i}, so this recurrence let's you easily calculate d_n for any n (using a computer, of course).

The explanation of this is simple: if the car crashes for the last time at time i, it traveled an average of d_{i-1} steps in the time between the start of the race and i and travels exactly \Delta(n-i) steps after that time.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
2K
  • · Replies 29 ·
Replies
29
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K