This document presents a comprehensive study on statistical arbitrage pairs trading, focusing on the theoretical foundations and methodologies of identifying beneficial security pairs. It explores two quantitative approaches: one based on cointegration of financial time series and another modeling the log-relationship between stock prices through a stochastic control problem. The research emphasizes the importance of identifying mispricing opportunities and derives a framework for constructing pairs and calculating returns within a risk-controlled trading strategy.