« View all new features in Mathematica 9  previous  |  next 
New in Mathematica 9Random Processes

Particle Moving between Two Barriers 

The collision times for a particle moving between two barriers are distributed exponentially, with a mean of three microseconds. If the particle starts at the right-hand barrier () and moves towards the left-hand barrier (), then simulate the collision process for 100 microseconds.

In[1]:=
Click for copyable input
X
In[2]:=
Click for copyable input
X
In[3]:=
Click for copyable input
X
Out[3]=

Variance for the slice distribution is 1.

In[4]:=
Click for copyable input
X
Out[4]=

Compare with the variance of a sample.

In[5]:=
Click for copyable input
X
Out[5]=