We consider a risk process modelled as a compound Poisson process. The ruin
probability of this risk process is minimized by the choice of a suitable
investment strategy for a capital market index. The optimal strategy is com
puted using the Bellman equation. We prove the existence of a smooth soluti
on and a verification theorem, and give explicit solutions in some cases wi
th exponential claim size distribution, as well as numerical results in a c
ase with Pareto claim size. For this last case, the optimal amount invested
will not be bounded. (C) 2000 Elsevier Science B.V. All rights reserved.