Mathematics
Conditional Probability
Conditional probability is a fundamental concept in probability theory that describes the probability of an event occurring given that another event has already occurred. It is a measure of the likelihood of one event in the context of some other event. it is frequently used in quantitative finance to calculate the likelihood of events occurring given certain other events have occurred.
Our perception of event probabilities change as we learn new information. Imagine that you predict the probability that it will rain in London today. After you have made the prediction, I tell you that there are currently dark clouds above London. You then can update your prediction accordingly. Clearly, this new information should make you increase your predicted probability. Considering probabilities in this way is known as conditional probability - the probability of an event occurring conditioned on something else being true. Your initial prediction is known as your prior probability, whereas your updated prediction given new information is known as your posterior probability. Consider two random variables $X$ and $Y$. We saw in the last section that if the random variables are independent then $$ P(X \cap Y) = P(X) P(Y). $$ If the variables are not independent then the outcome of one affects the outcome of the other. We can define the outcome of $X$ given an outcome $Y$ as $$ P(X|Y) = \frac{P(X \cap Y)}{P(Y)} $$ where $\cap$ denotes the intersection of $X$ and $Y$.
Imagine we have a complete set of mutually exclusive potential events ${Y_k}$ which span the full sample space. A consequence of this definition is that only one of the ${Y_k}$ can occur at any time. Then, it is the case that $$ P(X) = \sum_{k=1}^n P(X | Y_k) P(Y_k). $$ The above equation is known as the law of total probability.
Technical interviews questions will frequently use the law of total probability. However, with some practice it's use will become second nature. Now let's introduce perhaps the most famous theorem in conditional probability - Bayes' Theorem. $$ P(A|B) = \frac{P(A)}{P(B)} \cdot P(B|A) $$ Bayes' Theorem is a fundamental concept in probability theory that describes the likelihood of an event based on prior knowledge of conditions related to the event. It provides a mathematical framework for updating the probability of a hypothesis (like a market trend or the value of an asset) in light of new evidence or information.