I have generated random data which follows normal distribution using the below code:
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
rng = np.random.default_rng()
number_of_rows = 10000
mu = 0
sigma = 1
data = rng.normal(loc=mu, scale=sigma, size=number_of_rows)
dist_plot_data = sns.distplot(data, hist=False)
plt.show()
The above code generates the below distribution plot as expected:
If I want to create a distribution plot that is exactly an inverse curve like below then how can I generate the random normal distribution data?
I want the data for which the distribution plot will show the inverse curve. How can I generate this normal distribution data?
Aucun commentaire:
Enregistrer un commentaire