arXiv reader

Computational Framework for Bézier Distributions

Esteban Leiva, Andrés L. Medaglia and Luis F. Zuluaga

arXiv
2606.23841v1 · PDF · 22 June 2026
Categories
math.OC, stat.CO
Licence
CC BY 4.0 The site shows the text.

Abstract

Flexible continuous univariate distributions with bounded support are essential for accurate input modeling in stochastic simulation and decision analysis. Although Bézier distributions provide a powerful family capable of representing complex shapes, their adoption has been hindered by the lack of efficient fitting procedures and modern software implementations. This paper develops a computational framework for fitting Bézier distributions to empirical data via both minimum error and maximum likelihood estimation, leveraging first-order optimization methods and exploiting the geometry of the parameter space. We identify provably (asymptotically) lossless convex restrictions of the feasible set that enable efficient projection operators based on isotonic regression and develop first-order algorithms that reduce computational runtime by three to four orders of magnitude compared to traditional derivative-free methods, while delivering consistent fits across real-world data. When benchmarked against the nonlinear solver IPOPT, our methods prove three orders of magnitude faster on average and more robust, while achieving comparable accuracy. To bridge the gap between theory and practice, we introduce bezierv, an open-source Python package providing a unified interface for fitting, analyzing, and convolving Bézier distributions.

Items 15

Lemma

Lemma 1

A92C

\mathcal{C}_n \subseteq \mathcal{S}_n.

Used by Proof
Proof of Lemma 1

Proof. See Appendix ?.

Example

Example 1

T6EK

Let n=3 and define the control points \mathcal{P}_3=\{(0,0), (0.6,1),(0.4,0), (1,1)\}. The first differences are \Delta x_0= 0.6, \Delta x_1=-0.2, \Delta x_2= 0.6, \Delta z_0= 1, \Delta z_1=-1, and \Delta z_2=1. Taking derivatives, P_z'(t;3,\mathbf{z})=3(2t-1)^2\geq 0 on [0,1] and P_x'(t;3,\mathbf{x})=3(1.6t^2-1.6t+0.6)>0 on (0,1), so \mathcal{P}_3\in\mathcal{S}_3\setminus\mathcal{C}_3. Moreover, since the Bernstein polynomials \{B_{3,i}\}^3_{i=0} form a basis for the space of polynomials of degree at most n=3 on [0,1], the Bézier curve defined by \mathcal{P}_3 is unique: no other set of four control points defines the same third-degree curve.

Theorem

Theorem 1

PHTQ

Let (\tilde{\mathbf{x}}, \tilde{\mathbf{z}}) \in \mathcal{S}_{\tilde{n}} define a Bézier cdf of degree \tilde{n} denoted by \tilde{\mathbf{P}}(t) = \bigl[P_x(t;\, \tilde{n},\, \tilde{\mathbf{x}}),\, P_z(t;\, \tilde{n},\, \tilde{\mathbf{z}})\bigr]^\top and let \kappa = \max\!\bigl( \| P_x''(\cdot;\, \tilde{n},\, \tilde{\mathbf{x}}) \|_\infty,\; \| P_z''(\cdot;\, \tilde{n},\, \tilde{\mathbf{z}}) \|_\infty \bigr). For any n \geq 1, let (\mathbf{x}, \mathbf{z}) \in \mathbb{R}^{(n+1)} \times \mathbb{R}^{ (n+1)} be the control points obtained by evaluating \tilde{P} at i/n,

x_i \;=\; P_x\!\left(\tfrac{i}{n};\,\tilde{n},\,\tilde{\mathbf{x}}\right), \qquad z_i \;=\; P_z\!\left(\tfrac{i}{n};\,\tilde{n},\,\tilde{\mathbf{z}}\right), \qquad i = 0, 1, \ldots, n,

and let \mathbf{P}(t) := \bigl[P_x(t;\, n,\, {\mathbf{x}}),\, P_z(t;\, n,\, {\mathbf{z}})\bigr]^\top be the n-th degree Bézier curve they generate. Then ({\mathbf{x}}, {\mathbf{z}}) \in \mathcal{C}_n and

