1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Liono4ka [1.6K]
3 years ago
10

Write a python function average_sample_median(n,P), that return the average of 1000 samples of size n sampled from the distribut

ion 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
Computers and Technology
1 answer:
Butoxors [25]3 years ago
8 0

Answer:

Explanation: E(x)=np

E(x+y)=E(x)+E(y)

Y:p(y=1)=p

P(y-0)=1-p

I hope you can understand this example if not just tell me and I can Give you more examples thaks:-)

You might be interested in
A sense of scale tells us what about the objects in a picture?
monitta

Answer:

A. the size

Explanation:

7 0
3 years ago
Read 2 more answers
Select the correct answer.
zmey [24]

Answer: data design model

Explanation:

8 0
3 years ago
Which two statements show cultural effects of computers and the Internet?
padilas [110]

Answer:

I think it is A,  Melissa says "LOL" instead of laughing at a joke her friend told.

5 0
3 years ago
When processing all the elements of row i of a two-dimensional array named grades using a for loop with variable j, what is the
kykrilka [37]

Answer:

D

Explanation:

Two dimensional array contain both rows and columns. Each row represented one record and each column represent one filed in that record.

for ex: int grades[5][3];

here array grades contains 5 rows and in each row we have 3 columns

if we have grades[i][j] then " i " represents number of rows and j represents the number of columns in that row.

j<grades[i].length represents i=0 to 2[here no of columns are 3, array index starts from 0 to 2]

The Answer is D

8 0
3 years ago
Assume the I/O fraction time of all processes is 20%, and assume processes are independent from each other, what’s the CPU utili
telo118 [61]

Answer:

is this college

Explanation:

6 0
3 years ago
Other questions:
  • Which branch of science helps avoid or minimize stress-related injuries at workplace? ______is a branch of science that aims to
    9·1 answer
  • A company uses DHCP servers to dynamically assign IPv4 addresses to workstations. The address lease duration is set as 5 days. A
    6·1 answer
  • I have six nuts and six bolts. Exactly one nut goes with each bolt. The nuts are all different sizes, but it’s hard to compare t
    12·1 answer
  • Choose all that apply.
    6·2 answers
  • Which of the following do you need to remeber about true/false questions?
    12·1 answer
  • Read the sentence.
    10·1 answer
  • Which of the following would not be considered a PC?
    13·2 answers
  • Select all the lines that have a slope of 5/2
    13·1 answer
  • Which statement about analog and digital images is true?.
    15·1 answer
  • What is the new subnet mask in prefix format?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!