Statistics for Flexible risk-based portfolio optimisation