The Sequential Probability Ratio Test (SPRT) is a statistical decision procedure that processes observations one at a time and terminates as soon as the cumulative evidence sufficiently favors one of two competing hypotheses, minimizing the average sample number (ASN) required to achieve prescribed error probabilities. Unlike fixed-sample-size tests, SPRT continuously updates a likelihood ratio after each observation and compares it to two thresholds derived from the desired Type I and Type II error rates.
Glossary
Sequential Probability Ratio Test (SPRT)

What is Sequential Probability Ratio Test (SPRT)?
A statistical hypothesis testing method that minimizes the average number of observations required to reach a decision with specified error bounds.
Developed by Abraham Wald in the 1940s, SPRT is provably optimal in the sense that no other test with the same error bounds can achieve a smaller expected sample size under both hypotheses. In automatic modulation classification, SPRT enables rapid identification by sequentially evaluating received IQ samples against candidate modulation hypotheses, stopping early when the accumulated log-likelihood ratio decisively crosses an upper or lower boundary, thereby conserving computational and sensing resources in time-sensitive cognitive radio applications.
Key Characteristics of SPRT
The Sequential Probability Ratio Test (SPRT) minimizes the average number of observations required to reach a decision between two competing hypotheses, making it optimal for time-sensitive and resource-constrained signal classification.
Optimal Stopping Rule
SPRT is provably optimal in the sense of minimizing the average sample number (ASN) required to reach a decision. Unlike fixed-sample-size tests, SPRT processes observations one at a time and terminates as soon as the cumulative evidence crosses an upper or lower boundary.
- Wald's Identity: Guarantees that the test terminates with probability 1.
- Efficiency: Requires on average 50% fewer samples than fixed-sample tests for the same error probabilities.
- Decision Boundaries: Defined by constants A and B derived from the desired false alarm and miss probabilities.
Log-Likelihood Ratio Accumulation
The core mechanism of SPRT is the recursive accumulation of the log-likelihood ratio (LLR). After each observation, the LLR for that sample is computed and added to a running sum.
- Recursive Form:
S_n = S_{n-1} + log[ P(x_n | H_1) / P(x_n | H_0) ] - Threshold Comparison: If
S_n >= log(A), accept H_1. IfS_n <= log(B), accept H_0. Otherwise, continue sampling. - Memory Efficiency: Only the current cumulative sum needs to be stored, not the entire observation history.
Error Probability Guarantees
SPRT provides strict, mathematically guaranteed bounds on the probabilities of Type I (false alarm) and Type II (miss) errors. The thresholds A and B are directly derived from these user-specified error tolerances.
- Wald's Approximations:
A ≈ (1 - β) / αandB ≈ β / (1 - α), where α is the false alarm probability and β is the miss probability. - Conservative Bounds: The actual error probabilities are always less than or equal to the nominal values used to set the thresholds.
- No Asymptotic Assumptions: These guarantees hold for any finite sample size, not just in the limit.
Application in Modulation Classification
In Automatic Modulation Classification (AMC), SPRT is used to sequentially decide between two candidate modulation schemes (e.g., QPSK vs. 16-QAM) by evaluating the likelihood of each incoming IQ sample.
- Binary Discrimination: SPRT is inherently a binary test; multi-class problems are handled via hierarchical or pairwise SPRT structures.
- Likelihood Models: Requires accurate probabilistic models for the received signal under each modulation hypothesis, often assuming AWGN channels.
- Rapid Decision: Enables cognitive radios to quickly identify the modulation format of an intercepted signal and adapt their receiver configuration.
Sensitivity to Model Mismatch
A critical practical limitation of SPRT is its sensitivity to model mismatch. The optimality guarantees hold only when the assumed likelihood functions perfectly match the true data distribution.
- Nuisance Parameters: Unknown channel parameters (phase offset, frequency offset, SNR) must be estimated or marginalized, leading to composite hypothesis variants like GLRT or ALRT.
- Robustness Trade-off: Sequential tests with mismatched models can exhibit significantly inflated error rates or fail to terminate.
- Mitigation: Hybrid approaches combine SPRT with robust pre-processing or adaptive threshold adjustment.
Relationship to Wald's Sequential Analysis
SPRT is the foundational procedure of Wald's Sequential Analysis, developed by Abraham Wald in the 1940s for wartime quality control. It established the mathematical framework for all sequential decision-making.
- Historical Origin: Developed to reduce sample sizes in destructive testing of munitions.
- Generalization: Extended to multi-hypothesis testing via the Sequential Generalized Likelihood Ratio Test (SGLRT).
- Modern Relevance: Forms the theoretical basis for active learning, bandit algorithms, and anytime inference in modern AI systems.
SPRT vs. Fixed-Sample-Size Tests
A comparison of the Sequential Probability Ratio Test against traditional fixed-sample-size hypothesis testing approaches for modulation classification.
| Feature | SPRT | Fixed-Sample-Size | Truncated SPRT |
|---|---|---|---|
Sample Size | Variable, stops when threshold reached | Predetermined, fixed in advance | Variable with upper bound |
Average Sample Efficiency | 50-60% fewer samples on average | Baseline (100%) | 40-50% fewer samples on average |
Decision Boundaries | Two parallel sloping lines | Single threshold at fixed n | Two converging boundaries |
Type I Error Control | Exact via threshold setting | Exact via critical value | Approximate with slight inflation |
Type II Error Control | Exact via threshold setting | Exact via power analysis | Approximate with slight inflation |
Maximum Sample Guarantee | |||
Real-Time Applicability | |||
Computational Overhead per Observation | Low (log-likelihood update) | None until batch complete | Low (log-likelihood update) |
Frequently Asked Questions
Clear, technical answers to the most common questions about the Sequential Probability Ratio Test and its application in signal classification.
The Sequential Probability Ratio Test (SPRT) is a statistical hypothesis testing method that processes observations one at a time and stops as soon as sufficient evidence accumulates to make a decision, rather than waiting for a fixed sample size. It works by calculating the cumulative log-likelihood ratio after each new observation and comparing it against two predefined stopping boundaries, A and B. If the cumulative ratio exceeds the upper boundary, the test accepts the alternative hypothesis (H₁); if it falls below the lower boundary, it accepts the null hypothesis (H₀). If neither boundary is crossed, the test continues sampling. This sequential nature allows the SPRT to minimize the average sample number (ASN) required to reach a decision at a given error probability, making it significantly more efficient than fixed-sample tests. In modulation classification, the SPRT processes received IQ samples sequentially, updating the likelihood for each candidate modulation scheme until one hypothesis crosses the decision threshold.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Core statistical and decision-theoretic concepts that underpin the Sequential Probability Ratio Test and its application in likelihood-based modulation classification.
Wald's Sequential Analysis
The foundational theory developed by Abraham Wald in the 1940s that established SPRT. Unlike fixed-sample tests, Wald's framework processes observations one at a time and makes one of three decisions after each sample:
- Accept the null hypothesis
- Accept the alternative hypothesis
- Continue sampling This sequential approach guarantees a decision with fewer observations on average than any fixed-sample test with the same error probabilities, making it optimal for minimizing sample size.
Decision Boundaries
SPRT employs two constant thresholds, A and B, derived from the specified error probabilities:
- Upper threshold A: If the cumulative log-likelihood ratio exceeds this, accept the alternative hypothesis
- Lower threshold B: If it falls below this, accept the null hypothesis
- Between A and B: Continue sampling These boundaries are calculated as functions of the desired Type I error (α) and Type II error (β) probabilities, ensuring the test respects the prescribed error constraints exactly.
Composite Hypothesis Extension
Standard SPRT assumes simple hypotheses with fully specified distributions. In modulation classification, unknown parameters like carrier phase, frequency offset, or channel gain create composite hypotheses. Extensions include:
- Weighted SPRT: Averages likelihood over prior distributions of nuisance parameters
- Generalized SPRT: Replaces unknown parameters with maximum likelihood estimates
- Adaptive SPRT: Updates parameter estimates as more samples arrive These variants trade optimality for practical applicability in real-world signal environments.
Truncated SPRT
A practical modification that imposes a maximum sample limit to prevent unbounded test duration. When the truncation point is reached without crossing a boundary, a forced decision is made using:
- The sign of the accumulated log-likelihood ratio
- A secondary threshold optimized for the truncation point Truncation introduces a slight increase in error probabilities but guarantees bounded latency, which is essential for real-time modulation classification systems operating under strict timing constraints in tactical or cognitive radio applications.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us