\sup_{t \in [0,1]} \bigl\| \mathbf{P}(t) - \tilde{\mathbf{P}}(t) \bigr\|_\infty \;\leq\; \frac{\kappa}{8n}.
Used by Proof, Proof
Proof of Theorem 1

Proof. See Appendix ?.

Corollary

Corollary 1

QQ36

Let (\tilde{\mathbf{x}}, \tilde{\mathbf{z}}) \in \mathcal{S}_{\tilde{n}} define a Bézier cdf with bounded pdf, i.e. \tilde{\delta} := \min_{t\in[0,1]} P_x'(t;\,\tilde{n},\,\tilde{\mathbf{x}}) > 0, and let (\mathbf{x}, \mathbf{z}) \in \mathcal{C}_n be the control points (1) of Theorem 1. Set \rho = \tfrac{\Vert P_z'(\cdot ; \tilde n, \tilde{\mathbf{z}})\Vert_\infty}{\tilde{\delta}} and \kappa = \max\bigl( \|P_x''(\cdot;\, \tilde{n},\, \tilde{\mathbf{x}})\|_\infty,\, \|P_z''(\cdot;\, \tilde{n},\, \tilde{\mathbf{z}})\|_\infty \bigr). Then

\Bigg| \frac{1}{m}\sum_{j=1}^m \bigl( F_m(X_{(j)}) - P_z(t_{(j)};\,n,\,\mathbf{z}) \bigr)^2 - \frac{1}{m}\sum_{j=1}^m \bigl( F_m(X_{(j)}) - P_z(\tilde{t}_{(j)};\,\tilde{n},\,\tilde{\mathbf{z}}) \bigr)^2 \Bigg| \leq \frac{(1+ \rho)\kappa}{4n},

where t_{(j)} and \tilde{t}_{(j)} satisfy P_x(t_{(j)};\,n,\,\mathbf{x})= X_{(j)} = P_x(\tilde{t}_{(j)};\,\tilde{n},\,\tilde{\mathbf{x}}).

Used by Proof
Proof of Corollary 1

Proof. See Appendix ?.

Proposition

Proposition 1

I3KI

Solving problem (?) with the equality constraints x_0 = L and x_n = U is equivalent to solving the (n-1)-variable isotonic regression problem

\min_{\mathbf{x} \in \mathbb{R}^{n-1}} \Bigl\{ \textstyle\sum_{i=1}^{n-1}\left( a_i - x_i \right)^2 \ : \ x_i \leq x_{i+1},\ i=1,\ldots,n-2; \ \ L \leq x_i \leq U,\ i=1,\ldots,n-1 \Bigr\}.

In particular, if \mathbf{x}^* is a solution for (1), then (L, \mathbf{x}^*, U) is a solution for (?) with equality constraints x_0 = L and x_n = U.

Definition

