Continuous distribution

Arcsine distribution

A quantity that is most likely to be near either end of its range and least likely in the middle. Its best-known appearance is Lévy's arcsine law: in a long fair game of coin tossing, the fraction of the time one player is ahead is close to arcsine on , so long leads by one player are the rule, not an even split. It is the Beta() distribution, rescaled to .

Arcsine probability calculator

P(X ≤ 0.5) = 0.5

At the parameters set by the sliders. The shaded region on the plot is the probability; the dots on the CDF mark F at its ends.

PDF

012−2−10123f(x)mean

CDF

00.250.50.751−2−10123F(x)

mean 0.5 · variance 0.125 · sd 0.3536 · entropy −0.2416 nats

Formulas

Parameters
  • , the lower end
  • , the upper end
Support
PDF
CDF
Mean
Variance
Mode
Entropy

The quantile function is . SciPy's arcsine is on and takes loc and scale .

Worked example

Two players toss a fair coin many times. Using the arcsine law, what is the probability that one of them (either one) is ahead more than 90% of the time?

The fraction of time player 1 is ahead is approximately Arcsine(), so the probability is About 41%, while a split between 40% and 60% has probability only 0.13. answer checked by code

How it relates to others

All the relationships, as a diagram →

In Python

from scipy import stats
import numpy as np

X = stats.arcsine(loc=0, scale=1)
X.pdf(0.3)  # f(0.3) = 0.6946
X.cdf(0.3)  # P(X ≤ 0.3) = 0.369
X.mean(), X.var()  # 0.5, 0.125
X.ppf(0.95)  # 95th percentile
X.rvs(size=10, random_state=0)

rng = np.random.default_rng(0)
rng.beta(0.5, 0.5, size=10)

NumPy has no arcsine sampler: it is Beta(½, ½).

Choosing between this and its neighbours? Which distribution for proportions and probabilities?

← KumaraswamyStudent's t →