Last active
July 17, 2020 08:55
-
-
Save SaraM92/5f792d01eee891ce38e911638f784c3c to your computer and use it in GitHub Desktop.
This file contains 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 Essential Libraries | |
import numpy as np | |
import matplotlib.pyplot as plt | |
#Generating Uniform Distribution for a Dice Roll | |
probs = np.full(6, 1/6) | |
faces = [1,2,3,4,5,6] | |
plt.bar(faces, probs, color="#8d0801") | |
plt.ylabel('Probability', fontsize=15 ,color="#001427") | |
plt.xlabel('Possible Outcomes', fontsize=15 ,color="#001427") | |
axes = plt.gca() | |
axes.set_ylim([0,1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment