Created
February 7, 2022 10:17
-
-
Save sahasourav17/30b117f91ea6336850ab6ab25cdc3b17 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
#import uniform distribution | |
from scipy.stats import uniform | |
import seaborn as sns | |
import matplotlib.pyplot as plt | |
#taking random variables from uniform distribution | |
data = uniform.rvs(size = 10000,loc = 5,scale = 10) | |
#plotting the uniform data | |
ax = sns.distplot(data, | |
bins = 100, | |
color = 'k', | |
) | |
ax.set(xlabel = 'Uniform Distribution',ylabel = 'Frequency') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment