Question: PYTHON! Create a Population of 100 Persons based on the following distributions for their attributes: age = normal distribution with mean at 50 and std

PYTHON!

Create a Population of 100 Persons based on the following distributions for their attributes:

age = normal distribution with mean at 50 and std at 20 height_male = normal distribution with mean at 70 and std at 4

height_female = normal distribution with mean at 65 and std at 3.5

weight_male = 10/3 * height - 58 + np.random.normal(scale=7)

weight_female = 5/2 * height - 15 + np.random.normal(scale=7)

sex = binomial distribution with p(male/female) equals 0.5

hobbies = random selection (1-5 hobbies) from the following: o [Reading, TV, Fishing, Video Games, Gardening, Exercising, Listening to Music, Golf, Board Games, Tennis, Painting, Guitar, Violin, Writing, Swimming, Running, Cooking, Drawing, Basketball, Skiing, Photography] NOTES: For age, height_female, height_male, weight_female, and weight_male you will want to round or take the ceil/floor of the generated values to simplify results.

NOTES:

For age, height_female, height_male, weight_female, and weight_male you will want to round or take the ceil/floor of the generated values to simplify results.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!