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#

What we learned#

  1. 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)
  2. 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:
  3. 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#

Important formulas#

ConceptFormula
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:

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:

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:

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:

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:

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:

  1. Check if two events are independent given their probabilities
  2. Calculate the probability of the union of two events
  3. 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