A robot perception pipeline uses RANSAC to propose a plane from a point cloud. A confidence setting of 0.99 can sound like a statement that the selected plane is correct with 99% probability. That interpretation skips the event the sampling calculation actually describes.

Under a declared random-sampling model, the calculation concerns drawing at least one sample containing only inliers. It is conditional on the assumed inlier fraction and sample construction. Selecting the intended physical surface requires more information than that sampling event alone.

PCL's RandomSampleConsensus reference describes generating a model from a random sample, counting points that meet a distance threshold, and retaining a model with strong support. Its probability setting explicitly refers to an outlier-free sample. The scikit-learn RANSACRegressor reference gives the corresponding trial-count expression. The arithmetic below is original analysis, not a run of either implementation.

Define a deliberately simple sampling experiment

Assume an unlimited sequence of independent trials. Each trial selects three points independently, with replacement, from a fixed population. Each selected point has probability w of belonging to one specified target plane's inlier population.

Three noncollinear points can determine a plane. For the first calculation, further assume every all-inlier triple is nondegenerate and produces a useful candidate. These assumptions deliberately remove complications so that the probability event is explicit.

The probability of all three sampled points being inliers is q = w cubed. The probability a trial is not all-inlier is 1 − q. Independence between trials makes the probability of no clean triple after N trials equal to (1 − q) raised to N.

Consequently, the probability of at least one clean triple is 1 − (1 − q) raised to N. This is a statement about the invented sampling experiment. It does not say every returned candidate is the target plane.

Forty percent inliers requires more than a few trials

Choose w = 0.40. Then q = 0.064: only 6.4% of triples are all-inlier in this model.

For a desired sampling probability p = 0.99, solve:

N ≥ ln(1 − p) / ln(1 − q).

The result is approximately 69.628 trials, so the smallest integer budget meeting the target is 70. At 69 trials, the probability is about 0.98958; at 70 it is about 0.99024. Rounding the calculated requirement downward would miss the stated target.

At just ten trials, the probability is approximately 0.4839. The same population, same plane model, and same sampling rule can therefore yield a substantially different chance of drawing a clean sample when the trial budget changes.

The calculation does not promise a runtime. A trial is a mathematical attempt, while implementation cost also depends on model validation, scoring, point count, and other operations.

The inlier assumption controls the budget

Keep three-point samples and a 0.99 target, but change the assumed target-plane fraction to 0.20. Now q is 0.008, and the required integer count is 574.

If a calculation used w = 0.40 and stopped after 70 trials, while the actual sampling population had w = 0.20, its clean-sample probability would be only about 0.4301 under the same independent model. Printing the requested confidence beside that result would not repair the incorrect population assumption.

At w = 0.60, q rises to 0.216 and the requirement falls to 19 trials. These large differences come from the cubic dependence on w, not from a change in the desired confidence.

Increasing the number of points per minimal sample can also change the budget. With w = 0.40 and four independently selected points, q becomes 0.0256, and 178 trials are needed. A model's sample requirement belongs in the calculation; it cannot be replaced by a convenient three-point assumption for every fitting task.

A finite cloud has a different exact probability

Actual implementations need not draw the independent points with replacement used above. Consider an invented cloud of 100 points containing exactly 40 target-plane inliers. If a trial selects three distinct points uniformly without replacement, its all-inlier probability is:

q = (40/100) × (39/99) × (38/98), approximately 0.06110.

That is slightly lower than 0.064. If trials independently repeat this distinct-point sampling procedure, the integer requirement for 0.99 becomes 74 trials.

This comparison does not identify which sampling rule an installed package uses. It demonstrates why a probability expression must retain its assumptions. Spatially restricted or weighted sampling introduces still other conditions; the unconditional population fraction alone may no longer describe each selected point.

Clean points do not guarantee an informative sample

Three inlier points can be collinear. Such a triple cannot uniquely determine a plane even though none of its points is an outlier. Nearly collinear triples can also provide weak geometric information in the presence of measurement errors.

The first experiment excluded this case. If only a fraction g of clean triples is usable under a further declared conditional model, a useful-sample probability would involve q multiplied by g. An all-inlier probability cannot silently stand in for this additional geometric requirement.

Implementation validity checks and skipped-trial rules matter here. The cited software references expose limits and validity concepts, but their exact behavior should be read for the specific model and version being used.

Consensus is not a surface label

Imagine two physical planes in a scene, such as an object face and a larger background surface. A highly supported plane can be a strong geometric candidate while representing the background. More random trials do not attach the intended object identity to it.

Likewise, changing the distance threshold changes which points count as supporting a candidate. That can alter the estimated inlier fraction without adding an independent observation of the physical scene.

A useful account separates the sampling event, geometric fit, and task interpretation. The chosen target fraction, sample rule, degeneracy assumptions, and trial limit explain the first. Residuals and support explain the second. Evidence identifying the required physical surface must explain the third.

Sources checked October 23, 2026: PCL RandomSampleConsensus, documentation 1.15.1-dev: https://pointclouds.org/documentation/classpcl_1_1_random_sample_consensus.html

scikit-learn RANSACRegressor, opened stable documentation labeled 1.9.1: https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.RANSACRegressor.html

Illustration note: The site-library concept image shows a robot above metal parts with a blue sensing pattern. It does not display these hypothetical point populations, a fitted plane, or a measured RANSAC success rate.