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
Given two integers as user inputs that represent the number of drinks to buy and the number of bottles to restock, create a Vend
Zanzabum

Answer:

import java.util.Scanner;

class Main {

 public static void main (String args[])

 {

   Scanner input = new Scanner(System.in);

   VendingMachine machine = new VendingMachine(20);

   System.out.print("Enter nr to purchase: ");

   int nrPurchased = input.nextInt();

   System.out.print("Enter nr to re-stock: ");

   int nrRestock = input.nextInt();

   machine.Transaction(nrPurchased, nrRestock);

   input.close();

 }

}

class VendingMachine {

 private int inventory;

 public VendingMachine(int initialInventory) {

   inventory = initialInventory;

 }

 public void Transaction(int nrToBuy, int nrToRestock) {

   inventory += nrToRestock - nrToBuy;

   System.out.printf("Inventory: %d bottles.\n", inventory);

 }

}

7 0
3 years ago
Which of the following is NOT a type of cable used in wired networks?a) Unshielded coaxialb) Coaxialc) Unshielded twisted-paird)
zysi [14]

Answer:

I think it is unshielded coaxial. Not 100% sure.

Explanation:

5 0
4 years ago
How are Action Buttons different than hyperlinks?
ipn [44]

Actions buttons are different than hyperlinks in many ways.

2)They are predefined shapes.

<u>Explanation:</u>

Action buttons are predefined shapes in the PowerPoint and can be used for moving between the slides of the presentation and for referring to the hyperlinks as well.

Action buttons have a predefined shape and that shape can be used to set the functionality of that particular button as a convention. Action buttons make up a strong presentation.

Action buttons can be invoked by clicking on them or just hovering over them and various sound effects can also be added on both the events to make the presentation more engaging and attractive.

8 0
3 years ago
When we consider data quality, what are the differences among validity, reliability, and representativeness? How can you know th
MArishka [77]

Answer:

Validity is the degree to which the research measures what it has to measure. High validity = Proper Research Design.

Reliability is the measure to which research measurement techniques are free of error or mistakes. High realiability = Reasearchers know the sample fully understands the question asked.

Representativeness is the extent to which consumers in a study are similar to the larger group of interest. High representativeness = Sample is large and chosen in an unbiased way.

3 0
4 years ago
A system administrator is selecting an operating system for use by the company’s research and development team. The team require
tekilochka [14]

Answer:

Linux

Explanation:

Linux is the open source operating system that can be modified at any time as per requirement of the client or user.

5 0
3 years ago
Other questions:
  • Two VALS segments stand apart. One segment represents the group with the highest resources and innovation and the other segment
    9·1 answer
  • Free points! your welcome
    9·2 answers
  • Draw directed graphs representing relations of the following types.
    6·1 answer
  • HELLLPPPPPP For each of the following discussion questions, write a response in complete sentences. Your response should be at l
    6·1 answer
  • Suppose users share a 1 Mbps link. Also suppose each user
    10·1 answer
  • Sorry but, what are brainliest for?
    7·2 answers
  • Which type of software is for sale directly to consumers in stores and online?
    6·1 answer
  • Define ; proprietary software.​
    6·1 answer
  • web browsers save website information in their _________, which helps the site load faster on future visits.
    11·1 answer
  • Which one of the following document types would you not use the Microsoft Excel program to create?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!