# Interface RegretAnalysis

Regret analysis result comparing actual vs optimal decisions.

interface RegretAnalysis {
cumulativeRegret: number;
avgRegret: number;
totalDecisions: number;
suboptimalDecisions: number;
optimalRate: number;
regretPerModel: Record<string, number>;
}

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

##### Index

### Properties

cumulativeRegret
avgRegret
totalDecisions
suboptimalDecisions
optimalRate
regretPerModel

## Properties

### `Readonly` cumulativeRegret

cumulativeRegret: number

Total cumulative regret

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

### `Readonly` avgRegret

avgRegret: number

Average regret per decision

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

### `Readonly` totalDecisions

totalDecisions: number

Number of decisions analyzed

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

### `Readonly` suboptimalDecisions

suboptimalDecisions: number

Number of suboptimal decisions

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

### `Readonly` optimalRate

optimalRate: number

Percentage of optimal decisions

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

### `Readonly` regretPerModel

regretPerModel: Record<string, number>

Regret per model (how much worse each model performed vs best)

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