subject
Mathematics, 21.12.2021 20:30 natlovesfood

In the following, the phrase "random value" is to be taken to mean a uniform random floatingpoint number between 0 and 1, to be obtained by an appropriate call to the random number generator (not chosen arbitrarily by hand). Write a SINGLE statement (in each case) to implement each of the following tasks (apart from the initial import and setting up of the random number generator at the very beginning, if needed). Vectorized operation (and broadcasting) must be used; do not use loops or if statements. Please show the six statements along with the corresponding execution results in six consecutive cells (do not change the order of the parts). a. Create a 2-dimensional numpy array X (3 rows and 4 columns) of random values. b. To each column of X, add the square of a vector of three random values (the same vector is added to the individual columns of X; this vector is part of the single statement and does not have its own name). Call the result Z. c. Divide each row of Z by the max element in that row. Call the result P. d. Next, for each element of P, replace it with 0.3 if it is less than 0.5. e. Print True if the index of the column with the highest column-sum in P is the same as the index of the row with the smallest row-sum, False otherwise. f. Print in reverse the array of the column-wise minimum values of P.

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 21.06.2019 18:30
In the following diagram it is given that dec,ab || dc, ad || eb, and ad is congruent to bc. a)why isn't abc a parallelogram even though it has a pair of parallel sides and a pair of congruent sides b)explain why be must be congruent to bc. further explain what type of triangle this makes triangle abc and what it tells you about angle 1 and angle 2c) finally why must angle 3 be congruent to angle 1? further, explain why we know that angle 3 is congruent to angle 2
Answers: 1
question
Mathematics, 21.06.2019 19:00
This task builds on important concepts you've learned in this unit and allows you to apply those concepts to a variety of situations. the task has several parts, each in its own section. mr. hill's seventh grade math class has been learning about random sampling and how it tends to produce samples that are representative of an entire population. they've also learned that if a sample is representative of the entire population, then estimates or predictions made based on the sample usually apply to the population as well. today, in class, they are also learning about variation in random sampling. that, although predictions and estimates about the population can be made from a random sample, different random samples will often produce slightly different predictions or estimates. to demonstrate this concept to his students, mr. hill is going to use simulation. he begins the lesson by explaining to the class that a certain university in the united states has a student enrollment of 19,100. mr. hill knows the percentage of students that are male and the percentage of students that are female. using simulation and random sampling, he wants his seventh grade students to estimate both the percentage of male students and the number of male students that are enrolled in this university. to conduct the simulation, mr. hill has placed one hundred colored chips in a bag, using the appropriate percentages of enrolled male and female university students. red chips represent males, and yellow chips represent females. each seventh grade student will randomly select twenty chips, record the colors they selected, and put the chips back in the bag. at this point, each seventh grade student will only know the results of their own random sample. before you begin, it's a good idea to look over each part to get oriented to the whole task. additionally, it's best to complete the sections in order, since they build on each other. finally, the work you complete will be a combination of computer-graded problems and written work that your teacher will grade. in some cases, you will need to complete work outside of the problem (in a word processing document or on paper, for example) and upload it for grading. to get started click work on questions. questions: 1. suppose a student reaches in the bag and randomly selects nine red chips and eleven yellow chips. based on this sample, what is a good estimate for the percentage of enrolled university students that are male? 2. suppose a student reaches in the bag and randomly selects nine red chips and eleven yellow chips. based on this sample, what is a good estimate for the number of enrolled university students that are male? 3. suppose a different student reaches in the bag, randomly selects their twenty chips, and estimates that 60% of the students are male. how many yellow chips were in their sample? 4. suppose a different student reaches in the bag, randomly selects their twenty chips, and estimates that 60% of the students are male. based on this sample, what is a good estimate for the number of enrolled university students that are female? 5. based on your dot plot, make a new estimate of both the percentage and number of males that attend this university. use complete sentences in your answer and explain your reasoning. 6. compare your estimates for the percentage of male university students from part a and part b. which estimate do you think is more representative of the population? use complete sentences in your answer and explain your reasoning. 7. once you have created both sets of numbers, complete the following tasks. in each task, make sure to clearly label which set you are identifying or describing. identify the elements of each set that you created. calculate the mean of each set. show your work in your answer. calculate the mean absolute deviation of each set. show your work in your answer. describe the process you used to create your sets of numbers under the given conditions.
Answers: 1
question
Mathematics, 21.06.2019 21:00
An arithmetic series a consists of consecutive integers that are multiples of 4 what is the sum of the first 9 terms of this sequence if the first term is 0
Answers: 1
question
Mathematics, 21.06.2019 21:30
Mr. vector door is buying two new cowboy hats all together the hats cost $75.12 the second heart cost twice as much as the first hat what is the price of the more expensive at round to the nearest hundredth
Answers: 1
You know the right answer?
In the following, the phrase "random value" is to be taken to mean a uniform random floatingpoint nu...
Questions
question
Biology, 18.08.2019 08:30
question
Social Studies, 18.08.2019 08:30
question
Social Studies, 18.08.2019 08:30
question
Biology, 18.08.2019 08:30
question
English, 18.08.2019 08:30
Questions on the website: 13722367