What rho and sigma Do to the Smile
In the Heston example rho tilts the smile (at rho -0.7 low strikes are higher, at +0.7 high strikes are) and sigma sets how strongly it bends; with a very small sigma the line is nearly flat at 20%.
The question
The Heston model has two numbers that shape the smile: rho, the correlation between the price and the variance, and sigma, the volatility of the variance. What does each do to the smile of implied volatilities?
The page prices the nine strikes of the book at three values of rho and reads each price back as a Black-Scholes volatility, as in the last lesson. The other inputs are the fixed example: spot 100, rate 5%, one year, v0 = 0.04, kappa = 1.5, theta = 0.04, sigma = 0.3. They are made-up inputs. It is a description of an arithmetic model and not investment advice.
Work it by hand
Predict before running. With a negative rho a fall of the price goes with a rise of the variance, which puts more volatility on the low strikes: the smile should be higher on the left. With a positive rho it should be higher on the right, and with rho = 0 the two sides are alike when measured from the forward price (the spot grown at the rate: 105.13 here), a dip with its low point near that price.
Sigma sets how far the variance can move. If sigma is very small the variance stays near its starting value and the model is close to Black-Scholes with the volatility 0.2, the square root of 0.04: the line flattens. A large sigma should bend the smile more.
Run it
The program takes a list of three correlations rhos, the strikes, and the parameters. The loop from line 2 builds the model for each rho (line 3), asks the engine for its smile (line 4) and sorts the values into three lists (the loop of lines 5 to 10).
Line 15 takes the square root of v0, 20%, the volatility at which the model's variance starts; the three smiles stay near it around the money (19.76%, 19.39% and 18.72% at strike 100), and line 16 returns it in whole basis points.

let a = float_list(); let b = float_list(); let c = float_list();
for (j in range(0, 3)) {
let h = model.heston(spot, rate, 0.0, v0, kappa, theta, sigma, rhos.at(j));
let s = calibration.smile(h, strikes, 1.0);
for (i in range(0, strikes.len())) {
let v = lmf.round(s.at(i), 4);
if (j == 0) { a.add(v); }
if (j == 1) { b.add(v); }
if (j == 2) { c.add(v); }
}
}
lmcode_return_put("first", a);
lmcode_return_put("second", b);
lmcode_return_put("third", c);
let level = sqrt(v0);
let answer = int(math_round(lmf.round(level, 4) * 10000.0));
{
"answer": 2000,
"first": [
0.2512,
0.2371,
0.2235,
0.2104,
0.1976,
0.1856,
0.1744,
0.1647,
0.1569
],
"second": [
0.2154,
0.2073,
0.2009,
0.1963,
0.1939,
0.1935,
0.1949,
0.1975,
0.2009
],
"third": [
0.1504,
0.1543,
0.1628,
0.1745,
0.1872,
0.1994,
0.2107,
0.221,
0.2303
]
}The three curves of the picture are in the order of the entries of rhos. In the recorded run the smile at rho = −0.7 runs from 25.12% at strike 70 to 15.69% at strike 130, at rho = 0.7 from 15.04% to 23.03%, and at rho = 0 it dips to 19.35% at strike 107.5 and rises on both sides. Edit sigma: with 0.05 and rho = −0.7 the smile runs only from 21.05% to 19.32%; with 0.6 it runs from 27.79% to 13.29%.
You can change every number if rhos has three entries and each lies strictly between −1 and 1: a list of two stops at line 3 with "FloatList.at: index out of range: 2", and a rho of 1 stops there with "model.heston: rho must be inside (-1, 1)". The other conditions of the last lessons hold.
Your turn
A desk reads the shape of a smile from a list vols over an odd number of strikes.
The program below is meant to return a code: 3 if both ends are above the middle entry; otherwise 1 if the first entry is above the last; otherwise 2 if the first entry is below the last; otherwise 0. The comparison is made in whole basis points, where 100 basis points are 1 percentage point. Decide whether it does, and find the candidates that do. Check runs each candidate on the list shown and on nine others.

let n = vols.len();
let first = int(math_round(lmf.round(vols.at(0), 6) * 10000.0));
let last = int(math_round(lmf.round(vols.at(n - 1), 6) * 10000.0));
let mid = int(math_round(lmf.round(vols.at(n / 2), 6) * 10000.0));
let answer = 0;
if (first < last) { answer = 2; }
if (first > last) { answer = 1; }
if (mid < 0) { answer = 3; }
{
"answer": 1
}The list vols is a smile over an odd number of strikes, in order of strike. Return 3 if both the first and the last entry are above the middle entry; otherwise 1 if the first entry is above the last; otherwise 2 if the first entry is below the last; otherwise 0. Compare the entries in whole basis points.
Read the result carefully
That rho tilts and sigma bends is how this model behaves near these inputs. The parameters also interact: two different sets can give nearly the same smile at one maturity, which matters when a model is fitted later in the book. The smile of a page is a property of five made-up numbers.
Whole basis points are the unit in which the page compares volatilities, because the values are the engine's floating-point numbers and the last digits are not meaningful. It is a description of an arithmetic model and not investment advice.
Recap
- A negative rho puts the higher volatilities on the low strikes, a positive rho on the high strikes, and rho = 0 gives a dip with its low point near the forward price, 105.13 here, symmetric in the logarithm of strike over forward.
- Sigma sets the strength: small sigma flattens the smile to the Black-Scholes line, large sigma bends it more.
- The three smiles of the demo stay near the square root of v0, 20%, around the money; they do not equal it.
- Two different parameter sets can give nearly the same smile at one maturity.