An HMM approach for optimal investment of an insurer · Study