Question: Problem 8: Creating histograms Use two numpy functions: randint and randnorm to create histograms showing disribution of random arrays generated by each of these functions.

Problem 8: Creating histograms Use two numpy functions: randint and randnorm to create histograms showing disribution of random arrays generated by each of these functions. Make arrays of size 10000 each. Use 20 bins in the histogram and use subplot to show both histograms within the same plot. You would need to check matplotlib documentation for examples of subplots. Your plot should look something like this (you may have to play with parameters of both your arrays and hist function): uniform distribution 400 200 20 80 100 40 60 normal distribution 1500 1000 500 -4 -3 -2 -1 0 1 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
