Analytics Tools for Managing Portfolio Risks