Sub topic 3
Probability Rules
This chapter assumes you can use algebra to solve for an unknown, work with percentages and decimals, and multiply probabilities. A probability is a number from 0 to 1 that measures how likely an event is.
Probability Rules
For events A and B, the addition rule states:
P(A or B) = P(A) + P(B) − P(A and B)
The multiplication rule states:
P(A and B) = P(A | B) × P(B)
Here, P(A | B) is the conditional probability of A given B. Events A and B are independent when P(A | B) = P(A).
Conditional Probability and the Total Probability Rule
Conditional probability is defined as:
P(A | B) = P(A and B) / P(B)
The total probability rule splits an event into the cases where A happens and where it does not:
P(B) = P(B | A) × P(A) + P(B | not A) × P(not A)
Updating Beliefs with Bayes' Formula
Bayes' formula revises a prior probability after new evidence:
P(A | B) = P(B | A) × P(A) / P(B)
Suppose a condition has a 1% prior rate, a test detects it 90% of the time, and it gives a false positive 5% of the time. The total probability rule gives P(positive) = 0.0585. Bayes' formula then gives a posterior of 0.90 × 0.01 / 0.0585 ≈ 15.4%.
Expected Value, Variance and Standard Deviation
The expected value is the probability-weighted average, E(X) = Σ p × x. Variance is the probability-weighted average squared deviation from that mean. Standard deviation is the square root of variance.
Covariance and Correlation
Covariance measures how two variables move together: Cov(X, Y) = ρ × σX × σY. Correlation ρ rescales covariance to a value from −1 to +1.
Two-Asset Portfolio Expected Return and Risk
The portfolio expected return is the weighted average of the asset returns. Portfolio variance is:
Var(Rp) = (w1σ1)² + (w2σ2)² + 2 w1 w2 ρ σ1 σ2
With weights 0.6 and 0.4, returns of 10% and 6%, standard deviations of 20% and 10%, and correlation 0.3, the expected return is 8.4% and the standard deviation is 13.74%.
prior = 0.01
p_b_given_a = 0.90
p_b_given_not_a = 0.05
p_b = p_b_given_a * prior + p_b_given_not_a * (1 - prior)
posterior = p_b_given_a * prior / p_b
print(round(posterior, 4)) # 0.1538
w1, w2 = 0.6, 0.4
mean1, mean2 = 0.10, 0.06
sd1, sd2 = 0.20, 0.10
rho = 0.3
portfolio_mean = w1 * mean1 + w2 * mean2
portfolio_variance = (w1 * sd1) ** 2 + (w2 * sd2) ** 2 + 2 * w1 * w2 * rho * sd1 * sd2
print(round(portfolio_mean, 4)) # 0.084
print(round(portfolio_variance ** 0.5, 4)) # 0.1374Exercise
A portfolio is 50% in an asset with a 20% expected return and 50% in an asset with a 4% expected return. What is the expected portfolio return?
Show answer
0.5 × 20% + 0.5 × 4% = 12%.