A Byte of PhysicsLogo

Velocity distributions

A gas is described by a distribution of velocities, not a single representative speed. Histograms and summary moments expose different aspects of the same samples. A distribution is a data product with a bin policy and sampling context, not a decorative collection of bars.

Think like a programmer

Bin velocity data with declared edges, units, and an endpoint rule, then retain raw samples for re-binning. Test that accepted histogram counts sum to particle count, every sample maps to exactly one bin or an explicit overflow bucket, and changes in bin width do not invent trends. Keep velocity components separate from speed magnitude; they answer different physical questions.

Model checklist

Inputs
Velocity component or speed samples, bin edges and endpoint policy, units, sample window, particle count, mass assumptions, and equilibrium criterion.
State
Raw samples, bin counts, overflow/rejected counts, mean, variance, mean-square speed, and sample metadata.
Rule
Assign each accepted sample to exactly one named bin; calculate summaries from raw samples rather than rounded bar heights.
Output
Distribution, numerical moments, count-conservation check, and equilibrium/uncertainty context.
Check
Counts plus explicit overflow equal accepted samples; re-binning preserves raw-sample moments; symmetric equilibrium component samples have near-zero mean; all input samples/units are declared.
\[\langle v^2\rangle=\frac1N\sum_{i=1}^{N}v_i^2\]

Mean speed, mean-square speed, and most-probable speed are different reducers. Squaring emphasizes faster particles, which is why mean-square speed connects naturally to kinetic energy. A component histogram can be symmetric around zero even while the speed-magnitude histogram has no negative values. Before comparing a simulation with an equilibrium Maxwell–Boltzmann shape, subtract any bulk center-of-mass velocity or explicitly model the drift.

Bin width trades detail against noise. Very narrow bins can make finite samples look jagged; very wide bins hide structure such as two populations. A sound workflow stores raw samples, fixed edges, count totals, overflow policy, and the sample window. It can then test whether a conclusion—such as a broadened distribution after heating—survives reasonable re-binning rather than depending on a chosen bar width.

Try this experiment

Prediction: Increasing equilibrium temperature broadens a random velocity distribution, while a uniform drift shifts component means without necessarily broadening random thermal motion.

Define a bin policy for values on an edge and a test that catches dropped samples. Compare two bin widths over the same raw data, then distinguish a shifted component mean from an increased mean-square speed after bulk motion is removed.

Where this model breaks

Few samples produce noisy histograms, and non-equilibrium systems may not follow an equilibrium distribution at all. Quantum statistics, interactions, mixtures, spatial gradients, driven systems, selection bias, and measurement resolution can change the expected shape. A histogram never proves equilibrium by itself; it needs time, spatial, and model-context checks.

Summary

Treat distributions as reproducible data products with raw-sample provenance, binning rules, count conservation, units, and sample windows. Compare multiple moments and reasonable bin widths before assigning a thermodynamic interpretation.

Glossary

Self-check

  1. What must histogram counts sum to?
  2. Why retain raw samples?
  3. Why is mean-square speed not mean speed?
  4. What does heating change qualitatively?

Sources

Model contract

Treat the lesson as a small function before treating it as a fact to memorize. Give every value a unit, keep only the state needed for the next step, and make the output easy to inspect.

\[\text{observable output} = f(\text{inputs},\,\text{state})\]
Inputs
Quantities you set or measure, with units and useful bounds.
State
Values the program must retain to reproduce the next result.
Rule
The relationship or update that turns inputs and state into a result.
Check
A known limit, unit check, invariant, or measured result that can expose a bad model.

Implement the idea as a model

For Velocity Distributions, write down the quantities you can control, the values your program must retain, and the result a reader could inspect. In Kinetic Theory of Gases, the useful program is not the drawing: it is the smallest explicit model that makes a prediction you can test.

Guided experiment

Prediction: changing one declared input while holding the others fixed should change only the outputs that the model connects to that input. Choose one input, predict the direction of change, then check a limiting case such as zero, a symmetric arrangement, or a familiar low-speed or small-change approximation.

Where this model breaks

This lesson is a teaching model, not a complete simulator. Before using it outside the stated question, check which interactions, scales, uncertainties, boundary conditions, and measurement limits it leaves out.

Summary

Treat Velocity Distributions as a contract: named inputs and units enter a rule, the rule produces an observable result, and a known limit or invariant checks whether the implementation deserves trust.

Glossary

  • Input: a measured value or chosen parameter supplied to a model.
  • State: the smallest set of values needed to continue or reproduce a model.
  • Validation: comparing an output with a known result, limit, invariant, or measurement.

Self-check

  1. Which values are inputs, and which values must remain state?
  2. What observable result would tell you the model is behaving as expected?
  3. Which assumption would you test first before applying the model to a real system?

Model review: turn Velocity Distributions into a test

Construct tested velocity histograms and moments from particle samples rather than a single average speed.

  1. Name the inputs and units that the kinetic theory of gases model needs.
  2. Separate the state you must keep from values you can calculate when needed.
  3. Write one rule that maps the current state and inputs to an observable result.
  4. Choose a limiting case, unit check, invariant, or known result before trusting an output.
  5. State one assumption you would change before using this simplified model for a real decision.

Share to: