When to use it
Use when comparing a single sample mean against a fixed numerical benchmark or theoretical mean.
Required Inputs
- Sample numeric values
- Null hypothesis mean (μ₀)
- Confidence level
- Alternative hypothesis
Test whether the sample mean differs significantly from a target baseline or SLA value, with t-statistic, degrees of freedom, p-value, and confidence interval.
Run this test live in StatLab npm i @statlab/coreUse when comparing a single sample mean against a fixed numerical benchmark or theoretical mean.
t = (X̄ - μ₀) / (s / √n)
from scipy import stats
res = stats.ttest_1samp(sample, popmean=100.0)
print(f"t={res.statistic:.4f}, p={res.pvalue:.4f}")
t.test(sample, mu = 100.0)
import { tOneSamp } from '@statlab/core';
const result = tOneSamp(sample, { mu0: 100.0 });
Continuous A/B testing, statistical telemetry analysis, and automated feedback loops for live backend services.
Explore VoxelPulse →Fixed-price AI release-readiness sprints, automated regression testing, and reliability statistical benchmarks.
Explore VoxelAssurance →Explore static calculators across the StatLab inference engine suite.