Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started