Simulating Random Walk: Calculating Diffusion Length

  • Thread starter Thread starter AndersonMD
  • Start date Start date
  • Tags Tags
    Diffusion Length
AI Thread Summary
The discussion focuses on simulating a random walk to calculate diffusion length using Gaussian distributions. It highlights the relationship between the step size in the random walk and the diffusion length formula, specifically for excitons with a given lifetime. The conversation clarifies the need to distinguish between fixed-length steps and normally distributed step lengths in the simulation. Participants discuss the mathematical framework, including the diffusion equation and its solution using Gaussian functions. Ultimately, the goal is to determine the equivalent diffusion length from the simulation results.
AndersonMD
Messages
50
Reaction score
2
I am trying to do simulations of a random walk, I get out a normal distribution in 1D how do I get the "diffusion length" from the gaussian fit?
 
Physics news on Phys.org
From wikipedia

Gaussian random walk

A random walk having a step size that varies according to a normal distribution is used as a model for real-world time series data such as financial markets. The Black-Scholes formula for modeling equity option prices, for example, uses a gaussian random walk as an underlying assumption.

Here, the step size is the inverse cumulative normal distribution Φ − 1(z,μ,σ) where 0 ≤ z ≤ 1 is a uniformly distributed random number, and μ and σ are the mean and standard deviations of the normal distribution, respectively.

For steps distributed according to any distribution with a finite variance (not necessarily just a normal distribution), the root mean squared expected translation distance after n steps is

E|S_n| = σ√n.
 
So, if I am looking for the diffusion length of an exciton with lifetime \tau, where l_{D}=\sqrt{D_{X}\tau}, and I want to find out what the equivalent diffusion length in my simulation is where I am using random steps of length dx, I can fit the gaussian and find the E mentioned above?
 
Your original question and your comment are confusing me. Are you talking about a random walk with steps of fixed length (random direction) or are the step lengths distributed normally? Also, how many dimensions is your walk? I am not familiar with the physics notion (exciton) and the diffusion length (?) formula.
 
I think I figured it out.
In general (1D) you can solve for:

\frac{\partial n_{x}}{\partial t} = D_{x}\frac{\partial^{2} n_{x}}{\partial x}-\frac{n_{x}}{\tau} + I(x,t)

This can be solved with a Gaussian and \sigma^{2} = 4D_{x}t. What I was trying to do was using a random step MATLAB simulation with a time step, lifetime, and spatial step figure out what the equivalent diffusion length was.
 
Thread 'Question about pressure of a liquid'
I am looking at pressure in liquids and I am testing my idea. The vertical tube is 100m, the contraption is filled with water. The vertical tube is very thin(maybe 1mm^2 cross section). The area of the base is ~100m^2. Will he top half be launched in the air if suddenly it cracked?- assuming its light enough. I want to test my idea that if I had a thin long ruber tube that I lifted up, then the pressure at "red lines" will be high and that the $force = pressure * area$ would be massive...
I feel it should be solvable we just need to find a perfect pattern, and there will be a general pattern since the forces acting are based on a single function, so..... you can't actually say it is unsolvable right? Cause imaging 3 bodies actually existed somwhere in this universe then nature isn't gonna wait till we predict it! And yea I have checked in many places that tiny changes cause large changes so it becomes chaos........ but still I just can't accept that it is impossible to solve...
Back
Top