Example of jupyter notebook for Quarto

Author

Alexis Cvetkov-Iliev

Published

August 3, 2023

1) Import packages

import numpy as np
import matplotlib.pyplot as plt

2) Plotting

We plot below (Figure 1) the histogram of 1000 samples from a normal distribution.

x = np.random.normal(size=1000)
plt.figure(figsize=(10, 6))
plt.hist(x, density=True, bins=30)
plt.ylabel('Probability')
plt.xlabel('X')
plt.show()
Figure 1: Histogram of X