# 1. Define Variables
r_f <- 0.05
E_r_index <- r_f + 0.08
sigma_index <- 0.20
# 2. Define Weights
w_bills <- c(0, 0.2, 0.4, 0.6, 0.8, 1.0)
w_index <- c(1.0, 0.8, 0.6, 0.4, 0.2, 0)
# 3. Calculate Expected Return (Problem 10)
# Formula: E(rp) = (w_bills * r_f) + (w_index * E_r_index)
E_r_p <- w_bills * r_f + w_index * E_r_index
# 4. Calculate Variance (Problem 10)
# Formula: Var(rp) = w_index^2 * sigma_index^2
var_p <- (w_index * sigma_index)^2
# 5. Calculate Utility for A = 2 (Problem 11)
# Formula: U = E(r) - 0.5 * A * Var(r)
A1 <- 2
U_A2 <- E_r_p - 0.5 * A1 * var_p
# 6. Calculate Utility for A = 3 (Problem 12)
A2 <- 3
U_A3 <- E_r_p - 0.5 * A2 * var_p
# Combine into a results table
results <- data.frame(
w_bills = w_bills,
w_index = w_index,
Expected_Return = E_r_p,
Variance = var_p,
Utility_A2 = U_A2,
Utility_A3 = U_A3
)
knitr::kable(results, digits = 4, caption = "Portfolio Returns, Variances, and Utility Levels")
| w_bills | w_index | Expected_Return | Variance | Utility_A2 | Utility_A3 |
|---|---|---|---|---|---|
| 0.0 | 1.0 | 0.130 | 0.0400 | 0.0900 | 0.0700 |
| 0.2 | 0.8 | 0.114 | 0.0256 | 0.0884 | 0.0756 |
| 0.4 | 0.6 | 0.098 | 0.0144 | 0.0836 | 0.0764 |
| 0.6 | 0.4 | 0.082 | 0.0064 | 0.0756 | 0.0724 |
| 0.8 | 0.2 | 0.066 | 0.0016 | 0.0644 | 0.0636 |
| 1.0 | 0.0 | 0.050 | 0.0000 | 0.0500 | 0.0500 |
Problem 10: The table above shows the Expected Return and Variance for each portfolio weight. Because T-bills are risk-free, the portfolio variance is calculated entirely from the S&P 500 weight.
Problem 11 (Utility with A = 2):
Problem 12 (Utility with A = 3):
# Investment Data
investments <- data.frame(
Investment = 1:4,
E_r = c(0.12, 0.15, 0.21, 0.24),
Standard_Deviation = c(0.30, 0.50, 0.16, 0.21)
)
# Calculate Utility for A = 4
A_cfa <- 4
investments$Variance <- investments$Standard_Deviation^2
investments$Utility <- investments$E_r - 0.5 * A_cfa * investments$Variance
knitr::kable(investments, digits = 4, caption = "CFA Problem 1 Utility Calculations")
| Investment | E_r | Standard_Deviation | Variance | Utility |
|---|---|---|---|---|
| 1 | 0.12 | 0.30 | 0.0900 | -0.0600 |
| 2 | 0.15 | 0.50 | 0.2500 | -0.3500 |
| 3 | 0.21 | 0.16 | 0.0256 | 0.1588 |
| 4 | 0.24 | 0.21 | 0.0441 | 0.1518 |
1. Which investment would you select if you were risk averse with A = 4?
2. Which investment would you select if you were risk neutral?
3. The variable (A) in the utility formula represents the: