Sequential Probabiltiy Ratio Test

Definition

Consider how a bank monitor credit card transaction in real time:

\[ H_0: \text{The transactions are consistent with the customer’s usual behavior.} \]

\[ H_1: \text{The transactions are fraudulent.} \]

Each new transaction provides a piece of evidence. If it aligns with the customer’s typical spending pattern, the evidence shifts toward \(H_0\). If it looks suspicious—such as unusual overseas charges or abnormally large purchases—the evidence shifts toward \(H_1\).

Let’s translate this scenario into technical formulas.

We want to test whether a sequence of transactions belongs to a normal customer or a fraudulent account.

\[ H_0: \text{legitimate: Transaction features follow distribution } f_0(x) \]

\[ H_1: \text{fraudulent: Transaction features follow distribution } f_1(x) \]

Here, \(x\) represents a transaction feature vector (e.g., amount, location, time, merchant type).

In hypothesis test, we define the Type I error as rejecting the null hypothesis \(H_0\) when it is actually true. We define the Type II error as failing to reject the null hypothesis \(H_0\) when the alternative \(H_1\) is true. Because the alternative hypothesis is typically treated as the “positive” case and the null hypothesis as the “negative” case, a Type I error is also called a false positive, while a Type II error is called a false negative. The probabilities of making Type I and Type II Error are \(\alpha\) and \(\beta\), respectively.

The power of a test is \(1-\beta\), i.e., the probability of correctly detecting a real effect.

Hypothesis Test

For a traditional hypothesis test, we first calculate a test statistic (such as Z, t, chi-square, or F). From this, we obtain a p-value, which represents the probability of observing data at least as extreme as the current dataset, assuming the null hypothesis is true. We then compare the p-value with a pre-defined significance level \(\alpha\). If the p-value is less than \(\alpha\), we reject the null hypothesis, ensuring that the probability of a Type I error does not exceed \(\alpha\).

Likelihood Ratio Test

The likelihood ratio test is a specific kind of hypothesis test based on likelihood functions:

More to come in Spring 2027!