subject
Computers and Technology, 01.07.2020 16:01 kobz

Write a python 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: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 17:30, yoyo9661
Under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 1
image
Computers and Technology, 23.06.2019 22:20, andrew412603
Learning sign language is an example of a(n) learning sign language is an example of a(n)
Answers: 2
image
Computers and Technology, 24.06.2019 01:00, summerjoiner
Verify each identity[tex] \frac{csc}{cot \: x \: + \: tan \: x} = cos \: x[/tex]
Answers: 1
image
Computers and Technology, 24.06.2019 15:30, hemolelekeakua
How do i change the size of my bookmarks in my bookmarks bar in google chrome? ? plz hlp me
Answers: 2
You know the right answer?
Write a python function average_sample_median(n, P), that return the average of 1000 samples of size...

Questions in other subjects:

Konu
Chemistry, 20.10.2021 19:10
Konu
Chemistry, 20.10.2021 19:10
Konu
Computers and Technology, 20.10.2021 19:10