Computers and Technology
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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 20:30, carter4026
Write 150 words on what kind of website would you like to make in the future? what sites would you like to model yours after?
Answers: 2
image
Computers and Technology, 22.06.2019 15:00, 2alshawe201
The three logical operators used to write compound conditions are "and," "or," and "not." a: true b: false
Answers: 2
image
Computers and Technology, 22.06.2019 18:00, deathfire5866
Determine whether the following careers would require training or college.
Answers: 1
image
Computers and Technology, 22.06.2019 21:30, GamerGirl15
This graph compares the total cost of attending educational institutions in texas. the graph demonstrates that the cost at private and public technical schools greatly varies.
Answers: 2
Do you know the correct answer?
Write a python function average_sample_median(n, P), that return the average of 1000 samples of size...

Questions in other subjects: