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.
Questo esercizio fa parte del corso
Introduction to Python for Finance
Istruzioni dell'esercizio
- Plot a histogram of
priceswith 100 bins to confirm that the data is normally distributed. - Display the plot.
Esercizio pratico interattivo
Prova a risolvere questo esercizio completando il codice di esempio.
# Plot histogram
____(prices, bins=____)
# Display plot
plt.show()