1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Portfolio Analysis in Python

Exercise

Calculating skewness and kurtosis

You just saw the histogram of the S&P500 data, let's now put it into numbers and calculate skewness and kurtosis. For the full picture of the distribution, you'll also look at the mean and standard deviation. Available are the S&P500 returns data under returns_sp500, which is all you need for this.

Instructions

100 XP
  • Calculate the mean and the standard deviation.
  • Calculate the skewness.
  • Calculate kurtosis.