# Interface VariantStats

Variant statistics.

interface VariantStats {
variantId: string;
name: string;
n: number;
successes: number;
successRate: number;
avgReward: number;
avgLatencyMs: number;
sumReward: number;
sumLatencyMs: number;
}

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:87

##### Index

### Properties

variantId
name
n
successes
successRate
avgReward
avgLatencyMs
sumReward
sumLatencyMs

## Properties

### `Readonly` variantId

variantId: string

Variant ID

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:89

### `Readonly` name

name: string

Variant name

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:91

### `Readonly` n

n: number

Number of observations

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:93

### `Readonly` successes

successes: number

Success count

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:95

### `Readonly` successRate

successRate: number

Success rate

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:97

### `Readonly` avgReward

avgReward: number

Average reward

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:99

### `Readonly` avgLatencyMs

avgLatencyMs: number

Average latency in ms

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:101

### `Readonly` sumReward

sumReward: number

Sum of rewards (for incremental computation)

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:103

### `Readonly` sumLatencyMs

sumLatencyMs: number

Sum of latencies (for incremental computation)

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:105