I must simulate 100,000 geometric random variables with parameter p = 0.01 and plot the results on a histogram, with buckets for each of the values 1 to 1000. What are buckets and how to I create the histogram? This is what I have so far.
p = 0.01
n = 100000
import numpy as np
import matplotlib.pyplot as plt
y = np.random.geometric(p,n)