Skip to content

[trade-off] VoiceAnalyzer 方差公式使用 N 而非 N-1 #28

Description

@ULookup

现状

sentence_variance = variance / total_turns(总体方差),非 variance / (total_turns - 1)(样本方差)。

当前取舍

  • 目的不是统计推断,是特征比较
  • 所有 agent 用同一公式,偏差方向一致,对 compare() 的相对排序无影响
  • 样本量 10+ 句时 N 和 N-1 差异 < 10%
  • 远低于签名词重叠率、修饰词比例等其他特征对相似度分数的贡献权重

升级触发条件

如果方差被用作绝对阈值判断(如"方差 > X 则判定为某风格")而非相对比较,应切换为 N-1。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

trade-offIntentional design trade-off, deferred optimizationworldbuildingWorldbuilding novel agent feature

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions