Half-Cauchy distribution 2026-10-14
The absolute value of a centered Cauchy distribution variable with scale has this probability density function. Its positive support and doubled density distinguish it from the two-sided distribution. Its unit-scale case arises as the ratio of two independent, equally scaled half-normal distribution variables.
Half-normal distribution Created 2026-09-24 Updated 2026-10-14
The half-normal distribution describes the absolute value of a centered Gaussian random variable. Its unit-scale version is for a standard normal random variable . It folds the negative half of the standard normal distribution onto the positive half, retaining the size of a deviation while discarding its sign. If a centered Gaussian random variable models measurement error, its magnitude therefore has a half-normal distribution.
Here is the standard normal density and is the standard normal distribution function. For , the event is , so the symmetric probability distribution of gives . The upper-tail probability is therefore . For example, . The doubled probability density function integrates to one on , and .
The mean and variance of the unit-scale half-normal distribution are
For a short derivation, because , while gives . More generally, for has a half-normal distribution with probability density function for . Its mean is and its variance is ; here is the scale of the underlying Gaussian random variable, not the standard deviation of its absolute value.
For a nonrotating axisymmetric galactic distribution function even in , reverse every retrograde azimuthal velocity. The resulting distribution is : it preserves density and even velocity moments but makes the streaming velocity . Dependence on conserved preserves stationarity. A centered Gaussian distribution of width becomes a half-normal distribution, with mean .
For the half-normal distribution, the density ratio to is maximized at . Completing the square gives the envelope constant above and acceptance probability . Its logarithmic derivative is , so the optimal rate is . Give an accepted nonnegative value an independent fair sign to obtain the standard normal distribution. The expected number of proposals is , while the probability of rejecting one proposal is ; these are different quantities.
For , put . For , reflect the Brownian path after its first hit of . The Strong Markov property and symmetry of subsequent Brownian increments make this reflection preserve the path distribution. It exchanges the events and . Since has no atom at , the Brownian reflection principle gives
The case follows by decreasing positive levels to zero: the probability is one. At , and the probability is zero for every .
The displayed tail probabilities are exactly those of , so has the half-normal distribution of with . Thus
For , the pointwise inequality gives the lower non-strict bound. To prove strictness when , fix . Reflection at also gives
Subtracting this from gives
On this event , so is strictly positive with positive probability. Finally, is a continuous nonnegative submartingale by the conditional Jensen inequality, and part (a) gives . Its square is therefore integrable, and the strict pointwise comparison on a positive-probability event gives
This is the strict comparison of one-sided and absolute Brownian maxima. The strict lower inequality printed with needs the qualification : at both maxima vanish and all three quantities are zero.
For normal rejection sampling with an exponential envelope, complete the square in the probability density function ratio:
The maximum occurs at , which lies in the support because . Thus
The PDF exponent is inside the square root; this distinction is lost in the converted TeX.
The acceptance rule simplifies to
An exponential proposal can be generated as from an independent uniform distribution value . Since the target is normalized, the overall acceptance probability is . To maximize it,
Therefore the optimal rate is , with acceptance probability .
Finally, give each accepted half-normal distribution value an independent fair sign and output . On each half-line its probability density function is half the reflected half-normal distribution probability density function:
Consequently . The sign must be drawn independently; rejection itself does not supply it.
Assume . Draw an independent component indicator with a Bernoulli distribution of success probability . On success, generate the normal distribution from part (i) and return its absolute value; this has the half-normal distribution probability density function on . On failure, generate the Weibull distribution from part (ii). Use fresh independent uniforms for the chosen component.
The law of total probability gives the output probability density function
as required. The factor two belongs inside the half-normal component; the probability of choosing that component is , not .
For standard Brownian motion and , let be its first hitting time of . Define the reflected path by
leaving a path unchanged if . The Brownian reflection principle says that has the same path probability distribution as . In its endpoint form, for and every Borel set ,
Here is a direct proof of preservation of the path law. For a fixed integer horizon , let , with an infinite first term interpreted as infinity. This is a stopping time taking finitely many deterministic grid values. On , the history determining that event is measurable at , and subsequent Brownian motion increments are independent of that history. Those increments and their negatives have the same joint law, by symmetry of centered normal distributions and independent increments. Thus reflecting after around preserves the full path law. For any fixed horizon , the reflected paths converge uniformly on to the displayed reflected path, by continuity as decreases to . This includes , since reflection after has no effect before . Passing to all finite-dimensional probability distributions proves the assertion; no prior recurrence claim is needed. Equivalently, the Strong Markov property gives the same proof by symmetry of the fresh increments after the hit. Reflection is an involution preserving the hitting event and mapping the indicated endpoint to . An endpoint above forces a hit by continuity; this proves the endpoint identity, rather than assuming it.
For , split according to whether is above or below . Since has no atom at , reflection gives
Both variables are nonnegative, so their positive tails identify the law:
For this is the half-normal distribution of scale ; at both variables vanish.
For the two separated intervals, put
Here is measurable for , has the normal distribution , and is a function of increments after . The independent increments make these three objects mutually independent. The later absolute maximum is , so equality of the two maxima means . Conditional on , this specifies a single value of the nondegenerate normal distribution , and hence has probability zero. Therefore
This proves the atomless maxima on separated Brownian intervals without incorrectly treating the two absolute maxima as independent.
The priors are proper but difficult to justify as practically weak information. Uniform bounds on log asymptotes cover fantastically small and large circumferences. The independent prior on the transformed location makes the centered fraction spend much of its mass near zero or one, while the slope prior permits decreasing growth. Independence also ignores likely relationships among curve parameters.
The prior on error precision is proper, but its near-zero shape creates a highly skewed prior with consequential mass near very small precision. It is not automatically harmless. Use biologically scaled priors for asymptotes and timing, a positive growth-rate prior, and a defensible prior on the error standard deviation such as a suitably scaled half-normal distribution. Check simulated trajectories with prior predictive checks and assess prior sensitivity.
Choose a proposal probability density function and a finite envelope constant such that wherever the target has positive density. A rejection sampling trial draws and, independently, ; accept when
otherwise repeat with fresh independent draws. For any measurable set ,
In particular , so the conditional accepted density is . More explicitly, summing over the possible first accepted trial gives
Thus the algorithm terminates almost surely and its output has exactly the requested law.
The envelope constant satisfies and is the expected number of proposal trials for one output, by the geometric distribution of the waiting time. This is the quantity often called the rejection rate . The actual probability of rejecting a particular proposal is , and the expected number of rejections before one acceptance is ; these conventions should not be conflated.
To generate a standard normal distribution, first generate its absolute value, whose half-normal distribution density is
With the given exponential distribution proposal, the density ratio is
Its maximum is at , hence the normal rejection sampling with an exponential envelope constant is
Draw and a fresh uniform ; accept when . An accepted has density . Independently choose a sign, positive or negative with probability , and output with that sign and magnitude . On either half-line its density is , proving the normal output law.
To optimize the rejection rate, differentiate
Its derivative is , negative before one and positive after one; equivalently its second derivative is . Thus
The rejection probability is consequently about .
To use only uniforms, apply inverse transform sampling: for an independent ,
has survival probability for . Use a second independent uniform for acceptance, and, after acceptance, a third independent uniform to choose the sign. Repeat with fresh uniforms after any rejection. No exponential generator is then needed.
Write for the genuine surface density of a disk, and for its three-dimensional mass density. The delta function in the printed surface density formula belongs to , not to . Introduce a reference length to make logarithms dimensionless. The intended model is the infinite, self-gravitating, scale-free Mestel disk, with no extra source or imposed gravitational field.
The circular speed satisfies . Thus the flat galaxy rotation curve gives
A reflection-symmetric harmonic function with this midplane boundary value is
Verify this continuation using the Poisson equation for Newtonian gravity. For , set ; then
Hence off the astrophysical disk, and reflection gives the lower-half-space solution. Across the astrophysical disk the derivative jumps by . The distributional Poisson equation for Newtonian gravity therefore gives
At the origin the enclosed disk mass tends to zero linearly with radius, so there is no additional central point mass. This verifies the Mestel disk potential-density pair. The astrophysical disk has infinite total mass and a logarithmic Newtonian gravitational potential, so it is not an isolated finite-mass model with Newtonian gravitational potential zero at infinity. The usual scale-free boundary condition is important: the midplane rotation curve alone would also permit an added term , representing an extra uniform sheet without changing the radial circular force. That contribution is excluded in the intended Mestel disk model.
Use a mass-weighted planar galactic distribution function, so is the stellar mass in a small planar phase space element. A number-weighted function instead needs the stellar mass factor when computing . Assume a steady collisionless stellar system and isotropy in the two in-plane velocity components. Put and write . The stationary Collisionless Boltzmann equation becomes
Since this holds in every velocity direction, . In coordinates with , this is exactly . Therefore the planar isotropic distribution is , where is the specific orbital energy. Stationarity is essential; instantaneous isotropy alone would not imply this result.
Integrating over the two-dimensional velocity plane gives the planar isotropic distribution inversion:
On the astrophysical disk , so . Differentiate the integral with respect to its lower limit:
The boundary value as verifies the integrated equation as well as its derivative. Choosing the implicit length unit recovers the printed normalization. Changing the additive energy zero changes this prefactor accordingly.
At a fixed radius, the normalized velocity density is
It is a product of centered Gaussian distributions. Differentiating the supplied Gaussian integral with respect to its coefficient gives the second moments, and odd moments vanish. Thus the in-plane velocity dispersions are
An exactly planar astrophysical disk has and . The nonzero circular speed is a property of the force field, not a statement that this hot stellar distribution has net rotation.
Reversing every retrograde star folds the azimuthal Gaussian to a half-normal distribution. Equivalently the new steady galactic distribution function is , because and are integrals of the motion. Its density and even velocity moments are unchanged. Its streaming velocity is
This maximally prograde stellar distribution still has radial motion and a spread of azimuthal speeds; it does not place every star on a circular orbit. In particular while . The mean speed is smaller than the root-mean-square speed , which explains why it is not the circular speed.
If , then has a scaled half-normal distribution with
Put . The population median is , and the asymptotic distribution of a sample median gives
Under , positivity of the scale means . If is the -quantile of the standard normal distribution, an asymptotically level- test rejects for
Larger scale makes the population median larger, so this is the appropriate one-sided rejection region.
Take the proposal density . For the target half-normal distribution,
The ratio is maximized at , so the sharp envelope constant is
Generate and an independent uniform , and accept when
The accepted has the half-normal distribution, so in distribution for . Multiplying it by an independent random sign that is positive and negative with equal probabilities restores the two symmetric halves of the Gaussian density. Thus