Skip to main content

get_total_returns_nb

Calculate the total returns. Parameters: Returns:

get_expectancy_nb

Calculate the expectancy. Parameters: Returns:

get_sharpe_nb

Calculate the Sharpe ratio.
Note on ddof:
  • Use ddof=0 for population variance, where you have data for the entire population.
  • Use ddof=1 for sample variance, to correct for bias when estimating the variance of a population from a sample.
Parameters: Returns: