Pension schemes all over the world are under increasing pressure to efficiently hedge the longevity risk posed by ageing populations. In this work, we study an optimal investment problem for a defined contribution pension scheme which decides to hedge the longevity risk using a mortality-linked security, typically a longevity bond. The pension scheme invests in the risky assets available in the market, including the longevity bond, by using the contributions from a representative scheme member t...