Created
February 7, 2022 10:33
-
-
Save sahasourav17/c674c785bbec245d9b3a453f7b72acfb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#importing required libraries | |
from scipy.stats import norm | |
import seaborn as sns | |
import matplotlib.pyplot as plt | |
#creating the normal distribution | |
data = norm.rvs(size=10000,loc=0,scale=1) | |
#plotting the data | |
ax = sns.distplot(data, | |
bins=100, | |
kde=True, | |
color='skyblue', | |
hist_kws={"linewidth": 15,'alpha':1}) | |
ax.set(xlabel='Normal Distribution', ylabel='Frequency') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment