⚠ Couldn't loadThe 2D engine failed to initialize. Reload the page.

Decision Threshold Profit Optimizer 2D

This is the 2D companion to the 3D decision-threshold scene, computing the identical cost-sensitive classification math on a flat chart: overlapping positive- and negative-class score-density curves, a movable decision line and a live expected-profit curve traced across every possible threshold. It adds a class-balance (prevalence) slider and a full confusion-matrix breakdown (TP/FP/FN/TN shares) so you can see exactly how a rarer positive class, not just the cost weights, pushes the profit-maximizing cutoff away from the textbook 0.5.