---
library: "bootstrap"
slug: "ConfidenceCalibrate"
name: "ConfidenceCalibrate"
ref: "ConfidenceCalibrate#e357"
hash: "sema:ConfidenceCalibrate#mh:SHA-256:e3570290d420b5bf59848ccc1d269530bbb3124b2e1a4583e62dc2a901ab16ac"
type: "Inference"
layer: "Mind"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/ConfidenceCalibrate"
---

# ConfidenceCalibrate

Aligning subjective confidence with objective frequency

Mind · Inference

## Mechanism

Track Record Alignment: For claims rated 70% confident, ~70% should be true. Track predictions vs outcomes. If 90% claims are right only 60% of time, you are overconfident—widen uncertainty. If 90% claims are right 99% of time, you are underconfident—tighten. It adjusts the internal probability model using [BayesUpdate](https://semahash.org/vocabularies/bootstrap/patterns/BayesUpdate.md) on historical accuracy data, ensuring [BaseRateInclude](https://semahash.org/vocabularies/bootstrap/patterns/BaseRateInclude.md) is respected.

## Invariants

- Calibrates against a recorded track record of predictions and their outcomes.
- Expected calibration error stays within `calibration_target`.
- The adjusted confidence-to-frequency mapping is monotonic non-decreasing.

## Parameters

- bin_count: type=Integer, range=[5, 20], description=Resolution of calibration measurement
- calibration_target: type=Float, range=[0.02, 0.15], description=Max expected calibration error, ECE

## Failure modes

- Over-correction: the [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) becomes under-confident to avoid being wrong, refusing to act on strong signals.
- Thin record: calibrating across `bin_count` bins on too few predictions fits noise, not bias.

## Where this came from

—

## Builds on

- [BaseRateInclude](https://semahash.org/vocabularies/bootstrap/patterns/BaseRateInclude.md) (references)
- [BayesUpdate](https://semahash.org/vocabularies/bootstrap/patterns/BayesUpdate.md) (references)
- [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) (references)

## Used by

- [Certaintyclap](https://semahash.org/vocabularies/bootstrap/patterns/Certaintyclap.md) (references)
- [UncertaintyMap](https://semahash.org/vocabularies/bootstrap/patterns/UncertaintyMap.md) (references)

## Related

- [Certaintyclap](https://semahash.org/vocabularies/bootstrap/patterns/Certaintyclap.md)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: ConfidenceCalibrate#e357
- Hash: sema:ConfidenceCalibrate#mh:SHA-256:e3570290d420b5bf59848ccc1d269530bbb3124b2e1a4583e62dc2a901ab16ac

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/ConfidenceCalibrate
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/ConfidenceCalibrate.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
