Chapter 30. Scientific Agent Evaluation
Imagine that Compass, Fernhill Analytics’ fictional research agent, reports that an intervention improved an outcome. Another analyst can reproduce the calculation, but the experiment had no control group, so the same change might have occurred for another reason. In other words, the observation may be accurate even though the causal conclusion goes beyond what the design can establish.
Evaluating a scientific agent therefore requires more than grading its final report. The evidence runs through a chain of hypothesis, design, execution, analysis, and conclusion, and a weakness at any link can limit the claim at the end. This chapter follows that chain, from judging a study’s design to examining whether its findings can be reproduced or replicated. Along the way, we distinguish a carefully investigated negative result from an unreliable positive one.
The agent, study designs, scores, and calculations in this chapter are fictional teaching examples. They illustrate evaluation methods, not findings about a real scientific system.
30.1 The Scientific Agent Loop
Compass’s work is naturally iterative: a finding can suggest a revised hypothesis, which then needs a design capable of testing it and evidence appropriate to that question. An agent may participate in some or all of these stages, but its authority to act in a laboratory, simulation, or field setting must remain within the approved boundaries of the environment.
Definition 16.1 (Scientific agent). An agent that cycles through:
- Hypothesis generation: Propose a falsifiable claim \(H\) based on literature and data.
- Experimental design: Design an experiment \(E\) to test \(H\), including controls, sample size, and measurement protocol.
- Execution: Run \(E\) (possibly in simulation, laboratory, or field).
- Interpretation: Analyze results and assess the evidence for or against \(H\), including uncertainty and limitations.
- Iteration: Use findings to generate new hypotheses.
When the agent reports a negative result, the reviewer should ask whether the study had a fair chance to detect an effect of the stated size and whether the analysis followed the protocol. A non-significant result alone does not establish that an effect is absent. Positive findings need the same scrutiny, since weak controls, measurement, or interpretation can make them misleading. What matters is the strength of the evidence chain, not whether the conclusion is favorable.
30.2 Epistemic Quality Metrics
Assessing that evidence chain involves several distinct questions. A novel hypothesis is not necessarily testable, and a well-executed experiment is not necessarily well controlled. The following measures and rubric dimensions help separate those judgments, although each requires a defined population, evidence source, and scoring procedure before it can support a decision.
Hypothesis novelty:
\[\text{Novelty}(H) = 1 - \max_{H' \in \mathcal{L}} \text{sim}(H, H'),\]
where \(\mathcal{L}\) is the literature corpus and \(\text{sim}\) is a semantic similarity measure. This is a similarity-based proxy, not a direct measure of scientific novelty, and its interpretation depends on the corpus, coverage, embedding model, and similarity scale. For example, cosine similarity can be negative, so the expression is not automatically bounded between zero and one. A semantically dissimilar hypothesis may nevertheless restate known work, while a similar formulation may contain a genuinely new contribution. Before making a novelty claim, document the search coverage and seek expert review.
Experimental design quality. Novelty alone cannot tell Compass whether a proposed experiment can answer its question. A review of the design can instead examine distinct dimensions such as:
| Dimension | Metric |
|---|---|
| Control adequacy | Are confounders identified and controlled? |
| Statistical power | Is sample size sufficient for the effect size? |
| Measurement validity | Does the instrument measure the construct? |
| Reproducibility | Can another agent or lab reproduce the protocol? |
Interpretation validity: Does the conclusion follow from the evidence?
\[\text{Interpretation score} = P(\text{conclusion warranted} \mid \text{data, design}).\]
This expression names the intended quantity, but it does not supply a way to calculate a calibrated probability. A p-value, for example, is not the probability that a conclusion is warranted. A team using the score therefore needs an explicit model or expert-labeling procedure, a definition of “warranted,” and validation against independent assessments. In many settings, an anchored qualitative judgment with documented uncertainty is more defensible than an unsupported numerical probability.
Worked example: score a design and check its planned power
Suppose reviewers must decide whether two proposed designs are ready to proceed. They score each of four dimensions from 0 (missing) to 2 (adequate), for a maximum of 8, and set a minimum of 6/8 with no dimension allowed to score 0. Design A scores \((2,2,2,1)\), while design B scores \((0,2,2,2)\). Although B reaches 6/8, it fails the control-adequacy gate, showing how an acceptable total can conceal a fatal omission.
Power is a separate question: even a design with an appropriate control may collect too little information to detect a meaningful effect reliably. For a continuous outcome with standard deviation \(\sigma=0.5\), planning to detect a difference \(\delta=0.25\) with two-sided \(\alpha=0.05\) and 80% power, an equal-allocation normal approximation is \[ n_{\mathrm{arm}} = \frac{2(z_{1-\alpha/2}+z_{1-\beta})^2\sigma^2}{\delta^2}. \] With \(z_{0.975}=1.96\) and \(z_{0.80}=0.842\), this is \(62.81\), rounded up to 63 participants per arm, or 126 total.
import math
scores = {
"A": {"control": 2, "power": 2, "measurement": 2, "reproducibility": 1},
"B": {"control": 0, "power": 2, "measurement": 2, "reproducibility": 2},
}
minimum_total = 6
for name, dimensions in scores.items():
total = sum(dimensions.values())
passes = total >= minimum_total and all(score > 0 for score in dimensions.values())
print(f"design {name}: {total}/8; passes rubric={passes}")
z_alpha = 1.96
z_power = 0.842
standard_deviation = 0.5
minimum_effect = 0.25
n_per_arm = math.ceil(
2 * (z_alpha + z_power) ** 2 * standard_deviation ** 2
/ minimum_effect ** 2
)
print(f"planned sample: {n_per_arm} per arm; total={2*n_per_arm}")design A: 7/8; passes rubric=True
design B: 6/8; passes rubric=False
planned sample: 63 per arm; total=126
The calculation assumes independent observations, equal allocation, a continuous outcome with the stated variance, and a normal approximation. Binary outcomes, repeated measures, clustered participants, multiple primary outcomes, or attrition need a design-matched calculation. The resulting sample size is therefore a planning estimate under those assumptions, not proof that the study will answer every question. Nor can an adequate sample size compensate for the missing control that caused design B to fail the rubric. Likewise, a null result from an underpowered study would not establish that the effect is absent.
30.3 Process-Level Evaluation for Scientific Agents
Returning to Compass’s report, a final verdict of “unsupported” would be useful but incomplete. Was the relevant literature missed, the control omitted, or the analysis misinterpreted? Inspecting the observable work at each stage helps locate the break and decide what needs to change:
| Surface | What to check |
|---|---|
| Literature search | Did the agent find relevant prior work? Did it miss key papers? |
| Hypothesis generation | Is the hypothesis falsifiable? Is it novel? Is it grounded? |
| Experimental design | Are controls appropriate? Is power sufficient? |
| Data collection | Were measurements valid and reliable? |
| Analysis | Were statistical methods appropriate? Were assumptions checked? |
| Conclusion | Is the conclusion supported by the data? Are limitations acknowledged? |
These checks do not all have the same oracle. A protocol can be compared with the recorded execution, while a judgment about whether a control is adequate may need qualified domain review. In either case, preserving the artifacts and decisions behind the judgment lets another reviewer inspect it.
30.4 Reproducibility and Replicability
Suppose the design passes review and Compass completes the analysis. Another evaluator now needs to distinguish two questions: can the same data and procedure yield the same result again, and does the finding hold when new data are collected? Terminology varies across disciplines, so this chapter uses the following definitions.
Reproducibility: Can another agent reproduce the same results from the same protocol and data?
\[\text{Reproducibility} = P(\text{same result} \mid \text{same protocol, same data}).\]
Replicability: Can another agent obtain the same conclusion from a new data collection following the same design?
\[\text{Replicability} = P(\text{same conclusion} \mid \text{same design, new data}).\]
Repeating the same protocol on frozen data tests reproducibility under this definition, whereas collecting new data tests replicability. Before computing either probability, specify the population of reruns or studies, what counts as the “same” result or conclusion, and how inconclusive outcomes are handled. A replication criterion might consider effect size, direction, uncertainty, and practical relevance; agreement between two binary significance decisions alone is not sufficient. A persuasive report cannot substitute for either check.
Worked example: reproducible versus replicable conclusions
Define the outcome in advance as whether a run supports a prespecified claim under the same rubric and decision rule. For five repeated runs on the same frozen dataset and protocol, suppose four reach the same conclusion as the reference run: the observed conclusion agreement rate is \(4/5=0.80\). For five independent data collections using the same design, suppose three support the prespecified claim: the observed conclusion replication rate is \(3/5=0.60\). The units differ—repeated agent runs on the same data versus independent new-data studies—and neither five-run fraction is a precise estimate of its underlying probability.
same_data_conclusions = ["support", "support", "reject", "support", "support"]
reference_conclusion = "support"
new_data_conclusions = ["support", "reject", "support", "inconclusive", "support"]
planned_conclusion = "support"
reproducible = sum(
result == reference_conclusion for result in same_data_conclusions
) / len(same_data_conclusions)
replicable = sum(
result == planned_conclusion for result in new_data_conclusions
) / len(new_data_conclusions)
print(f"same-data conclusion reproducibility: {reproducible:.2f} ({len(same_data_conclusions)} runs)")
print(f"new-data conclusion replication rate: {replicable:.2f} ({len(new_data_conclusions)} studies)")same-data conclusion reproducibility: 0.80 (5 runs)
new-data conclusion replication rate: 0.60 (5 studies)
Here, “same result” means the same categorical conclusion. The rates do not measure numerical agreement or truth, and a new-data study marked inconclusive is included in the denominator rather than treated as supporting the claim. Both denominators are five, so sampling uncertainty is substantial; differences across new studies can also arise from ordinary sample variation. Rather than taking the rates as evidence of scientific reliability, use them to inspect protocol fidelity and disagreements. If same-data conclusions vary, examine stochasticity, hidden state, and analysis choices; if new-data conclusions vary, consider power, population variation, and design assumptions.
30.5 Bias and Epistemic Risks
The preceding checks examine individual studies, but an agent’s research record can also be misleading if some results never appear. For example, a polished report that highlights only favorable experiments prevents reviewers from seeing how many alternatives were tried.
Publication bias: Agents may preferentially report positive results. One descriptive measure is:
\[\text{Positive result rate} = \frac{\|\{H: \text{agent concluded } H \text{ is supported}\}\|}{\|\{H: \text{agent tested}\}\|}.\]
A rate near 1.0 is a reason to investigate, not proof of confirmation bias or p-hacking. It can reflect the hypotheses chosen, their prior plausibility, selective reporting, or analytic flexibility. Moreover, a rate calculated only from visible reports cannot reveal unreported studies. A registry of proposed and attempted hypotheses, prespecified protocols, results, and amendments helps reviewers compare the full research record with what was reported.
Confirmation bias in hypothesis generation: Does the agent generate hypotheses that confirm its prior beliefs while neglecting plausible alternatives? To investigate, compare hypotheses across starting conditions, review the evidence used to propose them, and examine whether credible alternatives received attention. Diversity is informative, but it does not by itself establish the absence of bias.
Data snooping: Does the agent inspect results before finalizing the experimental design or repeatedly revise analyses after seeing the data? Tracking when data became visible and which protocol changes followed helps reviewers distinguish those possibilities. Exploration can be valuable, but distinguish exploratory findings from tests specified before the relevant data were examined; subsequent confirmation needs appropriately independent evidence.
30.6 Exercises
The exercises ask you to evaluate not merely whether an agent produces a result, but whether its evidence supports the conclusion it draws.
- (Conceptual) An agent designs an experiment that confirms its hypothesis with p = 0.04. The experiment had no control group. Is this a successful scientific agent? Why or why not?
- (Hands-on) Given a set of agent-generated hypotheses, compute novelty scores against a literature corpus using semantic similarity. Document the corpus and similarity scale, then identify cases where an expert might disagree with the proxy.
- (Conceptual) A scientific agent reports a negative or inconclusive result. How would you evaluate whether it is informative rather than the result of a poorly designed or underpowered experiment?
- (Hands-on) Build a checklist for experimental design quality (controls, power, measurement validity, reproducibility) and score 5 agent-generated designs.
- (Discussion) In your scientific domain, what constitutes “evidence” that an agent’s conclusion is warranted? How would you operationalize that as a metric?
30.7 Further Reading
These sources provide background on causal reasoning, statistical inference, research bias, and reproducible science:
- Pearl, Causality [1].
- Gelman et al., Bayesian Data Analysis [2].
- Ioannidis, “Why Most Published Research Findings Are False” [3].
- Nosek et al., “Estimating the reproducibility of psychological science” [4].
- Munafo et al., “A manifesto for reproducible science” [5].