BaşlayınÜcretsiz Başlayın

Is data normally distributed?

A histogram is an efficient visual tool to examine whether your data is normally distributed, or centered around the mean.

matplotlib.pyplot is imported as plt and the array prices is available in your workspace.

Bu egzersiz

Introduction to Python for Finance

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Plot a histogram of prices with 100 bins to confirm that the data is normally distributed.
  • Display the plot.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Plot histogram 
____(prices, bins=____)

# Display plot
plt.show()
Kodu Düzenle ve Çalıştır