1.x — Chapter 1 summary and quiz
1.x — Chapter 1 summary and quiz#
Chapter summary#
In this chapter, we covered the fundamental concepts of basic probability theory:
Key concepts#
- Sample Space (): The set of all possible outcomes of a random experiment - Sample Space
- Event: A subset of the sample space - Event (Probability Theory)
- Probability: A number between 0 and 1 quantifying how likely an event is to occur - Probability
- Independence: Events that don’t affect each other’s probabilities - Independence (Probability Theory)
- Dependence: Events that influence each other’s probabilities
What we learned#
-
Sample Spaces and Events (1.1):
- Discrete vs. continuous sample spaces
- Simple events (single outcome) vs. compound events (multiple outcomes)
- Set operations: union (), intersection (), complement ()
- Mutually exclusive events (cannot occur simultaneously)
-
Probability Axioms and Rules (1.2):
- Axiom 1: Non-negativity:
- Axiom 2: Normalization:
- Axiom 3: Additivity: For mutually exclusive events,
- Complement rule:
- Addition rule:
- Equally likely outcomes:
-
Independence and Dependence (1.3):
- Events and are independent if
- Equivalently, for independent events
- Conditional probability:
- In finance, events are often dependent (correlated)
Applications in quantitative finance#
- Portfolio Analysis: Sample spaces for returns, events for risk scenarios
- Risk Management: Probability of losses, joint risk events
- Trading Signals: Independent vs. dependent signals
- Market Conditions: Dependence between market variables
Important formulas#
| Concept | Formula |
|---|---|
| Complement | |
| Union (general) | |
| Union (mutually exclusive) | |
| Independence | |
| Conditional Probability | |
| Equally Likely | $P(A) = \frac{ |
Next steps#
In Chapter 2, we’ll explore conditional probability in more depth, including how to update probabilities when new information becomes available. This leads to Bayes’ Theorem, which is fundamental for decision-making under uncertainty in quantitative finance.
Quiz time#
Question #1
A fair die is rolled. Define the following events:
- = “Roll an even number”
- = “Roll a number greater than 4”
- = “Roll a 6”
What are the sets for events , , and ? What is ?
Show Solution
- (even numbers)
- (numbers greater than 4)
- (simple event)
(numbers that are both even AND greater than 4)
Question #2
Using the events from Question #1, calculate:
Show Solution
Since all outcomes are equally likely:
- (3 even numbers out of 6)
- (2 numbers > 4 out of 6)
- (only 6 is in both)
Using the addition rule:
Alternatively, we can count: , so .
Question #3
Two fair coins are tossed. Let:
- = “First coin is heads”
- = “Second coin is heads”
Are events and independent? Justify your answer.
Show Solution
Yes, and are independent.
Method 1: Check definition
Since , the events are independent.
Method 2: Check conditional probability
Since , the events are independent.
Intuition: The outcome of the first coin toss doesn’t affect the second coin toss.
Question #4
A portfolio has three possible outcomes:
- High return: probability 0.4
- Medium return: probability 0.35
- Low return: probability 0.25
What is the probability of NOT getting a low return? What is the probability of getting either a high or medium return?
Show Solution
Let = “Low return”, so .
Using the complement rule:
The probability of NOT getting a low return is 0.75.
For the second part, let = “High return” and = “Medium return”. Since these are mutually exclusive events:
Note that , which makes sense since high and medium are the complement of low.
Question #5
Two stocks have the following probabilities:
- Stock 1 goes up:
- Stock 2 goes up:
- Both go up:
Are the stock movements independent? What is the probability that at least one stock goes up?
Show Solution
Check independence:
If independent:
Actual:
Since , the events are dependent (correlated). The stocks tend to move together more than if they were independent.
Probability of at least one going up:
Using the addition rule:
The probability that at least one stock goes up is 0.7.
Question #6
A trading strategy has a 60% win rate. If we assume each trade is independent, what is the probability of:
- Winning the first trade?
- Losing the first trade?
- Winning both the first and second trades?
Show Solution
Let = “Win a trade”, so and .
- First trade win:
- First trade loss:
Since trades are independent:
- Both trades win:
The probability of winning both trades is 0.36 (36%).
Question #7
Write Python code to:
- Check if two events are independent given their probabilities
- Calculate the probability of the union of two events
- Calculate the probability of the complement of an event
Show Solution
def are_independent(p_a, p_b, p_intersection, tolerance=1e-6):
"""Check if events A and B are independent"""
expected = p_a * p_b
return abs(p_intersection - expected) < tolerance
def probability_union(p_a, p_b, p_intersection):
"""Calculate P(A ∪ B) = P(A) + P(B) - P(A ∩ B)"""
return p_a + p_b - p_intersection
def probability_complement(p_a):
"""Calculate P(A^c) = 1 - P(A)"""
return 1 - p_a
# Example usage
p_a = 0.6
p_b = 0.5
p_intersection = 0.4
print(f"Are independent? {are_independent(p_a, p_b, p_intersection)}")
print(f"P(A ∪ B) = {probability_union(p_a, p_b, p_intersection):.2f}")
print(f"P(A^c) = {probability_complement(p_a):.2f}")
Output:
Are independent? False
P(A ∪ B) = 0.70
P(A^c) = 0.40