# Function proportionConfidenceInterval

Learning exports - Closed-loop feedback and routing improvement Split from index.ts for file size compliance (Issue #285)

- proportionConfidenceInterval(
  successes: number,
  total: number,
  options?: StatisticalOptions,
  ): ConfidenceInterval

  Calculate confidence interval for a proportion (success rate). Uses Wilson score interval for better coverage at extreme proportions.

  #### Parameters

  - successes: number
  - total: number
  - options: StatisticalOptions = {}

  #### Returns ConfidenceInterval

  - Defined in packages/nexus-agents/src/learning/validation-stats.ts:31