subject

Run the follwoing codes to get the output figure. Then change to codes to generate a histogram to show age data distribution around 50 with the number of 100 bins. After that, save the histogram to be 'png'. import matplotlib. pyplot as plt
import numpy as np

np. random. seed(5)
ages = [np. random. normal(loc=40,scale=10) for x in range(100)]
#ages distributed around 40
distributed around 40
plt. hist(ages, bins=45) #bins is the number of bars
plt. title("Ages per Population")
plt. xlabel("ages")
plt. ylabel("# of people")
plt. show()

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
Alocal reaction will occur at the site of the exposure such as irritation or damage to the skin eye or local reaction will occur at the site of the exposure such as irritation or damage to the skin ireland lounges
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
Which of these is a benefit of using objects in a powerpoint presentation? a. collaborators can create the external files while you create and edit the slide show. b. you can easily change the theme and design of the presentation. c. you can have older data in the source file while having up-to-date data in the presentation. d. collaborators can easily share the presentation.
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
What is the total resistance in a circuit that contains three 60 ohm resistors connected in a series? a. 20 ohms b. 120 ohms c. 60 ohms d. 180 ohms
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
Jamie has to enter the names, employee id’s, and income of a group of employees into a worksheet. which option will jamie use to describe the data
Answers: 3
You know the right answer?
Run the follwoing codes to get the output figure. Then change to codes to generate a histogram to sh...
Questions
question
Mathematics, 09.04.2021 01:00