Computers and Technology, 03.01.2022 14:00 yesharabaskoro
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()
Answers: 3
Computers and Technology, 22.06.2019 11:10, lberman2005p77lfi
The total cost of textbooks for the term was collected from 36 students. create a histogram for this data. $140 $160 $160 $165 $180 $220 $235 $240 $250 $260 $280 $285 $285 $285 $290 $300 $300 $305 $310 $310 $315 $315 $320 $320 $330 $340 $345 $350 $355 $360 $360 $380 $395 $420 $460 $460
Answers: 2
Run the follwoing codes to get the output figure. Then change to codes to generate a histogram to sh...
Social Studies, 21.09.2019 01:00
Health, 21.09.2019 01:00
Social Studies, 21.09.2019 01:00