Solving Maxwell Boltzmann Random Number Problem

  • Context: Graduate 
  • Thread starter Thread starter jenny777
  • Start date Start date
  • Tags Tags
    Maxwell
Click For Summary
SUMMARY

The discussion focuses on solving the Maxwell-Boltzmann random number problem by generating velocities from a given set of 100 x,y random numbers. The user established bounds for the x-axis as vmin = 0 and 5 * vmax, while using the Maxwell-Boltzmann formula to derive the probability density P(v). A method was outlined to create a V vector by multiplying V_max with a range of dummy x values, and the user seeks guidance on processing the 100 x,y pairs and plotting the results effectively.

PREREQUISITES
  • Understanding of Maxwell-Boltzmann distribution
  • Familiarity with probability density functions
  • Experience with data visualization tools (e.g., Matplotlib)
  • Basic programming skills in Python or similar languages
NEXT STEPS
  • Implement the Maxwell-Boltzmann formula to calculate P(v) for the given x,y pairs
  • Learn how to plot graphs using Matplotlib in Python
  • Research techniques for calculating the area under a curve to determine the fraction of points under the probability density curve
  • Explore methods for generating random numbers from a specified distribution
USEFUL FOR

Students and researchers in physics, data scientists working with statistical distributions, and anyone involved in computational modeling of particle velocities.

jenny777
Messages
28
Reaction score
0
Hello,

i was given 100 x,y random numbers, and was asked to find:

Using vmin = 0, 5 *vmax as bounds on the x-axis, and P(0) = 0, P(vmax) as bounds on
the y-axis, generate a set of velocities vi where i = 1,...,n producing a set of random numbers from a distribution function. (When such a distribution function has been integrated so that its integral over all values is 1, it is called a it probability density.) Provide a table with the derived velocities, vi. Describe your procedure by working through the first x, y pair explicitly.

So, in order to generate random numbers, i generated dummy variables,
x=0.001~5, increasing by 0.001; so 5000 x values
Then I multiplied my V_max by the x values and called it a V vector.
for y values, I used the maxwell Boltzmann formula to find the probability density P(v).

Now, what am I suppose to do with the given 100 x,y sets? I'm really confused...

Any help will be greatly appreciated

Thank you!
 
Physics news on Phys.org
After finding the values, I'm asked to

Plot a graph of P(v) versus v for the above region, connecting values of the probability
density with a smooth curve. Also plot your uniformly-distributed x, y pairs. What fraction
of these pairs fall under the curve?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 44 ·
2
Replies
44
Views
4K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 5 ·
Replies
5
Views
415
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 5 ·
Replies
5
Views
972