Python - Statistics techniques for financial applications