Skip to main content
Glama

stats.eta_squared

Read-onlyIdempotent

Calculate eta-squared and omega-squared effect sizes for one-way ANOVA from grouped decimal values, returning F, p-value, and degrees of freedom.

Instructions

일원분산분석의 효과크기 eta^2(편향 있음)와 omega^2(편향 보정)를 계산하고 F, p값, 자유도도 함께 돌려준다. groups는 집단별 Decimal 문자열 목록이며 집단 2개 이상, 각 집단 2개 이상이다. eta^2 = SS_between / SS_total, 효과크기와 F는 유효숫자 6자리, p값은 10자리 문자열이다. 표본이 작으면 eta^2가 과대 추정되므로 omega^2를 함께 본다.

Input Schema

NameRequiredDescriptionDefault
groupsYes

Output Schema

NameRequiredDescriptionDefault
_metaNo서버가 붙이는 영수증(integrity), 엔진, 힌트
traceYes계산 근거(tool, formula, inputs, steps, output)
f_statYes
p_valueYes
df_withinYes
df_betweenYes
eta_squaredYes
omega_squaredYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover read-only/idempotent/closed-world, so the bar is lower, and the description still adds real value: the exact formula (SS_between / SS_total), output precision (6 significant digits for effect size and F, 10 decimal places for p), and a statistical caveat about small-sample bias.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four dense sentences, front-loaded with what is computed before input format, output precision, and the interpretation caveat. No filler, though the formula and precision sentences could be condensed slightly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return structure need not be spelled out; the description nonetheless pins down precision and the returned statistics. Input format, constraints, and a usage caveat are all present, leaving nothing an agent needs to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, and it does: groups is a per-group list of Decimal strings, with at least 2 groups and at least 2 values per group. This fully specifies format and cardinality constraints for the single nested-array parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific computation: one-way ANOVA effect sizes eta^2 (biased) and omega^2 (bias-corrected), plus F, p, and df. It clearly differs in substance from stats.anova_oneway and stats.cohens_d, but never names a sibling to reinforce the distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Input constraints (2+ groups, 2+ values each) and an interpretation note ('with small samples eta^2 is inflated, so look at omega^2 too') are given, which implies the usage context. However, there is no explicit when-to-use/when-not guidance versus stats.anova_oneway or stats.cohens_d.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools