Question 1. Suppose that a professor chooses a random student in a class of 40 students...
Suppose that n students are selected at random without replacement from a class containing 28 students, of whom 8 are boys and 20 are girls. We assume that 0 < n < 28. Let X denote the number of boys that are obtained. Answer the following questions: a (4 marks) State the distribution of X, with parameters b (1 mark) Write down the possible values of X c (1 mark) Express E(X) in terms of n. d (4 marks) For...
Suppose there are 40 students in my class. Out of which, 8 students live on campus housing. If I select 15 students at random from this class of 40, find the probability that more than 3 live on campus housing. (Bonus) 35.18% 39.80% 64.81% 25.01% 60.19% A box contains 4 red and 6 black balls if two balls are selected at random without replacement and colors of the balls are noted. In this experiment, we don't know how many red...
1) (10 pts) A class has n students, and the ith student has taken si tests. This information is stored in a file where the first line has the value of n and the following n lines have information about each student. On the ith of these lines, the first value is si. This is followed by si integers, all in between 0 and 100, inclusive, representing the test scores. Here is a sample file: 4 10 100 80 90...
1. Suppose that random variables X and Y are independent and have the following properties: E(X) = 5, Var(X) = 2, E(Y ) = −2, E(Y 2) = 7. Compute the following. (a) E(X + Y ). (b) Var(2X − 3Y ) (c) E(X2 + 5) (d) The standard deviation of Y . 2. Consider the following data set: �x = {90, 88, 93, 87, 85, 95, 92} (a) Compute x¯. (b) Compute the standard deviation of this set. 3....
Question 5.[15 marks] [Chapters 7 and 8] Data from a random sample of a recent large second semester stage 2 statistics course (STATS 20x) were collected. Below is some information on the variables collected. Variable Grade The student's final grade for the course: A, B. C, D Pass Whether the student passed the course: Yes, No Programme The programme the student is enrolled in: BA, BCom BSc, Other Sex The student's sex: Female, Male ผhether the student regularly attended class:...
1-Suppose you write an application in which one class contains code that keeps track of the state of a board game, a separate class sets up a GUI to display the board, and a CSS is used to control the stylistic details of the GUI (for example, the color of the board.) This is an example of a.Duck Typing b.Separation of Concerns c.Functional Programming d.Polymorphism e.Enumerated Values 2-JUnit assertions should be designed so that they a.Fail (ie, are false) if...
Write code for RSA encryption package rsa; import java.util.ArrayList; import java.util.Random; import java.util.Scanner; public class RSA { private BigInteger phi; private BigInteger e; private BigInteger d; private BigInteger num; public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); System.out.println("Enter the message you would like to encode, using any ASCII characters: "); String input = keyboard.nextLine(); int[] ASCIIvalues = new int[input.length()]; for (int i = 0; i < input.length(); i++) { ASCIIvalues[i] = input.charAt(i); } String ASCIInumbers...
cs55(java) please Part 1: You are a programming intern at the student transfer counselor's office. Having heard you are taking CS 55, your boss has come to ask for your help with a task. Students often come to ask her whether their GPA is good enough to transfer to some college to study some major and she has to look up the GPA requirements for a school and its majors in a spreadsheet to answer their question. She would like...
Hi there! I need to compare two essay into 1 essay, and make it interesting and choose couple topics which im going to talk about in my essay FIRST ESSAY “Teaching New Worlds/New Words” bell hooks Like desire, language disrupts, refuses to be contained within boundaries. It speaks itself against our will, in words and thoughts that intrude, even violate the most private spaces of mind and body. It was in my first year of college that I read Adrienne...
Nombre . Responde las siguientes preguntas A) SI P(A 6 B)-1/3 P(B)- 1/4 y P(Ay B)-1/5, halle P(A) B ) Cual es la probabilidad de lanzar un par de dados y que la suma de los resultados de los dos dados sea 7 C ) Una prueba de selección múltiple tiene cinco posibles respuestas de las cuales una es correcta, si 13 estudiantes eligen las respuestas al azar. Cuaál es la probabilidad de que los 13 escojan la respuesta correcta?...