# Function compareProportions

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

- compareProportions(
  successes1: number,
  total1: number,
  successes2: number,
  total2: number,
  options?: StatisticalOptions,
  ): ComparisonResult

  Compare two proportions using two-proportion z-test.

  #### Parameters

  - successes1: number
  - total1: number
  - successes2: number
  - total2: number
  - options: StatisticalOptions = {}

  #### Returns ComparisonResult

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