I'm trying to understand the motivation for local hidden variable theory. The EPR paradox considers the following thought experiment, where we can express a state $|\psi \rangle \in H_{Alice} \otimes H_{Bob}$ as perfectly "opposite" eigenvectors of a measurement $A$ and another measurement $B$
$|\psi \rangle = \sum |u_{n} \rangle | \psi_{n} \rangle = \sum |v_{n} \rangle | \varphi_{n} \rangle$
The original example was formulated in the case $A$ was the momentum operator and $B$ was the position operator. A convenient example, is the one due to Bohm, where $|\psi \rangle = \frac{1}{\sqrt{2}}|01 \rangle - \frac{1}{\sqrt{2}}|10 \rangle $ is the singlet state and $A = \sigma_{z}$ is measurement along the $z$-axis and $B = \sigma_{x}$ is measurement along the $x$-axis. In the case of the singlet state, we can express $|\psi \rangle $ as either in terms of the eigenvectors $|0 \rangle$ and $|1 \rangle$ of $\sigma_{z}$ with values $\pm 1$ respectively or in terms of the eigenvectors $\frac{1}{2}( |0 \rangle +|1 \rangle)$, $\frac{1}{2}( |0 \rangle -|1 \rangle)$ of $\sigma_x$ with values $\pm 1$ respectively.The paradox occurs with the assumption of local causality but with the observations that Alice's measurements on her system collapse Bob's system to the eigenvector with the exact opposite eigenvalue. This leads Alice to be able to predict with certainty the values of two non-commuting measurements.
I was wondering how the local variable system, by defining two random variables $A(a, \lambda)$ and $B(b, \lambda)$ on a probability space $(\Lambda, p(\lambda))$ denoting the values taken by the measurements $A$ and $B$. Rectify the above paradox.
The idea that you could explain QM by local hidden variables was eventually proven false by Bell's theorem, but I wanted to understand why this was the attempt to complete QM with respect to this example in the first place.