Skip to content

Instantly share code, notes, and snippets.

@sahasourav17
Created February 7, 2022 10:17
Show Gist options
  • Save sahasourav17/30b117f91ea6336850ab6ab25cdc3b17 to your computer and use it in GitHub Desktop.
Save sahasourav17/30b117f91ea6336850ab6ab25cdc3b17 to your computer and use it in GitHub Desktop.
#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