Definition 1 (Relative smoothness (see)

H2YV

Let \mathcal{Q} \subseteq \mathbb{R}^n be a closed convex set with nonempty interior and l, h : \mathcal{Q} \to \mathbb{R} be twice continuously differentiable on \mathrm{int}(\mathcal{Q} ). We say that l is \beta-smooth relative to h on \mathcal{Q} if there exists a constant \beta > 0 such that for all \mathbf{w} \in \mathrm{int}(\mathcal{Q} ) it holds that \nabla^2 l(\mathbf{w}) \preceq \beta \nabla^2 h(\mathbf{w}), that is, \beta \nabla^2 h(\mathbf{w}) - \nabla^2 l(\mathbf{w}) is positive semi-definite.

Proposition

Proposition 2

V5VU

l(\mathbf{w}) is m-smooth with respect to h(\mathbf{w})=-\sum_{i=0}^{n-1} \ln(w_i) on \Delta^{n-1}.

Used by Proof
Proof of Proposition 2

Proof. See Appendix ?.

Proof

Proof

R4U4

Proof of Lemma 1. The boundary conditions hold by definition of \mathcal{C}_n. Non-negativity of P_z' on [0,1] follows from P_z'(t; n, \mathbf{z}) = n \sum_{i=0}^{n-1} B_{n-1,i}(t)\, \Delta z_i. For P_x', the boundary conditions give \Delta x_j > 0 for some j\in \{0,...,n-1\}; since B_{n-1,i}(t) > 0 on (0,1), it follows that P_x'(t; n, \mathbf{x}) = n \sum_{i=0}^{n-1} B_{n-1,i}(t)\, \Delta x_i \ge n\, B_{n-1,j}(t)\, \Delta x_j > 0 on (0,1).

Uses Lemma 1
Proof

Proof

QPJZ

Proof of Theorem 1. By the endpoint interpolation property, ({\mathbf{x}}, {\mathbf{z}}) inherits the boundary conditions from \mathcal{S}_{\tilde{n}}. Since P_x(\,\cdot\,;\, \tilde{n},\, \tilde{\mathbf{x}}) is strictly increasing and P_z(\,\cdot\,;\, \tilde{n},\, \tilde{\mathbf{z}}) is non-decreasing on [0,1], we have that for i = 0, \ldots, n-1, \tfrac{i}{n} \leq \tfrac{i+1}{n} yields

\begin{aligned} {x}_i = P_x\!\bigl(\tfrac{i}{n};\, \tilde{n},\, \tilde{\mathbf{x}}\bigr) \;\leq\; P_x\!\bigl(\tfrac{i+1}{n};\, \tilde{n},\, \tilde{\mathbf{x}}\bigr) = {x}_{i+1}, \qquad {z}_i = P_z\!\bigl(\tfrac{i}{n};\, \tilde{n},\, \tilde{\mathbf{z}}\bigr)\;\leq\; P_z\!\bigl(\tfrac{i+1}{n};\, \tilde{n},\, \tilde{\mathbf{z}}\bigr)= {z}_{i+1}, \end{aligned}

which combined with the boundary values gives ({\mathbf{x}}, {\mathbf{z}}) \in \mathcal{C}_n. To prove (1), observe that by construction {\mathbf{p}}_i = ({x}_i,\, {z}_i)^\top = \tilde{\mathbf{P}}(\tfrac{i}{n}), so {\mathbf{P}}(t) \;=\; \sum_{i=0}^{n} B_{n,i}(t)\, \tilde{\mathbf{P}}\!\left(\tfrac{i}{n}\right). Since each coordinate of \tilde{\mathbf{P}} is a polynomial in t, \tilde{\mathbf{P}} \in C^\infty([0,1];\, \mathbb{R}^2), and the extreme value theorem provides that

\begin{aligned} \kappa \;:=\; \max\bigl(\|P_x''(\cdot;\, \tilde{n},\, \tilde{\mathbf{x}})\|_\infty,\, \|P_z''(\cdot;\, \tilde{n},\, \tilde{\mathbf{z}})\|_\infty\bigr) \;<\; \infty. \end{aligned}

Fix t \in [0,1] and apply Taylor’s theorem with integral remainder to P_x(\,\cdot\,;\, \tilde{n},\, \tilde{\mathbf{x}}) at t:

\begin{aligned} P_x\!\bigl(\tfrac{i}{n};\, \tilde{n},\, \tilde{\mathbf{x}}\bigr) \;=\; P_x(t;\, \tilde{n},\, \tilde{\mathbf{x}}) + P_x'(t;\, \tilde{n},\, \tilde{\mathbf{x}})\bigl(\tfrac{i}{n} - t\bigr) + R_i(t), \end{aligned}

where the remainder is given by R_i(t) \;:=\; \int_t^{i/n}\!\! P_x''(s;\, \tilde{n},\, \tilde{\mathbf{x}})\bigl(\tfrac{i}{n} - s\bigr)\, ds and satisfies

\begin{aligned} |R_i(t)| \leq \|P_x''(\cdot;\, \tilde{n},\, \tilde{\mathbf{x}})\|_\infty \tfrac{1}{2}(\tfrac{i}{n} - t)^2 \leq \tfrac{\kappa}{2}(\tfrac{i}{n} - t)^2. \end{aligned}

Multiplying (Proof) by B_{n,i}(t) and summing over i=0,...,n, and using the Bernstein moment identities

\begin{aligned} \sum_{i=0}^{n} B_{n,i}(t) \;=\; 1, \qquad \sum_{i=0}^{n} \!\bigl(\tfrac{i}{n} - t\bigr) B_{n,i}(t) \;=\; 0, \qquad \sum_{i=0}^{n} \!\bigl(\tfrac{i}{n} - t\bigr)^{\!2}\! B_{n,i}(t) \;=\; \frac{t(1-t)}{n}, \end{aligned}

it follows that P_x(t;\, n,\, {\mathbf{x}}) - P_x(t;\, \tilde{n},\, \tilde{\mathbf{x}} ) = \sum_{i=0}^{n} B_{n,i}(t)\, R_i(t). Moreover, using the bound (Proof) and the third Bernstein moment identity we obtain

\begin{aligned} \bigl|P_x(t;\, n,\, {\mathbf{x}}) - P_x(t;\, \tilde{n},\, \tilde{\mathbf{x}} ) \bigr| \;\leq\; \sum_{i=0}^{n} B_{n,i}(t)\, |R_i(t)| \;\leq\; \frac{\kappa}{2} \sum_{i=0}^{n} \!\bigl(\tfrac{i}{n} - t\bigr)^{\!2}\! B_{n,i}(t) \;=\; \frac{\kappa}{2}\frac{t(1-t)}{n}. \end{aligned}

An analogous argument applied to P_z(\,\cdot\,;\, \tilde{n},\, \tilde{\mathbf{z}}) yields \bigl| P_z(t;\, n,\, {\mathbf{z}})- P_z(t;\, \tilde{n},\, \tilde{\mathbf{z}})\bigr| \leq \tfrac{\kappa}{2}\tfrac{t(1-t)}{n}, so we obtain

\begin{aligned} \bigl\|\mathbf{P}(t) - \tilde{\mathbf{P}}(t)\bigr\|_\infty \;\leq\; \frac{\kappa}{2}\frac{t(1-t)}{n}. \end{aligned}

The results then follows by taking the supremum over t \in [0,1] in (Proof).

Proof

Proof

P3FG

Proof of Corollary 1. Fix j\in\{1,...,m\}. By the triangle inequality and Theorem 1,

\begin{aligned} \Big| P_z(t_{(j)};n,\mathbf{z})-P_z(\tilde{t}_{(j)};\tilde{n},\tilde{\mathbf{z}}) \Big| &\leq \Big| P_z(t_{(j)};n,\mathbf{z})-P_z(t_{(j)};\tilde{n},\tilde{\mathbf{z}}) \Big| + \Big| P_z(t_{(j)};\tilde n,\tilde{\mathbf{z}})-P_z(\tilde{t}_{(j)};\tilde{n},\tilde{\mathbf{z}}) \Big| \\ &\leq \frac{\kappa}{8n} + \Big| P_z(t_{(j)};\tilde n,\tilde{\mathbf{z}})-P_z(\tilde{t}_{(j)};\tilde{n},\tilde{\mathbf{z}}) \Big|. \end{aligned}

For the remaining term, the mean value theorem applied to P_z(\cdot;\tilde n,\tilde{\mathbf{z}}) and then to P_x(\cdot;\tilde n,\tilde{\mathbf{x}}) (using P_x'\geq\tilde{\delta} and P_x(\tilde{t}_{(j)};\tilde n,\tilde{\mathbf{x}})=X_{(j)}=P_x(t_{(j)};n,\mathbf{x})), together with Theorem 1, yields

\begin{aligned} \Big| P_z(t_{(j)};\tilde n,\tilde{\mathbf{z}})-P_z(\tilde{t}_{(j)};\tilde{n},\tilde{\mathbf{z}}) \Big| &\leq \Vert P_z'(\cdot;\tilde n,\tilde{\mathbf{z}})\Vert_\infty\,|t_{(j)}-\tilde{t}_{(j)}|\\ &\leq \Vert P_z'(\cdot;\tilde n,\tilde{\mathbf{z}})\Vert_\infty \,\frac{\big| P_x(t_{(j)};\tilde n,\tilde{\mathbf{x}})-P_x(t_{(j)};n,\mathbf{x}) \big|}{\tilde{\delta}}\leq \frac{\rho\kappa}{8n}. \end{aligned}

Hence \big| P_z(t_{(j)};n,\mathbf{z})-P_z(\tilde{t}_{(j)};\tilde{n},\tilde{\mathbf{z}}) \big|\leq \tfrac{(1+\rho)\kappa}{8n} for every j=1,...,m. Since F_m and P_z take values in [0,1], factoring each squared difference gives

\begin{aligned} &\Bigg| \frac{1}{m}\sum_{j=1}^m \bigl( F_m(X_{(j)}) - P_z(t_{(j)};\,n,\,\mathbf{z}) \bigr)^2 - \frac{1}{m}\sum_{j=1}^m \bigl( F_m(X_{(j)}) - P_z(\tilde{t}_{(j)};\,\tilde{n},\,\tilde{\mathbf{z}}) \bigr)^2 \Bigg| \\ &\quad\leq \frac{1}{m}\sum_{j=1}^m \Big| P_z(t_{(j)};n,\mathbf{z})-P_z(\tilde{t}_{(j)};\tilde{n},\tilde{\mathbf{z}}) \Big|\;\Big| 2F_m(X_{(j)})-P_z(t_{(j)};n,\mathbf{z})-P_z(\tilde{t}_{(j)};\tilde{n},\tilde{\mathbf{z}}) \Big| \leq \frac{(1+\rho)\kappa}{4n}, \end{aligned}

where the last inequality uses \big|2F_m(X_{(j)})-P_z(t_{(j)};n,\mathbf{z})-P_z(\tilde{t}_{(j)};\tilde{n},\tilde{\mathbf{z}})\big|\leq 2.

Proof

Proof

ZPJ5

Proof of Proposition 2. Let \mathbf{w} \in \mathrm{int}(\Delta^{n-1}) and consider \nabla^2 l(\mathbf{w}) = \sum_{j=1}^m \frac{\mathbf{a}_j\mathbf{a}^\top_j}{(\mathbf{a}^\top_j \mathbf{w})^2} and \nabla^2 h(\mathbf{w}) = \mathrm{diag}(\frac{1}{w_0^2},...,\frac{1}{w_{n-1}^2}), which are well defined since \mathbf{w}>\mathbf{0}. For any \mathbf{v} \in \mathbb{R}^n it holds that

\begin{aligned} \sum_{j=1}^m \left(\frac{\mathbf{a}_j^\top \mathbf{v}}{\mathbf{a}^\top_j \mathbf{w}}\right)^2 = \sum_{j=1}^m \left(\sum_{i=0}^{n-1}\frac{a_{ji} v_iw_i}{\mathbf{a}^\top_j \mathbf{w}w_i}\right)^2\leq \sum_{j=1}^m \sum_{i=0}^{n-1}\frac{a_{ji}w_i}{\mathbf{a}^\top_j \mathbf{w}}\left(\frac{ v_i}{w_i}\right)^2 = \sum_{i=0}^{n-1} \frac{ v_i^2}{w_i^2} \left(\sum_{j=1}^m \frac{a_{ji}w_i}{\mathbf{a}^\top_j \mathbf{w}}\right) \leq m\sum_{i=0}^{n-1} \frac{ v_i^2}{w_i^2}, \end{aligned}

where the first inequality follows from Jensen’s inequality and the second inequality from a_{ji}w_i \leq \mathbf{a}^\top_j \mathbf{w} for j=1,...,m. Thus, we conclude that \mathbf{v}^\top\nabla^2 l(\mathbf{w})\mathbf{v} \leq m\sum_{i=0}^{n-1} \frac{ v_i^2}{w_i^2} = m\left[ \mathbf{v}^\top\nabla^2h(\mathbf{w})\mathbf{v}\right].

Source and licence

The text on this page is from arXiv:2606.23841v1 by Esteban Leiva, Andrés L. Medaglia and Luis F. Zuluaga, under the licence CC BY 4.0. The corpus made these changes: it read the items out of the LaTeX source, it expanded the macros of the paper, it put each proof after its statement, and it converted the text to HTML. The formulas are the TeX of the paper, and KaTeX renders them. A formula or a reference can look different from the PDF. The page is published under CC BY 4.0.

The record of each item is in analysis/objects/2606/2606.23841.jsonl.