liveBook · Manning

Cumulative distribution function

As explained in Bayesian Optimization in Action

A cumulative distribution function method returns the probability that a random variable is less than or equal to a specified value.

A cumulative distribution function (CDF) gives the probability that a random variable is less than or equal to a chosen threshold. Geometrically, it is the area under a distribution curve to the threshold’s left. section 4.2.2

In probability-of-improvement optimization, the incumbent is the cutoff. The CDF measures the area that does not improve; subtracting it from 1 gives the probability that a candidate exceeds the incumbent. section 4.2.2

Computing improvement probability

For a candidate at 0, obtain its Gaussian-process predictive mean and standard deviation, form a Normal distribution, and evaluate 1 - normal.cdf(train_y.max()). The result, such as 0.8305, is the candidate’s probability of improvement. section 4.2.2

Figure 4.11 Flowchart of how the PoI score is computed. By following this procedure, we can compute how likely any candidate point is to be able to improve from the incumbent.

Follow the flow from predictive mean and standard deviation to the CDF complement and the resulting probability-of-improvement score. section 4.2.2

How Bayesian Optimization in Action covers it

How deep it goes
Defines the CDF geometrically and demonstrates its complement numerically, stopping short of deriving the normal CDF.
Examples
Uses predictive values at points 0 and 3, highlighted normal-curve areas, and a PyTorch CDF calculation returning 0.8305.
What it assumes
Assumes predictive means and standard deviations from a Gaussian process and an incumbent objective value.
What you can do after
Apply it via PyTorch’s Normal.cdf() and subtract the result from 1 to score candidate improvement.
How it connects
Connects cumulative distribution functions with normal distributions, Gaussian processes, incumbent values, and probability of improvement.

Also explained in

Compare how 4 books explain cumulative distribution function →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Bayesian Optimization in Action. The section links point to the parts of the book it draws on.