subject

Write a function average_sample_median(n, P), that return the average of 1000 samples of size n sampled from the distribution P. * Sample run * print(average_sample_median(10,[0.2 ,0.1,0.15,0.15,0.2,0.2])) print(average_sample_median(10,[0.3 ,0.4,0.3])) print(average_sample_median(10,P=[0 .99,0.01]) * Expected Output * 3.7855 2.004 1

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 04:10, cvbnkifdfg
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
image
Computers and Technology, 23.06.2019 12:00, kp2078
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
image
Computers and Technology, 23.06.2019 21:00, tiffg2588
Will this setup result in what kathy wants to print?
Answers: 2
image
Computers and Technology, 24.06.2019 00:40, ndurairajownkpq
What social factors affect your health
Answers: 3
You know the right answer?
Write a function average_sample_median(n, P), that return the average of 1000 samples of size n samp...

Questions in other subjects:

Konu
Mathematics, 26.08.2020 21:01