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 local router is configured to limit the bandwidth of guest users connecting to the Internet. Which of the following best expla
mariarad [96]

Answer:

The correct option is d. Guest users will be restricted in the maximum amount of data that they can send and receive per second.

Explanation:

Bandwidth can be described as the maximum data transfer that an internet connection or a network has. It gives a measure of the amount of data that can be transmitted over a particular connection in a particular amount of time. For instance, the capacity of a gigabit Ethernet connection is 1,000 megabits per second (Mbps) (which also translates to 125 megabytes per second).

Therefore, when a local router is configured to limit the bandwidth of guest users connecting to the Internet, it will restrict the the maximum amount of data that they can transmit per second.

Therefore, the correct option is d. Guest users will be restricted in the maximum amount of data that they can send and receive per second.

3 0
3 years ago
Complete the following sentence.
pishuonlain [190]

Answer: Career

Explanation: because

7 0
3 years ago
When reading events in the Event Viewer, you need to recognize the designated levels or classifications. Which of the following
Gala2k [10]

Answer:

B. A problem has occurred that might impact functionality that is external to the application or component that triggered the event.

D. An issue has occurred that can impact service or Result in a more serious problem if action is not taken.

Explanation:

C is not an option as the program ran successfully, and hence no warning was triggered.

A. is not an option as the failure occurs, and its impossible to automatically get rid of it. Hence, this is a failure and not a warning.

B and D are definitely a warning. And hence, the above choices. They clearly are situation in which a warning is being given, and the computer program ends with wrong answer, as the functionality is effected.

8 0
3 years ago
In most operating systems what is running application called?
Likurg_2 [28]

Answer:

I believe it is just a task. Since there exists(on windows) the Task Manager application, where you can stop any running <em>task, </em>I think that they are called tasks

Explanation:

5 0
3 years ago
What does syntax error mean :-;<br>explain briefly.<br><br>thankyou!
Alex Ar [27]
A syntax error is an error in the syntax of a sequence of characters or tokens that is intended to be written in a particular programming language. For compiled languages, syntax errors are detected at compile-time. A program will not compile until all syntax errors are corrected.
3 0
1 year ago
Other questions:
  • The strength of the electromagnetic waves being radiated from an antenna is referred to as gain, which involves a measurement of
    9·1 answer
  • How can ASCII be used to represent characters in a computer system?
    15·1 answer
  • Describe a strategy for avoiding nested conditionals. Give your own example of a nested conditional that can be modified to beco
    15·1 answer
  • The blank is the area on your screen where you can access the tab and menu options for word
    5·1 answer
  • Match the tool to the task it helps to accomplish. Thesaurus allows the user to find the synonyms and antonyms of a word Smart L
    8·1 answer
  • PLEASE HELP THIS IS MY LAST CHANCE TO PASS MY QUIZ
    13·2 answers
  • Join zoom meet for time pass purpose <br><br>id=547 458 9345<br>pw=sencHURI​
    8·2 answers
  • What should the timing of transition slides be per minute?
    12·1 answer
  • WHAT IS THE LOCATION OF “A”. ON THE GRID?
    15·2 answers
  • Write a program to
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!