Example (identifying minimal sufficient statistic)

Suppose $X_1, \ldots, X_n \sim N(μ, σ^2)$ where $μ, σ^2$ are unknown. We want to find a minimal statistic for $μ, σ^2$.

Compute $$ \begin{align*} \frac{p(x; θ)}{p(y; θ)} ={}& \frac{(2πσ^2)^{-n/2} \exp(-\frac{1}{2σ^2}\sum_{i} (x_i - μ)^2)}{(2πσ^2)^{-n/2} \exp(-\frac{1}{2σ^2} \sum_{i} (y_i - μ)^2)} \\ ={}& \exp\left(-\frac{1}{2σ^2}\left(\sum_{i} x_i^2 - \sum_{i} y_i^2\right) + \frac{μ}{σ^2}\left(\sum_{i} x_i - \sum_{i} y_i\right)\right), \end{align*} $$ which does not depend on $μ$ or $σ^2$ iff $\sum_{i} x_i^2 = \sum_{i} y_i^2$ and $\sum_{i} x_i = \sum_{i} y_i$. Therefore $T(X) = (\sum_{i} x_i^2, \sum_{i} x_i)$ is a minimal sufficient statistic.

Since minimal sufficient statistic is unique up to bijection, $$ \begin{align*} \tilde T(X) = (\bar X, S^2) = \left(\frac{1}{n}\sum_{i} X_i, \frac{1}{n-1}\sum_{i} (X_i - \bar X)^2\right) \end{align*} $$ is also minimal sufficient.